/* ═══════════════════════════════════════════════════════════════════════════
   Olivier Crahay SRL — feuille de style
   ───────────────────────────────────────────────────────────────────────────
   La palette sort du logo : le vert de la couronne d'arbre (#4F7350) descendu
   en vert profond pour les fonds, remonté en vert vif pour les accents. L'ocre
   est réservé à un seul usage — le volet « Nous rejoindre » — pour qu'il se
   détache du reste sans qu'on ait à crier.

   Le motif conducteur est le tronc du logo : trois traits verticaux de
   hauteurs décroissantes. On le retrouve devant chaque surtitre de section
   (classe `.traits`).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Verts */
  --vert-encre:    #16301F;
  --vert-profond:  #1E3B29;
  --vert-moyen:    #2C5138;
  --vert-marque:   #4F7350;
  --vert-clair:    #8CBE5B;
  --vert-pale:     #D9E7C9;

  /* Papiers */
  --papier:        #F7F5EF;
  --papier-2:      #EDE9DE;
  --blanc:         #FFFDF8;

  /* Accent chaud, réservé au recrutement */
  --ocre:          #C98A3D;
  --ocre-clair:    #E9BC7C;

  /* Encres */
  --encre:         #17231C;
  --encre-2:       #4E5C51;
  --encre-3:       #7C8880;
  --trait:         #DCD7C8;
  --trait-sombre:  rgba(255,255,255,.14);

  /* Typographie */
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --texte:   'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rythme */
  --cadre: 1240px;
  --gouttiere: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 132px);
  --rapide: .22s;
  --lent: .7s;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --rayon: 10px;       /* cartes, panneaux, blocs */
  --rayon-photo: 16px; /* les photos, un cran plus rond */
  --rayon-champ: 9px;  /* champs de formulaire : plus sobre */
}

/* ─────────────────────────── Socle ─────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--texte);
  font-size: clamp(16px, .55vw + 14.4px, 17.5px);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--vert-clair); color: var(--vert-encre); }

:focus-visible {
  outline: 2.5px solid var(--vert-clair);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.cadre {
  width: 100%;
  max-width: var(--cadre);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.lien-evitement {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--vert-encre); color: var(--papier);
  padding: 12px 20px; border-radius: var(--rayon);
  font-weight: 600; text-decoration: none;
  transition: top var(--rapide) var(--ease);
}
.lien-evitement:focus { top: 16px; }

/* ─────────────────────── Le motif des trois traits ─────────────────────── */

.traits {
  display: inline-block;
  width: 15px; height: 15px;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0    100% / 2.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 50%  100% / 2.5px 76%  no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 2.5px 54%  no-repeat;
  opacity: .85;
}

/* ─────────────────────────── Boutons ─────────────────────────── */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font: 600 clamp(15px, .3vw + 14px, 16px)/1.1 var(--texte);
  letter-spacing: -.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--rapide) var(--ease), color var(--rapide) var(--ease),
              border-color var(--rapide) var(--ease), transform var(--rapide) var(--ease);
}
.bouton:hover { transform: translateY(-1.5px); }
.bouton:active { transform: translateY(0); }
.bouton .ico { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

.bouton-vert   { background: var(--vert-clair); color: var(--vert-encre); border-color: var(--vert-clair); }
.bouton-vert:hover { background: #9ACF68; border-color: #9ACF68; }

.bouton-sombre { background: var(--vert-profond); color: var(--papier); border-color: var(--vert-profond); }
.bouton-sombre:hover { background: var(--vert-moyen); border-color: var(--vert-moyen); }

.bouton-clair  { background: rgba(255,253,248,.1); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.bouton-clair:hover { background: rgba(255,253,248,.2); border-color: #fff; }

.bouton-ocre   { background: var(--ocre); color: #251603; border-color: var(--ocre); }
.bouton-ocre:hover { background: var(--ocre-clair); border-color: var(--ocre-clair); }

.bouton-fantome { background: transparent; color: var(--encre); border-color: var(--trait); }
.bouton-fantome:hover { border-color: var(--vert-marque); color: var(--vert-marque); }

.bouton-fantome-clair { background: transparent; color: #fff; border-color: var(--trait-sombre); }
.bouton-fantome-clair:hover { border-color: rgba(255,255,255,.55); }

.bouton-bloc { width: 100%; }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  color: var(--vert-marque);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--rapide) var(--ease), color var(--rapide) var(--ease);
}
.lien-fleche svg { width: 16px; height: 16px; }
.lien-fleche:hover { gap: 13px; color: var(--vert-encre); }

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

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 14px 0;
  transition: padding var(--lent) var(--ease);
}
/* Le fond dépoli vit sur un calque, pas sur l'en-tête lui-même : un
   `backdrop-filter` fait du porteur un bloc conteneur pour ses descendants en
   position fixe, et le tiroir du menu se retrouvait enfermé dans la hauteur
   du bandeau au lieu de couvrir l'écran. */
.entete::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(247,245,239,.93);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--trait), 0 10px 30px -22px rgba(22,48,31,.5);
  opacity: 0;
  transition: opacity var(--lent) var(--ease);
}
.entete.pose::before { opacity: 1; }
.entete.pose { padding: 9px 0; }

.entete-corps { display: flex; align-items: center; gap: 20px; }

.marque {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
  margin-right: auto;
  transition: color var(--lent) var(--ease);
}
.entete.pose .marque { color: var(--encre); }

.marque-signe { width: 26px; height: 38px; fill: currentColor; flex: 0 0 auto; }
.entete.pose .marque-signe { color: var(--vert-marque); }

.marque-mots { display: flex; flex-direction: column; line-height: 1.12; }
.marque-mots strong {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(17px, .5vw + 15.5px, 20px); letter-spacing: -.02em;
}
.marque-mots strong em { font-style: normal; font-weight: 400; }
.marque-mots small {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  opacity: .72; font-weight: 500; margin-top: 3px;
}

.entete-actions { display: flex; align-items: center; gap: 12px; }

.bouton-entete { padding: 11px 20px; color: #fff; border-color: rgba(255,255,255,.42); }
.entete.pose .bouton-entete { color: var(--encre); border-color: var(--trait); }
.bouton-entete:hover { border-color: #fff; color: #fff; }
.entete.pose .bouton-entete:hover { border-color: var(--vert-marque); color: var(--vert-marque); }

/* ─────────────────────────── Navigation ─────────────────────────── */

.nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 30px); }
.nav > a {
  position: relative;
  text-decoration: none; color: #fff;
  font-weight: 500; font-size: 15.5px; white-space: nowrap;
  padding: 6px 0;
  transition: color var(--rapide) var(--ease);
}
.entete.pose .nav > a { color: var(--encre-2); }
.nav > a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--rapide) var(--ease);
}
.nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.entete.pose .nav > a:hover { color: var(--vert-marque); }

