/* Site public du BNI Chablais.
 *
 * Même charte que la plateforme et les slides du vendredi : Cal Sans pour
 * les titres, Raleway pour le texte, rouge BNI #C32429 en aplats francs,
 * fond clair #F2F2F2, gris foncé #2B2B2B pour le pied de page. Le trait des
 * montagnes du logo du chapter sert de motif.
 */

@font-face {
  font-family: "Raleway";
  src: url("polices/raleway-regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("polices/raleway-bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Cal Sans";
  src: url("polices/calsans-regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}

:root {
  --rouge: #c32429;
  --rouge-sombre: #8e1a1e;
  --sur-rouge: #ffe8e8;
  --encre: #1a1a1a;
  --encre-douce: #4a4a4a;
  --gris: #666;
  --clair: #f2f2f2;
  --trait: #e0dfdd;
  --sombre: #2b2b2b;
  --blanc: #fff;
  --titre: "Cal Sans", "Raleway", system-ui, sans-serif;
  --corps: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Marge latérale des slides (0,76 pouce sur 13,33) : 5,7 % de la largeur. */
  --marge: clamp(16px, 5.7vw, 76px);
  --largeur: 1280px;
  --rayon: 10px;
  --espace: clamp(64px, 9vw, 128px);
}

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

/* L'attribut hidden l'emporte toujours sur un display posé par une classe
   (fiches filtrées de l'annuaire, carte une fois chargée). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 18px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  overflow-x: hidden;
}

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

a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rouge-sombre); }

:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 3px; }
.rouge :focus-visible, .hero-panneau :focus-visible, .menu-ouvert .navigation :focus-visible {
  outline-color: var(--blanc);
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: 24px; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.masque {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.aller-au-contenu {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 6px;
}
.aller-au-contenu:focus { top: 12px; color: var(--blanc); }

.contenu {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin: 0 auto;
  padding: 0 var(--marge);
}

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

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px;
  border: 2px solid var(--rouge); border-radius: 8px;
  background: var(--rouge); color: var(--blanc);
  font: 700 16px/1.2 var(--corps); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.bouton:hover { background: var(--rouge-sombre); border-color: var(--rouge-sombre); color: var(--blanc); }
.bouton.secondaire { background: transparent; color: var(--rouge); }
.bouton.secondaire:hover { background: var(--rouge); color: var(--blanc); }
.bouton.blanc { background: var(--blanc); border-color: var(--blanc); color: var(--rouge); }
.bouton.blanc:hover { background: var(--sur-rouge); border-color: var(--sur-rouge); color: var(--rouge-sombre); }
.bouton.filaire-blanc { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--blanc); }
.bouton.filaire-blanc:hover { background: var(--blanc); border-color: var(--blanc); color: var(--rouge); }
.bouton svg { width: 18px; height: 18px; flex: none; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- En-tête ------------------------------------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--trait);
}
@supports (backdrop-filter: blur(8px)) {
  .entete { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
.entete .contenu {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 78px;
}
.marque { display: block; flex: none; }
.marque img { width: 168px; height: auto; }

.navigation { display: flex; align-items: center; gap: 4px; }
.navigation a {
  padding: 10px 14px; border-radius: 6px;
  color: var(--encre); text-decoration: none; font-weight: 700; font-size: 16px;
}
.navigation a:hover { color: var(--rouge); }
.navigation a[aria-current="page"] { color: var(--rouge); }
.navigation .bouton { margin-left: 10px; min-height: 46px; padding: 10px 18px; color: var(--blanc); }
.navigation .bouton:hover { color: var(--blanc); }

.ouvrir-menu {
  display: none; align-items: center; gap: 8px;
  background: none; border: 0; padding: 10px 4px 10px 12px;
  font: 700 16px var(--corps); color: var(--encre); cursor: pointer;
}
.ouvrir-menu svg { width: 26px; height: 26px; }

/* --- Accueil : en-tête rouge et photo ------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  min-height: min(calc(100vh - 79px), 860px);
  background: var(--rouge);
}
.hero-panneau {
  /* Retrait qui aligne le texte et les montagnes sur la colonne du reste
     de la page. */
  --retrait: max(0px, calc((100vw - var(--largeur) - 2 * var(--marge)) / 2));
  display: flex; flex-direction: column;
  /* Tailles liées aussi à la hauteur de la fenêtre : sur un écran large
     mais bas, l'en-tête tient avec ses montagnes sur le premier écran. */
  padding: clamp(32px, min(7vw, 8.5vh), 104px) var(--marge) clamp(24px, min(3.4vw, 4.4vh), 52px);
  color: var(--blanc);
  overflow: hidden;
}
/* Le texte se centre dans la hauteur laissée libre au-dessus des montagnes. */
.hero-texte { max-width: 820px; margin: auto 0 auto var(--retrait); }
.hero .etiquette {
  font-weight: 700; font-size: 15px; letter-spacing: .01em; color: var(--sur-rouge);
  margin: 0 0 clamp(14px, 2.6vh, 22px);
}
.hero h1 {
  font-size: clamp(58px, min(8.4vw, 13vh), 136px);
  line-height: .96;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(18px, 3.6vh, 30px);
}
.hero .introduction {
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.5;
  max-width: 34em;
  color: var(--blanc);
  margin-bottom: clamp(18px, 3.6vh, 30px);
}
.hero .rendez-vous {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 0 0 clamp(22px, 4.4vh, 36px); padding: 0; list-style: none;
  font-weight: 700; font-size: 16px; color: var(--sur-rouge);
}
.hero .rendez-vous li { display: flex; align-items: center; gap: 9px; }
.hero .rendez-vous svg { width: 20px; height: 20px; flex: none; }

/* Le trait des montagnes du logo, au pied de l'aplat : sous les boutons,
   aligné sur le texte, jamais plus large que la colonne. Il occupe sa
   propre place : ni chevauchement, ni rognage, à toutes les tailles. */
.hero .montagnes {
  flex: none;
  max-width: min(740px, 70vh);
  margin: clamp(28px, min(5vw, 6vh), 72px) 0 0 var(--retrait);
  color: rgba(255, 255, 255, .9);
  pointer-events: none;
}
.hero .montagnes svg { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero .montagnes svg { animation: trace 1.6s cubic-bezier(.3, .7, .3, 1) .25s both; }
}
@keyframes trace {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.hero-photo { position: relative; background: var(--sombre); }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}

/* --- Sections ---------------------------------------------------------------- */

.section { padding: var(--espace) 0; }
.section.clair { background: var(--clair); }
.section.rouge { background: var(--rouge); color: var(--blanc); }
.section.sombre { background: var(--sombre); color: var(--blanc); }

.entete-section { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.entete-section h2 + p { margin-top: 18px; }
.entete-section.sans-marge { margin-bottom: 0; }
.accroche { font-size: clamp(19px, 1.5vw, 22px); color: var(--encre-douce); line-height: 1.5; }
h2 + .accroche { margin-top: 18px; }
.rouge .accroche { color: var(--sur-rouge); }

/* Deux colonnes : titre à gauche, texte à droite, comme les slides. */
.colonnes {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.colle { position: sticky; top: 112px; }
.texte-long { font-size: clamp(18px, 1.35vw, 20px); color: var(--encre-douce); max-width: 40em; }
.texte-long p:first-child { color: var(--encre); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.45; }
.texte-long h3 { margin: 40px 0 14px; color: var(--encre); }
.photo-section { margin-top: clamp(40px, 5vw, 72px); }
.photo-section img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--rayon); }

/* --- Chiffres ------------------------------------------------------------------- */

.chiffres {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
  margin: 0; padding: 0; list-style: none;
}
.chiffres li { border-top: 2px solid var(--rouge); padding-top: 18px; }
.chiffres .valeur {
  display: block;
  font-family: var(--titre); color: var(--rouge);
  font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.02em;
}
.chiffres .libelle { display: block; margin-top: 10px; color: var(--encre-douce); font-size: 17px; }

.suisse {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--trait);
}
.suisse h3 { font-size: 22px; }
.suisse ul { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; padding: 0; list-style: none; }
.suisse strong { font-family: var(--titre); font-weight: 400; font-size: 30px; margin-right: 8px; }
.suisse span { color: var(--encre-douce); }
.suisse .periode { color: var(--gris); font-size: 15px; }

/* --- Valeurs ------------------------------------------------------------------------- */

.valeurs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin: 0; padding: 0; list-style: none;
}
.valeurs li {
  background: var(--blanc); border-radius: var(--rayon);
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 18px;
  font-weight: 700; font-size: 18px; line-height: 1.35;
}
/* Les pictogrammes des slides, teintés en rouge par masque. */
.valeurs .icone {
  width: 56px; height: 56px; background: var(--rouge);
  -webkit-mask: var(--icone) center / contain no-repeat;
  mask: var(--icone) center / contain no-repeat;
}
/* Une classe par pictogramme : la politique de sécurité du site interdit
   les styles écrits dans la page. */
