* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* --------------------Généralités couleurs et polices------------------------------*/
:root {
  /* palette */
  --color-white: #ffffff; /* Blanc pur fond de carte*/
  --color-off-white: #f8f9fa; /* Blanc cassé pour fond de section*/
  --color-light-blue: #eef4f8; /*Bleu leger pour fond de section*/

  /* --color-blue: #1F4E79; */
  --color-blue: #13315c; /* bleu profond*/
  --color-yellow: #f2c94c;
  --color-vert: #4e9f3d;

  /* --color-footer:#163A59; */
  --color-footer: #0a1128;
  /* --color-title:#1F4E79; */
  --color-title: #13315c; /*bleu proffond*/
  /*--color-text:#4A5565; */
  --color-text: #333333;

  /* Fonts police */
  --text-font: Open sans, sans-serif;
  --title-font: Montserrat, serif;

  /*Taille police titres*/
  --fs-48: 3rem;
  --fs-34: 2.125rem;
  --fs-28: 1.75rem;
  --fs-26: 1.625rem;
  --fs-22: 1.375rem;
  --fs-20: 1.25rem;
  /*Taille police texte*/
  --fs-18: 1.125rem;
  --fs-16: 1rem;
  --fs-14: 0.875rem;

  /* Typographie fluide */
  /* Syntaxe : clamp(Taille_Mini, Taille_Fluide, Taille_Max) */

  --font-h1: clamp(
    1.625rem,
    1.15rem + 2.4vw,
    3rem
  ); /* Mobile: 26px | Desktop: 48px */
  --font-h2: clamp(
    1.375rem,
    1.14rem + 1.2vw,
    2.125rem
  ); /* Mobile: 22px | Desktop: 34px */
  --font-h3: clamp(
    1.125rem,
    0.98rem + 0.7vw,
    1.625rem
  ); /* Mobile: 18px | Desktop: 26px */
  --font-h4: clamp(
    1rem,
    0.93rem + 0.35vw,
    1.25rem
  ); /* Mobile: 16px | Desktop: 20px */
  --font-p: clamp(
    0.938rem,
    0.89rem + 0.3vw,
    1.125rem
  ); /* Mobile: 16px | Desktop: 18px */

  /* --- HAUTEURS DE LIGNE (Line-height) --- */
  /* Très important : un grand titre a besoin de moins d'espace qu'un petit texte */
  --lh-titles: 1.2;
  --lh-body: 1.6;

  /* Aération section - Uniquement pour le haut : de 48px à 96px */
  /* --space-section-top: clamp(3.000rem, 2.25rem + 2.5vw, 6.000rem); */
  --space-section-top: clamp(3rem, 2.25rem + 2.5vw, 6rem);

  /* Espace sous le H2 : Passe de 24px (mobile) à 48px (desktop) */
  --space-h2-bottom: clamp(1.5rem, 1.15rem + 1.1vw, 3rem);
}

/*---- Evite le saut visuel pour les retours sur ancre d'un page précédente----*/

@media (prefers-reduced-motion: no-preference) {
  html:has(:target) {
    scroll-behavior: smooth;
  }
}

/* --- APPLICATION GÉNÉRALE --- */

body {
  font-size: var(--font-p);
  line-height: var(--lh-body);
}

p {
  font-size: var(--font-p);
  line-height: var(--lh-body);
  margin-bottom: 0rem; /* Optionnel : pour espacer tes paragraphes */
  color: var(--color-text);
}

h1 {
  font-size: var(--font-h1);
  line-height: var(--lh-titles);
  font-weight: bold;
  padding-top: 6rem;
}

h2 {
  font-size: var(--font-h2);
  line-height: var(--lh-titles);
  margin-bottom: var(--space-h2-bottom);
  font-weight: bold;
}

h3 {
  font-size: var(--font-h3);
  line-height: var(--lh-titles);
}

h4 {
  font-size: var(--font-h4);
  line-height: var(--lh-titles);
}

section {
  padding-top: var(--space-section-top);
  padding-bottom: 0; /* On neutralise le bas pour éviter le cumul */
  padding-left: 20px;
  padding-right: 20px;
}

/* Police et couleurs Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--color-blue);
}

#icon-fleche {
  display: flex;
  position: fixed;
  bottom: 10vh; /* Ou 5% ou 10vh */
  right: 30px;
  width: 50px;
  height: 50px;
  float: right;
  z-index: 99;
  opacity: 0.6;
}

/**************** Aération section, du titre de page (h1) et des titres de chapitre (h2) dans la page**********/

.page-title {
  max-width: 1200px;
  margin: auto;
  padding-top: 100px;
}

.main-title h2 {
  max-width: 1200px;
  margin: auto;
  text-align: left;
  padding-top: 90px;
  padding-bottom: 50px;
  /* font-size: var(--fs-34); */
}
/*************************Traitement du bouton Retour à la page précedente********************/
.button-containerRetour {
  width: 100%; /* Prend toute la largeur disponible de l'article */
  display: flex;
  justify-content: center; /* Centre le bouton horizontalement */
  margin-top: 40px; /* Ajoute de l'espace sous le texte (ajustable) */
  margin-bottom: 50px; /* Évite que le bouton colle au bas de la page */
}

#btn-retour {
  display: inline-block; /* Permet de bien prendre en compte les paddings et marges */
  border-radius: 15px;
  background-color: var(--color-yellow);
  font-size: var(--fs-18);
  text-decoration: none;
  color: var(--color-blue);
  font-weight: 500;
  padding: 10px 20px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

#btn-retour:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}




/************ reponsive *************** */
@media (max-width: 620px) {
  .page-title {
    padding-top: 40px;
  }
  .page-title h1 {
    /* font-size: var(--fs-34); */
  }
  .main-title h2 {
    padding-top: 20px;
    padding-bottom: 10px;
    /* font-size: var(--fs-28); */
  }

  #icon-fleche {
    /* top: 80vh; */
    width: 30px;
    height: 30px;
    right: 15px;
  }
}

@media (max-width: 620px) {
  #btn-retour {
  font-size: var(--fs-16);
}}