/* L'entrée de la section où l'on se trouve reste soulignée : le menu suit le
   défilement au lieu de rester muet. La couleur ne change pas — seuls le trait
   et la graisse marquent la position, pour ne pas écraser l'ocre du
   recrutement ni la pastille de l'abattage. */
.nav > a.actif { font-weight: 600; }
.nav > a.actif::after { transform: scaleX(1); transform-origin: left; }
.entete.pose .nav > a.actif { color: var(--encre); }
.entete.pose .nav > a.nav-rh.actif { color: #A8712A; }

/* L'entrée « Abattage » porte une pastille : c'est la spécialité de la maison. */
.nav > a.nav-fort { font-weight: 600; }
.nav > a.nav-fort::before {
  content: ''; display: inline-block; vertical-align: middle;
  width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
  background: var(--vert-clair);
}
.nav > a.nav-rh { color: var(--ocre-clair); font-weight: 600; }
.entete.pose .nav > a.nav-rh { color: #A8712A; }

.nav-n, .nav-tete, .nav-pied, .nav-fermer { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 11px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.burger span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: #fff;
  transition: transform var(--rapide) var(--ease), opacity var(--rapide) var(--ease),
              background var(--lent) var(--ease);
}
.entete.pose .burger span { background: var(--encre); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ─────────────────────── Bandeau d'accueil ─────────────────────── */

/* Sur téléphone, le bandeau garde toute la hauteur pour lui : c'est ainsi
   qu'il fonctionne le mieux, la bande de repères se découvre juste après.
   Au-delà (voir plus bas), les deux forment un seul premier écran. */
.premier-ecran { display: block; }

.heros {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
  /* Le corps de page est crème : sans fond propre, le bandeau le laisse voir
     le temps que la photo décode — un éclair clair au rechargement, juste
     avant que l'image sombre ne s'installe. Le vert encre tient la place. */
  background: var(--vert-encre);
}

.heros-fond { position: absolute; inset: 0; z-index: -1; background: var(--vert-encre); }
.heros-fond .hf {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 9s linear;
}
.heros-fond .hf.visible { opacity: 1; transform: scale(1); }

/* Le voile est calé sur la plus claire des trois vues : sur un ciel laiteux,
   un dégradé plus léger laissait le surtitre vert illisible. */
.heros-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,26,16,.94) 0%, rgba(12,28,18,.82) 30%, rgba(14,32,20,.58) 58%, rgba(14,32,20,.64) 100%),
    radial-gradient(120% 80% at 12% 100%, rgba(22,48,31,.55), transparent 62%);
}

.heros-corps { position: relative; max-width: 1020px; }

.surtitre {
  display: inline-flex; align-items: center; gap: 11px;
  margin: 0 0 22px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--vert-clair);
}
.surtitre-sombre { color: var(--vert-marque); }

/* Sur le bandeau, le surtitre tombe parfois sur un ciel laiteux : un vert plus
   clair et une ombre portée le détachent, quelle que soit la vue affichée. */
.heros .surtitre {
  color: #C6E6A2;
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(11,26,16,.95), 0 0 3px rgba(11,26,16,.8);
}
.heros .surtitre .traits { filter: drop-shadow(0 0 4px rgba(11,26,16,.9)); }
.heros-titre { text-shadow: 0 2px 26px rgba(11,26,16,.45); }
.heros-chapo { text-shadow: 0 1px 16px rgba(11,26,16,.6); }

.heros-titre {
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 26px;
}
.heros-titre em {
  font-style: normal;
  color: var(--vert-clair);
  position: relative;
}

.heros-chapo {
  max-width: 660px;
  font-size: clamp(17px, .7vw + 15px, 20px);
  line-height: 1.62;
  color: rgba(255,253,248,.87);
  margin-bottom: 34px;
}

.heros-boutons { display: flex; flex-wrap: wrap; gap: 13px; }

/* ─────────── L'entrée du bandeau ───────────
   Les mots du titre remontent depuis une fenêtre à débordement caché, l'un
   après l'autre, puis le reste suit. Les états initiaux ne sont posés qu'une
   fois `mots-prets` ajoutée par le script : sans JavaScript, ou en mouvement
   réduit, le bandeau est simplement là, écrit. */

.heros-titre .mot {
  display: inline-block;
  overflow: hidden;
  /* De la place pour les jambages — sans quoi le « p » de « plantés » serait
     rogné par la fenêtre. */
  padding-bottom: .14em;
  margin-bottom: -.14em;
  vertical-align: bottom;
}
.heros-titre .mot-i { display: inline-block; will-change: transform; }

.heros.mots-prets .heros-titre .mot-i { transform: translateY(112%); }
.heros.mots-prets .surtitre,
.heros.mots-prets .heros-chapo,
.heros.mots-prets .heros-boutons,
.heros.mots-prets .heros-rh { opacity: 0; transform: translateY(16px); }

.heros.entre .heros-titre .mot-i {
  transform: none;
  transition: transform .95s cubic-bezier(.2, .85, .2, 1);
  transition-delay: calc(.18s + var(--i) * .055s);
}
.heros.entre .surtitre,
.heros.entre .heros-chapo,
.heros.entre .heros-boutons,
.heros.entre .heros-rh {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s cubic-bezier(.2, .85, .2, 1);
}
/* Le surtitre ouvre, puis le titre occupe le temps de ses mots, puis la suite. */
.heros.entre .surtitre      { transition-delay: .05s; }
.heros.entre .heros-chapo   { transition-delay: calc(.34s + var(--mots, 6) * .055s); }
.heros.entre .heros-boutons { transition-delay: calc(.44s + var(--mots, 6) * .055s); }
.heros.entre .heros-rh      { transition-delay: calc(.56s + var(--mots, 6) * .055s); }

/* Le rappel du recrutement, dès le premier écran. */
.heros-rh {
  display: inline-flex; align-items: center; gap: 15px;
  margin-top: 40px; padding: 13px 22px 13px 15px;
  border: 1px solid rgba(233,188,124,.4);
  border-radius: 100px;
  background: rgba(201,138,61,.12);
  backdrop-filter: blur(8px);
  text-decoration: none; color: #fff;
  transition: background var(--rapide) var(--ease), border-color var(--rapide) var(--ease);
}
.heros-rh:hover { background: rgba(201,138,61,.24); border-color: var(--ocre-clair); }
.heros-rh-pastille {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: 50%; background: var(--ocre); color: #251603;
}
.heros-rh-pastille svg { width: 16px; height: 16px; }
.heros-rh-mots { display: flex; flex-direction: column; line-height: 1.3; }
.heros-rh-mots strong { font-size: 15px; font-weight: 600; }
.heros-rh-mots small { font-size: 12.5px; color: rgba(255,253,248,.68); }

