:root {
    /* Variables des couleurs */
    --bleu: #002D56;
  
    /* Variables des polices */
    --Geo: 'GeosansLight', sans-serif;
    --PT: "PT Serif", serif;
  }

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: var(--Geo);
  }

  html {
    scroll-behavior: smooth;
  }
  
  body {
    width: 100vm;
  }

  a, p, label, input, textarea, li {
    color: black;
    font-size: clamp(16px, 1.46vw, 28px);
    font-weight: bolder;
  }

  a:hover {
    cursor: pointer;
    text-decoration: underline;
  }

  h1 {
    color: var(--bleu);
    font-size: clamp(30px, 5.21vw, 100px);
    font-weight: bolder;
  }

  .confiance h1 {
    color: var(--bleu);
    font-size: clamp(20px, 3.91vw, 75px);
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
  }

  .blue {
    color: var(--bleu);
  }

  .center {
    text-align: center;
  }

  .displayNone {
    display: none;
  }

  .mobile_button {
    display: none;
  }

/*Header*/
/*_____________________________________*/

header{
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    background-color: white;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 1.5%;
    border-bottom: #002D56 solid 1px;
    z-index: 1000;
  }

  header img {
    height: 50px;
    margin-left: 90px;
    padding-top: 10px;
    transform: translateY(10px);
  }

  nav {
    font-size: clamp(14px, 1.56vw, 30px);
    width: 40%;
    display: flex;
    justify-content: space-between;
    font-weight: bolder;
    margin-right: 90px;
  }

  nav a:hover {
    color: var(--bleu);
    cursor: pointer;
    text-decoration: underline;
  }

  /* Main*/
/*_____________________________________*/

main {
  display: flex;
  flex-direction: column;
  gap : 100px;
}


/* Section home*/
/*_____________________________________*/

.home {
  background-image: url('../images/bg/bg1.webp');
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat; 
  padding: clamp(24px, 4.69vw, 90px);
}

.presentation {
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 50px;
  width: 100%;
}

.presentation aside {
  width: 40%;
}


.presentation aside img {
  border-radius: 100%;
  margin: 50px;
  max-width: 100%;
}

.presentation article {
  width: 60%;
  margin: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.presentation article h1, .fonction {
  text-align: center;
}

.fonction {
  font-family: var(--PT);
  font-weight: bold;
  font-size: clamp(16px, 1.67vw, 32px);
  margin-bottom: 1em;
}

.presentation_text {
  padding-bottom: 4em;
}

.presentation article p {
  font-size: (16px, 1.46vw, 28px);
  margin-bottom: 14px;
  font-weight: bold;
}

.presentation_link, .presentation_link a {
  display: flex;
  justify-content: space-between;
  color: var(--bleu);
  font-size: clamp(16px, 1.67vw, 32px);
  font-weight: bold;
}

.about_link:hover{
  text-decoration: underline;
}

.home_link_sm {
  display: flex;
  gap: 0.5em;
}

/* Section presta*/
/*_____________________________________*/
#presta, #contact {
  scroll-margin-top: 170px;
}
.presta_header h1 {
  position: absolute;
  left: 23.5%;
}

.presta_header img {
  width: 100%;
}

.presta_button {
  margin: 50px 90px;
  display: flex;
  justify-content: space-between;
}

button {
  padding: 1.4rem 3rem;
  display: inline-block;
  position: relative;
  background: none;
  border: none;
  color: #fff;
  font-size: clamp(16px, 1.50vw, 32px);
  cursor: pointer;
  font-family: 'GeosansLight', sans-serif;    
  font-weight: bold;
  background: #002D56;
}

button:hover {
  background: white;
  color: #002D56;
}

button {
  &:before,
  &:after {
    display: block;
    content: "";
    position: absolute;
    background: #002D56;
    z-index: -1;
  }
}

button {
  &:before {
    top: -0.1rem; bottom: 100%; left: 0; right: 100%;
    transition: none; /* No transition on normal state */
  }
  &:after {
    top: 100%; bottom: -0.1rem; left: 100%; right: 0;
    transition: none; /* No transition on normal state */
  }
  &:hover {
    &:before {
      top: -0.1rem; bottom: -0.1rem; left: 0; right: -0.1rem;
      transition: left .5s 0s, right .5s 0s, bottom .3s .5s;
    }
    &:after {
      top: -0.1rem; bottom: -0.1rem; left: -0.1rem; right: 0;
      transition: left .5s 0s, right .5s 0s, top .3s .5s;
    }
  }
}

#presta_text {
  margin: 0 90px;
  text-align: center;
  font-size: clamp(16px, 1.67vw, 32px);
  font-weight: bold;
  min-height: 40px;
  opacity: 0; 
  transform: translateY(-50px); 
  transition: opacity 0.5s ease, transform 0.5s ease;
}


/* Section confiance*/
/*_____________________________________*/
.confiance {
  background-image: url('../images/bg/bg2.webp');
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat; 
  padding: clamp(24px, 4.69vw, 90px);
}

.confiance_op {
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  width: 100%;
 
}

#confiance_logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin: 50px;
}

#confiance_logo img {
  width: 12%;
  height: auto;
}

/* Section contact*/
/*_____________________________________*/

.contact_header {
  display: flex;
  gap : 50px;
  width: 100%;
  align-items: center;
}

.contact_header img {
 width: 25%;
 margin-left: 90px;
}

