:root {
  --bleu_vibran: #007bff;
  --bleu_claire: #a5cfff;
  --noir_bleuté: #011f26;
  --bleu_ombre: #c7e2ff;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background-color: white;
  font-size: 15px;
}


/*   titre    */

h1 {
  text-align: center;
  justify-content: center;
  width: 66%;
  font-size: 28px;
}

h1 span {
  font-weight: 700;
  color: var(--bleu_vibran);
}

.result h3{
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    text-align: center;
}

p{
    margin-top: 15px;
    margin-bottom: 2px;
}

/*    menu    */

.menu-links {
    display: flex;
    gap: 1rem;
  }
  
  .burger-menu {
    display: none; /* Cacher le bouton burger sur desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
  }

  .burger-menu.active, .burger-menu:hover {
    background-color: var(--noir_bleuté);
    transform: rotate(6deg);
  }

  select option {
    text-align: center;
  }



/*    header et footer    */

header {
  display: flex;
}

footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 120px;
}


footer .illu img {
  height: 160px;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: scaleX(-1) translateX(calc(50% + 10px));
  margin: 10px;
}

footer .illu {
  position: relative;
  width: 33%;
}

a {
    display: inline-block;
  padding-left: 4px;
  padding-right: 4px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

a:hover {
  background-color: var(--noir_bleuté);
  transform: rotate(6deg);
}

header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bleu_vibran);
  padding: 20px;
  color: white;
  text-align: center;
  font-weight: 500;
}

footer nav {
  border-bottom-right-radius: 0px;
  border-top-left-radius: 30px;
  font-size: 13px;
  width: 66%;
  min-width: 758px;
  justify-content: space-evenly;
}

header nav {
  width: 33%;
  min-width: 460px;
  border-bottom-right-radius: 30px;
  justify-content: space-evenly;
}

footer nav div {
    display: flex;
    gap:6px;
    width: 64%;
    justify-content:space-evenly;
  }

header .logo,
footer .logo {
  color: white;
  font-size: 24px;
  font-weight: 600;
}

header .logo:hover,
footer .logo:hover {
  color: white;
  background-color: #007bff00;
}

header .logo span,
footer .logo span {
  color: var(--noir_bleuté);
}

.select-lang {
  height: 30px;
  display: flex;
  gap: 4px;
}

.select-lang img {
  height: 100%;
}


.select-lang {
    appearance: none;
    background-color: white;
    border: 2px solid var(--bleu_vibran);
    color: var(--bleu_vibran);
    font-weight: 600;
    padding: 4px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: 1rem;
  }
  
  .select-lang:hover {
    background-color: var(--bleu_ombre);
  }
  
  .select-lang:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.3);
  }

  

/*    main    */
main{
    margin:20px;
    /*justify-items: center;*/
}

/*    section    */

section{
    display: flex;
    gap: 20px;
    margin: 4% auto;
    justify-content: center;
    max-width: 1200px;
}

section.bis {
    flex-direction:row-reverse;
}

section.bis .content, section.alpha .content {
    flex-direction:column;
}

/*    pub    */

.pub{
    background-color: #e0e0e0;
    width: 33%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    box-shadow: inset 21px 21px 45px #aaaaaa,
            inset -21px -21px 45px #ffffff;
}

/*    content    */

.content{
    width: 66%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start
}

.content div>.imgCal{
    position: absolute;
    bottom:64px;
    left:-140px;
    height: 260px;
}

.content div>img{
    height: 200px;
}

.content .dimg{
    width: 100%;
    flex-direction: row;
}

.content .dimg div:last-child{
    display: flex;
    justify-content: center;
    align-items: center;
}


.content>div{
    position:relative;
    width: 70%;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.content h2{
    margin:20px 0px 0px 0px;
}

.content a{
    background-color: var(--noir_bleuté);
}


form,
.result>div {
    position: relative;
  border-radius: 30px;
  background-color: white;
  border: 2px solid var(--bleu_vibran);
  padding: 20px;
  z-index: 5;
}

.result>div {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.result{
    display: flex;
    gap:20px;
}

.result p{
    font-size: 37px;
    margin:0px;
    color: var(--bleu_vibran);
    text-align: center;
}

.result p span {
    color: var(--noir_bleuté);
}

.button {
    background-color: white !important;
    color:var(--bleu_vibran);
    padding:10px;
    margin-top: 20px;
    border: solid 2px var(--bleu_vibran);
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    transform: rotate(6deg);
    background-color: var(--bleu_vibran) !important;
    color:white;
}

.butbis {
    background-color: var(--bleu_vibran) !important;
    color:white !important;
}

.butbis:hover {
    background-color: white !important;
    color:var(--bleu_vibran) !important;
}


/*    design du formulaire    */

input[type="number"] {
  width: 60px;
  padding: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--noir_bleuté);
  background-color: white;
  border: 2px solid var(--bleu_vibran); 
  border-radius: 8px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus sans décaler */
input[type="number"]:focus {
  background-color: var(--bleu_ombre);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.3);
}

#calculateur{
    display: flex;
}