.heros-vers-bas {
  display: none;
  position: absolute; left: 50%; bottom: 22px;
  width: 1px; height: 44px; overflow: hidden;
  background: rgba(255,255,255,.2);
}
.heros-vers-bas span {
  display: block; width: 100%; height: 40%;
  background: var(--vert-clair);
  animation: descendre 2.6s var(--ease) infinite;
}
@keyframes descendre { 0% { transform: translateY(-110%); } 100% { transform: translateY(260%); } }
@media (prefers-reduced-motion: reduce) { .heros-vers-bas span { animation: none; } }

/* ─────────────────────────── Repères ─────────────────────────── */

.reperes { background: var(--vert-encre); color: var(--papier); }
.reperes-grille {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-block: 0;
}
.repere {
  padding: clamp(26px, 3.4vw, 42px) clamp(16px, 2vw, 30px);
  position: relative;
}
.repere + .repere::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--trait-sombre);
}
.repere strong {
  display: block;
  /* Chiffres à chasse fixe : le compteur défile sans faire danser la ligne. */
  font-variant-numeric: tabular-nums;
  font-family: var(--display);
  font-size: clamp(19px, 1.5vw, 25px); font-weight: 600;
  letter-spacing: -.025em;
  color: var(--vert-clair);
  margin-bottom: 7px;
}
.repere span { font-size: 14.5px; line-height: 1.5; color: rgba(247,245,239,.66); }

/* ─────────────────────────── Sections ─────────────────────────── */

.section { padding-block: var(--section-y); }

.titre {
  font-size: clamp(32px, 4.1vw, 54px);
  letter-spacing: -.032em;
  margin-bottom: 22px;
}
.titre em { font-style: normal; color: var(--vert-marque); }
.titre-clair { color: var(--blanc); }
.titre-clair em { color: var(--vert-clair); }

.section-tete { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-tete-centre { margin-inline: auto; text-align: center; }
.section-tete-centre .surtitre { justify-content: center; }
.section-chapo { font-size: clamp(16.5px, .5vw + 15px, 18.5px); color: var(--encre-2); }

.puces { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 11px; }
.puces li { position: relative; padding-left: 27px; font-size: 16px; color: var(--encre-2); }
.puces li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 13px; height: 1.5px; background: var(--vert-clair);
}
.puces-claires li { color: rgba(247,245,239,.8); }

/* ─────────────────────── L'entreprise ─────────────────────── */

.entreprise { background: var(--papier); }
.entreprise-grille {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.entreprise-image { position: relative; }
.entreprise-image img {
  width: 100%; aspect-ratio: 3 / 2.4; object-fit: cover;
  border-radius: var(--rayon-photo);
}
.entreprise-carte {
  position: absolute; right: clamp(-16px, -1.4vw, 0px); bottom: -26px;
  max-width: 250px;
  background: var(--vert-encre); color: var(--papier);
  padding: 20px 24px; border-radius: var(--rayon);
  box-shadow: 0 24px 50px -28px rgba(22,48,31,.85);
}
.entreprise-carte-cle {
  display: block;
  font-family: var(--display); font-size: 21px; font-weight: 600;
  letter-spacing: -.02em; color: var(--vert-clair);
  margin-bottom: 6px;
}
.entreprise-carte p { font-size: 14px; line-height: 1.55; color: rgba(247,245,239,.74); }

.entreprise-texte p { color: var(--encre-2); }
.entreprise-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* ─────────────────────────── Métiers ─────────────────────────── */

.services { background: var(--papier-2); }

.cartes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

.carte {
  display: flex; flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-photo);
  overflow: hidden;
  transition: transform var(--lent) var(--ease), box-shadow var(--lent) var(--ease),
              border-color var(--lent) var(--ease);
}
.carte:hover {
  transform: translateY(-4px);
  border-color: var(--vert-marque);
  box-shadow: 0 30px 55px -34px rgba(22,48,31,.6);
}

.carte-image { position: relative; overflow: hidden; }
.carte-image img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.carte:hover .carte-image img { transform: scale(1.05); }

.carte-etiquette {
  position: absolute; top: 14px; left: 14px;
  background: var(--vert-clair); color: var(--vert-encre);
  padding: 6px 13px; border-radius: 100px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

.carte-corps { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.carte-corps h3 { font-size: clamp(19px, 1.2vw, 22px); }
.carte-corps p { font-size: 15.5px; line-height: 1.62; color: var(--encre-2); margin: 0; }
.carte-corps .lien-fleche { margin-top: auto; align-self: flex-start; padding-top: 6px; }

/* Les trois rappels de la carte vedette : ce que l'abattage recouvre. */
.carte-rappels { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.carte-rappels li {
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(79,115,80,.1); color: var(--vert-encre);
}

/* La carte de l'abattage prend toute la largeur, en bannière : c'est la
   spécialité de la maison, elle ouvre la série au lieu de s'y fondre. */
.carte-vedette { grid-column: 1 / -1; flex-direction: row; }
.carte-vedette .carte-image { flex: 0 0 46%; }
.carte-vedette .carte-image img { height: 100%; aspect-ratio: auto; min-height: 320px; object-position: center 40%; }
.carte-vedette .carte-corps { flex: 1; justify-content: center; padding: clamp(26px, 3vw, 44px); gap: 15px; }
.carte-vedette .carte-corps h3 { font-size: clamp(23px, 2vw, 32px); }
.carte-vedette .carte-corps p { font-size: 16.5px; }

/* La tuile d'appel ferme la grille — et redit le numéro là où l'on regarde
   les métiers, sans avoir à redescendre jusqu'au formulaire. */
.carte-appel {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--vert-encre); color: var(--papier);
  border: 1px solid var(--vert-encre);
  border-radius: var(--rayon-photo);
  text-decoration: none;
  transition: background var(--lent) var(--ease), transform var(--lent) var(--ease);
}
.carte-appel:hover { background: var(--vert-profond); transform: translateY(-4px); }
.carte-appel .traits { color: var(--vert-clair); }
.carte-appel h3 { font-size: clamp(20px, 1.4vw, 24px); color: var(--blanc); }
.carte-appel p { font-size: 15px; line-height: 1.6; color: rgba(247,245,239,.7); margin: 0; }
.carte-appel-numero {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: clamp(21px, 1.6vw, 26px); font-weight: 600;
  letter-spacing: -.02em; color: var(--vert-clair);
  margin-top: 4px;
}
.carte-appel-numero svg { width: 20px; height: 20px; fill: currentColor; }

/* ─────────────────── Abattage — section mise en avant ─────────────────── */

.abattage {
  background: var(--vert-encre);
  color: var(--papier);
  position: relative;
  overflow: hidden;
}
/* Un halo vert très sourd, pour que le noir ne soit pas plat. */
.abattage::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(75% 55% at 78% 8%, rgba(140,190,91,.13), transparent 68%);
  pointer-events: none;
}
.abattage .cadre { position: relative; }

.abattage-grille {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(36px, 4.6vw, 72px);
  align-items: start;
}

.abattage-chapo {
  font-size: clamp(16.5px, .5vw + 15px, 18.5px);
  color: rgba(247,245,239,.78);
  max-width: 620px;
  margin-bottom: 34px;
}

.liste-abattage {
  list-style: none; margin: 0 0 38px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--trait-sombre);
  border-block: 1px solid var(--trait-sombre);
}
.liste-abattage li {
  background: var(--vert-encre);
  padding: 24px clamp(16px, 1.8vw, 26px) 24px 0;
}
.liste-abattage li:nth-child(even) { padding-left: clamp(16px, 1.8vw, 26px); padding-right: 0; }
.liste-abattage h3 {
  font-size: 17.5px; color: var(--vert-clair);
  margin-bottom: 8px; letter-spacing: -.015em;
}
.liste-abattage p { font-size: 15px; line-height: 1.6; color: rgba(247,245,239,.66); margin: 0; }

