/* =========================================================================
   LYCÉE ALIGURAN — Feuille de style du site public
   Couleurs et typographie relevées directement dans la maquette PowerPoint.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. POLICES
   Les fichiers WOFF2 sont hébergés localement (aucune dépendance à un CDN
   de polices). Si les fichiers sont absents, les polices de repli ci-dessous
   prennent le relais sans casser la mise en page.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v32-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-v32-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-v16-latin-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v13-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v13-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v13-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v13-latin-700.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. JETONS DE DESIGN
   ------------------------------------------------------------------------- */

:root {
  /* Couleurs de la charte */
  --vert-foret:   #1F4D3D;
  --vert-fonce:   #16332A;
  --vert-nuit:    #20281F;
  --vert-pale:    #E6EFE9;
  --orange:       #F0873C;
  --orange-fonce: #E2822F;
  --or:           #C9A15A;
  --marine:       #16305C;
  --marine-nuit:  #0D1F3D;
  --taupe:        #7D7768;
  --taupe-clair:  #C8C2B4;
  --creme:        #FAF7F0;
  --blanc:        #FFFFFF;

  /* Rôles */
  --texte:            var(--vert-nuit);
  --texte-doux:       var(--taupe);
  --fond:             var(--creme);
  --fond-carte:       var(--blanc);
  --bordure:          #E3DED6;

  /* Typographie */
  --police-titre:  'Lora', Georgia, 'Times New Roman', serif;
  --police-mot:    'Cormorant Garamond', 'Lora', Georgia, serif;
  --police-corps:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Échelle typographique fluide */
  --t-hero:      clamp(2.25rem, 1.2rem + 4.6vw, 4.25rem);
  --t-titre:     clamp(1.65rem, 1.1rem + 2.3vw, 2.75rem);
  --t-section:   clamp(1.4rem, 1.05rem + 1.5vw, 2.1rem);
  --t-sous:      clamp(1.1rem, .98rem + .6vw, 1.35rem);
  --t-corps:     1.0625rem;
  --t-petit:     .9375rem;
  --t-eyebrow:   .8125rem;

  /* Rythme */
  --gap:            1.5rem;
  --section-y:      clamp(3rem, 1.8rem + 5vw, 6rem);
  --rayon:          10px;
  --rayon-large:    16px;

  /* Ombres */
  --ombre-carte:  0 1px 2px rgba(32, 40, 31, .04), 0 8px 24px rgba(32, 40, 31, .06);
  --ombre-relief: 0 4px 8px rgba(32, 40, 31, .06), 0 16px 40px rgba(32, 40, 31, .10);

  --transition: 180ms ease;
}

/* -------------------------------------------------------------------------
   3. BASE
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--police-corps);
  font-size: var(--t-corps);
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  overflow-x: hidden;          /* Aucun défilement horizontal, quelle que soit la largeur */
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  color: var(--vert-nuit);
  line-height: 1.2;
  margin: 0 0 .75rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--vert-foret); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

/* Focus clavier visible sur tous les éléments interactifs */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Lien d'évitement pour la navigation au clavier et les lecteurs d'écran */
.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--vert-foret);
  color: var(--blanc);
  padding: .85rem 1.5rem;
  border-radius: 0 0 var(--rayon) 0;
  font-weight: 500;
}
.lien-evitement:focus {
  left: 0;
  color: var(--blanc);
}

.conteneur {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .conteneur { width: calc(100% - 2rem); }
}

/* -------------------------------------------------------------------------
   4. BLOCS DE TITRE (sur-titre doré + grand titre serif)
   Motif présent sur toutes les pages internes de la maquette.
   ------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: var(--police-corps);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 .5rem;
}

.titre-section {
  font-size: var(--t-titre);
  margin: 0 0 1.25rem;
}

.intro-section {
  color: var(--texte-doux);
  max-width: 68ch;
  margin-bottom: 2rem;
}

/* Titres de section : retour à la ligne équilibré (pas de mot orphelin) */
.titre-section { text-wrap: balance; }

/* --- Texte justifié (bloc « Notre établissement », historique) -------------
   Justification avec césure française automatique pour éviter les grands
   blancs entre les mots ;
   interligne aéré pour une lecture confortable. */
.texte-justifie {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
  line-height: 1.8;
  font-size: 1.04rem;
  max-width: none;
}
.texte-justifie p { margin-bottom: 1.05rem; }
.texte-justifie p:last-child { margin-bottom: 0; }
/* Petit filet décoratif entre le titre et le texte */
.filet-titre {
  width: 64px;
  height: 3px;
  margin: -.35rem 0 1.4rem;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--or) 0 60%, var(--vert-foret) 60% 100%);
  opacity: 1;
}
/* Sur téléphone, le texte reste justifié ; la césure automatique limite
   les blancs entre les mots. */
@media (max-width: 36rem) {
  .texte-justifie { font-size: .98rem; line-height: 1.75; }
}

.section { padding-block: var(--section-y); }
.section--creme { background: var(--creme); }
.section--blanc { background: var(--blanc); }
.section--vert  { background: var(--vert-foret); color: var(--blanc); }
.section--vert h2, .section--vert h3 { color: var(--blanc); }

/* -------------------------------------------------------------------------
   5. BOUTONS
   ------------------------------------------------------------------------- */