.icone-qui-donne-recoit { --icone: url("valeurs/qui-donne-recoit.png"); }
.icone-relations { --icone: url("valeurs/relations.png"); }
.icone-traditions-innovation { --icone: url("valeurs/traditions-innovation.png"); }
.icone-responsabilisation { --icone: url("valeurs/responsabilisation.png"); }
.icone-formation-continue { --icone: url("valeurs/formation-continue.png"); }
.icone-attitude-positive { --icone: url("valeurs/attitude-positive.png"); }
.icone-reconnaissance { --icone: url("valeurs/reconnaissance.png"); }
.section:not(.clair) .valeurs li { background: var(--clair); }
.section .valeurs li:first-child { background: var(--rouge); color: var(--blanc); }
.valeurs li:first-child .icone { background: var(--blanc); }

/* --- Déroulement de la séance ----------------------------------------------------------- */

.etapes { margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes li {
  position: relative; counter-increment: etape;
  display: grid; grid-template-columns: 56px 1fr; gap: 6px 22px;
  padding: 0 0 34px;
}
.etapes li::before {
  content: counter(etape);
  grid-row: 1 / span 2;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--rouge); color: var(--blanc);
  font: 26px/1 var(--titre);
}
/* Fil qui relie les étapes. */
.etapes li:not(:last-child)::after {
  content: ""; position: absolute; left: 27px; top: 62px; bottom: 6px;
  width: 2px; background: var(--trait);
}
.etapes h3 { padding-top: 12px; font-size: 23px; }
.etapes p { color: var(--encre-douce); margin: 4px 0 0; max-width: 36em; }
.rouge .etapes li::before { background: var(--blanc); color: var(--rouge); }