.abattage-appel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  justify-content: space-between;
  padding: clamp(20px, 2.4vw, 30px);
  background: rgba(140,190,91,.09);
  border: 1px solid rgba(140,190,91,.26);
  border-radius: var(--rayon);
}
.abattage-appel-mots { display: flex; flex-direction: column; gap: 5px; min-width: 240px; flex: 1; }
.abattage-appel-mots strong { font-family: var(--display); font-size: clamp(18px, 1.2vw, 21px); font-weight: 600; letter-spacing: -.02em; }
.abattage-appel-mots span { font-size: 15px; color: rgba(247,245,239,.66); }

.abattage-image { margin: 0; }
.abattage-image img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--rayon-photo);
}
.abattage-image figcaption {
  margin-top: 14px; font-size: 13.5px; line-height: 1.55;
  color: rgba(247,245,239,.55);
  padding-left: 15px; border-left: 2px solid var(--vert-clair);
}

/* ─────────────────────────── Réalisations ─────────────────────────── */

.realisations { background: var(--papier-2); }

/* Quatre chantiers, quatre grandes fenêtres 4/3 sur deux rangs. Les photos
   viennent d'un téléphone tenu à la verticale : le cadrage retenu par
   `object-position` remonte le sujet — le massif, le muret — au centre du
   champ, plutôt que de laisser le ciel occuper la moitié de l'image. */
/* ─────────── Les filtres, qui restent sous la main ───────────
   La barre se colle sous l'en-tête pendant qu'on parcourt la galerie : sur
   onze photos et trois métiers, redescendre chercher le filtre serait une
   corvée. `--haut-entete` est mesurée par script.js — la hauteur du bandeau
   change entre son état haut et son état posé. */
.galerie-filtres {
  position: sticky;
  top: calc(var(--haut-entete, 72px) + 10px);
  z-index: 20;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
  padding: 8px;
  background: rgba(247,245,239,.88);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--trait);
  border-radius: 100px;
  width: fit-content; max-width: 100%;
}
.filtre {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 18px;
  background: transparent;
  border: 0; border-radius: 100px;
  font: 500 14.5px/1 var(--texte);
  color: var(--encre-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--rapide) var(--ease), color var(--rapide) var(--ease);
}
.filtre:hover { background: rgba(79,115,80,.12); color: var(--vert-encre); }
.filtre.est-actif { background: var(--vert-encre); color: var(--vert-clair); font-weight: 600; }
.filtre-n {
  font-size: 12px; font-variant-numeric: tabular-nums;
  opacity: .6;
}
.filtre.est-actif .filtre-n { opacity: .8; }

/* ─────────── La mosaïque ───────────
   Toutes les tuiles font un rang de haut ; ce sont leurs **largeurs** qui
   varient — une ou deux colonnes. script.js calcule combien de larges il faut
   pour que le total des cases soit un multiple du nombre de colonnes : chaque
   rangée est alors pleine, et le bas de la galerie tombe droit.

   La hauteur de rang vient de la largeur du conteneur (`cqw`), pour qu'une
   tuile simple reste légèrement portrait et une tuile large franchement
   paysage — c'est ce contraste qui fait la mosaïque. */
.galerie {
  container-type: inline-size;
  --g: clamp(12px, 1.2vw, 18px);
  --col: 5;
  display: grid;
  grid-template-columns: repeat(var(--col), 1fr);
  gap: var(--g);
  grid-auto-rows: calc((100cqw - (var(--col) - 1) * var(--g)) / var(--col) * 1.15);
  grid-auto-flow: dense;
}
.galerie-item[data-large="2"] { grid-column: span 2; }
.galerie-item[data-large="3"] { grid-column: span 3; }

/* Sans unités de conteneur, on retombe sur une grille régulière : moins
   dessinée, mais jamais cassée. */
@supports not (grid-auto-rows: 1cqw) {
  .galerie { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }
  .galerie-item[data-large] { grid-column: span 1; }
  .galerie-item img { aspect-ratio: 3 / 4; }
}

/* Une photo écartée par un filtre ne disparaît pas d'un coup : elle se retire. */
.galerie-item.masquee { display: none; }
.galerie-item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--rayon-photo);
  background: var(--vert-encre);
  cursor: zoom-in;
}
.galerie-item img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  object-position: center var(--cadrage, 50%);
  transition: transform 1.1s var(--ease), opacity var(--lent) var(--ease);
}
.galerie-item:hover img { transform: scale(1.045); opacity: .82; }
.galerie-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 46px 18px 16px;
  font-size: 13.5px; line-height: 1.45; color: #fff;
  background: linear-gradient(to top, rgba(11,26,16,.92), transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--lent) var(--ease), transform var(--lent) var(--ease);
}
.galerie-item:hover figcaption, .galerie-item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .galerie-item figcaption { opacity: 1; transform: none; } }

.galerie-note {
  margin-top: 24px; font-size: 14.5px; color: var(--encre-3);
  padding-left: 15px; border-left: 2px solid var(--vert-marque);
}

/* La visionneuse : ouverte au clic sur une photo. */
.visionneuse {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(11,26,16,.94);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--lent) var(--ease), visibility var(--lent);
}
.visionneuse.ouverte { opacity: 1; visibility: visible; }

/* Le geste horizontal appartient à la visionneuse, pas au navigateur :
   `pan-y` lui retire le balayage latéral, qu'il interpréterait sinon comme un
   déplacement de page. `pinch-zoom` reste autorisé — agrandir une photo de
   chantier à deux doigts est utile. Et toute valeur autre que `auto` supprime
   le double-tap pour zoomer, avec au passage le délai de 300 ms qui rendait
   les flèches molles au doigt. */
.visionneuse,
.visionneuse figure,
.visionneuse img { touch-action: pan-y pinch-zoom; }

/* Un balayage ne doit pas surligner la légende au passage. */
.visionneuse figcaption { -webkit-user-select: none; user-select: none; }