.btn-aliguran,
.btn-aliguran-ligne,
.btn-aliguran-vert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--police-corps);
  font-size: var(--t-petit);
  font-weight: 600;
  line-height: 1.2;
  padding: .85rem 1.6rem;
  border-radius: var(--rayon);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.btn-aliguran {
  background: var(--orange);
  color: var(--blanc);
  border-color: var(--orange);
}
.btn-aliguran:hover {
  background: var(--orange-fonce);
  border-color: var(--orange-fonce);
  color: var(--blanc);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240, 135, 60, .28);
}

.btn-aliguran-vert {
  background: var(--vert-foret);
  color: var(--blanc);
  border-color: var(--vert-foret);
}
.btn-aliguran-vert:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-fonce);
  color: var(--blanc);
  transform: translateY(-1px);
}

.btn-aliguran-ligne {
  background: transparent;
  color: var(--vert-foret);
  border-color: var(--taupe-clair);
}
.btn-aliguran-ligne:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(240, 135, 60, .05);
}

/* Toute cible tactile atteint la taille minimale recommandée (44 px) */
@media (pointer: coarse) {
  .btn-aliguran,
  .btn-aliguran-ligne,
  .btn-aliguran-vert { min-height: 46px; }
  .nav-principale a,
  .sous-menu a,
  .pied__liens a,
  .filtres a,
  .lien-fleche { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Lien fléché discret */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: var(--t-petit);
  color: var(--orange);
}
.lien-fleche i { transition: transform var(--transition); }
.lien-fleche:hover { color: var(--orange-fonce); }
.lien-fleche:hover i { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   6. EN-TÊTE — bandeau vert de contact + barre de navigation blanche
   ------------------------------------------------------------------------- */

.bandeau-contact {
  background: var(--vert-foret);
  color: rgba(255, 255, 255, .92);
  font-size: .85rem;
  padding: .5rem 0;
}
.bandeau-contact .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.25rem;
  justify-content: space-between;
}
.bandeau-contact__infos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.1rem;
}
.bandeau-contact a { color: rgba(255, 255, 255, .92); }
.bandeau-contact a:hover { color: var(--orange); }
.bandeau-contact__sep { color: rgba(255, 255, 255, .4); }
.bandeau-contact__admin {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

@media (max-width: 767.98px) {
  .bandeau-contact { font-size: .78rem; }
  .bandeau-contact__sep { display: none; }
  .bandeau-contact .conteneur { justify-content: center; text-align: center; }
  .bandeau-contact__infos { justify-content: center; }
}

.entete {
  background: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 1px 0 var(--bordure);
}
.entete--defile { box-shadow: 0 2px 16px rgba(32, 40, 31, .10); }

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}

.marque {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
}
.marque__logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.marque__nom {
  font-family: var(--police-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vert-nuit);
  line-height: 1.15;
  display: block;
}
.marque__lieu {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe);
  display: block;
}

@media (max-width: 991.98px) {
  .marque__logo { width: 50px; height: 50px; }
  .marque__nom  { font-size: 1.1rem; }
  .marque__lieu { font-size: .68rem; letter-spacing: .08em; }
}

/* Navigation principale */
.nav-principale {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-principale > li { position: relative; }
.nav-principale a {
  display: block;
  padding: .6rem .7rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--vert-nuit);
  border-radius: 6px;
}
.nav-principale a:hover { color: var(--orange); background: rgba(240, 135, 60, .07); }
.nav-principale .actif {
  color: var(--orange);
  font-weight: 600;
}
.nav-principale .actif::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--orange);
  margin-top: 2px;
  border-radius: 2px;
}

/* Sous-menu Présentation */
.sous-menu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 240px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-relief);
  padding: .4rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.a-sous-menu:hover > .sous-menu,
.a-sous-menu:focus-within > .sous-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sous-menu a { font-size: .9rem; padding: .55rem .8rem; }

.entete__actions { display: flex; align-items: center; gap: .6rem; }

/* Bouton hamburger */
.bouton-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--vert-nuit);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .bouton-menu { display: inline-flex; }
  .entete__nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 88vw);
    background: var(--blanc);
    box-shadow: -8px 0 40px rgba(32, 40, 31, .18);
    padding: 1.25rem;
    transform: translateX(100%);
    transition: transform 260ms ease;
    overflow-y: auto;
    z-index: 1050;
    display: flex;
    flex-direction: column;
  }
  .entete__nav.ouvert { transform: translateX(0); }
  .nav-principale {
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    width: 100%;
  }
  .nav-principale a { padding: .8rem .6rem; font-size: 1rem; }
  .nav-principale .actif::after { display: none; }
  .sous-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--vert-pale);
    border-radius: 0;
    margin-left: .6rem;
    padding: 0 0 .25rem .5rem;
    min-width: 0;
  }
  .nav-fermer {
    align-self: flex-end;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: var(--taupe);
    cursor: pointer;
    line-height: 1;
    padding: .25rem .5rem;
  }
  .nav-cta { margin-top: 1rem; }
  .nav-cta .btn-aliguran { width: 100%; }
  /* Le bouton reste accessible sur mobile, en version compacte,
     plutôt que d'être masqué derrière le menu hamburger. */
  .entete__actions .btn-aliguran {
    padding: .7rem .95rem;
    font-size: .82rem;
  }
  .entete__actions .btn-aliguran .libelle-long { display: none; }
  .voile-menu {
    position: fixed;
    inset: 0;
    background: rgba(32, 40, 31, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 1040;
  }
  .voile-menu.visible { opacity: 1; visibility: visible; }

  /* L'en-tête est « sticky » avec z-index:1030 : il crée un contexte
     d'empilement qui enferme le panneau de navigation, quel que soit le
     z-index de ce dernier. Le voile (1040) étant placé hors de l'en-tête,
     il recouvrait le menu ouvert et le rendait invisible et non cliquable.
     On remonte donc tout l'en-tête au-dessus du voile. */
  .entete { z-index: 1060; }
}

