:root {
    --back: #000;
    --white: #f9f9f9;
    --primary-color: #F36C2A;
    --secondary-color: #182945;
    --font-family-sans : 'Palanquin', sans-serif;
}

html {
    font-family: var(--font-family-sans);
}

body {
    background-color: var(--white);
    font-size: 1.2rem;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

h2, h3 {
    color: var(--primary-color);
    font-weight: bold;
}

h2 {
    font-size: 3rem;
    text-transform: uppercase;
    padding: 3rem 0;
}

h3 {
    font: 2rem;
}

.center {
    text-align: center;
}

.hidden {
    display: none;
}

.border-right, .border-left {
    border: var(--back) 1px none;
    padding: 0 2.5rem;
}

.border-right {  
    border-right-style: solid;
}

.border-left {
    border-left-style: solid; 
}

.container {
    width: 80%;
    margin: 0 auto;
}

.slider {
    margin: 0 auto;
    display: flex;
}


.header {
    display: flex;
    min-width: 100%;
    background-color: #fff;
    box-shadow: 0px 6px 5px rgba(0, 0, 0, .25);
    position: fixed;
    top: 0;
    height: 9vh;
    z-index: 1000;
}

.main-menu {
    display: flex;
    width: 100%;
}

.menu-button {
    display: none;
}
.header .logo {
    margin-bottom: -3%;
    margin-left: 10rem;
    width: 8%;
}

.header .logo img {
    width: 100%;
}

.header .nav {
    display: flex;
    margin-left: auto;
    align-items: center;
}

.header .nav a {
    margin-right: 5rem;
    color: var(--back);
}

.header .nav a:last-of-type {
    margin-right: 10rem;
}

.header nav a[aria-current] {
    color: var(--primary-color);
}

.header nav a:hover {
    color: var(--primary-color);
}

.main .section:nth-child(even) {
    background-color: var(--secondary-color);
    position: relative;
    margin: 5rem 0;
    color: var(--white);
}

.section:nth-child(even)::before, .section:nth-child(even)::after {
    content: " ";    
    width: 100%;
    height: 400px;
    position: absolute;
    z-index: -1;
}

.section:nth-child(even)::before{
    background: url(../img/Section-bleu-haut.png) no-repeat center;
    top: -300px;
    left: 0;
}
.section:nth-child(even)::after {
    background: url(../img/Section-bleu-bas.png) no-repeat center;
    bottom: -100px;
    left: 0;
}

.section:nth-child(even):last-of-type {
    margin-bottom: 0;
    padding-bottom: 3rem;
}
.section:nth-child(even):last-of-type::after {
    background-image: none;
}

.banner {
    padding-top: 10vh;
    height: 50vh;
    background-image: url(../img/banner.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom;
}

.intro {
    padding-top: 10vh;
    display: flex;
    flex-direction: column;
    height: 90vh;
    justify-content: space-evenly;
    background-image: url(../img/intro.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom;
}

.intro .topline {
    color: var(--white);
    font-weight: bold;
    font-size: 2rem;
    width: 60%;
    margin: 0 auto;
    text-shadow: 0px 10px 10px rgba(0, 0, 0, .5);
}

.intro .button-intro {
    margin: 0 auto;
    color: var(--white);
    padding: 1rem;
    border: var(--white) 2px solid;
}

.intro .button-intro:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.grid {
    display: grid;
    grid-template-areas: 
        "grid-title grid-img"
        "grid-txt grid-img";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 3fr;
    padding: 3rem 0;
    column-gap: 5rem;
}

.grid-return {
    display: grid;
    grid-template-areas: 
        "grid-img grid-title"
        "grid-img grid-txt";
}

.grid-title {
    grid-area: grid-title;
    margin: auto;
    padding: 0;
}

.grid-img {
    grid-area: grid-img;
    margin: auto auto;
    justify-content: center;
    width: 50%;
}

.atouts .grid-img {
    width: 40%;
}

.grid-txt {
    grid-area: grid-txt;
    margin: auto;
}

.grid-txt p {
    padding: 1rem 0;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.grid-2x2 > * {
    margin: auto;
}

.grid-2x2 img {
    width: 50%;
}
.svg-arrow {
    width: 40px;
    height: 40px;
    fill: #000;
    cursor: pointer;

}
.slider {
    margin: 10rem auto 15rem;
}

.groupe {
    width: 80%;
    margin-bottom: 4rem ;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.3);
}

/* Carrousel */

.slider-description {
    margin-bottom: 0.5rem;
}
.carrousel {
    width: 100%;
    position: relative;
}

.slider > * {
    display: flex;
    align-items: center ;
}

.carrousel-item {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s;
}

.slider-content {
    width: 90%;
    display: flex;
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}
.slider-txt {
    display: flex;
    flex-direction: column;
    width: 75%;
    text-align: start;
}

.slider-name {
    font-size: 30px;
    margin-bottom: 1rem;
}

.slider-job-name {
    font-weight: bold;
    margin-bottom: 1rem;
}

.slider-thumbnail {
    border-radius: 50%;
    width: 25%;
    margin-right: 4rem;
}

.section-content {
    display: flex;
}

.section-content-return {
    flex-direction: row-reverse;
}

.section-content p {
    width: 50%;
    padding: 2.5rem;
    margin: auto 5rem;
}

.section-content img {
    width: 30%;
    padding: 2.5rem;
    margin: auto 5rem;
}

.lien {
    display: flex;
}

.lien a{
    display: inline-block;
    height: 50%;
}

.lien a:nth-child(even) {
    margin-top: 15rem;
}

.contact {
    margin: 20vh auto 0;
    display: flex;
    flex-direction: column;
    width: 80%;
}

.sousmap {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: 20px auto 50px;
}

.sousmap > div {
    width: 30%;
}

.sousmap div p:first-of-type {
    margin-top: 20px;
}

.button {
    background-color: var(--primary-color);
    padding: 10px;
    color: var(--white);
    text-transform: uppercase;
    border: 0;
    border-radius: 50px;
    font-weight: bolder;
    width: 70%;
    font-size: 20px;
}

.schedules h3 {
    font-size: 25px;
    text-align: start;
}


.schedules p {
    text-align: start;
}

.button:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border: var(--primary-color) 1px solid;
    cursor: pointer;
    margin-bottom: 18px;
}

form > * {
    width: 90%;
    margin: 10px 0;
    padding: 5px 10px ;
    border-radius: 50px;
    border: var(--back) 1px solid;
    height: 30px;
}

form {
    display: grid;
    grid-template-areas: "nom message"
                         "mail message"
                         "sujet message"
                         "button button";
}

.nom {
    grid-area: nom;
}
.sujet {
    grid-area: sujet;
}
.message {
    grid-area: message;
    border-radius: 15px;
    height: 150px;
}
.file {
    grid-area: file;
}
.file input {
    vertical-align: middle;
}
.mail {
    grid-area: mail;
}

input.button, button.button {
    padding: 0;
    margin: 20px auto;
    grid-area: button;
    width: 30%;
}

input.button:hover, button.button:hover {
    margin-bottom: 20px;
}

.footer-basic {
    padding:40px 0;
    background-color:#222;
    color:#f5f5f5;
  }
  
  .footer-basic ul {
    padding:0;
    list-style:none;
    text-align:center;
    font-size:18px;
    line-height:1.6;
    margin-bottom:0;
    display: flex;
    justify-content: center;
  }
  
  .footer-basic li {
    padding:0 2rem;
  }
  
  .footer-basic ul a {
    color:inherit;
    text-decoration:none;
    opacity:0.8;
  }
  
  .footer-basic ul a:hover {
    opacity:1;
  }
  
  .footer-basic .social {
    text-align:center;
    padding-bottom:25px;
  }
  
  .footer-basic .social > a {
    font-size:24px;
    width:50px;
    height:50px;
    line-height:40px;
    display:inline-block;
    text-align:center;
    border-radius:50%;
    border:1px solid #f5f5f5;
    margin:0 8px;
    color:inherit;
    opacity:0.75;
  }
  
  .footer-basic .social > a:hover {
    opacity:0.9;
  }
  
  .footer-basic .copyright {
    margin-top:15px;
    text-align:center;
    font-size:13px;
    color:#f5f5f5;
    margin-bottom:0;
  }

  .ion-social-facebook i {
    vertical-align: middle;
  }

  .ion-social-facebook img{
    width: 100%;
    text-align: center;
    vertical-align: middle;
  }


@media screen and (max-width: 960px) {

    .menu {
        background: none;
        box-shadow: none;
    }

    .main-menu {
		display: none;
	}

	.logo { 
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.menu-button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
        background: none;
		margin-right: 1rem;
		z-index: 9999;
		border: none;
		box-shadow: none;
        color: #000;
	}

	.bar1, .bar2, .bar3 {
		width: 28px;
		height: 3px;
		background-color: #000;
		margin: 3px 0;
		transition: 0.4s;
	}

	.droit {
		display: none;
	}

	.logo a{
		margin: 0 auto;
	}

	.menu-opened .main-menu {
		position: fixed;
		display: flex;
		top: 0;
		right: 0;
		height: 100%;
        
		width: 100%;
		z-index: -1;
		background-color: rgba(0, 0, 0, .9);
		align-items: center;
	  }

      .menu-opened .main-menu .nav{
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        font-size: 3rem;
      }

      .menu-opened .main-menu .nav a {
        margin: 2rem auto;
        color: #fff;
        font-weight: bold;
        
      }

      .menu-opened .main-menu .logo {
        display: none;
      }

	  .menu-opened nav ul {
		display: flex;
		flex-direction: column;
		margin: 0 auto;
		text-align: center;
	  }

	  .menu-opened nav li {
		padding: 10% 0;
		font-size: auto;
	  } 

	  .menu-button p {
		padding-top: 3px;
	  }

	  .menu-opened .bar1 {
		transform: rotate(-45deg) translate(-6px, 4px);
	  }
	
	  .menu-opened .bar2 {
		opacity: 0;
	  }
	
	  .menu-opened .bar3 {
		transform: rotate(45deg) translate(-9px, -7px);
	  }
	
	  .menu-opened .menu-button span {
		opacity: 0;
	  }

	  .no-scroll {
		overflow: hidden;
	  }

      .intro {
        background-position: top;
        height: auto;
        padding: 1rem 0;
        justify-content: baseline;
        background-size: 100%;
      }

      .intro .topline {
        font-size: 1rem;
        margin: 1rem auto;
        width: 80%;
        text-align: center;
      }

      .intro a {
        display: none;
      }

      .slider {
        display: none;
      }

      .grid {
        display: block;
      }

      .section-content {
        display: block;
      }

      .section-content p {
        width: auto;
        padding: 0;
        margin: auto 2rem;
      }

      .border-right, .border-left {
        border: none;
      }

      .grid-2x2 {
        display: block;
      }
      .grid-2x2 > * {
        margin: 1rem auto;
      }

      .banner {
        background-position: top;
        height: auto;
        padding: 5rem 0;
      }

      .lien a:nth-child(even) {
        margin-top: 0;
      }

      .intro .button-intro {
        padding: .5rem;
      }

      .sousmap {
        display: block;
        margin: 0 auto;
        width: auto;
      }

      .sousmap p {
        width: auto;
        margin: 10px;
        font-size: 1rem;
      }

      .sousmap > div {
        width: auto;
      }

      .form {
        display: block;
      }

      .groupe {
        width: 100%;
      }

      div.lien {
        display: block;

      }
      .schedules h3, .schedules p {
        text-align: center;
      }
}