/* Ailleurs, les éléments que l'on touche répondent au premier appui. */
.galerie-item,
.bouton,
.visionneuse-nav,
.visionneuse-fermer,
.select-bouton,
.select-option,
.zone-liste li,
.carte-zones path { touch-action: manipulation; }
.visionneuse figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.visionneuse img { max-width: 100%; max-height: 76vh; border-radius: var(--rayon-photo); object-fit: contain; }
.visionneuse figcaption {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 16px;
  text-align: center; color: rgba(255,253,248,.8); font-size: 15px;
}
.visionneuse-compteur {
  font-variant-numeric: tabular-nums;
  font-size: 13px; letter-spacing: .08em;
  color: var(--vert-clair);
}
.visionneuse-compteur:empty { display: none; }

.visionneuse-fermer, .visionneuse-nav {
  position: absolute;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--rapide) var(--ease), border-color var(--rapide) var(--ease);
}
.visionneuse-fermer svg, .visionneuse-nav svg { width: 20px; height: 20px; }
.visionneuse-fermer:hover, .visionneuse-nav:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.visionneuse-nav[hidden] { display: none; }

.visionneuse-fermer { top: 20px; right: 20px; }
.visionneuse-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.visionneuse-prec { left: clamp(10px, 2.5vw, 34px); }
.visionneuse-suiv { right: clamp(10px, 2.5vw, 34px); }

/* Sur écran étroit, les flèches descendent côte à côte sous la photo : posées
   sur les bords, elles couvriraient le sujet. Le balayage au doigt reste le
   geste naturel, les flèches sont le filet. */
@media (max-width: 620px) {
  .visionneuse img { max-height: 62vh; }
  .visionneuse-nav {
    top: auto; bottom: calc(20px + env(safe-area-inset-bottom));
    transform: none; width: 48px; height: 48px;
  }
  .visionneuse-prec { left: calc(50% - 62px); }
  .visionneuse-suiv { right: calc(50% - 62px); }
  .visionneuse figcaption { margin-bottom: 76px; }
}

/* ─────────────────── Nous rejoindre — le volet RH ─────────────────── */

.rejoindre {
  background: var(--vert-profond);
  color: var(--papier);
  position: relative; overflow: hidden;
}
/* L'ocre n'apparaît que là : c'est ce qui fait sortir la section du reste. */
.rejoindre::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 88% 0%, rgba(201,138,61,.22), transparent 66%);
  pointer-events: none;
}
.rejoindre .cadre { position: relative; }
.traits-ocre { color: var(--ocre-clair); }
.traits-clair { color: var(--vert-clair); }
.rejoindre .surtitre { color: var(--ocre-clair); }
.rejoindre .titre em { color: var(--ocre-clair); }

.rejoindre-tete { max-width: 780px; margin-bottom: clamp(38px, 4.4vw, 58px); }
.rejoindre-chapo { font-size: clamp(16.5px, .55vw + 15px, 19px); color: rgba(247,245,239,.8); }

.rejoindre-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 36px);
  align-items: start;
}

.rejoindre-bloc {
  padding: clamp(24px, 2.6vw, 36px);
  background: rgba(255,253,248,.045);
  border: 1px solid var(--trait-sombre);
  border-radius: var(--rayon);
  height: 100%;
}
.rejoindre-h3 {
  font-size: clamp(19px, 1.3vw, 23px);
  color: var(--blanc);
  margin-bottom: 16px;
}
.rejoindre-bloc p { font-size: 15.5px; line-height: 1.65; color: rgba(247,245,239,.76); }
.rejoindre-bloc .puces { margin-bottom: 0; }

.rejoindre-image {
  margin: 0; height: 100%;
  display: flex; flex-direction: column;
}
.rejoindre-image img {
  flex: 1;
  width: 100%; height: 100%; min-height: 260px;
  object-fit: cover;
  border-radius: var(--rayon-photo);
}
.rejoindre-image figcaption {
  flex: 0 0 auto;
  margin-top: 13px; font-size: 13.5px; line-height: 1.5;
  color: rgba(247,245,239,.55);
  padding-left: 15px; border-left: 2px solid var(--ocre);
}

.rejoindre-alternance { border-color: rgba(233,188,124,.32); background: rgba(201,138,61,.09); }

.faits {
  margin: 20px 0 16px; display: grid; gap: 1px;
  background: var(--trait-sombre);
  border: 1px solid var(--trait-sombre);
  border-radius: var(--rayon);
  overflow: hidden;
}
.faits > div {
  display: grid; grid-template-columns: 118px 1fr; gap: 16px;
  padding: 15px 18px;
  background: var(--vert-profond);
}
.faits dt {
  font-family: var(--display); font-weight: 600;
  font-size: 16px; letter-spacing: -.02em;
  color: var(--ocre-clair);
}
.faits dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(247,245,239,.72); }

.rejoindre-source { font-size: 13px !important; color: rgba(247,245,239,.5) !important; margin: 0 !important; }
.rejoindre-source a { color: var(--ocre-clair); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.rejoindre-postuler { display: flex; flex-direction: column; }
.rejoindre-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 22px; }

/* ─────────────────────── Zone d'intervention ─────────────────────── */

.zone { background: var(--papier); }
.zone-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.4vw, 64px);
  align-items: center;
}
/* Le titre partage sa ligne avec la carte : il lui faut un cran de moins que
   les autres, sinon « avenue des Nations Unies » se casse en deux. */