@media (min-width: 992px) {
  .nav-fermer, .nav-cta, .voile-menu { display: none; }
}

/* Écrans intermédiaires (portables, affichage agrandi) : la navigation reste
   horizontale, simplement resserrée pour tenir sur une seule ligne. */
@media (min-width: 992px) and (max-width: 1279.98px) {
  .nav-principale a { padding: .55rem .5rem; font-size: .88rem; }
  .entete__barre { gap: .6rem; }
  .marque__logo { width: 52px; height: 52px; }
  .marque__nom  { font-size: 1.05rem; }
  .marque__lieu { font-size: .68rem; letter-spacing: .06em; }
  .entete__actions .btn-aliguran { padding: .7rem 1rem; font-size: .82rem; }
}

/* -------------------------------------------------------------------------
   7. HERO DE LA PAGE D'ACCUEIL
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--vert-nuit);
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(32, 40, 31, .82) 0%,
              rgba(32, 40, 31, .66) 38%,
              rgba(32, 40, 31, .22) 68%,
              rgba(32, 40, 31, .10) 100%);
}
.hero .conteneur { position: relative; z-index: 2; }

.hero__contenu {
  max-width: 44rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--blanc);
}
.hero__accroche {
  display: block;
  font-size: clamp(.85rem, .78rem + .35vw, 1.05rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .35rem;
}
.hero__titre {
  font-size: var(--t-hero);
  color: var(--blanc);
  letter-spacing: .01em;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__sous-titre {
  font-size: clamp(1rem, .9rem + .6vw, 1.4rem);
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.hero__texte {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  color: rgba(255, 255, 255, .93);
  max-width: 36rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Bande d'information défilante, juste sous l'image du hero -------------
   Version affinée : bande jaune fine (≈ 34 px), liserés « ruban » de 3 px,
   texte presque noir (contraste ~13:1). Le message défile en boucle continue ;
   il se fige au survol, au clavier (focus) et via le bouton pause. Sous
   « réduire les animations », il ne défile plus et reste lisible, centré. */
.bande-alerte {
  --alerte-fond:  #FFC83D;
  --alerte-texte: #2A2000;
  --alerte-rayure: #20281F;
  position: relative;
  background: linear-gradient(180deg, #FFD15A 0%, var(--alerte-fond) 100%);
  color: var(--alerte-texte);
  overflow: hidden;
  padding-block: 7px;    /* liserés de 3 px + 4 px d'air */
  box-shadow: 0 2px 10px rgba(32, 40, 31, .12);
}
.bande-alerte::before,
.bande-alerte::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--alerte-rayure) 0 6px,
    transparent          6px 12px
  );
  opacity: .85;
}
.bande-alerte::before { top: 0; }
.bande-alerte::after  { bottom: 0; }

/* Texte pour lecteurs d'écran uniquement */
.bande-alerte__lecteur {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Fondu doux sur les bords : le texte apparaît et disparaît sans coupure */
.bande-alerte__piste {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 92%, transparent 97%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 92%, transparent 97%);
}

.bande-alerte__defile {
  display: flex;
  width: max-content;
  animation: bandeDefile 60s linear infinite;
  will-change: transform;
}
.bande-alerte__groupe { display: flex; flex: 0 0 auto; }

.bande-alerte__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-inline: 1.6rem;
  font-size: clamp(.84rem, 2.1vw, .95rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .015em;
  white-space: nowrap;
}
/* Petit losange séparateur entre deux messages */
.bande-alerte__item::after {
  content: "";
  width: 5px; height: 5px;
  margin-left: 1.6rem;
  background: var(--alerte-rayure);
  opacity: .45;
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.bande-alerte__item .bi { font-size: 1.05em; flex: 0 0 auto; }
.bande-alerte__item strong { font-weight: 700; }
.bande-alerte__item sup { font-size: .65em; line-height: 0; }

/* La boucle est parfaite : le 2e groupe est identique au 1er, on avance
   donc d'exactement un demi-défilé avant de recommencer. */
@keyframes bandeDefile {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Pause : au survol, au clavier, ou après un clic sur le bouton */
.bande-alerte:hover .bande-alerte__defile,
.bande-alerte:focus-within .bande-alerte__defile,
.bande-alerte.en-pause .bande-alerte__defile {
  animation-play-state: paused;
}

/* Bouton pause (exigence d'accessibilité : tout contenu qui défile
   plus de 5 secondes doit pouvoir être arrêté). Discret, mais la zone
   cliquable reste confortable grâce au pseudo-élément invisible. */
.bande-alerte__pause {
  position: absolute;
  top: 50%; right: .55rem;
  transform: translateY(-50%);
  z-index: 2;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  padding: 0;
  border: 1.5px solid var(--alerte-rayure);
  border-radius: 50%;
  background: var(--alerte-fond);
  color: var(--alerte-rayure);
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bande-alerte__pause::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.bande-alerte__pause:hover { background: var(--alerte-rayure); color: var(--alerte-fond); }
.bande-alerte__pause:focus-visible { outline: 2px solid var(--vert-foret); outline-offset: 2px; }

/* Mouvement réduit : plus de défilement, un seul message centré et lisible */
@media (prefers-reduced-motion: reduce) {
  .bande-alerte__piste { -webkit-mask-image: none; mask-image: none; }
  .bande-alerte__defile { animation: none; width: auto; justify-content: center; }
  .bande-alerte__groupe:nth-child(2),
  .bande-alerte__groupe .bande-alerte__item:nth-child(n+2) { display: none; }
  .bande-alerte__groupe { justify-content: center; width: 100%; }
  .bande-alerte__item { white-space: normal; text-align: center; padding-inline: 2.5rem; }
  .bande-alerte__item::after { display: none; }
  .bande-alerte__pause { display: none; }
}

@media (max-width: 575.98px) {
  .hero { min-height: 0; }
  .hero__voile {
    background: linear-gradient(180deg,
                rgba(32, 40, 31, .58) 0%,
                rgba(32, 40, 31, .80) 55%,
                rgba(32, 40, 31, .90) 100%);
  }
  .hero__actions .btn-aliguran,
  .hero__actions .btn-aliguran-vert { width: 100%; }
}

/* -------------------------------------------------------------------------
   8. CARTES
   ------------------------------------------------------------------------- */

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-large);
  box-shadow: var(--ombre-carte);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-relief); }
