/* Pages « Rejoins l'équipe » et formulaires de candidature, chargées après aventure.css */

html body.aventure.aventure .eq {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: 108px auto 64px;
  flex: 1;
  color: var(--texte-papier);
  text-align: left;
}
html body.aventure .eq [hidden] { display: none; }
html body.aventure .eq a:not([class]) { color: var(--ice); }

/* En-tête */
html body.aventure .eq-hero {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--cadre-bord);
  border-radius: 24px;
  color: #e8f1ff;
  background:
    radial-gradient(120% 160% at 90% -20%, rgb(255 201 59 / .2), transparent 55%),
    radial-gradient(120% 180% at -10% 120%, rgb(88 101 242 / .34), transparent 55%),
    linear-gradient(135deg, #232a52 0%, #3a2a70 55%, #8c3f86 100%);
  box-shadow: var(--cadre-ombre);
}
html body.aventure .eq-hero h1 {
  max-width: 18em;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  text-shadow: 0 3px 0 rgb(20 16 46 / .35);
}
html body.aventure .eq-hero p { max-width: 640px; margin: 0; color: #e8f1ff; font-size: 1.02rem; line-height: 1.5; }
html body.aventure .eq-hero .eq-retour { color: #ffd04a; font: 400 .95rem/1.2 var(--bd); text-decoration: none; }
html body.aventure .eq-hero .eq-retour:hover { text-decoration: underline; }
html body.aventure .eq-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
html body.aventure .eq-hero-lien { color: #fff; font: 400 1rem/1.2 var(--bd); text-decoration: underline; text-underline-offset: 3px; }

/* Pastille d'état */
.eq-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
  background: #5b6475;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.3;
}
.eq-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eq-badge[data-etat="ouvert"] { color: #04291b; background: #4ff0b0; }
.eq-badge[data-etat="attente"] { color: #33230a; background: #ffd04a; }

/* Titres de section */
html body.aventure .eq-section { display: grid; gap: 16px; scroll-margin-top: 96px; }
html body.aventure .eq-section > header { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--cadre-bord); border-radius: 16px; background: var(--papier); box-shadow: var(--cadre-ombre-douce); }
html body.aventure .eq-section h2 {
  margin: 0;
  color: var(--encre-texte);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}
html body.aventure .eq-section > header p { margin: 0; color: var(--doux-papier); font-size: .95rem; line-height: 1.45; }

/* Cartes de poste */
html body.aventure .eq-postes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html body.aventure .eq-poste {
  --teinte: #1a90f2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--cadre-bord);
  border-top: 4px solid var(--teinte);
  border-radius: 18px;
  background: var(--papier);
  box-shadow: var(--cadre-ombre-douce);
}
html body.aventure .eq-poste[data-slug="moderation"] { --teinte: #e4572e; }
html body.aventure .eq-poste[data-slug="partenaire"] { --teinte: #ffb300; }
html body.aventure .eq-poste-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html body.aventure .eq-icone {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: var(--teinte, #1a90f2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35);
}
html body.aventure .eq-poste h3 { margin: 0; color: var(--encre-texte); font: 400 1.4rem/1.15 var(--bd); }
html body.aventure .eq-poste-pour { margin: -6px 0 0; color: var(--doux-papier); font-size: .84rem; }
html body.aventure .eq-poste-desc { margin: 0; font-size: .94rem; line-height: 1.5; }
html body.aventure .eq-poste-suivi { margin: 0; color: var(--ice); font-size: .86rem; font-weight: 600; }
html body.aventure .eq-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 18px;
  border: 0;
  border-radius: 12px;
  color: #04143a;
  background: linear-gradient(180deg, #4cc6f7, #1a90f2);
  box-shadow: 0 4px 0 #0040c0;
  font: 400 1rem/1.2 var(--bd);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
html body.aventure .eq-bouton:hover { transform: translateY(-2px); }
html body.aventure .eq-bouton:active { transform: translateY(3px); box-shadow: none; }
html body.aventure .eq-bouton:disabled { opacity: .55; cursor: wait; transform: none; }
html body.aventure .eq-bouton:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
html body.aventure .eq-poste .eq-bouton { margin-top: auto; }

/* Bénévolat */
html body.aventure .eq-mention {
  margin: 0;
  padding: 11px 14px;
  border-left: 3px solid #1f9c5c;
  border-radius: 0 10px 10px 0;
  background: var(--champ);
  font-size: .9rem;
  line-height: 1.45;
}
html body.aventure .eq-mention strong { color: var(--encre-texte); }

/* Confidentialité du staff : doit se voir au premier coup d'œil */
html body.aventure .eq .eq-confidentiel {
  margin: 0;
  padding: 14px 16px;
  border: 2px solid #e4572e;
  border-left-width: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, #e4572e 16%, var(--papier));
  color: var(--encre-texte);
  font-size: .95rem;
  line-height: 1.45;
}
html body.aventure .eq .eq-confidentiel strong { display: block; margin-bottom: 3px; color: var(--encre-texte); font: 400 1.2rem/1.2 var(--bd); }

/* Frises SVG : le déroulé d'une candidature et les grades */
html body.aventure .eq-frise {
  position: relative;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid var(--cadre-bord);
  border-radius: 22px;
  background: var(--papier);
  box-shadow: var(--cadre-ombre-douce);
}
html body.aventure .eq-section.eq-frise > header { display: grid; gap: 4px; margin-bottom: 6px; padding: 0; border: 0; background: none; box-shadow: none; }
html body.aventure .eq-frise > header p { margin: 0; color: var(--doux-papier); font-size: .95rem; line-height: 1.45; }
.eq-noeud { display: block; flex: none; width: 64px; height: 64px; color: #fff; filter: drop-shadow(0 5px 8px rgb(5 8 26 / .35)); }
.eq-noeud svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Déroulé : un chemin ondulé qui relie quatre étapes */
html body.aventure .eq-chemin { position: relative; }
.eq-route { position: absolute; display: block; pointer-events: none; overflow: visible; }
.eq-route path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eq-route .eq-route-fond { stroke: var(--arete); stroke-width: 10; }
.eq-route .eq-route-trait { stroke-width: 5; }
.eq-route-h { top: 0; left: 0; width: 100%; height: 124px; }
.eq-route-v { display: none; }
html body.aventure .eq-chemin ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
html body.aventure .eq-chemin li { display: grid; justify-items: center; gap: 12px; margin: 0; padding: 0 12px; text-align: center; }
html body.aventure .eq-chemin .eq-noeud-place { display: flex; justify-content: center; height: 124px; }
html body.aventure .eq-chemin li:nth-child(even) .eq-noeud-place { align-items: flex-end; }
html body.aventure .eq-chemin .eq-etape { display: grid; gap: 5px; }
html body.aventure .eq-chemin strong { color: var(--encre-texte); font: 400 1.14rem/1.2 var(--bd); }
html body.aventure .eq-chemin .eq-etape span { color: var(--doux-papier); font-size: .9rem; line-height: 1.45; }

/* Grades : une colonne centrale, les grades de part et d'autre */
html body.aventure .eq-echelle { position: relative; }
.eq-colonne {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 30px);
  width: 60px;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.eq-colonne svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eq-colonne .eq-colonne-trait { clip-path: inset(0 -20px calc(100% - var(--avance, 100%)) -20px); }
.eq-colonne path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.eq-colonne .eq-route-fond { stroke: var(--arete); stroke-width: 10; }
.eq-colonne .eq-route-trait { stroke-width: 6; }
html body.aventure .eq-echelle ol { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
html body.aventure .eq-echelle li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  align-items: center;
  margin: 0;
}
html body.aventure .eq-echelle li + li { margin-top: -18px; }
html body.aventure .eq-echelle .eq-noeud { grid-column: 2; grid-row: 1; justify-self: center; }
html body.aventure .eq-grade {
  position: relative;
  display: grid;
  gap: 4px;
  grid-column: 1;
  grid-row: 1;
  padding: 14px 18px;
  border: 1px solid var(--cadre-bord);
  border-radius: 14px;
  background: var(--champ);
}
html body.aventure .eq-echelle li:nth-child(even) .eq-grade { grid-column: 3; }
/* Petit raccord entre la carte et son nœud */
.eq-grade::after { content: ""; position: absolute; top: calc(50% - 2px); right: -14px; width: 14px; height: 4px; background: var(--teinte); }
html body.aventure .eq-echelle li:nth-child(even) .eq-grade::after { right: auto; left: -14px; }
html body.aventure .eq-grade h3 { margin: 0; color: var(--encre-texte); font: 400 1.18rem/1.2 var(--bd); }
html body.aventure .eq-grade p { margin: 0; font-size: .91rem; line-height: 1.48; }

/* Apparition : la classe n'est posée que par le script, sans lui tout reste visible */
.eq-anime .eq-revele { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2, 1.3, .5, 1); transition-delay: calc(var(--i, 0) * 130ms); }
.eq-anime .eq-revele.eq-vu { opacity: 1; transform: none; }
.eq-anime .eq-route-h .eq-route-trait, .eq-anime .eq-route-v .eq-route-trait { clip-path: inset(-20px 100% -20px -20px); transition: clip-path 1.1s ease-out; }
.eq-anime .eq-route-v .eq-route-trait { clip-path: inset(-20px -20px 100% -20px); }
.eq-anime .eq-chemin.eq-vu .eq-route-trait { clip-path: inset(-20px); }

@media (max-width: 760px) {
  .eq-route-h { display: none; }
  .eq-route-v { display: block; top: 32px; bottom: 32px; left: 2px; width: 60px; height: calc(100% - 64px); }
  html body.aventure .eq-chemin ol { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  html body.aventure .eq-chemin li { grid-template-columns: 64px minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 0; text-align: left; }
  html body.aventure .eq-chemin .eq-noeud-place { height: auto; }
  .eq-colonne { left: 2px; }
  html body.aventure .eq-echelle li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  html body.aventure .eq-echelle li + li { margin-top: 14px; }
  html body.aventure .eq-echelle .eq-noeud { grid-column: 1; }
  html body.aventure .eq-grade,
  html body.aventure .eq-echelle li:nth-child(even) .eq-grade { grid-column: 2; }
  .eq-grade::after, html body.aventure .eq-echelle li:nth-child(even) .eq-grade::after { right: auto; left: -14px; }
}

/* Page de candidature : présentation à gauche, formulaire à droite */
html body.aventure .eq-colonnes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
html body.aventure .eq-carte {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--cadre-bord);
  border-radius: 20px;
  background: var(--papier);
  box-shadow: var(--cadre-ombre-douce);
}
html body.aventure .eq-carte h2 { margin: 0; color: var(--encre-texte); font-size: 1.45rem; line-height: 1.15; }
html body.aventure .eq-carte h3 { margin: 0 0 6px; color: var(--encre-texte); font: 400 1.08rem/1.2 var(--bd); }
html body.aventure .eq-carte p { margin: 0; line-height: 1.5; }
html body.aventure .eq-liste { display: grid; gap: 7px; margin: 0; padding-left: 20px; font-size: .94rem; line-height: 1.45; }
html body.aventure .eq-liste li { margin: 0; }
html body.aventure .eq-liste code { color: var(--ice); }

/* Accès au formulaire : connexion, liaison, suivi */
html body.aventure .eq-acces {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 16px;
  border: 1px solid var(--cadre-bord);
  border-radius: 14px;
  background: var(--champ);
}
html body.aventure .eq-acces strong { color: var(--encre-texte); font: 400 1.1rem/1.2 var(--bd); }
html body.aventure .eq-acces[data-ton="ok"] { border-color: rgb(31 156 92 / .6); }
html body.aventure .eq-acces[data-ton="non"] { border-color: rgb(228 87 46 / .6); }
html body.aventure .eq-acces code { padding: 1px 6px; border-radius: 6px; background: var(--papier-2); }
html body.aventure .eq-acces-motif { padding-left: 11px; border-left: 3px solid #e4572e; overflow-wrap: anywhere; }
html body.aventure .eq-lien-bouton { padding: 0; border: 0; background: none; color: var(--ice); font: inherit; text-decoration: underline; cursor: pointer; }

/* Formulaire */
html body.aventure .eq-form { display: grid; gap: 16px; }
html body.aventure .eq-form-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html body.aventure .eq-champ { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--encre-texte); font-weight: 600; }
html body.aventure .eq-champ legend { margin-bottom: 6px; padding: 0; }
html body.aventure .eq-aide { color: var(--doux-papier); font-size: .82rem; font-weight: 400; line-height: 1.35; }
html body.aventure .eq-form input:not([type="checkbox"]),
html body.aventure .eq-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--arete);
  border-radius: 11px;
  color: var(--encre-texte);
  background: var(--champ);
  font: inherit;
  font-weight: 400;
}
html body.aventure .eq-form textarea { min-height: 96px; resize: vertical; }
html body.aventure .eq-form input:focus-visible,
html body.aventure .eq-form textarea:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--or); }
html body.aventure .eq-form ::placeholder { color: var(--indice); }
html body.aventure .eq-coches { display: flex; flex-wrap: wrap; gap: 8px; }
html body.aventure .eq-coche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--arete);
  border-radius: 10px;
  background: var(--champ);
  color: var(--encre-texte);
  font-weight: 400;
  cursor: pointer;
}
html body.aventure .eq-accord { display: flex; align-items: flex-start; gap: 10px; color: var(--encre-texte); font-size: .94rem; font-weight: 400; line-height: 1.4; cursor: pointer; }
html body.aventure .eq-accord input { flex: none; margin-top: 3px; }
html body.aventure .eq-compteur { justify-self: end; color: var(--doux-papier); font-size: .8rem; font-weight: 400; }
html body.aventure .eq-erreur { margin: 0; padding: 10px 13px; border: 2px solid #b23a14; border-radius: 10px; color: #8f2d0f; background: #ffe3d6; font-weight: 600; }

/* Responsive */
@media (max-width: 960px) {
  html body.aventure.aventure .eq { margin-top: 92px; }
  html body.aventure .eq-postes,
  html body.aventure .eq-colonnes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  html body.aventure .eq-form-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html body.aventure .eq-bouton { transition: none; }
}