.zone-texte .titre { font-size: clamp(28px, 3.1vw, 41px); }
.zone-texte p { color: var(--encre-2); margin-bottom: 0; }
.zone-etiquette {
  margin: 26px 0 10px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--encre-3);
}
.zone-liste {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.zone-liste li {
  padding: 9px 17px;
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 100px;
  font-size: 14.5px; font-weight: 500;
  color: var(--encre-2);
  cursor: default;
  transition: background var(--rapide) var(--ease), color var(--rapide) var(--ease),
              border-color var(--rapide) var(--ease);
}
.zone-liste li:hover, .zone-liste li.actif {
  background: var(--vert-encre); border-color: var(--vert-encre); color: var(--vert-clair);
}
.zone-hameaux { font-size: 14.5px; color: var(--encre-3); margin-bottom: 26px; }

/* ─────────────── La carte de la région ───────────────
   Tracés réels des communes (limites 2025, province de Liège), projetés et
   simplifiés à la génération : le fichier ne dépend d'aucune bibliothèque ni
   d'aucun serveur de tuiles — donc aucune requête ne part vers un tiers. */

.carte-region { margin: 0; }
.carte-svg { display: block; width: 100%; height: auto; }

.carte-contexte path {
  fill: #E6E1D3;
  stroke: var(--papier);
  stroke-width: 1.8;
  pointer-events: none;   /* décor : rien à survoler */
}

.carte-zones path {
  fill: rgba(79,115,80,.30);
  stroke: var(--vert-marque);
  stroke-width: 2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill var(--rapide) var(--ease), stroke var(--rapide) var(--ease);
}
.carte-zones path:hover, .carte-zones path.actif {
  fill: var(--vert-moyen);
  stroke: var(--vert-encre);
}

.carte-noms text {
  font: 600 25px/1 var(--texte);
  fill: var(--vert-encre);
  text-anchor: middle;
  pointer-events: none;
  /* Le contour de la couleur du fond détache le nom du tracé, sans cartouche. */
  paint-order: stroke;
  stroke: var(--papier);
  stroke-width: 4.5px;
  stroke-linejoin: round;
  transition: fill var(--rapide) var(--ease), stroke var(--rapide) var(--ease);
}
.carte-noms text.actif { fill: var(--blanc); stroke: var(--vert-encre); }

.carte-base-point { fill: var(--vert-clair); stroke: var(--vert-encre); stroke-width: 3.5; }
.carte-base-halo { fill: rgba(140,190,91,.3); transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .carte-base-halo { animation: pulsation 3.2s var(--ease) infinite; }
}
@keyframes pulsation {
  0%   { opacity: .55; r: 14px; }
  70%  { opacity: 0;   r: 30px; }
  100% { opacity: 0;   r: 30px; }
}

.carte-legende {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  margin-top: 16px;
  font-size: 14px; color: var(--encre-3);
}
.carte-legende-base { display: inline-flex; align-items: center; gap: 9px; }
.carte-legende-base i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--vert-clair);
  box-shadow: 0 0 0 2.5px var(--vert-encre);
}
.carte-legende-nom { font-weight: 600; color: var(--vert-encre); }
.carte-legende-nom:empty::before { content: 'Survolez une commune'; font-weight: 400; color: var(--encre-3); }
/* Sur écran tactile, il n'y a pas de survol : on invite à toucher. */
@media (hover: none) {
  .carte-legende-nom:empty::before { content: 'Touchez une commune'; }
}

/* ─────────────────────────── Contact ─────────────────────────── */

.contact { background: var(--vert-encre); color: var(--papier); }
.contact-grille {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(38px, 4.8vw, 76px);
  align-items: start;
}
.contact-chapo { font-size: clamp(16px, .5vw + 15px, 18px); color: rgba(247,245,239,.76); margin-bottom: 32px; }

.coordonnees { margin: 0 0 26px; display: grid; gap: 1px; background: var(--trait-sombre); border-block: 1px solid var(--trait-sombre); }
.coordonnees > div { display: grid; grid-template-columns: 165px 1fr; gap: 16px; padding: 15px 0; background: var(--vert-encre); align-items: baseline; }
.coordonnees dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,245,239,.45); }
.coordonnees dd { margin: 0; font-size: 16px; color: var(--papier); word-break: break-word; }
.coordonnees a { text-decoration: none; border-bottom: 1px solid rgba(140,190,91,.45); transition: color var(--rapide) var(--ease), border-color var(--rapide) var(--ease); }
.coordonnees a:hover { color: var(--vert-clair); border-color: var(--vert-clair); }

.contact-facebook {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: rgba(247,245,239,.8);
  padding: 11px 20px 11px 15px;
  border: 1px solid var(--trait-sombre); border-radius: 100px;
  transition: border-color var(--rapide) var(--ease), color var(--rapide) var(--ease);
}
.contact-facebook svg { width: 21px; height: 21px; fill: var(--vert-clair); }
.contact-facebook:hover { border-color: var(--vert-clair); color: #fff; }

/* ─────────────────────────── Formulaire ─────────────────────────── */

.contact-formulaire {
  background: rgba(255,253,248,.045);
  border: 1px solid var(--trait-sombre);
  border-radius: var(--rayon);
  padding: clamp(24px, 3vw, 40px);
}
#formulaire { display: grid; gap: 17px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }

.champ label {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(247,245,239,.6);
}
.facultatif { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .65; }

.champ input, .champ textarea, .champ select {
  width: 100%;
  padding: 13px 15px;
  background: rgba(11,26,16,.42);
  border: 1px solid var(--trait-sombre);
  border-radius: var(--rayon-champ);
  color: var(--papier);
  font: 400 16px/1.5 var(--texte);
  transition: border-color var(--rapide) var(--ease), background var(--rapide) var(--ease);
  appearance: none;
}
.champ textarea { resize: vertical; min-height: 118px; }
.champ input::placeholder, .champ textarea::placeholder { color: rgba(247,245,239,.34); }
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none; border-color: var(--vert-clair); background: rgba(11,26,16,.62);
}
.champ input.invalide, .champ textarea.invalide { border-color: #E08B7A; }

/* ─────────────── Liste déroulante maison ───────────────
   Le menu natif s'affiche aux couleurs du système (surlignage bleu, fond
   blanc) : sur un fond vert profond, il jure. On le remplace par un bouton et
   une liste que l'on peut habiller — le `<select>` reste dans la page, caché,
   et demeure la source de vérité du formulaire. Sans JavaScript, il réapparaît
   tel quel et le formulaire fonctionne. */

.select-enveloppe { position: relative; }
.select-enveloppe > svg {
  position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none; color: var(--vert-clair);
}
.champ select { padding-right: 42px; cursor: pointer; }
.champ select option { background: var(--vert-encre); color: var(--papier); }

/* Le natif se retire dès que le remplaçant est en place. */
.select-enveloppe.remplace > select,
.select-enveloppe.remplace > svg { display: none; }

.select-bouton {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px;
  background: rgba(11,26,16,.42);
  border: 1px solid var(--trait-sombre);
  border-radius: var(--rayon-champ);
  color: var(--papier);
  font: 400 16px/1.5 var(--texte);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--rapide) var(--ease), background var(--rapide) var(--ease);
}
.select-bouton:hover { border-color: rgba(255,255,255,.28); }
.select-bouton[aria-expanded="true"] { border-color: var(--vert-clair); background: rgba(11,26,16,.62); }
.select-bouton svg {
  width: 16px; height: 16px; flex: 0 0 auto; color: var(--vert-clair);
  transition: transform var(--rapide) var(--ease);
}
.select-bouton[aria-expanded="true"] svg { transform: rotate(180deg); }

.select-liste {
  position: absolute; z-index: 20;
  inset: calc(100% + 6px) 0 auto 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: #10240F;
  background: var(--vert-encre);
  border: 1px solid rgba(140,190,91,.32);
  border-radius: var(--rayon-champ);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.7);
  max-height: 290px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--rapide) var(--ease), transform var(--rapide) var(--ease), visibility var(--rapide);
}
.select-liste.ouverte { opacity: 1; visibility: visible; transform: none; }