.carte__corps { padding: 1.5rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.carte__titre { font-size: var(--t-sous); margin-bottom: .5rem; }
.carte__texte { color: var(--texte-doux); font-size: var(--t-petit); margin-bottom: 1rem; }
.carte__pied { margin-top: auto; padding-top: .25rem; }

/* Vignette d'image à proportions constantes (évite tout décalage de mise en page) */
.carte__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--vert-pale);
  overflow: hidden;
}
.carte__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.carte:hover .carte__media img { transform: scale(1.04); }

/* Carte de cycle : pastille verte M / P / C */
.carte-cycle .carte__corps { padding: 1.6rem 1.5rem; }
.pastille-cycle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vert-foret);
  color: var(--blanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--police-titre);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.etiquette-cycle {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .15rem;
}

/* Étiquette de catégorie d'actualité */
.etiquette-categorie {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: .35rem;
}

/* Carte d'information de la page Présentation */
.carte-info {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.4rem;
  height: 100%;
}
.carte-info h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.carte-info p { color: var(--texte-doux); font-size: var(--t-petit); margin: 0; }

/* -------------------------------------------------------------------------
   9. SECTION « MOT DU FONDATEUR »
   ------------------------------------------------------------------------- */

.mot-fondateur { background: var(--blanc); }

.mot-fondateur__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* Colonne du portrait : suit la lecture sur grand écran, libérée sur mobile
   (voir la requête média plus bas). */
.mot-fondateur__colonne { position: sticky; top: 7rem; }

.mot-fondateur__portrait {
  position: relative;
  border-radius: var(--rayon-large);
  overflow: hidden;
  background: var(--vert-foret);
  aspect-ratio: 3 / 4;
  box-shadow: var(--ombre-relief);
}
.mot-fondateur__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;   /* cadrage centré sur le visage */
}

/* Emplacement en attente de la photo du Fondateur */
.portrait-attente {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  padding: 2rem;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.03) 0 12px,
      transparent 12px 24px),
    var(--vert-foret);
}
.portrait-attente i { font-size: 2.75rem; opacity: .55; }
.portrait-attente span { font-size: .85rem; line-height: 1.5; max-width: 22ch; }

.mot-fondateur__fonction {
  display: inline-block;
  margin-top: -1px;
  background: var(--orange);
  color: var(--blanc);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: 0 0 var(--rayon-large) var(--rayon-large);
}

.mot-fondateur__titre {
  font-family: var(--police-mot);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.mot-fondateur__filet {
  height: 2px;
  background: var(--bordure);
  position: relative;
  margin-bottom: 1.75rem;
}
.mot-fondateur__filet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 2px;
  background: var(--orange);
}

.citation-devise {
  border-left: 3px solid var(--orange);
  padding: .25rem 0 .25rem 1.5rem;
  margin: 0 0 1.75rem;
  font-family: var(--police-mot);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.35;
  color: var(--vert-nuit);
}

.mot-fondateur__texte {
  color: var(--texte-doux);
  max-width: 72ch;         /* Longueur de ligne confortable à la lecture */
}
.mot-fondateur__texte p { margin-bottom: 1.15rem; }

/* --- Mot du Fondateur : Times New Roman, texte justifié -------------------
   S'applique à l'extrait de l'accueil comme à la page dédiée. Times est
   optiquement plus petit que la police du site : la taille et l'interligne
   sont relevés pour conserver le même confort de lecture. */
.mot-fondateur__texte,
.texte-fondateur {
  font-family: "Times New Roman", Times, Liberation Serif, Georgia, serif;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  font-size: 1.08rem;
  line-height: 1.8;
}
.texte-fondateur p { margin-bottom: 1.15rem; }

/* Un texte collé dans l'administration depuis Word, un e-mail ou une page
   web apporte souvent ses propres réglages (alignement à gauche, retours à
   la ligne figés) qui annulent la justification. Ces règles les neutralisent :
   le texte de ces blocs est toujours justifié, quel que soit son origine. */
