/* Pont d'Ébène — feuille de style unique.
   Jetons repris de la charte : brun ébène, vert passerelle, blanc cassé,
   gris doux, et Montserrat en titre comme en texte.
   La fonte est servie depuis le site : aucune requête vers un tiers. */

/* Montserrat est distribuée en fonte variable : un fichier par sous-ensemble
   couvre tout l'axe de graisse. */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* charte : les quatre couleurs officielles */
  --ebene:      #2e1f14;
  --vert:       #1f7a3a;
  --blanc-casse:#faf7f2;
  --gris-doux:  #d7d3c8;

  /* dérivés : teintes de fond des cartes, absentes de la charte */
  --vert-fonce: #18612e;
  /* le vert de charte n'est pas lisible en texte sur ébène : réservé aux aplats */
  --vert-vif:   #7cc08b;
  /* doré : introduit par la maquette de la page Qui sommes-nous */
  --dore:       #a87c46;
  --menthe:     #283a2a;
  --rose:       #3d2b22;

  /* thème sombre : fond ébène, texte blanc cassé */
  --encre:   var(--blanc-casse);
  --gris:    #c9c2b6;
  --filet:   #4a3a2e;
  --papier:  var(--ebene);
  --surface: #3a2a1e;
  --pied:    #21160e;

  --rayon:        .75rem;
  --rayon-photo:  .75rem;
  --gouttiere:    1.5rem;
  --marge:        1.5rem;
  --conteneur: min(100% - (2 * var(--marge)), 74rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }

:focus-visible { outline: 2px solid var(--vert-vif); outline-offset: 2px; }

.saut { position: absolute; left: -9999px; background: var(--vert); color: #fff; padding: .75rem 1rem; z-index: 30; }
.saut:focus { left: .5rem; top: .5rem; }

.bloc { width: var(--conteneur); margin-inline: auto; }


/* ---------- En-tête ---------- */
.entete { background: var(--papier); border-bottom: 1px solid var(--filet); }
.entete .bloc { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }

.logo { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; }
.logo:hover { text-decoration: none; }
.logo svg { display: block; width: 3rem; height: auto; }
.logo b { font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--encre); }
/* le pictogramme est dessiné en ébène en dur : on le passe en blanc cassé */
svg [fill="#2E1F14"] { fill: var(--blanc-casse); }
svg [stroke="#2E1F14"] { stroke: var(--blanc-casse); }

.entete nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.entete nav a { font-size: .875rem; padding-block: .3rem; }
.entete nav a.actif {
  color: var(--vert-vif); font-weight: 700;
  text-decoration: underline; text-underline-offset: .45em; text-decoration-thickness: 2px;
}


/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(19rem, 34vw, 26rem);
  display: flex; align-items: flex-end;
  background: var(--ebene) var(--photo, none) center 62% / cover no-repeat;
  color: #fff;
}
/* voile sombre : le texte blanc doit tenir sur n'importe quelle photo */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,14,10,.78) 0%, rgba(20,14,10,.55) 48%, rgba(20,14,10,.22) 100%);
}
.hero .bloc { padding-block: clamp(2rem, 5vw, 3.5rem); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); max-width: 18ch; text-wrap: balance; }
.hero p { margin: 1rem 0 0; font-size: clamp(.9375rem, 1.2vw, 1.0625rem); max-width: 46ch; color: rgba(255,255,255,.92); }
.hero .bouton { margin-top: 1.75rem; }
.hero a { color: #fff; }


/* ---------- Bannière (maquette 2026) ---------- */
.filet { display: block; width: 3rem; height: 2px; background: var(--dore); }

.banniere {
  position: relative; isolation: isolate;
  min-height: clamp(15rem, 25vw, 20rem);
  display: flex; align-items: center;
  background: var(--ebene) var(--photo, none) center 55% / cover no-repeat;
  color: #fff;
}
.banniere::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20,14,10,.74) 0%, rgba(20,14,10,.5) 45%, rgba(20,14,10,.15) 100%);
}
/* le biseau de la maquette : la crème de l'en-tête descend plus bas à gauche */
.banniere::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1.75rem;
  background: var(--papier);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.banniere .bloc { padding-block: clamp(2rem, 5vw, 3rem); }
.banniere h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1;
}
.banniere p {
  margin: .7rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.94);
}
.banniere .filet { margin-top: 1.4rem; width: 4.5rem; }


