/* =============================================================================
   Grandir Ensemble — feuille de style principale (design « Le Fil », 2026)
   -----------------------------------------------------------------------------
   Esprit : une appli mobile chaleureuse. Grandes affiches, couleurs franches par
   type d'opportunité, icônes, mouvements doux. Mobile d'abord, léger en 3G.
   Signature : la bande de 7 couleurs (une par type d'opportunité) et le
   « calendrier » de date limite.
   Les noms de variables historiques (--ink, --blue, --step-*…) sont conservés :
   l'administration (admin.css) s'appuie dessus.
   ========================================================================== */

/* --- Polices auto-hébergées (licence OFL, voir fonts/OFL-polices.txt) ------- */
@font-face { font-family: "Bricolage GE"; src: url("../fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage GE"; src: url("../fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree GE"; src: url("../fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree GE"; src: url("../fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree GE"; src: url("../fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* --- Jetons ------------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Couleurs de base */
  --ink: #0f1222;
  --ink-soft: #2a2f45;
  --paper: #ffffff;
  --canvas: #f7f5f0;          /* fond chaud du site */
  --canvas-deep: #efebe2;
  --muted: #545a6e;           /* 6,6:1 sur blanc */
  --line: #e5e1d6;
  --rule: var(--line);

  /* Marque */
  --blue: #1640d6;
  --blue-strong: #0e2d9e;
  --blue-wash: #eaf0ff;
  --on-blue: #ffffff;
  --orange: #ff6a2b;          /* accent : urgence, mise en avant (texte noir dessus) */
  --orange-ink: #b93c0a;      /* orange pour du texte sur fond clair (4,9:1) */
  --orange-wash: #fff0e8;
  --sun: #ffc233;
  --sun-wash: #fff6dc;
  --mint: #0e9f6e;
  --mint-ink: #087a54;
  --mint-wash: #e3f6ee;
  --rose: #e5396b;
  --violet: #6b4eff;
  --teal: #0b93a6;
  --danger: #c3282f;
  --band-bg: var(--blue);

  /* Couleur par type d'opportunité */
  --t-bourses: var(--blue);
  --t-formations: var(--mint);
  --t-emplois: var(--orange);
  --t-stages: var(--sun);
  --t-concours: var(--rose);
  --t-leadership: var(--violet);
  --t-entrepreneuriat: var(--teal);

  /* Typographie */
  --font-display: "Bricolage GE", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree GE", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.81rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.38rem);
  --step-2: clamp(1.4rem, 1.22rem + 0.9vw, 1.95rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);
  --step-4: clamp(2.15rem, 1.55rem + 3vw, 4rem);
  --step-5: clamp(2.5rem, 1.6rem + 4.6vw, 5.4rem);

  /* Espaces et formes */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --wrap: 78rem;
  --space-xs: 0.5rem;
  --space-s: clamp(0.75rem, 0.68rem + 0.35vw, 1rem);
  --space-m: clamp(1.25rem, 1.1rem + 0.8vw, 1.9rem);
  --space-l: clamp(2rem, 1.6rem + 2vw, 3.6rem);
  --space-xl: clamp(3rem, 2.2rem + 4vw, 6.5rem);
  --r-s: 10px;
  --radius: 14px;
  --r-l: 22px;
  --pill: 999px;
  --tap: 2.75rem; /* 44 px minimum */
  --header-h: 4.25rem;
  --tabbar-h: 4.25rem;
  --shadow: 0 1px 2px rgb(15 18 34 / 6%), 0 10px 24px -14px rgb(15 18 34 / 22%);
  --shadow-l: 0 2px 4px rgb(15 18 34 / 6%), 0 28px 50px -24px rgb(15 18 34 / 38%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* --- Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-strong); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-m) 0; }
strong { font-weight: 700; }
::selection { background: var(--sun); color: var(--ink); }
main { display: block; min-height: 50vh; }
[hidden] { display: none !important; }
main:focus { outline: none; }

.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* --- Utilitaires ------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.stack > * + * { margin-top: var(--space-s); }
.cluster { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
.split { display: grid; gap: var(--space-l); }
.two-cols { display: grid; gap: var(--space-l); }
.page-body { padding-block: var(--space-m) var(--space-xl); }
.section { padding-block: var(--space-l); }
.section--tint { background: var(--paper); }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.mt-m { margin-top: var(--space-m); }
.mb-0 { margin-bottom: 0; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: var(--r-s); }
.skip:focus { top: 1rem; color: #fff; }
.sep { list-style: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 40em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em;
  color: var(--blue); margin: 0 0 0.6rem;
}
.note, .hint { font-size: var(--step--1); color: var(--muted); }
.hint { margin: 0.15rem 0 0.4rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; text-decoration: none; }
.link-arrow .i { transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* La bande de 7 couleurs : signature visuelle (un segment par type d'opportunité) */
.rainbow, .site-footer::before {
  display: block; height: 6px; border-radius: var(--pill);
  background: linear-gradient(90deg,
    var(--t-bourses) 0 14.28%, var(--t-formations) 0 28.56%, var(--t-emplois) 0 42.84%,
    var(--t-stages) 0 57.12%, var(--t-concours) 0 71.4%, var(--t-leadership) 0 85.68%, var(--t-entrepreneuriat) 0);
}

/* --- Boutons ----------------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--tap); padding: 0.65rem 1.25rem;
  border: 2px solid var(--bd); border-radius: var(--pill);
  background: var(--bg); color: var(--fg);
  font: 700 var(--step-0)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgb(15 18 34 / 55%); }
.btn:active, .btn.is-pressed { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn--blue { --bg: var(--blue); --bd: var(--blue); }
.btn--blue:hover { --bg: var(--blue-strong); --bd: var(--blue-strong); }
.btn--accent { --bg: var(--orange); --bd: var(--orange); --fg: var(--ink); }
.btn--accent:hover { --bg: #ff7e45; --bd: #ff7e45; }
.btn--ghost { --bg: var(--paper); --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--blue); --bd: #fff; }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn--wide { flex: 1 1 100%; }
.btn--icon { padding: 0; width: var(--tap); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-link {
  background: none; border: 0; padding: 0.2rem 0; min-height: 2rem; cursor: pointer;
  color: var(--blue); font: 600 var(--step--1)/1.3 var(--font-body);
  display: inline-flex; align-items: center; gap: 0.35em; text-decoration: underline; text-underline-offset: 0.2em;
}
.btn-link:hover { color: var(--blue-strong); }

/* --- Formulaires ------------------------------------------------------------- */
.form { display: grid; gap: var(--space-s); }
.form--wide { max-width: 50rem; }
.field { display: grid; gap: 0.3rem; min-width: 0; }
label, legend { font-weight: 700; font-size: var(--step--1); }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"],
input[type="date"], input[type="datetime-local"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.95rem;
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
  font-size: max(16px, var(--step-0)); /* évite le zoom automatique sur iPhone */
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230f1222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 1.1rem;
}
input:hover, select:hover, textarea:hover { border-color: #cfc9ba; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(22 64 214 / 15%); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-weight: 600; font-size: var(--step--1); margin: 0; }
.form-row { display: grid; gap: var(--space-s); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 0.4rem; }
fieldset { border: 2px solid var(--line); border-radius: var(--radius); padding: var(--space-s); margin: 0; min-width: 0; }
legend { padding-inline: 0.4rem; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; font-size: var(--step-0); cursor: pointer; padding: 0.35rem 0; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; accent-color: var(--blue); flex: none; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.2rem 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inline-form input { flex: 1 1 14rem; }
.inline-form .note { flex-basis: 100%; margin: 0.2rem 0 0; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

/* --- Messages ---------------------------------------------------------------- */
.flash {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin: var(--space-s) 0; padding: 0.9rem 1.1rem; border-radius: var(--radius);
  background: var(--blue-wash); border-left: 5px solid var(--blue);
  animation: drop-in 0.45s var(--ease) both;
}
.flash p { margin: 0; }
.flash--succes { background: var(--mint-wash); border-color: var(--mint); }
.flash--erreur { background: #fde8e9; border-color: var(--danger); }
.flash--info { background: var(--sun-wash); border-color: var(--sun); }
.notice-box { color: var(--ink); padding: 1rem 1.2rem; background: var(--sun-wash); border-radius: var(--radius); border: 2px solid var(--sun); margin-bottom: var(--space-m); }
.notice-box p:last-child, .notice-box form { margin: 0; }
.badge {
  display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; padding: 0 0.35rem;
  border-radius: var(--pill); background: var(--orange); color: var(--ink); font-size: 0.78rem; font-weight: 700;
}
.empty {
  text-align: center; padding: var(--space-l) var(--space-m);
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r-l);
}
.empty .cluster { justify-content: center; }

/* --- Bandeau de confiance + en-tête ------------------------------------------ */
.trustbar { background: var(--ink); color: #fff; font-size: var(--step--1); }
.trustbar .wrap { display: flex; gap: 0.4rem 1rem; align-items: center; justify-content: center; flex-wrap: wrap; padding-block: 0.45rem; text-align: center; }
.trustbar p { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; }
.trustbar .i { color: var(--sun); }
.trustbar a { color: var(--sun); font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / 97%); border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgb(15 18 34 / 45%); }
.site-header > .wrap { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.4rem; height: 2.4rem; transition: transform 0.4s var(--ease); }
.brand:hover svg { transform: rotate(-6deg) scale(1.05); }
.brand-name { display: grid; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 0.95; letter-spacing: -0.02em; }
.brand-name span + span { color: var(--blue); }
.logo-ink { fill: var(--ink); }
.logo-blue { fill: var(--blue); }
.logo-gap { fill: #fff; }
.logo-sun { fill: var(--orange); }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: var(--tap); padding: 0.4rem 0.9rem;
  border-radius: var(--pill); background: var(--canvas); color: var(--ink); font-weight: 700; text-decoration: none;
}
.menu-toggle:hover { color: var(--ink); background: var(--canvas-deep); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l);
  padding: 0.75rem var(--gutter) 1.25rem; animation: drop-in 0.3s var(--ease) both;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-nav li a {
  display: flex; align-items: center; gap: 0.7rem; min-height: var(--tap); padding: 0.55rem 0.8rem;
  border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; position: relative;
}
.site-nav li a .i { color: var(--muted); }
.site-nav li a:hover { background: var(--canvas); }
.site-nav li a[aria-current="page"] { background: var(--blue-wash); color: var(--blue); }
.site-nav li a[aria-current="page"] .i { color: var(--blue); }
.nav-account { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.nav-account .btn { flex: 1 1 auto; }

/* Barre d'onglets en bas d'écran (téléphone) */
.tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgb(15 18 34 / 50%);
}
.tabbar a {
  display: grid; place-items: center; align-content: center; gap: 0.15rem;
  color: var(--muted); text-decoration: none; font-size: 0.74rem; font-weight: 700; position: relative;
}
.tabbar a .i { width: 1.45rem; height: 1.45rem; transition: transform 0.25s var(--ease); }
.tabbar a[aria-current="page"] { color: var(--blue); }
.tabbar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 2.2rem; height: 3px; border-radius: 0 0 4px 4px; background: var(--blue);
}
.tabbar a:active .i { transform: scale(0.88); }
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

/* --- Pied de page ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #c9ccd8; margin-top: var(--space-l); position: relative; }
.site-footer::before { content: ""; border-radius: 0; height: 6px; }
.site-footer .wrap { padding-block: var(--space-l) var(--space-m); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.site-footer h2 { font-size: var(--step-0); color: #fff; letter-spacing: 0; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-grid { display: grid; gap: var(--space-m); }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: #fff; line-height: 1; display: flex; gap: 0.6rem; align-items: center; }
.footer-brand svg { width: 2.6rem; height: 2.6rem; }
.footer-brand .logo-gap { fill: var(--ink); }
.footer-brand .logo-ink { fill: #fff; }
.site-footer .inline-form input { background: var(--ink-soft); border-color: #3a405a; color: #fff; }
.site-footer .inline-form input::placeholder { color: #9aa0b4; }
.site-footer .btn { --bg: var(--sun); --bd: var(--sun); --fg: var(--ink); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--ink-soft); }
.footer-social a:hover { background: var(--blue); text-decoration: none; color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: var(--space-m); padding-top: var(--space-s); border-top: 1px solid #2c3148; font-size: var(--step--1); }
.footer-bottom p { margin: 0; }

/* --- Calendrier de date limite (anciennement « tampon ») ---------------------- */
.stamp {
  --c: var(--blue);
  display: inline-grid; justify-items: center; align-content: start; flex: none;
  width: 4.6rem; overflow: hidden; text-align: center;
  background: #fff; border-radius: 14px; border: 2px solid var(--c);
  box-shadow: 0 6px 14px -10px rgb(15 18 34 / 50%);
  font-family: var(--font-body); line-height: 1;
}
.stamp__label {
  width: 100%; padding: 0.3rem 0.2rem; background: var(--c); color: #fff;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.stamp__main { padding: 0.35rem 0.25rem 0.1rem; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.03em; white-space: nowrap; }
.stamp__date { padding: 0 0.2rem 0.4rem; font-size: 0.68rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stamp--urgent { --c: var(--orange); }
.stamp--urgent .stamp__label { color: var(--ink); }
.stamp--continu { --c: var(--mint); }
.stamp--continu .stamp__main { font-size: 0.95rem; padding-top: 0.55rem; }
.stamp--closed { --c: #8a8fa3; }
.stamp--closed .stamp__main { font-size: 1rem; padding-top: 0.55rem; color: var(--muted); }
.stamp--lg { width: 7.5rem; border-width: 3px; border-radius: 20px; }
.stamp--lg .stamp__label { font-size: 0.72rem; padding: 0.45rem 0.3rem; }
.stamp--lg .stamp__main { font-size: 2.6rem; padding-top: 0.55rem; }
.stamp--lg .stamp__date { font-size: 0.85rem; padding-bottom: 0.6rem; }
.stamp--lg.stamp--continu .stamp__main, .stamp--lg.stamp--closed .stamp__main { font-size: 1.35rem; padding-top: 0.8rem; }
.stamp--animate { animation: stamp-in 0.7s var(--ease) both 0.15s; }
.stamp--animate.stamp--urgent { animation: stamp-in 0.7s var(--ease) both 0.15s, wiggle 2.8s ease-in-out 1.2s infinite; }

/* --- Couleurs de type (cartes, tuiles, stories) ------------------------------ */
.t-bourses { --c: var(--t-bourses); --c-fg: #fff; }
.t-formations { --c: var(--t-formations); --c-fg: #fff; }
.t-emplois { --c: var(--t-emplois); --c-fg: var(--ink); }
.t-stages { --c: var(--t-stages); --c-fg: var(--ink); }
.t-concours { --c: var(--t-concours); --c-fg: #fff; }
.t-leadership { --c: var(--t-leadership); --c-fg: #fff; }
.t-entrepreneuriat { --c: var(--t-entrepreneuriat); --c-fg: #fff; }
.t-autre { --c: var(--ink); --c-fg: #fff; }

/* Illustration de remplacement quand une fiche n'a pas d'affiche */
.art {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background-color: var(--c, var(--blue)); color: var(--c-fg, #fff);
  background-image:
    radial-gradient(circle at 18% 22%, rgb(255 255 255 / 22%) 0 18%, transparent 18.5%),
    radial-gradient(circle at 88% 92%, rgb(0 0 0 / 12%) 0 30%, transparent 30.5%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 7%) 0 2px, transparent 2px 14px);
}
.art__icon { width: 34%; height: auto; max-width: 7rem; opacity: 0.95; transform: rotate(-8deg); }
.art__org {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.75rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 1.1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- Cartes d'opportunité ---------------------------------------------------- */
.notices {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}
.notice {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--paper); border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgb(15 18 34 / 6%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.notice:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.notice:focus-within { box-shadow: var(--shadow-l), 0 0 0 3px var(--orange); }
.notice__media { position: relative; aspect-ratio: 16 / 9; background: var(--canvas-deep); overflow: hidden; }
.notice__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.notice:hover .notice__media img, .notice:hover .art__icon { transform: scale(1.06); }
.notice:hover .art__icon { transform: rotate(0) scale(1.08); }
.art__icon { transition: transform 0.6s var(--ease); }
.notice__type {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.35rem; max-width: calc(100% - 6.5rem);
  padding: 0.3rem 0.65rem 0.3rem 0.4rem; border-radius: var(--pill);
  background: #fff; color: var(--ink); font-size: 0.78rem; font-weight: 700; box-shadow: 0 4px 10px -6px rgb(15 18 34 / 55%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice__type .i { width: 1.35rem; height: 1.35rem; padding: 0.2rem; border-radius: 50%; background: var(--c); color: var(--c-fg); flex: none; }
.notice__when {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.6rem; border-radius: var(--pill);
  background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.notice__when.is-urgent { background: var(--orange); color: var(--ink); animation: pulse 2.2s ease-in-out infinite; }
.notice__when.is-continu { background: var(--mint); }
.notice__when.is-closed { background: #6b7086; }
.notice__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.notice__where { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.notice__title { font-size: var(--step-1); line-height: 1.22; margin: 0; letter-spacing: -0.01em; }
.notice__title a { color: var(--ink); text-decoration: none; }
.notice__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.notice__title a:hover { color: var(--blue); }
.notice__resume { margin: 0; color: var(--muted); font-size: var(--step--1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice__foot { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed var(--line); font-size: var(--step--1); }
.notice__org { font-weight: 700; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.notice__go {
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none;
  background: var(--canvas); color: var(--ink); transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease);
}
.notice:hover .notice__go { background: var(--blue); color: #fff; transform: rotate(-35deg); }
.notice__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.notice.is-closed .notice__media { filter: grayscale(1); opacity: 0.75; }
.notice.is-closed .notice__title a { color: var(--muted); }
.notice--wide { grid-column: 1 / -1; }

/* Étiquettes */
.tag {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.28rem 0.7rem; border-radius: var(--pill);
  background: var(--canvas); color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.tag--solid { background: var(--ink); color: #fff; }
.tag--blue { background: var(--blue-wash); color: var(--blue); }
.tag--fund { background: var(--mint-wash); color: var(--mint-ink); }
.tag--sun { background: var(--sun-wash); color: #7a5300; }
.status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: var(--pill); font-weight: 700; font-size: 0.78rem; background: var(--canvas); color: var(--ink); }
.status--envoyee { background: var(--blue-wash); color: var(--blue); }
.status--acceptee { background: var(--mint-wash); color: var(--mint-ink); }
.status--refusee { background: #fde8e9; color: var(--danger); }
.status--a_preparer { background: var(--sun-wash); color: #7a5300; }

/* --- Accueil : héros ---------------------------------------------------------- */
.hero { position: relative; padding-block: var(--space-l) var(--space-xl); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -18rem;
  border-radius: 50%; background: var(--sun-wash);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 22rem; height: 22rem; left: -9rem; bottom: -6rem;
  border-radius: 50%; background: var(--blue-wash);
}
.hero__grid { display: grid; gap: var(--space-l); align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem;
  padding: 0.35rem 0.9rem 0.35rem 0.4rem; border-radius: var(--pill); background: #fff; box-shadow: var(--shadow);
  font-size: var(--step--1); font-weight: 700;
}
.hero__pill .dot { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mint); color: #fff; }
.hero__pill .dot .i { width: 1rem; height: 1rem; }
.hero__title { font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 0.35em; }
.hero__title .hl { position: relative; white-space: nowrap; color: var(--blue); }
.hero__title .hl::after {
  content: ""; position: absolute; z-index: -1; left: -0.04em; right: -0.04em; bottom: 0.04em; height: 0.3em;
  background: var(--sun); border-radius: 0.2em; transform-origin: left; animation: underline 0.9s var(--ease) both 0.4s;
}
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 34em; }
.searchbar {
  display: grid; gap: 0.5rem; margin-top: var(--space-m); padding: 0.5rem;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-l);
}
.searchbar__field { position: relative; }
.searchbar__field .i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbar input, .searchbar select { border-color: transparent; background-color: var(--canvas); min-height: 3.2rem; }
.searchbar input { padding-left: 2.8rem; }
.searchbar .btn { min-height: 3.2rem; }
.quicklinks { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quicklinks a {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.4rem 0.9rem;
  border-radius: var(--pill); background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  font-size: var(--step--1); font-weight: 700; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease);
}
.quicklinks a .i { color: var(--blue); }
.quicklinks a:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: var(--space-m) 0 0; padding: 0; }
.hero__stats div { display: grid; }
.hero__stats dt { order: 2; font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.hero__stats dd { order: 1; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.hero__stats div:nth-child(1) dd { color: var(--blue); }
.hero__stats div:nth-child(2) dd { color: var(--orange-ink); }
.hero__stats div:nth-child(3) dd { color: var(--mint-ink); }

/* Composition visuelle du héros : affiche + cartes flottantes */
.hero-visual { position: relative; min-height: 22rem; max-width: 34rem; margin-inline: auto; width: 100%; }
.hero-visual__poster {
  position: relative; display: block; margin: 1.5rem 0 0 auto; width: 88%;
  border-radius: var(--r-l); overflow: hidden; background: #fff; box-shadow: var(--shadow-l);
  transform: rotate(2.5deg); transition: transform 0.5s var(--ease); text-decoration: none; color: var(--ink);
}
.hero-visual__poster:hover { transform: rotate(0) scale(1.02); color: var(--ink); }
.hero-visual__poster .notice__media { aspect-ratio: 16 / 10; }
.hero-visual__caption { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; }
.hero-visual__caption strong { font-family: var(--font-display); font-size: var(--step-0); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-visual__caption .stamp { width: 3.8rem; }
.hero-visual__caption .stamp__main { font-size: 1.15rem; }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 0.65rem;
  max-width: 16rem; padding: 0.7rem 0.9rem; border-radius: 16px; background: #fff; box-shadow: var(--shadow-l);
  font-size: var(--step--1); line-height: 1.25; text-decoration: none; color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.float-card:hover { color: var(--ink); }
.float-card .bubble { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; flex: none; background: var(--c, var(--blue)); color: var(--c-fg, #fff); }
.float-card small { display: block; color: var(--muted); font-weight: 600; }
.float-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.float-card--a { left: -0.5rem; top: 3.5rem; animation-delay: -1s; }
.float-card--b { right: -0.5rem; bottom: -1.2rem; animation-delay: -3.5s; }
.float-card--c { right: 0.5rem; top: -0.4rem; padding: 0.55rem 0.8rem; animation-delay: -2s; }
.avatars { display: flex; }
.avatars span { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid #fff; margin-left: -0.45rem; background: var(--c); }
.avatars span:first-child { margin-left: 0; }

/* --- Accueil : « stories » des dates limites ---------------------------------- */
.rail-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-s); }
.rail-head h2 { margin: 0; }
.rail-head p { margin: 0.2rem 0 0; color: var(--muted); }
.rail-nav { display: none; gap: 0.4rem; }
.rail-nav button {
  display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.rail-nav button:hover { border-color: var(--ink); transform: scale(1.05); }
.stories {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0.4rem var(--gutter) 1rem;
  position: relative; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 6.6rem; scroll-snap-align: start; }
.story a { position: relative; display: grid; justify-items: center; gap: 0.4rem; text-align: center; text-decoration: none; color: var(--ink); }
.story__ring {
  --p: 100; position: relative; display: grid; place-items: center; width: 5.6rem; height: 5.6rem; border-radius: 50%;
  background: conic-gradient(var(--ring, var(--c)) calc(var(--p) * 1%), var(--canvas-deep) 0);
  transition: transform 0.35s var(--ease);
}
.story.is-urgent .story__ring { --ring: var(--orange); }
.story a:hover .story__ring { transform: scale(1.07) rotate(-6deg); }
.story__inner { display: grid; place-items: center; width: calc(100% - 9px); height: calc(100% - 9px); border-radius: 50%; overflow: hidden; border: 3px solid var(--canvas); background: var(--c); color: var(--c-fg); }
.story__inner img { width: 100%; height: 100%; object-fit: cover; }
.story__inner .i { width: 2rem; height: 2rem; }
.story__days {
  position: absolute; bottom: -0.45rem; left: 50%; transform: translateX(-50%);
  padding: 0.12rem 0.5rem; border-radius: var(--pill); background: var(--ink); color: #fff;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap; border: 2px solid var(--canvas);
}
.story.is-urgent .story__days { background: var(--orange); color: var(--ink); }
.story__title { font-size: 0.8rem; font-weight: 700; line-height: 1.2; margin-top: 0.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story a:hover .story__title { color: var(--blue); }

/* --- Accueil : tuiles par type (grille « bento ») ---------------------------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
.tile a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem;
  min-height: 9rem; height: 100%; padding: 1.1rem; border-radius: var(--r-l); overflow: hidden;
  background: var(--c); color: var(--c-fg); text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile a::after {
  content: ""; position: absolute; right: -2.5rem; bottom: -2.5rem; width: 8rem; height: 8rem; border-radius: 50%;
  background: rgb(255 255 255 / 16%); transition: transform 0.5s var(--ease);
}
.tile a:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-l); color: var(--c-fg); }
.tile a:hover::after { transform: scale(1.35); }
.tile__icon { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: rgb(255 255 255 / 22%); }
.tile__icon .i { width: 1.6rem; height: 1.6rem; }
.tile__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.1; position: relative; z-index: 1; }
.tile__count { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; opacity: 0.9; margin-top: 0.25rem; }
.tile--all a { background: var(--ink); color: #fff; }
.tile--all a:hover { color: #fff; }

/* --- Sections et en-têtes de section ------------------------------------------- */
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.6rem 1.5rem; margin-bottom: var(--space-m); }
.section__head h2 { margin: 0; }
.section__intro { margin: 0.35rem 0 0; color: var(--muted); max-width: 36em; }
.kicker { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: var(--step--1); color: var(--orange-ink); margin-bottom: 0.4rem; }

/* Mise en avant (fiche à la une dans la liste d'accueil) */
.feature {
  display: grid; overflow: hidden; margin-bottom: var(--space-m);
  background: var(--ink); color: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-l); position: relative;
}
.feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__body { display: flex; flex-direction: column; gap: 0.8rem; padding: var(--space-m); }
.feature .eyebrow { color: var(--sun); }
.feature__title { font-size: var(--step-3); margin: 0; }
.feature__title a { color: #fff; text-decoration: none; }
.feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature__title a:hover { color: var(--sun); }
.feature__resume { color: #d4d7e2; margin: 0; }
.feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: auto; }
.feature .tag { background: rgb(255 255 255 / 12%); color: #fff; }
.feature .btn { position: relative; z-index: 2; }

/* Comment ça marche */
.steps { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: var(--space-l) var(--space-m); position: relative; overflow: hidden; }
.steps h2 { color: #fff; }
.steps .section__intro { color: #c9ccd8; }
.steps__list { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; gap: 1.6rem; counter-reset: s; position: relative; }
.steps__list li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; align-items: start; }
.steps__num {
  grid-row: span 2; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 18px;
  background: var(--c); color: var(--c-fg); position: relative; z-index: 1;
}
.steps__num .i { width: 1.6rem; height: 1.6rem; }
.steps__list h3 { margin: 0.2rem 0 0; color: #fff; font-size: var(--step-1); }
.steps__list p { margin: 0; color: #c9ccd8; }
.steps__trust {
  display: flex; gap: 0.9rem; align-items: flex-start; margin-top: var(--space-m); padding: 1rem 1.1rem;
  background: rgb(255 255 255 / 8%); border-radius: var(--radius); border: 1px solid rgb(255 255 255 / 14%);
}
.steps__trust .i { width: 2rem; height: 2rem; color: var(--sun); }
.steps__trust p { margin: 0; color: #e4e6ee; }
.steps a { color: var(--sun); }
.steps a:hover { color: #fff; }

/* Alertes : panneau bleu + téléphone */
.alerts {
  display: grid; gap: var(--space-l); align-items: center; overflow: hidden; position: relative;
  padding: var(--space-l) var(--space-m); border-radius: var(--r-l); background: var(--blue); color: #fff;
}
.alerts::before { content: ""; position: absolute; width: 30rem; height: 30rem; border-radius: 50%; right: -10rem; top: -12rem; background: rgb(255 255 255 / 7%); }
.alerts h2 { color: #fff; font-size: var(--step-4); }
.alerts p { color: #dfe6ff; }
.alerts .inline-form input { border-color: transparent; }
.alerts .note { color: #c8d4ff; }
.alerts > div > p strong { color: #fff; }
.phone {
  position: relative; justify-self: center; width: min(100%, 18.5rem); aspect-ratio: 9 / 17; padding: 0.6rem;
  border-radius: 2.4rem; background: var(--ink); box-shadow: 0 30px 60px -25px rgb(0 0 0 / 60%);
}
.phone__screen { height: 100%; border-radius: 1.9rem; background: var(--canvas); padding: 2.4rem 0.75rem 0.75rem; display: grid; align-content: start; gap: 0.6rem; overflow: hidden; position: relative; }
.phone__screen::before { content: ""; position: absolute; top: 0.7rem; left: 50%; width: 5rem; height: 1.2rem; border-radius: var(--pill); background: var(--ink); transform: translateX(-50%); }
.alerts .phone__time { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--ink); line-height: 1; margin-bottom: 0.4rem; }
.notif {
  display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.65rem 0.7rem; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: 0 8px 18px -12px rgb(15 18 34 / 50%); font-size: 0.78rem; line-height: 1.3;
}
.notif .bubble { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; flex: none; background: var(--c, var(--blue)); color: var(--c-fg, #fff); }
.notif .bubble .i { width: 1.1rem; height: 1.1rem; }
.notif small { display: block; color: var(--muted); font-weight: 600; }
.notif strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.js .phone .notif { opacity: 0; transform: translateY(14px) scale(0.96); }
.js .phone.is-in .notif { animation: notif-in 0.6s var(--ease) forwards; }
.js .phone.is-in .notif:nth-child(3) { animation-delay: 0.35s; }
.js .phone.is-in .notif:nth-child(4) { animation-delay: 0.9s; }
.js .phone.is-in .notif:nth-child(5) { animation-delay: 1.45s; }

/* Conseils */
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); }
.post-item {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.2rem 1.25rem; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.post-item h2, .post-item h3 { font-size: var(--step-1); margin: 0; }
.post-item h2 a, .post-item h3 a { color: var(--ink); text-decoration: none; }
.post-item h2 a::after, .post-item h3 a::after { content: ""; position: absolute; inset: 0; }
.post-item h2 a:hover, .post-item h3 a:hover { color: var(--blue); }
.post-item p { margin: 0; color: var(--muted); }
.post-item .eyebrow { margin: 0; color: var(--orange-ink); }
.post-item__icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--sun-wash); color: #8a5c00; margin-bottom: 0.3rem; }
.post-item--lead { background: var(--sun); box-shadow: none; }
.post-item--lead .post-item__icon { background: rgb(255 255 255 / 55%); color: var(--ink); }
.post-item--lead h2, .post-item--lead h3 { font-size: var(--step-2); }
.post-item--lead p, .post-item--lead .eyebrow { color: var(--ink-soft); }

/* Chiffres */
.figures { display: grid; gap: 0.8rem; margin: 0; }
.figures div { display: flex; flex-direction: column-reverse; padding: 1.1rem 1.2rem; border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow); }
.figures dt { color: var(--muted); font-weight: 600; }
.figures dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--blue); letter-spacing: -0.03em; }
.figures div:nth-child(2) dd { color: var(--orange-ink); }
.figures div:nth-child(3) dd { color: var(--mint-ink); }
.figures div:nth-child(4) dd { color: var(--violet); }

/* --- En-têtes de page --------------------------------------------------------- */
.page-head { position: relative; padding-block: var(--space-m) var(--space-l); overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -10rem; top: -16rem;
  border-radius: 50%; background: var(--blue-wash);
}
.page-head h1 { font-size: var(--step-4); max-width: 18em; }
.page-head .lead { margin-bottom: 0; }
.page-head--color { background: var(--c); color: var(--c-fg); margin-bottom: var(--space-m); }
.page-head--color::before { background: rgb(255 255 255 / 12%); }
.page-head--color .lead, .page-head--color .breadcrumb, .page-head--color .breadcrumb a, .page-head--color .kicker { color: inherit; opacity: 0.92; }
.breadcrumb { font-size: var(--step--1); margin-bottom: var(--space-s); color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 0.4rem 0 0.2rem; opacity: 0.6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { font-weight: 600; color: inherit; }

/* Puces de filtre (types, thèmes) */
.chips {
  list-style: none; margin: 0 calc(-1 * var(--gutter)) var(--space-m); padding: 0.3rem var(--gutter) 0.6rem;
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; min-height: 2.75rem; padding: 0.45rem 1rem 0.45rem 0.55rem;
  border-radius: var(--pill); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--step--1);
  border: 1.5px solid var(--line); transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.chips a:not(:has(.i)) { padding-left: 1rem; }
.chips a .i { width: 1.75rem; height: 1.75rem; padding: 0.3rem; border-radius: 50%; background: var(--c, var(--canvas)); color: var(--c-fg, var(--ink)); }
.chips a:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Liste des opportunités --------------------------------------------------- */
.listing { display: grid; gap: var(--space-m); align-items: start; padding-bottom: var(--space-xl); }
.filters { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); }
.filters > summary {
  display: flex; align-items: center; gap: 0.6rem; min-height: 3.4rem; padding: 0.6rem 1.1rem;
  font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--r-l);
}
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: ""; margin-left: auto; width: 0.6rem; height: 0.6rem; border-right: 2.5px solid; border-bottom: 2.5px solid; transform: rotate(45deg) translateY(-3px); transition: transform 0.25s; }
.filters[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.filters > summary .i { color: var(--blue); }
.filters__body { display: grid; gap: var(--space-s); padding: 0 1.1rem 1.2rem; }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin-bottom: var(--space-s); }
.results-count { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); }
.sort { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: var(--step--1); }
.sort a { padding: 0.35rem 0.8rem; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-weight: 700; }
.sort a:hover { background: #fff; }
.sort a[aria-current] { background: var(--blue-wash); color: var(--blue); }

.pagination { margin-top: var(--space-l); }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0 0.85rem;
  border-radius: var(--pill); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--shadow);
}
.pagination a:hover { background: var(--ink); color: #fff; }
.pagination [aria-current] { background: var(--blue); color: #fff; }
.pagination .gap { background: none; box-shadow: none; }

/* Tableau des échéances (espace membre) */
.board { list-style: none; margin: 0; padding: 0; }
.board__list { display: grid; gap: 0.7rem; padding: 0; }
.board__item { display: flex; gap: 0.9rem; align-items: center; padding: 0.75rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.board__item a { font-weight: 700; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.board__item a:hover { color: var(--blue); }
.board__org { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.2rem; }
.board__title { margin: 0; }
.board__empty { color: var(--muted); }

/* --- Fiche opportunité -------------------------------------------------------- */
.opp-head { position: relative; padding-block: var(--space-s) var(--space-l); overflow: hidden; }
.opp-head::before { content: ""; position: absolute; z-index: -1; inset: 0 0 35% 0; background: var(--c, var(--blue)); }
.opp-head::after { content: ""; position: absolute; z-index: -1; width: 36rem; height: 36rem; right: -12rem; top: -20rem; border-radius: 50%; background: rgb(255 255 255 / 10%); }
.opp-head .breadcrumb, .opp-head .breadcrumb a { color: var(--c-fg, #fff); opacity: 0.9; }
.opp-head__grid { display: grid; gap: var(--space-m); align-items: start; }
.opp-head__card { position: relative; background: #fff; border-radius: var(--r-l); padding: var(--space-m); box-shadow: var(--shadow-l); }
.opp-head h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.opp-head .eyebrow { display: inline-flex; gap: 0.4rem; padding: 0.3rem 0.75rem 0.3rem 0.35rem; border-radius: var(--pill); background: var(--canvas); color: var(--ink); }
.opp-head .eyebrow .i { width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; background: var(--c); color: var(--c-fg); }
.opp-org { font-weight: 700; color: var(--muted); margin-bottom: 0.9rem; }
.opp-tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opp-head__stamp { float: right; display: grid; justify-items: end; gap: 0.4rem; margin: calc(-1 * var(--space-m) - 1rem) 0 0.6rem 1rem; position: relative; z-index: 1; }
.opp-head__card::after { content: ""; display: table; clear: both; }
.opp-head__stamp .small { margin: 0; padding: 0.3rem 0.7rem; border-radius: var(--pill); background: var(--orange); color: var(--ink); font-weight: 700; }
.opp-media { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); background: #fff; aspect-ratio: 16 / 9; }
.opp-media img { width: 100%; height: 100%; object-fit: cover; }
.opp-media .art__icon { max-width: 9rem; }
.opp-media .art__org { font-size: var(--step-1); left: 1.2rem; bottom: 1rem; }
.opp-layout { display: grid; gap: var(--space-l); padding-block: var(--space-m) var(--space-l); }
.opp-section { margin-bottom: var(--space-m); padding: var(--space-m); background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); }
.opp-section > h2 { font-size: var(--step-2); display: flex; align-items: center; gap: 0.6rem; }
.opp-section > h2::before { content: ""; width: 0.55rem; height: 1.4rem; border-radius: var(--pill); background: var(--c, var(--blue)); flex: none; }
.cover { margin: 0 0 var(--space-m); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.cover img { width: 100%; }
.checklist-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.checklist-plain li { position: relative; padding-left: 2rem; }
.checklist-plain li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--mint-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23087a54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 0.85rem;
}
.docs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.docs label {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.75rem 0.9rem; border-radius: 14px; cursor: pointer;
  background: var(--canvas); border: 2px solid transparent; font-weight: 400; font-size: var(--step-0);
  transition: background-color 0.2s, border-color 0.2s;
}
.docs label:hover { border-color: var(--line); }
.docs input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: none; accent-color: var(--mint); }
.docs label:has(input:checked) { background: var(--mint-wash); border-color: var(--mint); }
.docs label:has(input:checked) span { text-decoration: line-through; text-decoration-color: rgb(8 122 84 / 50%); }
.docs-progress { display: flex; align-items: center; gap: 0.9rem; font-weight: 700; font-size: var(--step--1); }
progress { appearance: none; flex: 1; height: 0.75rem; border: 0; border-radius: var(--pill); background: var(--canvas-deep); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--canvas-deep); border-radius: var(--pill); }
progress::-webkit-progress-value { background: var(--mint); border-radius: var(--pill); transition: width 0.4s var(--ease); }
progress::-moz-progress-bar { background: var(--mint); border-radius: var(--pill); }
.closed-banner { padding: 1rem 1.2rem; margin-bottom: var(--space-m); border-radius: var(--r-l); background: #eceef3; border-left: 6px solid #6b7086; }
.closed-banner p { margin: 0; }

.opp-aside { display: grid; gap: var(--space-s); align-content: start; }
.aside-card { padding: var(--space-m); background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); }
.aside-card h2 { font-size: var(--step-1); }
.aside-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: 1rem 0; font-size: var(--step--1); }
.aside-card dt { color: var(--muted); font-weight: 600; }
.aside-card dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.actions { display: grid; gap: 0.7rem; }
.actions form.field { gap: 0.5rem; }
.trust { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--r-l); background: var(--mint-wash); border: 2px solid rgb(14 159 110 / 25%); }
.trust .i { width: 1.9rem; height: 1.9rem; color: var(--mint-ink); }
.trust p { margin: 0; font-size: var(--step--1); }

/* Barre d'action collée en bas (fiche, téléphone) */
.action-bar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgb(15 18 34 / 50%);
  animation: rise 0.5s var(--ease) both 0.4s;
}
.action-bar .btn:first-child { flex: 1; }
.action-bar .btn--icon { --bg: #25d366; --bd: #25d366; --fg: var(--ink); }
body.has-action-bar { padding-bottom: 5.2rem; }

/* Réactions, partage, commentaires */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.4rem; font-size: var(--step--1); }
.reactions__item { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-weight: 600; text-decoration: none; }
a.reactions__item:hover { color: var(--blue); }
.reactions form { margin: 0; }
.like {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.35rem 0.9rem;
  border-radius: var(--pill); border: 2px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: var(--step--1); cursor: pointer; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease);
}
.like:hover { border-color: var(--rose); color: var(--ink); }
.like[aria-pressed="true"] { border-color: var(--rose); background: #fde9ef; }
.like[aria-pressed="true"] .i { color: var(--rose); animation: pop 0.45s var(--ease); }
.like__count { color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share .btn { flex: 1 1 auto; }
.share [data-track="whatsapp"] { --bg: #25d366; --bd: #25d366; --fg: var(--ink); }
.share [data-track="facebook"]:hover { --bd: #1877f2; }
.share-block { margin-top: var(--space-l); padding: var(--space-m); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow); }
.share-block__title { font-size: var(--step-1); }

.comments { margin-top: var(--space-m); padding: var(--space-m); background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); }
.comments h2 { font-size: var(--step-2); }
.comments__count { color: var(--muted); font-weight: 600; }
.comments__list, .comment__replies { list-style: none; margin: 0 0 var(--space-m); padding: 0; display: grid; gap: 0.8rem; }
.comment__replies { margin: 0.8rem 0 0 1.2rem; padding-left: 1rem; border-left: 3px solid var(--line); }
.comment article { padding: 0.9rem 1rem; border-radius: 16px; background: var(--canvas); }
.comment--team > article { background: var(--blue-wash); }
.comment--pending > article { background: var(--sun-wash); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; font-size: var(--step--1); margin-bottom: 0.4rem; }
.comment__meta time { color: var(--muted); }
.comment__pending { font-size: var(--step--1); font-weight: 600; color: #7a5300; }
.comment__body p:last-child { margin-bottom: 0; }
.comment__actions { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: center; margin-top: 0.5rem; }
.comment__actions form { margin: 0; }
.comment__reply summary { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; color: var(--blue); font-weight: 600; font-size: var(--step--1); min-height: 2rem; }
.comment-form { display: grid; gap: 0.5rem; }
.comment-form--reply { margin-top: 0.6rem; }
.comment-form .btn { justify-self: start; }
.comments__gate { padding: 1rem 1.1rem; border-radius: 16px; background: var(--canvas); }
.comments__gate p:last-child { margin-bottom: 0; }

/* --- Contenus rédigés ------------------------------------------------------------ */
.prose { max-width: 42em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote, blockquote {
  margin: 1.5em 0; padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 5px solid var(--orange); background: var(--orange-wash);
}
.prose blockquote p:last-child, blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); }
.prose code { background: var(--canvas-deep); padding: 0.1em 0.35em; border-radius: 6px; font-size: 0.92em; }

/* --- Pages diverses ------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; display: grid; gap: 1.1rem; }
.timeline::before { content: ""; position: absolute; left: 0.35rem; top: 0.4rem; bottom: 0.4rem; width: 3px; border-radius: var(--pill); background: var(--line); }
.timeline li { position: relative; padding-left: 0.8rem; }
.timeline li::before { content: ""; position: absolute; left: -1.35rem; top: 0.35rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--blue); border: 3px solid var(--canvas); }
.timeline li:nth-child(2)::before { background: var(--orange); }
.timeline li:nth-child(3)::before { background: var(--mint); }
.timeline strong { display: block; font-family: var(--font-display); font-size: var(--step-1); }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.team li { padding: var(--space-m); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.team li::before { content: ""; display: block; width: 3.2rem; height: 3.2rem; border-radius: 16px; margin-bottom: 1rem; background: var(--blue); }
.team li:nth-child(2)::before { background: var(--orange); }
.team li:nth-child(3)::before { background: var(--mint); }
.team h3 { margin-bottom: 0.2rem; }
.team p:last-child { margin-bottom: 0; }

.auth { display: grid; gap: var(--space-l); padding-block: var(--space-l) var(--space-xl); align-items: start; }
.auth h1 { font-size: var(--step-4); }
.auth__panel { padding: var(--space-m); background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-l); }
.auth__aside { padding: var(--space-m); border-radius: var(--r-l); background: var(--blue); color: #fff; }
.auth__aside h2 { color: #fff; font-size: var(--step-2); }
.auth__aside a:not(.btn) { color: #fff; }
.auth__aside ul { padding-left: 1.1rem; }
.auth__aside li { margin-bottom: 0.4rem; }
.auth__aside li::marker { color: var(--sun); }
.auth__aside .btn--blue { --bg: #fff; --bd: #fff; --fg: var(--blue); }
.auth__aside .trust { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 25%); margin-bottom: 1rem; }
.auth__aside .trust .i { color: var(--sun); }
.auth__aside .timeline::before { background: rgb(255 255 255 / 30%); }
.auth__aside .timeline li::before { border-color: var(--blue); background: var(--sun); }

.member-nav { margin-bottom: var(--space-s); }
.member-nav ul { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 0.2rem var(--gutter) 0.6rem; display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.member-nav ul::-webkit-scrollbar { display: none; }
.member-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0.4rem 1rem; border-radius: var(--pill); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; border: 1.5px solid var(--line); }
.member-nav a:hover { border-color: var(--ink); color: var(--ink); }
.member-nav a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 0 0 var(--space-m); }
.stats div { display: flex; flex-direction: column-reverse; padding: 1rem 1.1rem; border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow); }
.stats dt { color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.stats div:nth-child(1) dd { color: var(--rose); }
.stats div:nth-child(2) dd { color: #8a5c00; }
.stats div:nth-child(3) dd { color: var(--blue); }
.stats div:nth-child(4) dd { color: var(--mint-ink); }
.track-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-s); }
.track { display: grid; gap: 0.9rem; padding: var(--space-m); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow); }
.track .notice__title { position: static; }
.track .notice__title a::after { display: none; }
.track__notes { display: grid; gap: 0.6rem; }
.track form { margin: 0; }

.error-page { display: grid; justify-items: start; gap: 0.6rem; padding-block: var(--space-xl); max-width: 44rem; }
.error-page h1 { font-size: var(--step-4); margin-top: 0.8rem; }

/* Formulaire « Proposer » et pages de contact */
.form fieldset + fieldset { margin-top: 0.4rem; }

/* --- Apparition au défilement (activée par JavaScript uniquement) ----------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 0.07s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 0.14s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 0.21s; }
.js [data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: 0.28s; }
.js [data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: 0.35s; }
.js [data-reveal-stagger].is-in > *:nth-child(7) { transition-delay: 0.42s; }
.js [data-reveal-stagger].is-in > *:nth-child(n+8) { transition-delay: 0.49s; }
.hero__copy > * { animation: rise 0.8s var(--ease) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero__copy > *:nth-child(6) { animation-delay: 0.4s; }
.hero-visual { animation: rise 1s var(--ease) both 0.2s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stamp-in { 0% { opacity: 0; transform: scale(1.6) rotate(-14deg); } 60% { opacity: 1; transform: scale(0.94) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-5deg); } 92% { transform: rotate(5deg); } 95% { transform: rotate(-3deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 106 43 / 55%); } 50% { box-shadow: 0 0 0 7px rgb(255 106 43 / 0%); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes notif-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-stagger] > *, .js .phone .notif { opacity: 1 !important; transform: none !important; }
}

/* --- Points de rupture ---------------------------------------------------------- */
@media (min-width: 30em) {
  .searchbar { grid-template-columns: 1fr auto; }
  .searchbar__field { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 40em) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile--big { grid-column: span 2; }
  .tile--big a { min-height: 11rem; }
  .form-row--2 { grid-template-columns: repeat(2, 1fr); }
  .form-row--3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1.15fr 1fr; }
  .feature__media { aspect-ratio: auto; min-height: 100%; }
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }
  .steps__list li { grid-template-columns: 1fr; }
  .steps__list::before { content: ""; position: absolute; top: 1.7rem; left: 1.7rem; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, rgb(255 255 255 / 30%) 0 10px, transparent 10px 18px); }
  .steps__num { grid-row: auto; margin-bottom: 0.6rem; }
  .track { grid-template-columns: 1fr minmax(16rem, 22rem); align-items: start; }
  .track > form:last-child { grid-column: 1 / -1; }
  .posts--home { grid-template-columns: repeat(2, 1fr); }
  .posts--home .post-item--lead { grid-row: span 2; justify-content: flex-end; }
}

@media (min-width: 52em) {
  .searchbar { grid-template-columns: 1fr 13rem auto; }
  .searchbar__field { grid-column: auto; }
  .rail-nav { display: flex; }
  .opp-head__grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .opp-head::before { inset: 0 0 30% 0; }
}

@media (min-width: 64em) {
  :root { --header-h: 4.75rem; }
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; position: static; align-items: center; gap: 1rem; padding: 0; margin-left: auto;
    background: none; border: 0; box-shadow: none; animation: none; max-height: none; overflow: visible;
  }
  .brand { margin-right: 0; }
  .site-nav ul { display: flex; gap: 0.1rem; }
  .site-nav li a { min-height: 2.6rem; padding: 0.45rem 0.85rem; border-radius: var(--pill); font-size: 0.97rem; }
  .site-nav li a .i { display: none; }
  .site-nav li a[aria-current="page"] { background: var(--ink); color: #fff; }
  .nav-account { margin: 0 0 0 0.5rem; padding: 0 0 0 1rem; border-top: 0; border-left: 1px solid var(--line); flex-wrap: nowrap; }
  .tabbar { display: none; }
  body.has-tabbar { padding-bottom: 0; }
  .action-bar { display: none; }
  body.has-action-bar { padding-bottom: 0; }
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
  .hero { padding-top: var(--space-xl); }
  .hero-visual { min-height: 28rem; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .listing { grid-template-columns: 18rem 1fr; }
  .listing .filters { position: sticky; top: calc(var(--header-h) + 1rem); }
  .listing .notices { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
  .opp-layout { grid-template-columns: minmax(0, 1fr) 22rem; }
  .opp-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
  .split { grid-template-columns: minmax(0, 1fr) 20rem; }
  .two-cols { grid-template-columns: 1.4fr 1fr; }
  .auth { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .alerts { grid-template-columns: 1.2fr 0.8fr; padding: var(--space-l); }
  .steps { padding: var(--space-l); }
  .posts--home { grid-template-columns: 1.2fr 1fr 1fr; }
  .posts--home .post-item--lead { grid-row: span 2; }
}

@media (min-width: 80em) {
  .notices--home { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  .site-header, .site-footer, .tabbar, .action-bar, .trustbar, .share, .comments { display: none !important; }
  body { background: #fff; padding: 0 !important; }
}

/* Appel à proposer une opportunité (bas de l'accueil) */
.propose {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: var(--space-m); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow);
  border: 2px dashed var(--line);
}
.propose h2 { font-size: var(--step-2); }

/* --- Ajustements téléphone ----------------------------------------------------- */
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.hero-visual__caption .stamp { width: 4.3rem; }
.hero-visual__caption .stamp__label { font-size: 0.52rem; letter-spacing: 0.03em; }
@media (max-width: 39.99em) {
  .trustbar { font-size: 0.78rem; }
  .trustbar .wrap { gap: 0.1rem 0.6rem; padding-block: 0.35rem; }
  .hero__stats { gap: 1rem 1.25rem; }
  .hero__stats dd { font-size: var(--step-2); }
  .hero__stats dt { font-size: 0.75rem; }
  .hero-visual { min-height: 0; }
  .hero-visual__poster { width: 94%; margin-top: 3.2rem; }
  .float-card { max-width: 13.5rem; font-size: 0.78rem; padding: 0.55rem 0.7rem; }
  .float-card .bubble { width: 2rem; height: 2rem; border-radius: 10px; }
  .float-card--a { top: 0; left: 0; }
  .float-card--b { right: 0; bottom: -1.6rem; }
  .float-card--c { display: none; }
  .tile a { min-height: 8.25rem; padding: 0.95rem; }
  .tile__name { font-size: 1.08rem; }
}

@media (max-width: 39.99em) {
  .opp-head__stamp .stamp--lg { width: 5.4rem; border-radius: 16px; }
  .opp-head__stamp .stamp--lg .stamp__label { font-size: 0.55rem; padding: 0.35rem 0.2rem; }
  .opp-head__stamp .stamp--lg .stamp__main { font-size: 1.8rem; padding-top: 0.4rem; }
  .opp-head__stamp .stamp--lg .stamp__date { font-size: 0.7rem; }
  .opp-head h1 { font-size: var(--step-2); }
}
.opp-media { margin: 0; }
@media (max-width: 51.99em) {
  .opp-media { order: -1; }
  .opp-head::before { inset: 0 0 55% 0; }
}
.auth__aside .notice-box { margin: 1.2rem 0 0; }

/* =============================================================================
   Accueil — ajustements du 10 octobre 2026
   - titre, texte et fiche « À la une » remontés en haut de l'écran ;
   - « Ça ferme bientôt » : éléments agrandis, affichés sur toute la largeur.
   ========================================================================== */

/* En-tête : moins d'espace au-dessus, contenu aligné en haut */
.hero { padding-top: var(--space-s); }
.hero__grid { align-items: start; }
.hero__pill { margin-bottom: 0.7rem; }
.hero-visual__poster { margin-top: 0; }
.float-card--a { top: 2.5rem; }
@media (min-width: 64em) {
  .hero { padding-top: var(--space-m); }
  /* La fiche « À la une » monte tout en haut ; la carte « Ferme dans… » est retirée
     ici car ces dates sont affichées en grand juste en dessous. */
  .hero-visual { min-height: 0; padding: 1.4rem 0 4.5rem; }
  .hero-visual__poster { width: 94%; }
  .float-card--a { display: none; }
  .float-card--c { top: 0; right: 0; }
  .float-card--b { bottom: 0; right: 1.5rem; }
}

/* Ça ferme bientôt : grille sur toute la largeur, cercles plus grands */
.rail-head { align-items: end; }
.rail-head .link-arrow { white-space: nowrap; }
.stories--grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.25rem), 1fr));
  gap: 1.6rem 1rem; margin: var(--space-s) 0 0; padding: 0.4rem 0 0.6rem; overflow: visible;
  scroll-snap-type: none;
}
.stories--grid .story { width: auto; }
.stories--grid .story a { gap: 0.55rem; }
.stories--grid .story__ring { width: min(100%, 7rem); height: auto; aspect-ratio: 1; }
.stories--grid .story__inner { width: calc(100% - 12px); height: calc(100% - 12px); border-width: 4px; }
.stories--grid .story__inner .i { width: 2.6rem; height: 2.6rem; }
.stories--grid .story__days { font-size: 0.85rem; padding: 0.18rem 0.65rem; bottom: -0.6rem; }
.stories--grid .story__title { font-size: 0.92rem; line-height: 1.25; margin-top: 0.55rem; -webkit-line-clamp: 3; }
@media (min-width: 40em) {
  .stories--grid { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 2rem 1.5rem; }
  .stories--grid .story__ring { width: min(100%, 9rem); }
  .stories--grid .story__inner .i { width: 3.2rem; height: 3.2rem; }
  .stories--grid .story__title { font-size: 1rem; }
}
@media (min-width: 80em) {
  .stories--grid .story__ring { width: min(100%, 10rem); }
}

/* Très petits téléphones (320 px) : les tuiles de types ne débordent plus */
@media (max-width: 39.99em) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__name { overflow-wrap: anywhere; hyphens: auto; }
}

/* Téléphone : la fiche « À la une » reste entièrement lisible (cartes flottantes retirées) */
@media (max-width: 63.99em) {
  .float-card--a, .float-card--b { display: none; }
  .hero-visual__poster { width: 100%; transform: none; }
}
.hero-visual__caption strong { -webkit-line-clamp: 3; }
/* Écrans moyens (1024–1280 px) : le champ de recherche garde toute sa largeur */
@media (min-width: 64em) and (max-width: 79.99em) {
  .hero .searchbar { grid-template-columns: 1fr auto; }
  .hero .searchbar__field { grid-column: 1 / -1; }
}