.texte-justifie,
.texte-justifie p, .texte-justifie span, .texte-justifie li, .texte-justifie blockquote,
.texte-fondateur,
.texte-fondateur p, .texte-fondateur span, .texte-fondateur li, .texte-fondateur blockquote,
.mot-fondateur__texte,
.mot-fondateur__texte p, .mot-fondateur__texte span, .mot-fondateur__texte li {
  text-align: justify !important;
  white-space: normal !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

/* Sur téléphone, le texte reste justifié comme sur ordinateur ; la césure
   automatique limite les blancs entre les mots. */
@media (max-width: 30rem) {
  .mot-fondateur__texte,
  .texte-fondateur {
    text-align: justify;
    -webkit-hyphens: auto;
            hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
  }
}

.mot-fondateur__pied {
  border-top: 1px solid var(--bordure);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.signature__nom {
  font-family: var(--police-titre);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vert-nuit);
  display: block;
  line-height: 1.2;
}
.signature__etablissement {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--taupe);
}
.mot-fondateur__boutons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Mise en exergue de la phrase clé du message */
.exergue {
  background: var(--vert-pale);
  border-left: 3px solid var(--vert-foret);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1.15rem 1.5rem;
  margin: 1.75rem 0;
  color: var(--vert-fonce);
  font-weight: 500;
  font-size: 1.05rem;
}

/* Sur mobile : photo au-dessus, contenu en dessous */
@media (max-width: 991.98px) {
  .mot-fondateur__grille { grid-template-columns: 1fr; gap: 2rem; }
  /* Même cadrage en hauteur que sur ordinateur : la photo n'est plus
     rognée en haut et en bas sur téléphone. */
  .mot-fondateur__portrait { aspect-ratio: 3 / 4; max-width: 20rem; }

  /* Sur une seule colonne, le portrait passe au-dessus du texte. S'il restait
     « sticky », il se figerait en haut de l'écran et masquerait le message
     pendant le défilement. On le libère et on le centre. */
  .mot-fondateur__colonne {
    position: static;
    top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
  }
  .mot-fondateur__portrait { width: 100%; margin-inline: auto; }
  .mot-fondateur__fonction { align-self: center; text-align: center; }

  .mot-fondateur__pied { flex-direction: column; align-items: flex-start; }
  .mot-fondateur__boutons { width: 100%; }
  .mot-fondateur__boutons .btn-aliguran-vert,
  .mot-fondateur__boutons .btn-aliguran-ligne { flex: 1 1 auto; }
}

/* Page dédiée : colonne de lecture resserrée */
.article-lecture {
  max-width: 70ch;
  margin-inline: auto;
  font-size: 1.075rem;
}
.article-lecture h3 {
  font-size: var(--t-sous);
  margin-top: 2.25rem;
  margin-bottom: .75rem;
}
.article-lecture p { color: #3D453F; }

/* -------------------------------------------------------------------------
   10. GRILLES
   ------------------------------------------------------------------------- */

.grille {
  display: grid;
  gap: var(--gap);
}
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
  .grille--3, .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
}

.entete-bloc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.entete-bloc > div { min-width: 0; }
.entete-bloc h2 { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   11. APPEL À L'ACTION
   ------------------------------------------------------------------------- */

.appel-action {
  background: var(--vert-foret);
  color: var(--blanc);
  border-radius: var(--rayon-large);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}
.appel-action h2 { color: var(--blanc); margin-bottom: .5rem; }
.appel-action p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 52ch; }
.appel-action__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.appel-action .btn-aliguran-ligne { color: var(--blanc); border-color: rgba(255,255,255,.45); }
.appel-action .btn-aliguran-ligne:hover {
  color: var(--vert-foret);
  background: var(--blanc);
  border-color: var(--blanc);
}

/* -------------------------------------------------------------------------
   12. FIL D'ARIANE
   ------------------------------------------------------------------------- */

.fil-ariane {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  padding: .85rem 0;
  font-size: .875rem;
}
.fil-ariane ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  color: var(--taupe);
}
.fil-ariane li { display: flex; align-items: center; gap: .5rem; }
.fil-ariane li + li::before { content: '›'; color: var(--taupe-clair); }
.fil-ariane [aria-current="page"] { color: var(--vert-nuit); font-weight: 500; }

/* -------------------------------------------------------------------------
   13. PIED DE PAGE
   ------------------------------------------------------------------------- */

.pied {
  background: var(--marine);
  color: rgba(255, 255, 255, .82);
  border-top: 4px solid var(--orange);
  font-size: var(--t-petit);
}
/* Trois colonnes : identité · liens utiles · coordonnées et réseaux.
   Les liens utiles sont volontairement placés entre le logo et le bloc de
   contact, comme sur la maquette validée. */
.pied__haut {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 2.75rem 0 2.25rem;
}
.pied__marque { display: flex; align-items: flex-start; gap: 1rem; }
.pied__logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pied__nom {
  font-family: var(--police-titre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blanc);
  display: block;
  line-height: 1.2;
}
.pied__lieu { color: rgba(255, 255, 255, .7); font-size: .875rem; display: block; }
.pied__devise {
  display: block;
  margin-top: .6rem;
  max-width: 22ch;
  font-family: var(--police-mot);
  font-style: italic;
  font-size: .95rem;
  color: rgba(255, 255, 255, .62);
  line-height: 1.45;
}