/* --- Membres : mosaïque de l'accueil --------------------------------------------------------- */

.mosaique {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px; margin: 0 0 40px; padding: 0; list-style: none;
}
.mosaique li { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #e4e3e1; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.entete-membres { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

/* --- Bandeau rouge « rejoindre » ---------------------------------------------------------- */

.rejoindre .contenu {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px 64px; align-items: end;
}
.rejoindre h2 { font-size: clamp(36px, 4.6vw, 62px); }
.rejoindre .question { font-family: var(--titre); font-size: clamp(24px, 2.4vw, 32px); margin: 14px 0 0; color: var(--sur-rouge); }
.rejoindre .rappel { color: var(--sur-rouge); font-size: 17px; margin-bottom: 26px; max-width: 30em; }
.rejoindre .boutons { justify-content: flex-start; }

/* --- Lieu et carte ---------------------------------------------------------------------- */

.lieu { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.lieu address { font-style: normal; font-size: 20px; line-height: 1.5; margin: 24px 0; }
.lieu address strong { display: block; font-size: 22px; }
.lieu .horaire { font-weight: 700; margin-bottom: 10px; }
.lieu .precision { color: var(--encre-douce); }
.carte {
  position: relative; min-height: 380px; border-radius: var(--rayon); overflow: hidden;
  background: var(--clair);
}
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte-attente {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 28px; text-align: center; color: var(--encre-douce);
}
.carte-attente .montagnes-fond { width: min(78%, 520px); color: var(--rouge); opacity: .9; }
.carte-attente p { max-width: 26em; font-size: 15px; }
.carte-attente .epingle { width: 34px; height: 34px; color: var(--rouge); margin-bottom: -8px; }
/* Photo du lieu : la carte s'affiche par-dessus à la demande. */
.carte-attente.sur-photo { justify-content: flex-end; align-items: flex-start; text-align: left; color: var(--blanc); }
.carte-attente.sur-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 55%);
}
.carte-attente .photo-lieu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-attente.sur-photo p, .carte-attente.sur-photo .bouton { position: relative; z-index: 2; }
.carte-attente.sur-photo p { margin: 0; }

/* --- Pages intérieures ---------------------------------------------------------------- */

.bandeau-page { background: var(--clair); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.bandeau-page h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.025em; }
.bandeau-page .accroche { margin-top: 20px; max-width: 36em; }

.bandeau-rouge { background: var(--rouge); color: var(--blanc); }
.bandeau-rouge .contenu { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.bandeau-rouge .texte { padding: clamp(48px, 7vw, 100px) 0; }
.bandeau-rouge h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.025em; }
.bandeau-rouge .accroche { color: var(--blanc); margin: 22px 0 32px; }
.bandeau-rouge .photo { align-self: stretch; position: relative; min-height: 320px; }
.bandeau-rouge .photo img {
  position: absolute; inset: clamp(32px, 4vw, 56px) 0; width: 100%; height: calc(100% - 2 * clamp(32px, 4vw, 56px));
  object-fit: cover; border-radius: var(--rayon);
}