/* ---------- Bouton ---------- */
.bouton {
  display: inline-block; padding: .7rem 1.5rem;
  background: var(--vert); color: #fff; border-radius: 999px;
  font-size: .875rem; font-weight: 700; line-height: 1.3;
}
.bouton:hover { background: var(--vert-fonce); text-decoration: none; }
.bouton--secondaire { background: var(--blanc-casse); color: var(--ebene); box-shadow: inset 0 0 0 1.5px var(--ebene); }
.bouton--secondaire:hover { background: #fff; color: var(--ebene); }
.bouton--tertiaire { background: transparent; color: var(--blanc-casse); box-shadow: inset 0 0 0 1.5px var(--blanc-casse); }
.bouton--tertiaire:hover { background: var(--surface); }

/* lien fléché des en-têtes de section */
.lien-plus { color: var(--vert-vif); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.lien-plus::after { content: " →"; }


/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.section--menthe { background: var(--menthe); }
.section-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-tete h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.section-tete p { margin: .4rem 0 0; color: var(--gris); font-size: .9375rem; }
.section-tete > div { min-width: 0; }


/* ---------- Cartes ---------- */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gouttiere); }
.cartes--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 62rem) { .cartes--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48rem) { .cartes, .cartes--4 { grid-template-columns: 1fr; } }

.carte {
  display: flex; flex-direction: column;
  background: var(--menthe); border-radius: var(--rayon);
  padding: 1.5rem 1.4rem;
}
.carte--rose { background: var(--rose); }
.carte h3 { font-size: 1.0625rem; margin-bottom: .6rem; }
.carte p { font-size: .875rem; line-height: 1.6; color: var(--encre); }
.carte ul { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.carte li { position: relative; padding-left: 1.35rem; margin-bottom: .35rem; }
.carte li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .5rem; height: .3rem; border-left: 2px solid var(--vert-vif); border-bottom: 2px solid var(--vert-vif);
  transform: rotate(-45deg);
}
.carte .bouton { margin-top: auto; align-self: start; }
.carte > :not(.bouton):has(+ .bouton) { margin-bottom: 1.25rem; }

/* accueil : pictogramme et titre sur une ligne */
.carte-tete { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.carte-tete h3 { margin: 0; }

/* pages intérieures : pictogramme centré au-dessus du titre */
.carte--centree { align-items: center; text-align: center; padding-block: 1.9rem; }
.carte--centree .bouton { align-self: center; }


/* ---------- Pictogrammes ---------- */
.picto { flex: none; display: inline-grid; place-items: center; }
.picto svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--vert-vif); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.picto--ebene svg { stroke: var(--encre); }
.picto--grand svg { width: 2.1rem; height: 2.1rem; }
.picto--pastille { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--papier); }
.carte--centree .picto { margin-bottom: .9rem; }


/* ---------- Valeurs ---------- */
.valeurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gouttiere); text-align: center; margin: 0; padding: 0; }
@media (max-width: 48rem) { .valeurs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
.valeurs li { list-style: none; }
.valeurs ul { display: contents; }
.valeur .picto { margin-bottom: .6rem; }
.valeur b { display: block; font-size: .9375rem; }


/* ---------- Deux colonnes (histoire / vision) ---------- */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 52rem) { .duo { grid-template-columns: 1fr; } }
.duo h2 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); margin-bottom: .9rem; }
.duo p { font-size: .9375rem; color: var(--gris); }
.duo .bouton { margin-top: 1.25rem; }


/* ---------- Événements ---------- */
.evenements { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gouttiere); }
@media (max-width: 62rem) { .evenements { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48rem) { .evenements { grid-template-columns: 1fr; } }

.evenement {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--filet); border-radius: var(--rayon);
  overflow: hidden;
}
.evenement .vignette {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--menthe) var(--photo, none) center / cover no-repeat;
}
.evenement .date {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--surface); border-radius: .5rem; padding: .4rem .6rem; text-align: center;
  line-height: 1.1;
}
.evenement .date b { display: block; font-size: 1.125rem; }
.evenement .date span { font-size: .5625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.evenement .date--prochainement { padding: .5rem .7rem; }
.evenement .date--prochainement span { font-size: .6875rem; color: var(--encre); }
.evenement .texte { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.3rem; }
.evenement h3 { font-size: 1rem; margin-bottom: .45rem; }
.evenement p { font-size: .875rem; color: var(--gris); }
.evenement .lieu { display: flex; align-items: center; gap: .35rem; margin-top: .75rem; font-size: .8125rem; color: var(--gris); }
.evenement .lieu svg { width: .9rem; height: .9rem; fill: none; stroke: var(--gris); stroke-width: 1.7; }
.evenement .lien-plus { margin-top: auto; padding-top: .9rem; align-self: start; }


/* ---------- Actualités ---------- */
.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gouttiere); list-style: none; margin: 0; padding: 0; }
@media (max-width: 62rem) { .actus { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 48rem) { .actus { grid-template-columns: 1fr; } }
.actus a { display: grid; grid-template-columns: 4.5rem 1fr; gap: .9rem; align-items: start; }
.actus .vignette { aspect-ratio: 1; border-radius: .5rem; border: 1px solid var(--filet);
  background: var(--papier) var(--photo, none) center / cover no-repeat; }
.actus b { display: block; font-size: .9375rem; line-height: 1.35; }
.actus time { display: block; margin-top: .35rem; font-size: .75rem; color: var(--gris); }


/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } }
.contact h1 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: .8rem; }
.contact .intro { color: var(--gris); font-size: .9375rem; margin-bottom: 2rem; }