.select-option {
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 15.5px; line-height: 1.4;
  color: rgba(247,245,239,.85);
  cursor: pointer;
  transition: background var(--rapide) var(--ease), color var(--rapide) var(--ease);
}
.select-option:hover, .select-option.survol { background: rgba(140,190,91,.14); color: var(--blanc); }
.select-option[aria-selected="true"] {
  background: var(--vert-clair); color: var(--vert-encre); font-weight: 600;
}
/* La candidature est l'entrée qu'on veut voir : elle porte l'ocre du volet
   recrutement, comme le bouton qui y mène. */
.select-option[data-valeur="candidature"] { color: var(--ocre-clair); }
.select-option[data-valeur="candidature"][aria-selected="true"] { background: var(--ocre); color: #251603; }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#envoyer { margin-top: 4px; }
#envoyer[disabled] { opacity: .55; cursor: progress; }

.formulaire-note { font-size: 13px; color: rgba(247,245,239,.45); margin: 0; }
.formulaire-etat { margin: 0; font-size: 14.5px; line-height: 1.55; }
.formulaire-etat:empty { display: none; }
.formulaire-etat.ok { color: var(--vert-clair); }
.formulaire-etat.erreur { color: #F0A392; }

/* ─────────────────────────── Pied de page ─────────────────────────── */

.pied { background: #0F2416; color: rgba(247,245,239,.72); padding-top: clamp(48px, 5vw, 72px); }
.pied-grille {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 52px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.pied-marque { display: flex; align-items: flex-start; gap: 14px; }
.pied-marque .marque-signe { width: 30px; height: 44px; color: var(--vert-marque); }
.pied-marque strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--papier); }
.pied-marque span { display: block; font-size: 13.5px; margin-top: 5px; color: rgba(247,245,239,.52); }

.pied-liens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 22px; align-content: start; }
.pied-liens a { text-decoration: none; font-size: 15px; transition: color var(--rapide) var(--ease); }
.pied-liens a:hover { color: var(--vert-clair); }

.pied-coordonnees { display: flex; flex-direction: column; gap: 9px; font-size: 15px; align-items: flex-start; }
.pied-coordonnees a { text-decoration: none; border-bottom: 1px solid rgba(140,190,91,.35); transition: color var(--rapide) var(--ease); }
.pied-coordonnees a:hover { color: var(--vert-clair); }

.pied-bas {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 20px;
  font-size: 13px; color: rgba(247,245,239,.42);
}
/* Le filet s'arrête au bord du texte, pas au bord de la page : posé sur
   `.pied-bas`, une bordure déborderait de la gouttière du cadre. */
.pied-bas::before {
  content: ''; position: absolute; top: 0;
  left: var(--gouttiere); right: var(--gouttiere); height: 1px;
  background: var(--trait-sombre);
}
.pied-signature a { color: var(--vert-clair); text-decoration: none; }
.pied-signature a:hover { text-decoration: underline; }

/* ─────────────────── Barre d'appel (téléphone) ─────────────────── */

.barre-appel { display: none; }
body.sans-barre-appel .barre-appel { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   Apparitions au défilement
   Le HTML est complet sans JavaScript : la classe `.anime` n'est posée par
   script.js que si l'observateur est disponible, donc rien ne peut rester
   invisible faute de script.
   ═══════════════════════════════════════════════════════════════════════════ */

.anime { opacity: 0; transform: translateY(22px); }
.anime.vu {
  opacity: 1; transform: none;
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--retard, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .anime, .anime.vu { opacity: 1; transform: none; transition: none; }
  .heros.mots-prets .heros-titre .mot-i,
  .heros.mots-prets .surtitre,
  .heros.mots-prets .heros-chapo,
  .heros.mots-prets .heros-boutons,
  .heros.mots-prets .heros-rh { opacity: 1; transform: none; transition: none; }
  .heros-fond .hf { transition: opacity .4s linear; transform: none; }
  .carte:hover, .bouton:hover { transform: none; }
  .carte:hover .carte-image img, .galerie-item:hover img { transform: none; }
}

/* ─────────── Le premier écran, sur grand écran ───────────
   Le bandeau et la bande de repères se partagent exactement une hauteur
   d'écran : la bande n'est plus quelque chose que l'on découvre en défilant,
   elle fait partie de ce que l'on voit en arrivant. Le bandeau prend ce qui
   reste, d'où le `flex: 1` — aucune hauteur à mesurer, et la bande peut
   changer de contenu sans qu'on y revienne. */
@media (min-width: 621px) {
  .premier-ecran {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }
  /* Marges en `vh` : le bandeau et la bande doivent tenir ensemble dans la
     hauteur d'écran, quelle qu'elle soit. Des marges fixes débordaient de
     trente pixels sur un écran de 900. */
  .premier-ecran .heros {
    flex: 1 1 auto; min-height: 0;
    padding-top: clamp(94px, 11vh, 132px);
    padding-bottom: clamp(22px, 3.5vh, 52px);
  }
  .premier-ecran .reperes { flex: 0 0 auto; }
}

/* ─────────── Écrans peu hauts ───────────
   Sur un portable au format large, le bandeau a la largeur mais pas la
   hauteur : sans cela, le rappel de recrutement passe sous la ligne de
   flottaison. On resserre plutôt que de laisser déborder. */

@media (min-width: 621px) and (max-height: 780px) {
  .heros { padding-top: 112px; padding-bottom: 40px; }
  .heros-titre { font-size: clamp(32px, 4.3vw, 56px); margin-bottom: 18px; }
  .heros-chapo { font-size: 16.5px; margin-bottom: 26px; }
  .surtitre { margin-bottom: 16px; }
  .heros-rh { margin-top: 26px; padding: 11px 20px 11px 13px; }
  .heros-vers-bas { height: 32px; bottom: 14px; }
}
@media (min-width: 621px) and (max-height: 660px) {
  .heros { padding-top: 96px; padding-bottom: 28px; }
  .heros-titre { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
  .heros-chapo { font-size: 15.5px; margin-bottom: 20px; line-height: 1.55; }
  .heros-rh { margin-top: 18px; }
  .heros-vers-bas { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Adaptations
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1180px) {
  .galerie { --col: 4; }
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .carte-vedette .carte-image { flex: 0 0 44%; }
}

/* ─────────── Le menu passe en tiroir ─────────── */
@media (max-width: 1080px) {
  .burger { display: flex; }
  .bouton-entete { display: none; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(400px, 88vw);
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 22px var(--gouttiere) 30px;
    background: var(--vert-encre);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
    box-shadow: -30px 0 70px -30px rgba(0,0,0,.6);
  }
  .nav.ouvert { transform: none; }

  .nav-tete { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; }
  .nav-titre { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--papier); letter-spacing: -.02em; }
  .nav-fermer {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.07); border: 1px solid var(--trait-sombre);
    color: var(--papier); cursor: pointer;
  }
  .nav-fermer svg { width: 19px; height: 19px; }

  .nav > a {
    display: flex; align-items: baseline; gap: 14px;
    color: var(--papier) !important;
    padding: 17px 0;
    font-family: var(--display);
    font-size: clamp(21px, 4.6vw, 27px); font-weight: 500; letter-spacing: -.025em;
    border-bottom: 1px solid var(--trait-sombre);
    opacity: 0; transform: translateX(16px);
  }
  .nav.ouvert > a {
    opacity: 1; transform: none;
    transition: opacity .4s var(--ease) calc(var(--i) * .045s + .1s),
                transform .4s var(--ease) calc(var(--i) * .045s + .1s);
  }
  .nav > a::after { display: none; }
  .nav > a.actif { position: relative; }
  .nav > a.actif::before {
    content: ''; position: absolute; left: calc(var(--gouttiere) * -1); top: 12px; bottom: 12px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--vert-clair);
  }
  .nav > a.nav-rh.actif::before { background: var(--ocre-clair); }
  /* La pastille de l'abattage décalait son numéro : dans le tiroir, c'est la
     couleur du libellé qui le distingue, et la colonne des numéros reste droite. */
  .nav > a.nav-fort::before { display: none; }
  .nav > a.nav-fort span { color: var(--vert-clair); }
  .nav > a.nav-rh { color: var(--ocre-clair) !important; }
  .nav-n {
    display: inline-block; width: 26px; flex: 0 0 auto;
    font-family: var(--texte); font-style: normal;
    font-size: 12px; font-weight: 600; letter-spacing: .1em;
    color: var(--vert-marque);
  }
  .nav-pied { display: block; margin-top: auto; padding-top: 28px; }
  .nav-adresse { margin: 14px 0 0; font-size: 13.5px; color: rgba(247,245,239,.5); text-align: center; }

  .voile-nav {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(11,26,16,.6); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--lent) var(--ease), visibility var(--lent);
  }
  .voile-nav.visible { opacity: 1; visibility: visible; }
  body.nav-ouverte { overflow: hidden; }
}