/* --- Annuaire --------------------------------------------------------------------------- */

.filtres {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto;
  gap: 12px; align-items: end; margin-top: 36px;
}
.filtres label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.champ-texte, .liste-deroulante {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 400 17px var(--corps); color: var(--encre);
  background: var(--blanc); border: 1.5px solid #cfcdca; border-radius: 8px;
}
.champ-texte:focus, .liste-deroulante:focus { outline: 3px solid var(--rouge); outline-offset: 0; border-color: var(--rouge); }
.recherche { position: relative; }
.recherche svg { position: absolute; left: 15px; bottom: 15px; width: 22px; height: 22px; color: var(--gris); }
.recherche .champ-texte { padding-left: 48px; }
.compte { font-weight: 700; color: var(--encre-douce); padding-bottom: 14px; white-space: nowrap; }

.annuaire {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px);
  margin: 0; padding: 0; list-style: none;
}
.membre { display: flex; flex-direction: column; }
.membre .portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--rayon); overflow: hidden;
  background: var(--clair); margin-bottom: 18px;
}
.membre .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.membre .portrait .initiales {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 64px/1 var(--titre); color: var(--rouge);
}
.membre .logo {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  max-width: calc(100% - 24px); height: 52px; padding: 8px 12px;
  background: var(--blanc); border-radius: 8px;
}
.membre .logo img { max-height: 36px; max-width: 150px; width: auto; height: auto; }
.membre h2 { font-size: 25px; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 6px; }
.membre .nom { font-weight: 700; margin: 0; }
.membre .metier { color: var(--encre-douce); margin: 2px 0 0; line-height: 1.4; }
.membre .localite { color: var(--gris); font-size: 15px; margin: 2px 0 0; }
.membre .liens { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--trait); font-size: 15.5px; }
.membre .liens li + li { margin-top: 6px; }
.membre .liens a {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  color: var(--encre); text-decoration: none; word-break: break-word;
}
.membre .liens a:hover { color: var(--rouge); text-decoration: underline; }
.membre .liens svg { width: 17px; height: 17px; flex: none; color: var(--rouge); }
.aucun-resultat { padding: 48px 0; font-size: 20px; color: var(--encre-douce); }
.aucun-resultat button { font: inherit; color: var(--rouge); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* --- Devenir membre ---------------------------------------------------------------------- */

.outils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.outils div { padding: 22px 0; border-top: 1px solid var(--trait); }
.outils dt { font-family: var(--titre); font-size: 24px; line-height: 1.15; margin: 0 0 6px; }
.outils dd { margin: 0; color: var(--encre-douce); }

.metiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.metiers li { background: var(--blanc); border-radius: 30px; padding: 7px 15px; font-size: 15.5px; }
.section:not(.clair) .metiers li { background: var(--clair); }
.titre-liste { font: 700 17px/1.3 var(--corps); letter-spacing: 0; margin: 6px 0 16px; }

/* --- Contact ------------------------------------------------------------------------------ */

.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.formulaire .champ { margin-bottom: 22px; }
.formulaire label { display: block; font-weight: 700; margin-bottom: 7px; }
.formulaire label .facultatif { font-weight: 400; color: var(--gris); }
.formulaire textarea.champ-texte { min-height: 190px; resize: vertical; line-height: 1.5; }
.formulaire .deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.formulaire .erreur { color: var(--rouge-sombre); font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.formulaire [aria-invalid="true"] { border-color: var(--rouge); }
.formulaire .mention { font-size: 15px; color: var(--gris); margin: 0 0 22px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.avis { border-radius: var(--rayon); padding: 22px 24px; margin-bottom: 30px; }
.avis.ok { background: #edf5ed; border: 1px solid #c9e0c9; }
.avis.ok h2 { font-size: 30px; margin-bottom: 8px; }
.avis.erreur { background: var(--sur-rouge); border: 1px solid #f1c6c8; color: var(--rouge-sombre); font-weight: 700; }

.encart { background: var(--rouge); color: var(--blanc); border-radius: var(--rayon); padding: 30px 28px; }
.encart h2 { font-size: 30px; margin-bottom: 14px; }
.encart p { color: var(--sur-rouge); }
.encart .bouton { margin-top: 10px; }
.encart + .encart-clair { margin-top: 18px; }
.encart-clair { background: var(--clair); border-radius: var(--rayon); padding: 26px 28px; }
.encart-clair h2 { font-size: 24px; margin-bottom: 10px; }

/* --- Texte légal ----------------------------------------------------------------------------- */

.legal { max-width: 46em; color: var(--encre-douce); }
.legal h2 { font-size: 30px; color: var(--encre); margin: 48px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* --- Pied de page ------------------------------------------------------------------------------- */

.pied { background: var(--sombre); color: #d6d6d6; padding: 72px 0 36px; font-size: 16px; }
.pied a { color: var(--blanc); text-decoration: none; }
.pied a:hover { text-decoration: underline; color: var(--blanc); }
.pied .grille-pied {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
/* Le logo rouge sur une plaque blanche, comme sur la couverture des slides. */
.pied .plaque { display: inline-block; background: var(--blanc); border-radius: var(--rayon); padding: 16px 22px; margin-bottom: 20px; }
.pied .plaque img { width: 170px; }
.pied h2 { font: 700 15px/1.3 var(--corps); color: var(--blanc); letter-spacing: 0; margin: 4px 0 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 9px; }
.pied address { font-style: normal; }
.pied .bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #444; font-size: 14px; color: #b5b5b5;
}
.pied .bas a { color: #d6d6d6; }

/* --- Page introuvable -------------------------------------------------------------------------- */

.introuvable { padding: clamp(80px, 12vw, 160px) 0; }
.introuvable h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 20px; }
.introuvable .accroche { margin-bottom: 32px; }
.introuvable .montagnes-fond { width: min(560px, 90%); color: var(--rouge); margin-bottom: 36px; }

/* --- Écrans moyens ------------------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .valeurs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mosaique { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mosaique li:nth-child(n+13) { display: none; }
  .pied .grille-pied { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .navigation {
    display: none;
    position: fixed; inset: 0; z-index: 30;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 96px var(--marge) 48px; background: var(--rouge);
  }
  .menu-ouvert .navigation, .navigation:target { display: flex; }
  .menu-ouvert { overflow: hidden; }
  .navigation a { color: var(--blanc); font: 400 clamp(34px, 8vw, 52px)/1.1 var(--titre); padding: 6px 0; }
  .navigation a:hover, .navigation a[aria-current="page"] { color: var(--sur-rouge); }
  .navigation a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .navigation .bouton {
    margin: 26px 0 0; font: 700 18px var(--corps); background: var(--blanc); color: var(--rouge); border-color: var(--blanc);
  }
  .ouvrir-menu { display: inline-flex; position: relative; z-index: 40; }
  .menu-ouvert .ouvrir-menu { color: var(--blanc); }
  .menu-ouvert .marque { position: relative; z-index: 40; }
  .menu-ouvert .marque img { filter: brightness(0) invert(1); }
  .menu-ouvert .entete { background: var(--rouge); backdrop-filter: none; border-bottom-color: transparent; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .colonnes, .lieu, .contact, .rejoindre .contenu, .bandeau-rouge .contenu { grid-template-columns: 1fr; }
  .colle { position: static; }
  .bandeau-rouge .texte { padding-bottom: 0; }
  .bandeau-rouge .photo { min-height: 0; aspect-ratio: 16 / 9; margin-bottom: 40px; }
  .bandeau-rouge .photo img { position: static; height: 100%; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtres { grid-template-columns: 1fr 1fr; }
  .filtres .compte { grid-column: 1 / -1; padding: 0; }
  .outils { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .entete .contenu { min-height: 66px; }
  .marque img { width: 132px; }
  html { scroll-padding-top: 80px; }
  .hero .rendez-vous { flex-direction: column; }
  .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .valeurs li { padding: 20px 18px; font-size: 16px; }
  .valeurs .icone { width: 44px; height: 44px; }
  .mosaique { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .mosaique li:nth-child(n+9) { display: none; }
  .chiffres { gap: 26px 18px; }
  .filtres { grid-template-columns: 1fr; }
  .annuaire { grid-template-columns: 1fr; }
  .membre { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 18px; }
  .membre .portrait { margin: 0; grid-row: 1 / span 6; align-self: start; }
  .membre .logo { display: none; }
  .membre h2 { font-size: 22px; }
  .membre .liens { grid-column: 1 / -1; }
  .formulaire .deux { grid-template-columns: 1fr; }
  .boutons .bouton { flex: 1 1 100%; }
  .pied .grille-pied { grid-template-columns: 1fr; gap: 28px; }
  .carte { min-height: 300px; }
}

@media print {
  .entete, .pied, .hero .montagnes, .carte, .filtres { display: none; }
  .hero, .section.rouge, .bandeau-rouge { background: none; color: var(--encre); }
}