.contact_header_text {
  display: flex;
 flex-direction: column;
 gap: 50px;
 margin-right: 90px;
 font-weight: bold;
}

.contact_header_text h1 {
  text-align: center;
}

form {
  margin: 0 90px;;

}

form, label {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 1em;
  font-weight: bold;
  color: var(--bleu);
}

.form_row {
  display: flex;
  flex-direction: row ;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form_row label {
  width: 48%;
}

form input, form textarea {
  margin-top: 0.2em;
  padding: 0.1em;
}

input, textarea {
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3); 
  border: 1px solid var(--bleu); 
  padding: 10px;
  border-radius: 4px;
  transition: box-shadow 0.3s ease; 
}

input:focus, textarea:focus {
  box-shadow: 0 6px 10px rgba(52, 152, 219, 0.5);
  outline: none; 
}

form textarea {
  height: 4em;
}

form button {
  width: 25%;
  margin-top: 1em;
  font-size: clamp(16px, 1.50vw, 32px);
}

.sent_container {
  position: absolute;
}

.sent_plane {
  position: absolute;
  display: block;
  width: 80%;
  left: 50%;
  top: -130%;
  z-index: -2;
}

.fa-spinner {
  animation: spin 1s linear infinite;
  font-size: clamp(16px, 1.25vw + 10px, 28px);
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}

#envoiEnCours, #sent {
  margin-top: 2em;
  margin-bottom: 3em;
}



/* Footer*/
/*_____________________________________*/

.footer_home {
  background-image: url('../images/bg/bg3.webp');
  background-size: cover;
  background-position: center; 
  background-repeat: no-repeat; 
  padding: clamp(24px, 4.69vw, 90px);
  margin-top: 100px;
  font-weight: bold;
}

.obligation, .copyright {
  font-size: clamp(16px, 1.25vw,  24px);
}

.obligation {
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding: 2em 0;
}

.copyright {
  text-align: center;
  background-color: var(--bleu);
  padding: 1em 0;
  color: white;
  display: block;
  width: 100%;
  font-weight: bold;
}

.footer_page {
  text-align: center;
  border-top: var(--bleu) solid 1px;
  padding: 1em;
  color: var(--bleu);
}


/* Mise en page des prestations */
.presta_desc {
  margin: 50px 90px;
}

.presta_desc h1 {
  text-align: center;
  margin-bottom: 0.3em;
}

.presta_desc p {
  margin-bottom: 1em;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2em; 
  font-family: 'GeosansLight', sans-serif;
  width: 100%;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;;
}

#searchInput {
  width: 50%; 
}

.block, .blockC {
  position: relative;
  overflow: hidden;
}


.block {
  cursor: pointer;
  z-index: 10;

}

.imgBG {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 0.5s ease;
  max-height: 285px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 70%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 1));
  z-index: 1;
  transition: top 0.5s ease;
}

.block h2, .blockC h2 {
  position: absolute;
  bottom: 5%; 
  left: 0;
  right: 0;
  margin: 0;
  color: white;
  text-align: center;
  padding: 0.2em;
  z-index: 2;
  transition: bottom 0.5s ease;
}

#desc {
  font-size: clamp(16px, 1vw, 18px);
  position: absolute;
  top: 100%; 
  left: 0;
  right: 0;
  padding: 0.2em;
  margin: 3%;
  color: white;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: top 0.5s ease, opacity 0.5s ease; 
  font-weight: bolder;
}

.block:hover .overlay, .blockC:hover .overlay {
  top: 50%;
}

.block:hover h2, .blockC:hover h2 {
  bottom: 50%;
}

.block:hover #desc, .blockC:hover #desc {
  top: 50%; 
  opacity: 1; 
}

.block:hover img , .blockC:hover img{
  filter: brightness(60%);
}

.clic {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7); 
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: clamp(16px, 1vw, 18px);
  display: none; 
  z-index: 10;

}

.block:hover .clic {
  display: block; 
}

.construction {
  text-align: center;
  margin: 3em;
}


/* Mentions légales*/
/*_____________________________________*/

.sectionMention {
  margin-top: 1em;
}

.sectionMention h2 {
  color: var(--bleu);
  font-size: clamp(16px, 1.67vw, 32px);
  margin-bottom: 0.3em;
  margin-top: 1em;
}

.sectionMention p, .sectionMention li, .sectionMention a {
  font-size: clamp(16px, 1.25vw, 24px);
  margin: 0;
}


/*Page QUI SUIS JE*/
#pageQuiSuisJe{
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

#pageQuiSuisJe article {
  margin-bottom: 2%;
}

.enfance, .conclusion {
  position: relative; 
  display: inline-block; 
}

.granier, .conclusion_image {
  display: block;
  width: 100%; 
  height: auto;
}

.enfance_text, .conclusion_text {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 90%;
  height: 100%;
  display: flex; 
  flex-direction: column;
  z-index: 10;
  margin: 5%;
}

.enfance_text p, .conclusion_text p  {
  color: #fff;
}

.etudes, .planetarium {
  display: flex;
  align-items: stretch;
  height: auto;
  gap: 2%;
}

.etudes_text,.planetarium_text {
  width: 60%; 
}

.etudes_image, .image {
  width: 40%; 
  height: 100%; 
  object-fit: cover;
  object-position: center;
}

.conclusion_text {
  right: 40%;
  width: 50%;
  top: 50%;
}

