/* ===================== TYPOGRAPHIE ===================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
  --font-main: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===================== BASE ===================== */
*,
*::before,
*::after{
  box-sizing: border-box;
}

body{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: #f6ffba;
  font-family: var(--font-main);
  text-align: center;
}

img{
  border: none;
  max-width: 100%;
  height: auto;
}

/* Texte accessible uniquement (pour <span class="sr-only">...) */
.sr-only{
  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;
}

/* ===================== PAGE ACCUEIL / HERO ===================== */
body.home{
  max-width: none;
  margin: 0;
  padding: 0;
  background: #000;
  text-align: left;
}

.hero{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero__img{
  display: block;
  width: 100%;
}

/* lien plein écran : doit être cliquable */
.hero__link{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: block;
  cursor: pointer;
}

/* overlay : ne doit pas bloquer les clics */
.hero__overlay{
  position: absolute;
  inset: 0;
  padding: clamp(14px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.35)
  );
  pointer-events: none;
}

.hero__kicker{
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(16px, 2vw, 34px);
  color: #f6ffba;
}

.hero__subkicker{
  font-size: clamp(14px, 1.6vw, 26px);
  color: #8ed105;
}

.hero__title{
  margin: 0;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 86px);
  color: #fff;
  line-height: 1.05;
  text-decoration: none; /* pas de soulignement */
}

/* ✅ TITRE CENTRÉ (classe ajoutée au H1) */
.hero__title--centered{
  text-align: center;
}



/* Crédits */
.hero__credits{
  font-size: clamp(10px, 1.1vw, 13px);
  color: rgba(246,255,186,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
  line-height: 1.25;
}

/* ✅ CRÉDITS ALIGNÉS À GAUCHE (classe ajoutée au footer) */
.hero__credits--left{
  text-align: left;
  max-width: 70ch;
  margin: 0 auto;
}

/* ✅ LIENS DANS LES CRÉDITS : plus lisibles que le bleu */
.hero__credits a{
  color: #f6ffba;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto; /* même si l’overlay est en pointer-events:none */
}

.hero__credits a:hover{
  color: #8ed105;
}

/* address : pas d’italique par défaut */
.hero__credits address{
  font-style: normal;
  margin: 0;
}

/* ===================== MENU PRINCIPAL ===================== */
.page-menu .menu_ppal{
  background: #382a23;
  padding-bottom: 1rem;
}

.menu_ppal h1{
  color: #8ed105;
  margin: 1rem 0;
}

.menu_colonnes{
  display: flex;
  gap: 1rem;
}

.menu_ppal ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu_ppal li.listemenu{
  margin-bottom: 1rem;
}

.menu_ppal a{
  color: #f6ffba;
  text-decoration: none;
  font-weight: 600;
}

/* PC : image au-dessus du texte */
@media (min-width: 761px){
  .menu_colonnes{
    justify-content: space-between;
  }

  .menu_ppal li.listemenu a{
    display: inline-block;
    text-align: center;
  }

  .menu_ppal img.menu{
    display: block;
    margin: 0 auto 6px auto;
    border: 3px solid #382a23;
  }

  .menu_ppal img.menu:hover{
    border-color: #8ed105;
  }

  .menu_txt{
    display: block;
    line-height: 1.3;
  }
}

/* MOBILE : 1 COLONNE, CARTES ALIGNÉES, ZÉRO INDENTATION */
@media (max-width: 760px){

  .menu_colonnes{
    flex-direction: column;
  }

  .menu_ppal li.listemenu{
    margin: 0.75rem 0;
  }

  .menu_ppal li.listemenu > a{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(246,255,186,0.35);
    border-radius: 10px;
    text-align: left;
  }

  .menu_ppal img.menu{
    width: 70px;
    border: 2px solid #382a23;
    flex-shrink: 0;
  }

  .menu_txt{
    line-height: 1.2;
  }
}

/* ===================== CONTENU GÉNÉRAL ===================== */
h1, h2{
  color: #382a23;
  letter-spacing: 0.02em;
}

h1{
  font-size: 2.4em;
  text-decoration: underline;
}

h2{
  font-size: 2em;
}

.gras{ font-weight: bold; }
.italique{ font-style: italic; }

.chocolat{ color:#382a23; }
.vert{ color:#8ed105; }
.bleu{ color:#205c58; }
.rose{ color:#ff16e3; }

/* ===================== MODE D’EMPLOI ===================== */
.notice{
  max-width: 75ch;
  margin: 0 auto;
  padding: 1rem;
  text-align: left;
}

.notice h1,
.notice h2{
  text-align: center;
}

.notice ul{
  padding-left: 1.2rem;
}

.notice p,
.notice li{
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ===================== TABLEAUX ===================== */
table{
  width: 100%;
  border-collapse: collapse;
}

th, td{
  font-size: 0.95em;
  border-bottom: 1px solid #505050;
  text-align: left;
}

/* ===================== LIENS ===================== */
a.retour{
  font-size: 1.4em;
  color: #8ed105;
  font-style: italic;
}

a.retour:hover{
  color: #382a23;
  text-decoration: underline;
}

/* ===================== MENU MOBILE : ESPACEMENT UNIFORME DEFINITIF ===================== */
@media (max-width: 760px){

  /* les colonnes deviennent neutres (évite "espaces entre colonnes") */
  .menu_ppal .colonne_gauche,
  .menu_ppal .colonne_centre,
  .menu_ppal .colonne_droite{
    margin: 0;
    padding: 0;
  }

  /* chaque item gère seul l'espacement (rythme unique) */
  .menu_ppal li.listemenu{
    margin: 0.75rem 0;
  }
}
/* Accueil : forcer le centrage réel du titre */
.home .hero__title{
  width: 100%;
  text-align: center;
}
.home .hero__titleLine{
  display: block;
  text-align: center;
}
.hero__caption{
  margin: 0;
}

/* ===================== LÉGENDE PHOTO (ACCUEIL) ===================== */
.home .hero__overlay .hero__caption{
  color: #ffffff !important;        /* texte blanc */
  text-align: right !important;     /* alignement du texte */

  align-self: flex-end;             /* position dans le flex */
  margin-left: auto;                /* colle à droite */
  max-width: 80%;

  font-size: clamp(13px, 1.6vw, 20px);
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}
.hero__title{
  margin-top: -1rem;   /* ajuste finement : -0.3rem à -1.2rem */
}

/* Photothèque : supprimer les puces */
ul.center{
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Agrandir légèrement les noms */
a.liens_sc,
a.liens_com{
  font-size: 1.15em;        /* +15 % environ */
  font-weight: 500;        /* un peu plus présent */
  line-height: 1.4;
}

/* Espacement horizontal entre scientifique et commun */
a.liens_com{
  margin-left: 3rem;
}

/* Espace entre les noms et la photo */
li.photos img{
  display: block;
  margin: 1rem auto 0 auto;  /* haut | droite | bas | gauche */
  list-style: none;      /* sécurité supplémentaire */
  }

/* ===================== LISTES PHOTOS : SANS BULLETS ===================== */
ul.photos{
  list-style: none;      /* supprime les puces */
  padding: 0;            /* supprime l'indentation gauche */
  margin: 0 auto;        /* centre le bloc */
}