/* Intitulé de colonne, commun aux liens utiles et aux coordonnées */
.pied__titre {
  font-family: var(--police-corps);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or);
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pied__contacts { display: grid; gap: .45rem; }
.pied__contacts a, .pied__contacts span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255, 255, 255, .85);
}
.pied__contacts a:hover { color: var(--orange); }
.pied__contacts i { color: var(--orange); font-size: 1rem; }

.pied__reseaux { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pied__reseaux a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: var(--blanc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: background var(--transition), transform var(--transition);
}
.pied__reseaux a:hover { background: var(--orange); color: var(--blanc); transform: translateY(-2px); }

/* Liens utiles : colonne du bloc haut, sur deux colonnes internes */
.pied__liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pied__liens a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .15rem 0;
  color: rgba(255, 255, 255, .72);
  font-size: .875rem;
}
.pied__liens a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.pied__liens a:hover { color: var(--orange); }
.pied__liens a:hover::before { transform: scale(1.6); }

.pied__bas {
  background: var(--marine-nuit);
  padding: .9rem 0;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .66);
}
.pied__bas .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}
.pied__bas a { color: rgba(255, 255, 255, .85); }
.pied__bas a:hover { color: var(--orange); }

/* Tablette : l'identité occupe toute la largeur, les deux autres colonnes
   se partagent la ligne suivante. */
