/* ============================================
   COLLECTIF WEB — GABARIT RECRUTEMENT
   Extrait tel quel de maquettes/recrutement.html, maquette validée et gelée.
   L'habillage commun (en-tête, menu, pied) vit dans commun.css.
   ============================================ */

/* ====== Gabarit Recrutement — styles de page (tokens DS uniquement) ======
   Sombre par défaut comme tout le site (D-053), bascule mémorisée. */

/* Sections de page */
.band { margin-bottom: clamp(88px, 11vw, 136px); }
.band__head { margin-bottom: var(--space-6); }
.band__head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
  padding-top: 22px;
  position: relative;
}
.band__head h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--border-w);
  background: var(--border);
  transform-origin: left;
  transition: transform .8s var(--ease-out);
}
html.js .band__head h2::before { transform: scaleX(0); }
html.js .band__head.in h2::before { transform: scaleX(1); }
.band__head h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--accent); }
.band__head p { font-size: var(--fs-body-l); color: var(--fg-soft); max-width: 76ch; margin: 0; }

/* ====== Hero — la place qui t'attend ====== */
.hero--recrute {
  background: var(--surface);
  color: var(--fg);
  border: var(--border-w) solid var(--border);
  min-height: 480px;
  margin-bottom: clamp(88px, 11vw, 136px);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

/* La table ronde de la page Le Collectif, version recrutement : douze points en
   cercle, une place marquée en pointillé — le treizième point arrive et le
   cercle se referme avec lui. Garde-fous D-058, coupé sous 800 px (D-065). */
.table-place { position: absolute; inset: 0; pointer-events: none; }
.table-place canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 800px) {
  .table-place { display: none; }
  /* Sans filigrane derrière, le retrait du bloc double celui du hero et ne
     laisse plus la place à un titre un peu long (champ libre côté client). */
  .hero--recrute .hero__inner { padding-left: 0; padding-right: 0; }
}
.hero--recrute .hero__inner {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px);
}
.hero--recrute .hero__title { font-size: clamp(38px, 4.6vw, 60px); max-width: 14ch; }
.hero--recrute .hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--accent); }
.hero--recrute .hero__sub { margin-top: 20px; color: var(--fg-soft); opacity: 1; max-width: 56ch; }
.hero--recrute .hero__cta { margin: 26px 0 0; }

/* La page assume sa longueur : c'est le filtre */
.hero--recrute .filtre {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
}
.hero--recrute .filtre .dot { color: var(--accent); }

/* ====== Comment on fonctionne — filets éditoriaux ====== */
.fonctionnement { max-width: 940px; }
.principe {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1.5px solid var(--rule);
}
.fonctionnement .principe:last-of-type { border-bottom: 1.5px solid var(--rule); }
.dark-mode .principe { border-color: var(--rule-dark); }
.principe h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.principe p { margin: 0; font-size: var(--fs-body-l); line-height: 1.6; color: var(--fg-soft); max-width: 62ch; }
.principe p a { color: var(--fg); }
.principe p strong { color: var(--fg); }

/* ====== Trois façons d'être membre ====== */
.membres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.membre-type {
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  padding: var(--space-5);
  display: grid;
  align-content: start;
  gap: 10px;
}
.membre-type--vedette { border-color: var(--accent); }
.membre-type h3 { margin: 0; font-size: 22px; }
.membre-type .qui {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.membre-type--vedette .qui { color: var(--accent); }
.membre-type p { margin: 0; font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; color: var(--fg-soft); }
.membre-type p a { color: var(--fg); }

/* ====== Avantages — liste en filets ====== */
.avantages { max-width: 940px; }
.avantages ul { list-style: none; margin: 0; padding: 0; }

/* puce en absolu : un li en grid éclaterait le texte qui suit le strong
   (nœud anonyme relégué dans la colonne étroite, un mot par ligne) */
.avantages li {
  position: relative;
  padding: var(--space-4) 0 var(--space-4) 34px;
  border-top: 1.5px solid var(--rule);
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 76ch;
}
.avantages li:last-child { border-bottom: 1.5px solid var(--rule); }
.dark-mode .avantages li { border-color: var(--rule-dark); }
.avantages li::before {
  content: "●";
  position: absolute;
  left: 6px;
  top: calc(var(--space-4) + 7px);
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}
.avantages li strong { color: var(--fg); }

/* ====== Conditions — cadre au trait ====== */
.conditions { max-width: 720px; margin: 0 auto; }
.conditions .fenetre__corps { padding: clamp(24px, 3vw, 40px); }
.conditions ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.conditions li { font-size: var(--fs-body-l); line-height: 1.55; color: var(--fg-soft); }
.conditions li strong { color: var(--fg); }
.fenetre {
  border: var(--border-w) solid var(--border);
  background: var(--surface);
}
.fenetre__barre {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1.5px solid var(--border-soft);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fenetre__barre .pastilles { display: flex; gap: 5px; }
.fenetre__barre .pastilles i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); }

/* ====== Postes ouverts — module Dropboard ======

   Le module arrive dans une racine fantôme, avec sa propre feuille : `all:
   initial` sur l'hôte coupe tout héritage, et sa palette est écrite en clair
   dans des classes utilitaires, sans une seule variable à reprendre. La page ne
   peut donc pas le repeindre depuis l'extérieur.

   On lui donne son fond plutôt que de le combattre : une dalle papier dans les
   deux modes d'affichage, bordée comme les autres dalles du site. Le mode
   sombre garde ainsi ses contrastes, et la prochaine mise à jour de Dropboard
   ne casse rien ici. */
.postes .postes-module {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border: var(--border-w) solid var(--border);
  padding: clamp(20px, 3vw, 36px);
}

.postes .module-attente {
  max-width: 720px;
  margin: 0 auto;
  border: 1.5px dashed var(--rule-strong);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  font-family: var(--font-sans);
  color: var(--muted);
}
.dark-mode .postes .module-attente { border-color: var(--rule-dark-strong); }
.postes .module-attente strong { color: var(--fg-soft); font-size: var(--fs-body); }
.postes .module-attente span { font-size: 16px; max-width: 48ch; }
.postes .band__head, .conditions-titre { text-align: center; }
.postes .band__head p { margin: 0 auto; }

/* Porte de côté : les curieuses et curieux */
.porte-cote {
  margin: var(--space-5) auto 0;
  max-width: 720px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--fg-soft);
}
.porte-cote a { color: var(--fg); }

/* ====== Motion (D-058) ====== */
html.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Entrée orchestrée du hero */
html.js .hero__inner > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js .hero__inner > :nth-child(2) { transition-delay: .12s; }
html.js .hero--go .hero__inner > * { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .brand-col { grid-column: 1 / -1; }
  .site-footer .blocs { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .membres { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .principe { grid-template-columns: 1fr; gap: var(--space-2); }
  .site-footer .top { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .site-footer .col-contact { grid-column: 1 / -1; }
  .site-header { padding: var(--space-2) var(--space-3); gap: var(--space-2) var(--space-3); margin-bottom: var(--space-5); }
  .site-header .logo-img { height: 20px; }
  .site-header__actions .btn { display: none; }
}