@media (max-width: 1000px) {
  .abattage-grille, .zone-grille { grid-template-columns: 1fr; }
  .abattage-image img { aspect-ratio: 16 / 9; }
  .zone-texte { max-width: 640px; }
}

@media (max-width: 900px) {
  .entreprise-grille, .contact-grille, .rejoindre-grille { grid-template-columns: 1fr; }
  .entreprise-image { order: -1; }
  .entreprise-carte { position: static; max-width: none; margin-top: 14px; }
  .rejoindre-image { height: auto; display: block; }
  /* En une colonne, la fenêtre reprend presque les proportions du fichier
     (1,33 contre 1,36) : il ne reste quasiment rien à couper. Et ce qui est
     coupé l'est en bas — `top` garde le haut du cadre, donc la tête. */
  .rejoindre-image img {
    flex: none; height: auto; min-height: 0;
    aspect-ratio: 4 / 3;
    object-position: center top;
  }
  .galerie { --col: 3; }
  .pied-grille { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .reperes-grille { grid-template-columns: repeat(2, 1fr); }
  .repere:nth-child(odd)::before { display: none; }
  .repere:nth-child(n+3)::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--trait-sombre);
  }
  .liste-abattage { grid-template-columns: 1fr; }
  .liste-abattage li, .liste-abattage li:nth-child(even) { padding-inline: 0; }
  .champ-duo { grid-template-columns: 1fr; }
  .coordonnees > div, .faits > div { grid-template-columns: 1fr; gap: 4px; }
  .cartes { grid-template-columns: 1fr; }
  .carte-vedette { flex-direction: column; }
  .carte-vedette .carte-image { flex: 0 0 auto; }
  .carte-vedette .carte-image img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .carte-vedette .carte-corps { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .heros { min-height: 92svh; padding-top: 116px; }
  /* Le trait de défilement tombait derrière le rappel de recrutement. */
  .heros-vers-bas { display: none; }
  .heros-titre { font-size: clamp(34px, 8.6vw, 44px); }
  .heros-boutons .bouton { flex: 1 1 100%; }
  /* La pastille supporte mal deux lignes de titre : sur téléphone, elle
     redevient un bloc, l'icône calée en haut avec la première ligne. */
  .heros-rh {
    width: 100%;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 17px;
    border-radius: var(--rayon-photo);
  }
  .heros-rh-pastille { width: 28px; height: 28px; margin-top: 1px; }
  .heros-rh-pastille svg { width: 14px; height: 14px; }
  .heros-rh-mots { gap: 3px; }
  .heros-rh-mots strong { font-size: 15.5px; line-height: 1.32; }
  .heros-rh-mots small { font-size: 12.5px; line-height: 1.42; }
  .pied-liens { grid-template-columns: 1fr; }

  /* La barre d'appel n'apparaît que sur téléphone, une fois le hero passé. */
  .barre-appel {
    display: block;
    position: fixed; inset: auto 0 0 0; z-index: 85;
    background: var(--vert-encre);
    border-top: 1px solid var(--trait-sombre);
    transform: translateY(105%);
    transition: transform .4s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .barre-appel.montree { transform: none; }
  .barre-appel-principal {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 14px 18px;
    text-decoration: none; color: var(--papier);
  }
  .barre-appel-principal svg { width: 20px; height: 20px; fill: var(--vert-clair); flex: 0 0 auto; }
  .barre-appel-principal span { display: flex; flex-direction: column; line-height: 1.25; }
  .barre-appel-principal strong { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
  .barre-appel-principal small { font-size: 12px; color: rgba(247,245,239,.55); }
  body { padding-bottom: 0; }
  body.barre-visible { padding-bottom: 68px; }
}

@media (max-width: 420px) {
  .marque-mots small { display: none; }
  .galerie { --col: 2; --g: 10px; }
  .galerie-item[data-large] { grid-column: span 1; }

  /* Sur téléphone, les quatre filtres ne tiennent pas sur une ligne. Plutôt
     que de les laisser s'enrouler en pavé, on en fait une rangée qui défile
     du doigt — le geste attendu pour des filtres, et la barre garde la
     hauteur d'une seule ligne quand elle se colle sous l'en-tête. */
  .galerie-filtres {
    width: 100%;
    padding: 6px;
    gap: 6px;
    border-radius: 100px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Un dégradé au bord droit dit qu'il reste des filtres à découvrir. */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  .galerie-filtres::-webkit-scrollbar { display: none; }
  .galerie-filtres.au-bout {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .filtre { padding: 9px 15px; font-size: 13.5px; flex: 0 0 auto; scroll-snap-align: start; }
}

/* Impression : on garde le texte, on jette les décors. */
@media print {
  .entete, .barre-appel, .heros-fond, .heros-vers-bas, .visionneuse, .burger { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
  .abattage, .rejoindre, .contact, .reperes, .pied { background: #fff !important; color: #000 !important; }
  .titre-clair, .rejoindre-h3 { color: #000 !important; }
}