@media (max-width: 991.98px) {
  .pied__haut { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .pied__marque { grid-column: 1 / -1; }
}

@media (max-width: 639.98px) {
  .pied__haut { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem 0 1.5rem; }
  .pied__bas .conteneur { justify-content: center; text-align: center; }
  .pied__devise { max-width: none; }
}

@media (max-width: 400px) {
  .pied__liste { grid-template-columns: 1fr; gap: .35rem; }
}

/* -------------------------------------------------------------------------
   14. MESSAGES ET ÉTATS
   ------------------------------------------------------------------------- */

.message {
  border-radius: var(--rayon);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: var(--t-petit);
  border: 1px solid transparent;
}
.message i { font-size: 1.15rem; flex-shrink: 0; margin-top: .1rem; }
.message--succes { background: var(--vert-pale); border-color: #BFD9CB; color: #16332A; }
.message--erreur { background: #FBE9E7; border-color: #F3C4BC; color: #8C2A17; }
.message--info   { background: #EAF1FB; border-color: #C7D8F2; color: #1B3A66; }
.message--alerte { background: #FDF3E3; border-color: #F0DCB4; color: #7A5312; }

.etat-vide {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background: var(--blanc);
  border: 1px dashed var(--taupe-clair);
  border-radius: var(--rayon-large);
  color: var(--texte-doux);
}
.etat-vide i { font-size: 2.5rem; color: var(--taupe-clair); display: block; margin-bottom: .75rem; }
.etat-vide h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.etat-vide p { margin: 0; font-size: var(--t-petit); }

/* -------------------------------------------------------------------------
   15. ACCESSIBILITÉ ET PRÉFÉRENCES SYSTÈME
   ------------------------------------------------------------------------- */

.visuellement-masque {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .carte:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   16. IMPRESSION
   ------------------------------------------------------------------------- */

@media print {
  .bandeau-contact, .entete__nav, .bouton-menu, .entete__actions,
  .pied__reseaux, .appel-action, .lien-evitement { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .entete { position: static; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .carte, .carte-info { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* =========================================================================
   17. ANIMATIONS
   Sobres et institutionnelles : apparition au défilement, léger mouvement.
   Toutes sont neutralisées si le système demande de réduire les animations
   (voir la règle prefers-reduced-motion en fin de fichier).
   ========================================================================= */

/* --- Apparition au défilement -------------------------------------------
   L'élément est masqué par JavaScript uniquement (classe .js-anim posée sur
   <html>), afin que le contenu reste visible si JS est désactivé. */

.js-anim [data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.16, 1, .3, 1),
              transform 700ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.js-anim [data-anim="gauche"]  { transform: translateX(-28px); }
.js-anim [data-anim="droite"]  { transform: translateX(28px); }
.js-anim [data-anim="zoom"]    { transform: scale(.96); }

.js-anim [data-anim].vu {
  opacity: 1;
  transform: none;
}

/* Décalage progressif pour les éléments d'une même grille */
.js-anim [data-anim-delai="1"] { transition-delay:  90ms; }
.js-anim [data-anim-delai="2"] { transition-delay: 180ms; }
.js-anim [data-anim-delai="3"] { transition-delay: 270ms; }
.js-anim [data-anim-delai="4"] { transition-delay: 360ms; }

/* --- Entrée du hero ------------------------------------------------------ */

@keyframes monteeDouce {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes zoomLent {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__image { animation: zoomLent 9s ease-out both; }

.hero__accroche  { animation: monteeDouce 700ms 100ms ease-out both; }
.hero__titre     { animation: monteeDouce 700ms 200ms ease-out both; }
.hero__sous-titre{ animation: monteeDouce 700ms 320ms ease-out both; }
.hero__texte     { animation: monteeDouce 700ms 440ms ease-out both; }
.hero__actions   { animation: monteeDouce 700ms 560ms ease-out both; }

/* --- Filet animé sous les sur-titres ------------------------------------- */

.mot-fondateur__filet::before {
  width: 0;
  transition: width 900ms cubic-bezier(.16, 1, .3, 1) 200ms;
}
.js-anim .mot-fondateur__filet::before { width: 0; }
.mot-fondateur__filet.vu::before,
.js-anim .mot-fondateur__filet.vu::before { width: 64px; }
html:not(.js-anim) .mot-fondateur__filet::before { width: 64px; }

/* --- Soulignement animé de la navigation --------------------------------- */

.nav-principale > li > a:not(.actif) {
  position: relative;
}
.nav-principale > li > a:not(.actif)::after {
  content: '';
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .35rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1);
}
.nav-principale > li > a:not(.actif):hover::after { transform: scaleX(1); }

/* --- En-tête compact au défilement --------------------------------------- */

.entete { transition: box-shadow var(--transition), padding var(--transition); }
.entete--defile .entete__barre { padding-block: .5rem; }
.entete--defile .marque__logo  { width: 52px; height: 52px; }
.entete__barre, .marque__logo  { transition: all 240ms ease; }

/* --- Boutons -------------------------------------------------------------- */

.btn-aliguran i,
.btn-aliguran-vert i { transition: transform var(--transition); }
.btn-aliguran:hover i.bi-arrow-right,
.btn-aliguran-vert:hover i.bi-arrow-right { transform: translateX(4px); }

/* --- Cartes : léger relief au survol -------------------------------------- */

.carte { transition: transform 320ms cubic-bezier(.16, 1, .3, 1),
                     box-shadow 320ms cubic-bezier(.16, 1, .3, 1); }
.carte:hover { transform: translateY(-5px); }

/* --- Pastilles de cycle ---------------------------------------------------- */

.pastille-cycle { transition: transform 320ms cubic-bezier(.34, 1.56, .64, 1), background var(--transition); }
.carte-cycle:hover .pastille-cycle { transform: scale(1.1) rotate(-6deg); background: var(--orange); }

/* --- Étapes du formulaire -------------------------------------------------- */

.stepper__puce { transition: background 300ms ease, border-color 300ms ease, transform 300ms ease; }
.stepper__item--courant .stepper__puce { transform: scale(1.1); }

/* --- Compteur de chargement d'image ---------------------------------------- */

.carte__media { position: relative; }
.carte__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 700ms ease;
  pointer-events: none;
}
.carte:hover .carte__media::after { transform: translateX(100%); }

/* --- Respect des préférences système --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .js-anim [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__image, .hero__accroche, .hero__titre, .hero__sous-titre,
  .hero__texte, .hero__actions { animation: none !important; }
  .mot-fondateur__filet::before { width: 64px !important; transition: none !important; }
  .carte__media::after { display: none; }
  .carte:hover { transform: none; }
  .carte-cycle:hover .pastille-cycle { transform: none; }
}

/* Sous-menu ouvert par pression sur écran tactile */
.a-sous-menu.ouvert-tactile > .sous-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Réseaux sociaux du pied de page : couleurs officielles de chaque réseau ---
   Navigateurs récents : le carré prend la couleur du réseau, l'icône est
   blanche. Navigateurs anciens : le carré reste discret et c'est l'icône
   qui prend la couleur du réseau. */
.pied__reseaux .bi-facebook  { color: #4C8DF6; }
.pied__reseaux .bi-instagram { color: #F05A8F; }
.pied__reseaux .bi-tiktok    { color: #FFFFFF; }
.pied__reseaux .bi-youtube   { color: #FF4B42; }
.pied__reseaux .bi-snapchat  { color: #FFFC00; }

@supports selector(:has(a)) {
  .pied__reseaux a:has(.bi) { color: #FFFFFF; }
  .pied__reseaux a:has(.bi) .bi { color: inherit; }
  .pied__reseaux a:has(.bi-facebook)  { background: #1877F2; }
  .pied__reseaux a:has(.bi-instagram) {
    background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  }
  .pied__reseaux a:has(.bi-tiktok) {
    background: #000000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  }
  .pied__reseaux a:has(.bi-tiktok) .bi { text-shadow: -1.5px -1.5px 0 #25F4EE, 1.5px 1.5px 0 #FE2C55; }
  .pied__reseaux a:has(.bi-youtube)  { background: #FF0000; }
  .pied__reseaux a:has(.bi-snapchat) { background: #FFFC00; color: #000000; }
  .pied__reseaux a:has(.bi):hover {
    color: #FFFFFF;
    filter: brightness(1.12);
    transform: translateY(-2px);
  }
  .pied__reseaux a:has(.bi-facebook):hover  { background: #1877F2; }
  .pied__reseaux a:has(.bi-instagram):hover {
    background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  }
  .pied__reseaux a:has(.bi-tiktok):hover    { background: #000000; }
  .pied__reseaux a:has(.bi-youtube):hover   { background: #FF0000; }
  .pied__reseaux a:has(.bi-snapchat):hover  { background: #FFFC00; color: #000000; }
  .pied__reseaux a:has(.bi):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
}

/* --- Pré-inscription sur téléphone et tablette ---------------------------
   L'encadré « Informations importantes » passe AU-DESSUS du formulaire, sur
   toute la largeur, présenté comme une carte de conseils. Le formulaire
   occupe ensuite toute la largeur de l'écran. */
@media (max-width: 991.98px) {
  .grille:has(> .infos-laterales),
  .section--creme .grille[style*="2.4fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }
  .infos-laterales {
    order: -1;
    position: relative !important;
    top: auto !important;
    overflow: hidden;
    padding: 1.35rem 1.25rem 1.25rem 1.5rem !important;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--rayon-large);
    box-shadow: 0 10px 28px rgba(31, 77, 61, .08);
  }
  /* Filet de couleur sur le bord gauche */
  .infos-laterales::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--orange), var(--or));
  }
  .infos-laterales h2 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem !important;
    font-family: var(--police-titre) !important;
    font-size: 1.2rem !important;
    color: var(--vert-nuit);
  }
  .infos-laterales h2::before {
    content: "i";
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #fff;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
  }
  .infos-laterales ul { margin: 0; padding: 0; }
  .infos-laterales li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 !important;
    padding: .7rem 0;
    border-top: 1px dashed var(--bordure);
    font-size: .95rem !important;
    line-height: 1.5;
    color: var(--texte) !important;
    text-align: left;
  }
  .infos-laterales li:first-child { border-top: 0; padding-top: .2rem; }
  .infos-laterales li i {
    margin-top: .15rem;
    font-size: 1.05rem;
    color: var(--vert-foret);
  }
  .infos-laterales hr { display: none; }
  /* « Besoin d'aide ? » dans un bandeau doux */
  .infos-laterales > p {
    margin: .9rem 0 0 !important;
    padding: .8rem 1rem;
    border-radius: var(--rayon, 10px);
    background: var(--vert-pale);
    font-size: .9rem !important;
    line-height: 1.55;
    color: var(--vert-foret) !important;
  }
}

/* --- Accueil sur téléphone : la photo en entier, le texte en dessous -----
   Sur un écran étroit, la photo (en format paysage) était étirée sur toute
   la hauteur du bandeau : très agrandie donc floue, et presque cachée par le
   voile sombre. Elle s'affiche maintenant en entier, nette, en haut ; le
   texte et les boutons suivent sur le fond vert du site, avec un fondu doux
   entre les deux. */
@media (max-width: 575.98px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--vert-nuit);
  }
  .hero__image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 40%;
    animation: none;
  }
  .hero__voile {
    inset: 0 0 auto 0;
    height: 75vw;                       /* hauteur de la photo (4/3) */
    background: linear-gradient(180deg,
                rgba(32, 40, 31, 0) 0%,
                rgba(32, 40, 31, 0) 62%,
                rgba(32, 40, 31, .55) 85%,
                var(--vert-nuit) 100%);
  }
  .hero .conteneur { margin-top: -1.5rem; }
  .hero__contenu {
    padding-block: 0 2.5rem;
    text-align: center;
  }
  .hero__titre { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__texte { margin-inline: auto; margin-bottom: 1.6rem; }
  .hero__actions { flex-direction: column; gap: .7rem; }
  .hero__actions .btn-aliguran,
  .hero__actions .btn-aliguran-vert { width: 100%; justify-content: center; }
  /* Le bouton vert reste visible sur le fond vert : contour clair */
  .hero__actions .btn-aliguran-vert {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .75);
    color: #fff;
  }
}

/* =========================================================================
   EN-TÊTE : ajustements ajoutés avec le forum (lien « Forum » dans le menu)
   Les liens du menu restent sur une ligne et le bouton « Pré-inscription »
   comme le bouton du menu mobile restent entièrement visibles.
   ========================================================================= */
.nav-principale a,
.entete__actions .btn-aliguran { white-space: nowrap; }

@media (min-width: 1280px) {
  .nav-principale { gap: 0; }
  .nav-principale a { padding: .6rem .52rem; font-size: .93rem; }
  .entete__actions .btn-aliguran { padding-inline: 1.15rem; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .nav-principale { gap: 0; }
  .nav-principale a { padding: .55rem .42rem; font-size: .86rem; }
}
@media (min-width: 992px) and (max-width: 1149.98px) {
  .marque__lieu { display: none; }
  .marque { gap: .6rem; }
  .marque__logo { width: 46px; height: 46px; }
  .nav-principale a { padding: .5rem .34rem; font-size: .84rem; }
  .entete__actions .btn-aliguran { padding: .65rem .8rem; }
}
@media (min-width: 992px) and (max-width: 1059.98px) {
  /* Juste au-dessus de la tablette, le logo seul suffit à identifier le lycée */
  .marque > span { display: none; }
}
@media (max-width: 575.98px) {
  .entete__barre { gap: .5rem; }
  .marque { flex-shrink: 1; min-width: 0; gap: .55rem; }
  .marque__logo { width: 44px; height: 44px; }
  .marque > span { min-width: 0; }
  .marque__nom { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .marque__lieu { font-size: .6rem; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .entete__actions { gap: .4rem; flex-shrink: 0; }
  .entete__actions .btn-aliguran { padding: .6rem .75rem; font-size: .78rem; }
  .bouton-menu { width: 42px; height: 42px; }
}
@media (max-width: 379.98px) {
  .marque { gap: .45rem; }
  .marque__logo { width: 40px; height: 40px; }
  .marque__nom { font-size: .92rem; }
  .entete__actions { gap: .3rem; }
  .entete__actions .btn-aliguran { padding: .55rem .6rem; font-size: .74rem; }
  .bouton-menu { width: 40px; height: 40px; font-size: 1.25rem; }
}
@media (max-width: 339.98px) {
  .marque__lieu { display: none; }
}