.coord { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.coord li { display: flex; align-items: center; gap: .85rem; font-size: .9375rem; }
.coord .picto { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--menthe); }
.coord .picto svg { width: 1.1rem; height: 1.1rem; }

.reseaux { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.reseaux a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--menthe); }
.reseaux svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--vert-vif); stroke-width: 1.7; }

.formulaire { display: grid; gap: 1rem; }
.champ { display: grid; gap: .35rem; }
.champ label { font-size: .8125rem; color: var(--gris); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: .9375rem; color: var(--encre);
  padding: .65rem .8rem; border: 1px solid var(--filet); border-radius: .375rem;
  background: var(--surface); width: 100%;
}
.champ textarea { min-height: 8.5rem; resize: vertical; }
.formulaire button { font: inherit; border: none; cursor: pointer; width: 100%; padding-block: .8rem; }
.mention { font-size: .8125rem; color: var(--gris); line-height: 1.5; }
/* piège à robots : rempli seulement par un script, jamais par un visiteur */
.pot-a-miel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }


/* ---------- Pied ---------- */
.pied { background: var(--pied); color: #fff; }
.pied .bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.6rem; }
.pied .marque b { display: block; font-size: 1rem; }
.pied .marque span { font-size: .75rem; color: rgba(255,255,255,.7); }
.pied .infos { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; font-size: .8125rem; }
.pied .infos li { display: flex; align-items: center; gap: .45rem; list-style: none; }
.pied .infos ul { display: contents; }
.pied .infos svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pied .reseaux a { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); width: 2rem; height: 2rem; }
.pied .reseaux svg { stroke: #fff; width: 1rem; height: 1rem; }
.pied .baseline {
  margin-left: auto; text-align: right; font-size: 1.125rem; line-height: 1.3; font-weight: 600;
  color: rgba(255,255,255,.9);
}
@media (max-width: 48rem) {
  .pied .baseline { margin-left: 0; text-align: left; }
}


/* ---------- Menu ---------- */
.bascule, .bascule-libelle { display: none; }

@media (max-width: 52rem) {
  .entete .bloc { flex-wrap: wrap; }
  .bascule-libelle {
    display: block; cursor: pointer;
    font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--vert-vif); padding: .4rem 0;
  }
  .bascule-libelle::after { content: " +"; }
  /* la case reste focalisable au clavier, seulement sortie du flux visuel */
  .bascule { display: block; position: absolute; left: -9999px; }
  .bascule:focus-visible + .bascule-libelle { outline: 2px solid var(--vert-vif); outline-offset: 2px; }
  .bascule:checked + .bascule-libelle::after { content: " −"; }

  .entete nav { display: none; }
  .bascule:checked ~ nav { display: block; order: 3; width: 100%; padding-top: .4rem; }
  .entete nav ul { flex-direction: column; gap: 0; }
  .entete nav li { border-top: 1px solid var(--filet); }
  .entete nav a { display: block; padding-block: .75rem; }
  .entete nav a.actif { text-decoration: none; }
}


/* ---------- Carte ---------- */
.carte-lieu {
  margin-top: 1.5rem; width: 100%; aspect-ratio: 21 / 9;
  border-radius: var(--rayon); background: var(--menthe);
  display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center;
}
.carte-lieu:hover { text-decoration: none; background: #31473a; }
.carte-lieu b { font-size: 1rem; }


/* ---------- Page d'attente ---------- */
.construction { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: 3rem; }
.construction .bloc { width: min(100% - (2 * var(--marge)), 34rem); }
.construction svg { width: clamp(5rem, 14vw, 7rem); height: auto; }
.construction .marque { margin: .9rem 0 2.5rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: .8125rem; }
.construction .marque span { display: block; letter-spacing: normal; text-transform: none; font-weight: 400; font-size: .75rem; color: var(--gris); }
.construction h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.construction h1 + p { margin-top: .9rem; color: var(--gris); font-size: .9375rem; }
.construction .bouton { margin-top: 1.75rem; }
.construction .baseline {
  margin: 3rem 0 0; font-size: 1.375rem; line-height: 1.3; font-weight: 600;
  color: var(--gris);
}


/* ---------- Citation ---------- */
.citation { margin: 1.25rem 0; padding-left: 1.15rem; border-left: 3px solid var(--vert); }
.citation p { margin-bottom: .8rem; }
.citation cite { display: block; font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }


/* ---------- Récit ---------- */
.recit { max-width: 64ch; margin-inline: auto; }
.recit h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); margin-bottom: .9rem; }
.recit p { font-size: .9375rem; color: var(--gris); }
.recit .bouton { margin-top: 1.5rem; }

.vision { max-width: 44ch; margin-inline: auto; text-align: center; }
.vision h2 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); margin: .7rem 0 .6rem; }
.vision p { font-size: 1.0625rem; }
