/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {

  color-scheme: light; /* Force le navigateur à ne pas inverser les couleurs et rester en mode light!! ou color-scheme: dark; */

  /* Base couleur */
  --noir-doux: #2C2C2C;

  --blanc-pur: #FFFFFF;
  --blanc-2: #FCFCFC;
  --blanc-doux: #F8F8F8;
  --ivoire: #FDF8F0;
  --sable-clair: #EDE4D7;
  --gris-perle: #E3E3E3;
  --gris-clair: #D0D0D0;
  --gris-neutre: #888888;

  --bleu-clair: #B3D4E0;
  --bleu-acier: #7A9FB9;
  --bleu-vif: #5DADE2;
  --bleu-gris: #5F8CA3;
  --bleu-ardoise-clair: #3b4250;
  --bleu-ardoise: #2a303b;
  --bleu-ardoise-fonce: #1f242e;

  --jaune-pale: #FFF3B0;
  --orange-clair: #ffae00;

}


/* Focus visible accessible pour tous les éléments interactifs */
   button:focus-visible,
   a:focus-visible,
   input:focus-visible,
   textarea:focus-visible,
   select:focus-visible,
   .hero .btn:focus-visible,
   .adhesion-banner:focus-visible,
   .social-icon:focus-visible,
   .nav summary:focus-visible,
   .reco summary:focus-visible,
   .bouton-fermer:focus-visible {
     outline: 3px solid var(--bleu-vif); /* couleur uniforme */
     outline-offset: 2px;                /* décale légèrement l’outline */
   }
   
   /* Transition douce pour tous les focus */
   button,
   a,
   input,
   textarea,
   select,
   .hero .btn,
   .adhesion-banner,
   .social-icon,
   .nav summary,
   .reco summary,
   .bouton-fermer {
     transition: outline 0.15s ease-in-out;
   }
   


/* Base */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


html {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--noir-doux);  
}

body, html {
  width: 100%;
}
/* important pour pousser le footer en bas */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--blanc-doux);
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}



/* Titres globaux */
h1 {
  font-size: clamp(1.25rem, 1rem + 2.8vw, 3.2rem);
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.3;
  margin: 0 0 clamp(0.9rem, 2vw, 1.25rem) 0;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);   /* 18.4px → 24px → 24px */
  line-height: 1.35;
  margin: 0 0 clamp(0.6rem, 1.2vw, 0.9rem);
}


h4 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);  /* 16.8px → 20px → 20px */
  line-height: 1.4;
  margin: 0 0 clamp(0.5rem, 1vw, 0.7rem);
}

h5 {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);  /* 16.8px → 20px → 20px */
  line-height: 1.4;
  margin: 0 0 clamp(0.5rem, 1vw, 0.7rem);
}

p {
  margin: 0;
  font-size: clamp(0.8rem, 0.8rem + 0.3vw, 1rem);  
}

p, li, dd, summary {
  line-height: 1.6;
  font-weight: 550;
}

h1 { font-weight: 850; }
h2 { font-weight: 550; }
h3 { font-weight: 500; }
h4 { font-weight: 500; }
h5 { font-weight: 500; }



/* ==============================
   Listes de base : UL et OL
   ============================== */

ul, ol {
  margin: 0 0 1em 1.5em; /* marge autour des listes H D B G*/
  list-style-type: disc;      /* puces classiques */
  padding: 0;        
}

/* items de premier niveau */
ul > li, ol > li {
  margin: 0.5em 0;         /* espace entre les items principaux */
  line-height: 1.5;        /* lisibilité */
}

/* ==============================
   Sous-listes (niveau 2)
   ============================== */
   ul ul, ol ol {
    margin-left: 1.5em;      /* indentation supplémentaire */
    list-style-type: circle; /* puces secondaires */
  }
  
  ul ul > li, ol ol > li {
    margin: 0.3em 0;          /* moins d’espace que le premier niveau */
  }

/* ==============================
   Sous-sous-listes (niveau 3+)
   ============================== */
   ul ul ul, ol ol ol {
    margin-left: 1.5em;       /* nouvelle indentation */
    list-style-type: square;  /* puces tierces différentes */
  }
  
  ul ul ul > li, ol ol ol > li {
    margin: 0.2em 0;          /* encore un peu moins d’espace */
  }



  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