#calculateur>div{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap:4px;
}


/*   bannière cookie   */
#tarteaucitronAlertBig, .tarteaucitronButton {
    background-color: #00A896; /* couleur principale */
    color: white;
}
.tarteaucitronTitle {
    font-family: "Roboto", sans-serif;
}



@media screen and (max-width: 1320px) {
    h1 {
        width: calc(100% - 40px);
        margin-left:20px;
        margin-right:20px;
      }
    
      header {
        flex-direction: column;
      }
}

@media screen and (max-width: 1080px) {
    .result p{
        font-size: 36px;
    }
}

@media screen and (max-width: 980px) {
    section {
        flex-direction: column-reverse !important;
        align-items: center;
    }

    .pub, .content{
        width:100%;
    }
}

@media screen and (max-width: 940px) {
    footer{
        margin-top: 60px;
    }

  footer .illu {
    width: 50%;
  }

  footer nav {
    flex-direction: column;
    width: 50%;
    min-width: 50%;
  }

  footer nav div {
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 100%;
  }
}

@media screen and (max-width: 740px) {

  .content>div{
    width:100%;
  }

  .content div>.imgCal{
    bottom:-14px;
    left:50%;
    transform: translateX(-50%);
    height: 160px;
    z-index:2;
    }

    #calculateur, .result div:first-child{
        z-index: 1;
    }


    section.bis {
        flex-direction: column-reverse;
        align-items: center;
    }

}


@media (max-width: 540px) {
    .menu-links {
      display: none; /* Cacher les liens */
      flex-direction: column;
      background: var(--bleu_ombre);
      position: absolute;
      top: 60px; /* ajuste selon ton header */
      right: 14%;
      padding: 1rem;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      border-radius: 10px;
    }

    .menu-links a{
      color:var(--noir_bleuté);
    }

    .menu-links a:hover{
        color:white;
      }
  
    .menu-links.active {
      display: flex; /* Afficher le menu quand actif */
    }
  
    .burger-menu {
      display: block; /* Afficher le bouton burger */
    }

    header nav {
        width: 80%;
        min-width: 80%;
    }

    h1{
        font-size: 22px;
        text-align: left;
        margin-bottom: 0px;
    }


    .result{
        flex-direction: column;
    }

    .result div{
        width: auto;
    }

    .content div>.imgCal {
        bottom: 96px;
        left: -10px;
        transform: translateX(0%);
        height: 140px;
        z-index: 4;
    }

    #calculateur{
        flex-direction: column;
        gap:10px;
    }

    #calculateur>div{
        width: 100% !important;
    }

    .content .dimg{
        width: 100%;
        flex-direction: column;
    }

    /*#calculateur > div:first-child > div.entrer:nth-of-type(1),
    #calculateur > div:first-child > div.entrer:nth-of-type(2) {
        flex-direction: row;
        align-items: center;
    }*/

    #calculateur > div > div.entrer {
        flex-direction: row;
        align-items: center;
        
    }

    .content h2{
        font-size: 18px;
        margin-top: 0;
    }

  }




  .sexe-selection {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }

  .sexe-option input[type="radio"] {
    display: none;
  }

  .sexe-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    
  }

  .sexe-option label img {
    border: 2px solid var(--bleu_vibran);
    border-radius: 100%;
    width: 70px;
    height: 70px;
    display: block;
    margin-bottom: 5px;
    box-sizing: border-box;
    transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease;
  }


  .sexe-option label:hover img, .sexe-option input[type="radio"]:checked:hover + label img {
    transform: rotate(10deg);
    border: 5px solid var(--bleu_vibran);

  }

  /* Style appliqué quand l'input radio est coché */
  .sexe-option input[type="radio"]:checked + label img{
    background-color: var(--bleu_ombre);
    border: 3px solid var(--bleu_vibran);
    color: white;
  }

  .sexe-option input[type="radio"]:checked + label {
    color:var(--bleu_vibran);
  }

  #calculateur>div{
    width:50%;
  }

  #calculateur>div:first-child{
    gap: 10px;
  }

  .entrer {
    display: flex;
    flex-direction: column;
    gap:4px;
  }
  
  .input-unite {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  label span, .lab span{
    font-weight: 700;
  }