/* accreditation.ga — portail public. Direction : « credential-grade », l'esthétique du
   document officiel sécurisé (sceau, guilloché, foil doré) portée à un niveau produit. */

:root {
  --ink: #10201a;
  --forest: #0c3b2c;
  --forest-deep: #082019;
  --forest-line: #16513d;
  --gold: #c8a24b;
  --gold-hi: #e6cd86;
  --gold-deep: #a2802f;
  /* Couleurs nationales (armoiries / drapeau du Gabon) */
  --flag-green: #1a9e4a;
  --flag-gold: #f5c518;
  --flag-blue: #2a72c9;
  --flag-blue-deep: #1e5aa8;
  /* Bleu = accent d'information & de suivi (wayfinding) */
  --blue: #2a6fc0;
  --blue-deep: #1f5aa2;
  --blue-bg: #eaf1fb;
  --paper: #f7f5ef;
  --mist: #fbfaf6;
  --slate: #566158;
  --line: #e7e3d7;
  --line-soft: #efece2;
  --ok: #1f7a4d; --ok-bg: #e4f2e9;
  --ko: #a52121; --ko-bg: #f7e6e4;
  --wait: #8a6d1f; --wait-bg: #f6efd8;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .06);
  --shadow-md: 0 2px 6px rgba(16, 32, 26, .05), 0 18px 40px -20px rgba(12, 59, 44, .28);
  --shadow-lg: 0 30px 60px -24px rgba(8, 32, 25, .45);
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--gold); }
.eyebrow.on-dark { color: var(--gold-hi); }
.eyebrow.on-dark::before { background: var(--gold-hi); }

/* bandeau tricolore national */
.flagbar { height: 4px; background: linear-gradient(90deg, var(--flag-green) 0 33.33%, var(--flag-gold) 33.33% 66.66%, var(--flag-blue) 66.66% 100%); }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .row { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { height: 42px; width: auto; flex: none; }
.logo .word b { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.logo .word span { display: block; font-size: 0.7rem; color: var(--slate); letter-spacing: 0.04em; }
.topbar .spacer { flex: 1; }
.navlink { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; font-weight: 600; color: var(--ink); padding: 8px 12px; border-radius: 8px; transition: background .2s; }
.navlink:hover { background: var(--blue-bg); color: var(--blue-deep); }
.navlink svg { width: 16px; height: 16px; color: var(--blue); }
.lang { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--slate); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; }
.langtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.langtoggle button { border: 0; background: transparent; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--slate); padding: 6px 10px; transition: background .15s, color .15s; }
.langtoggle button:hover { color: var(--ink); }
.langtoggle button.active { background: var(--forest); color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: radial-gradient(120% 130% at 82% -10%, var(--forest-line) 0%, var(--forest) 42%, var(--forest-deep) 100%); color: #eaf3ee; overflow: hidden; }
.hero .guilloche { position: absolute; inset: 0; opacity: .16; pointer-events: none; mix-blend-mode: screen; }
.hero .row { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 76px 0 88px; }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); margin: 18px 0 0; max-width: 15ch; }
.hero .sub { margin: 20px 0 0; font-size: 1.075rem; line-height: 1.62; color: #c4dccf; max-width: 46ch; }
.hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero .trust .t { display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; color: #bcd4c7; }
.hero .trust .t svg { width: 18px; height: 18px; color: var(--gold-hi); flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 650; font-size: 0.95rem; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-gold { color: #2b2107; background: linear-gradient(135deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-deep) 100%); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 24px -10px rgba(200, 162, 75, .8); }
.btn-gold:hover { transform: translateY(-1.5px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 16px 30px -10px rgba(200, 162, 75, .9); }
.btn-ghost { color: #eaf3ee; background: rgba(255,255,255,.06); border-color: rgba(230, 205, 134, .35); }
.btn-ghost:hover { background: rgba(255,255,255,.11); }
.btn-forest { color: #fff; background: var(--forest); }
.btn-forest:hover { background: var(--forest-line); transform: translateY(-1px); }
.btn-outline { color: var(--forest); background: #fff; border-color: var(--line); }
.btn-outline:hover { border-color: var(--forest); }
.btn-blue { color: #fff; background: var(--blue); box-shadow: 0 8px 20px -12px rgba(42, 111, 192, .8); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: 0.86rem; border-radius: 10px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.lg { padding: 15px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* accessibilité : anneau de focus clavier bleu (l'or reste le focus des champs) */
a:focus-visible, .btn:focus-visible, .copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* credential card mockup */
.cred-stage { position: relative; display: grid; place-items: center; }
.cred-stage .halo { position: absolute; width: 118%; height: 118%; opacity: .5; pointer-events: none; }
.cred {
  position: relative; width: 340px; max-width: 100%; border-radius: 18px; padding: 20px;
  background: linear-gradient(158deg, #0f4735 0%, #0a3327 60%, #0b3b2c 100%);
  color: #eaf3ee; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(230, 205, 134, .28);
  transform: rotate(-3deg); transform-origin: center;
}
.cred .cred-guilloche { position: absolute; inset: 0; opacity: .14; border-radius: 18px; overflow: hidden; }
.cred .cred-top { position: relative; display: flex; align-items: center; gap: 10px; }
.cred .cred-top .seal-chip { display: inline-flex; background: #fff; border-radius: 7px; padding: 2px 4px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.cred .cred-top .seal { height: 26px; width: auto; display: block; }
.cred .cred-top .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--gold-hi); }
.cred .cred-top .evt { margin-left: auto; font-size: 0.64rem; color: #a9c6b6; }
.cred .cred-body { position: relative; display: flex; gap: 14px; margin: 16px 0 14px; }
.cred .photo { width: 74px; height: 88px; border-radius: 8px; background: linear-gradient(180deg, #17513d, #0d3a2c); display: grid; place-items: center; flex: none; border: 1px solid rgba(230,205,134,.2); }
.cred .photo svg { width: 40px; height: 40px; color: #6f9683; }
.cred .who .nm { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.cred .who .cat { display: inline-block; margin-top: 7px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; padding: 3px 9px; border-radius: 999px; color: var(--gold-hi); border: 1px solid rgba(230,205,134,.45); }
.cred .who .zon { margin-top: 10px; font-family: var(--mono); font-size: 0.72rem; color: #b7d0c2; }
.cred .cred-foot { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(230,205,134,.18); }
.cred .qr { width: 52px; height: 52px; flex: none; border-radius: 6px; background: #f7f5ef; padding: 4px; }
.cred .sig .s1 { font-size: 0.68rem; color: #cfe3d7; display: flex; align-items: center; gap: 6px; }
.cred .sig .s1 svg { width: 13px; height: 13px; color: var(--gold-hi); }
.cred .sig .s2 { margin-top: 4px; font-family: var(--mono); font-size: 0.62rem; color: #7fa08e; letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ sections */
.section { padding: 84px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 620px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 14px; }
.section-head p { margin-top: 12px; color: var(--slate); font-size: 1.02rem; }

/* événements ouverts — module à onglets (Événements / Programme / Règles) */
.events { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.tabs { margin: 36px auto 0; display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.events .section-head + .tabs { display: flex; width: fit-content; }
.events > .wrap { display: flex; flex-direction: column; align-items: center; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--slate); font-size: .9rem; font-weight: 600; padding: 10px 18px; border-radius: 10px; transition: background .18s, color .18s; }
.tab svg { width: 17px; height: 17px; color: currentColor; opacity: .8; }
.tab:hover { color: var(--ink); background: var(--mist); }
.tab.active { color: #fff; background: var(--forest); box-shadow: inset 0 -3px 0 rgba(200,162,75,.5); }
.tab.active svg { opacity: 1; color: var(--gold-hi); }
.tabwrap { width: 100%; margin-top: 30px; }
.tabpanel[hidden] { display: none; }

.evt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.evt-card { position: relative; display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.evt-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--line); transition: background .2s; }
.evt-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -22px rgba(12,59,44,.42); border-color: #d8d2c0; }
.evt-card:hover::before { background: var(--gold); }
.evt-card.featured { grid-column: 1 / -1; background: linear-gradient(122deg, #fff 62%, #fbf7ec 100%); border-color: rgba(200,162,75,.4); padding: 26px 28px; }
.evt-card.featured::before { background: linear-gradient(var(--gold), var(--gold-deep)); }
.evt-card.featured .evt-cal { width: 76px; height: 82px; }
.evt-card.featured .evt-cal .d { font-size: 2.15rem; }
.evt-card.featured .evt-body h3 { font-size: 1.5rem; }

.evt-cal { flex: none; width: 64px; height: 70px; border-radius: 13px; background: var(--forest); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 -3px 0 var(--gold); }
.evt-cal .d { font-family: Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 700; line-height: 1; }
.evt-cal .m { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-hi); margin-top: 4px; }
.evt-body { min-width: 0; flex: 1; }
.evt-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.evt-status { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--ok); background: var(--ok-bg); padding: 4px 10px; border-radius: 999px; }
.evt-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31,122,77,.18); }
.evt-org { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); background: rgba(200,162,75,.13); padding: 4px 10px; border-radius: 999px; }
.evt-body h3 { font-size: 1.22rem; margin: 12px 0 8px; letter-spacing: -.01em; }
.evt-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--forest); font-weight: 600; }
.evt-meta span { display: inline-flex; align-items: center; gap: 7px; }
.evt-meta svg { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }
.evt-body p { margin: 12px 0 0; font-size: .9rem; line-height: 1.55; color: var(--slate); }
.evt-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.evt-actions .btn { flex: none; }

.events-none { margin: 40px auto 0; max-width: 460px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--r-md); background: #fff; color: var(--slate); font-size: .95rem; }
.events-none svg { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }

/* onglet Programme — chronologie prévisionnelle */
.prog-lead, .rules-lead { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--wait); background: var(--wait-bg); border-radius: var(--r-sm); padding: 11px 15px; margin-bottom: 22px; }
.prog-lead svg { width: 17px; height: 17px; flex: none; }
.rules-lead { color: var(--forest); background: #fff; border: 1px solid var(--line); font-weight: 500; }
.prog-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow-md); }
.prog-block + .prog-block { margin-top: 18px; }
.prog-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.prog-head .prog-when { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--gold-deep); text-transform: uppercase; }
.prog-head h3 { font-size: 1.15rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 18px; padding: 14px 0 14px 4px; }
.timeline li::before { content: ""; position: absolute; left: 63px; top: 0; bottom: 0; width: 1.5px; background: var(--line); }
.timeline li:first-child::before { top: 22px; }
.timeline li:last-child::before { bottom: calc(100% - 22px); }
.tl-time { position: relative; z-index: 1; flex: none; width: 58px; text-align: right; font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--forest); padding-top: 1px; }
.tl-body { position: relative; padding-left: 20px; }
.tl-body::before { content: ""; position: absolute; left: -14px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.tl-body b { display: block; font-size: .96rem; }
.tl-body span { display: block; margin-top: 3px; font-size: .85rem; color: var(--slate); }
.empty-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; border: 1px dashed var(--line); border-radius: var(--r-md); background: #fff; color: var(--slate); }
.empty-note svg { width: 20px; height: 20px; color: var(--gold-deep); }

/* onglet Règles de bonne conduite */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; transition: border-color .2s, transform .2s; }
.rule:hover { border-color: var(--gold); transform: translateY(-2px); }
.rule-n { flex: none; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--gold-deep); width: 30px; height: 30px; border-radius: 8px; background: rgba(200,162,75,.12); display: grid; place-items: center; }
.rule b { display: block; font-size: .94rem; }
.rule span { display: block; margin-top: 4px; font-size: .85rem; color: var(--slate); line-height: 1.5; }

/* steps — a real sequence, numbered because order carries meaning */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.step .step-ico { width: 44px; height: 44px; border-radius: 11px; background: var(--forest); color: var(--gold-hi); display: grid; place-items: center; }
.step .step-ico svg { width: 22px; height: 22px; }
.step .num { position: absolute; top: 20px; right: 22px; font-family: var(--mono); font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.step h3 { font-size: 1.05rem; margin-top: 18px; }
.step p { margin-top: 8px; font-size: 0.9rem; color: var(--slate); }

/* forms */
.apply { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apply .grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.card .card-head { padding: 26px 28px 0; }
.card .card-head h2 { font-size: 1.35rem; }
.card .card-head .lead { margin-top: 6px; color: var(--slate); font-size: 0.95rem; }
.card .card-body { padding: 22px 28px 28px; }

.fieldset { border: 0; margin: 0 0 6px; padding: 0; }
.fieldset legend { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); padding: 0; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: #33413a; margin-bottom: 6px; }
.field label .opt { color: var(--slate); font-weight: 500; }
.field label .req { color: var(--ko); font-weight: 600; }
.control { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 0.94rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.control:hover { border-color: #cfcbba; }
.control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 75, .22); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566158' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

/* liste déroulante « design système » (remplace le menu natif du navigateur) */
.cselect { position: relative; }
.cselect-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; padding-right: 12px; }
.cselect-btn .cs-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-btn .cs-chev { flex: none; color: var(--slate); transition: transform .2s ease; }
.cselect-btn .cs-chev svg { width: 18px; height: 18px; }
.cselect.open .cselect-btn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 75, .22); }
.cselect.open .cs-chev { transform: rotate(180deg); }
.cselect-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; max-height: 264px; overflow-y: auto; animation: csIn .14s ease; }
.cselect-menu[hidden] { display: none; }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cselect-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; font-size: 0.92rem; color: var(--ink); padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; transition: background .12s; }
.cselect-opt:hover { background: var(--mist); }
.cselect-opt[aria-selected="true"] { color: var(--forest); font-weight: 650; background: rgba(200, 162, 75, .12); }
.cselect-opt .cs-tick { flex: none; width: 16px; color: var(--gold-deep); opacity: 0; }
.cselect-opt[aria-selected="true"] .cs-tick { opacity: 1; }
.cselect-opt .cs-tick svg { width: 16px; height: 16px; }
.hint { margin-top: 6px; font-size: 0.78rem; color: var(--slate); }

/* file input */
.file { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fcfbf6; transition: border-color .15s; }
.file:hover { border-color: var(--gold); }
.file .fi { width: 34px; height: 34px; border-radius: 8px; background: var(--forest); color: var(--gold-hi); display: grid; place-items: center; flex: none; }
.file .fi svg { width: 18px; height: 18px; }
.file .ft { font-size: 0.85rem; }
.file .ft .n { font-weight: 600; }
.file .ft .d { color: var(--slate); font-size: 0.78rem; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file .pick { margin-left: auto; font-size: 0.82rem; font-weight: 650; color: var(--forest); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; background: #fff; }

/* photo : galerie/document ou caméra + aperçu */
.photo-box { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px; background: #fcfbf6; }
.photo-box.has { border-style: solid; border-color: var(--gold); background: #fff; }
.photo-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; font-size: .82rem; font-weight: 650; color: var(--forest); transition: border-color .15s, background .15s, transform .1s; }
.photo-opt:hover { border-color: var(--gold); background: #fffdf6; }
.photo-opt:active { transform: scale(.99); }
.photo-opt .fi { width: 34px; height: 34px; border-radius: 8px; background: var(--forest); color: var(--gold-hi); display: grid; place-items: center; }
.photo-opt .fi svg { width: 18px; height: 18px; }
.photo-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.photo-preview img { width: 58px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.photo-preview .pv-doc { width: 58px; height: 70px; display: grid; place-items: center; border-radius: 8px; background: var(--mist); color: var(--gold-deep); flex: none; }
.photo-preview .pv-doc svg { width: 24px; height: 24px; }
.photo-preview .pv-meta b { display: block; font-size: .88rem; word-break: break-all; }
.photo-preview .pv-meta em { font-style: normal; color: var(--ok); font-size: .8rem; font-weight: 650; }

/* matériel déclaré (lignes répétables : nom + n° de série) */
.equip-lead { font-size: 0.84rem; color: var(--slate); margin: 0 0 12px; }
.equip-none { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--ink); margin-bottom: 12px; cursor: pointer; }
.equip-none input { width: 17px; height: 17px; accent-color: var(--forest); }
.equip-row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: center; margin-bottom: 8px; }
.equip-row .control { height: 42px; }
.equip-row .eq-del { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ko); transition: border-color .15s, background .15s; }
.equip-row .eq-del:hover { border-color: var(--ko); background: var(--ko-bg); }
.equip-row .eq-del svg { width: 16px; height: 16px; }
.equip-row .eq-flag { grid-column: 1 / -1; margin: -2px 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: .02em; color: var(--wait); display: none; }
.equip-row .eq-flag.on { display: inline-flex; align-items: center; gap: 6px; }
.equip-row .eq-flag.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wait); }
#equip-add { margin-top: 4px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.86rem; color: #33413a; background: #f4f7f4; border: 1px solid var(--line-soft); padding: 13px 14px; border-radius: var(--r-sm); margin: 8px 0 18px; }
.consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--forest); }

/* aside trust panel */
.aside { display: grid; gap: 16px; }
.aside .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.aside .panel.track { border-top: 3px solid var(--blue); background: linear-gradient(180deg, var(--blue-bg) 0%, #fff 46px); }
.aside .panel.track h3 { display: flex; align-items: center; gap: 8px; }
.aside .panel.track h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.aside .panel h3 { font-size: 0.98rem; }
.aside .panel .lead { margin-top: 4px; font-size: 0.86rem; color: var(--slate); }
.assure { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 13px; }
.assure li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.88rem; color: #33413a; }
.assure li svg { width: 19px; height: 19px; color: var(--forest); flex: none; margin-top: 1px; }
.assure li b { display: block; }
.assure li span { color: var(--slate); font-size: 0.82rem; }

/* track */
.track .row-f { display: flex; gap: 10px; align-items: end; }
.track .row-f .field { flex: 1; margin-bottom: 0; }
.track .result { margin-top: 14px; }
.status { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: var(--r-sm); font-size: 0.92rem; font-weight: 600; }
.status svg { width: 20px; height: 20px; flex: none; }
.status.ok { background: var(--ok-bg); color: var(--ok); }
.status.ko { background: var(--ko-bg); color: var(--ko); }
.status.wait { background: var(--blue-bg); color: var(--blue-deep); }

.msg { padding: 11px 14px; border-radius: var(--r-sm); font-size: 0.88rem; margin-bottom: 14px; display: flex; gap: 9px; align-items: center; }
.msg svg { width: 17px; height: 17px; flex: none; }
.msg.err { background: var(--ko-bg); color: var(--ko); }

/* confirmation */
.confirm { text-align: center; padding: 12px 4px 6px; }
.confirm .seal-ok { height: 78px; width: auto; margin: 0 auto 16px; display: block; }
.confirm h2 { font-size: 1.4rem; }
.confirm .lead { margin-top: 8px; color: var(--slate); font-size: 0.95rem; }
.confirm .ref-box { margin: 20px auto 6px; max-width: 380px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); padding: 14px 16px; text-align: left; display: flex; align-items: center; gap: 12px; }
.confirm .ref-box .rk { font-size: 0.72rem; color: var(--slate); letter-spacing: 0.05em; text-transform: uppercase; }
.confirm .ref-box .rv { font-family: var(--mono); font-size: 0.92rem; word-break: break-all; margin-top: 2px; }
.confirm .copy { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; color: var(--forest); flex: none; }
.confirm .copy svg { width: 18px; height: 18px; }
.confirm .again { margin-top: 20px; }

/* footer */
.footer { background: var(--forest-deep); color: #a9c6b6; }
.footer .row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; padding: 52px 0 40px; }
.footer .brand-f { display: flex; gap: 12px; align-items: center; }
.footer .brand-f .mark { height: 40px; width: auto; }
.footer .brand-f { align-items: center; }
.footer .brand-f .arms-foot { height: 84px; width: auto; flex: none; background: #fff; border-radius: 14px; padding: 9px 11px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.5); }
.footer .motto { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--gold-hi); }
.footer .brand-f b { color: #eaf3ee; font-size: 0.95rem; }
.footer .brand-f span { font-size: 0.72rem; color: #7fa08e; }
.footer h4 { color: #cfe3d7; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
.footer p, .footer a { font-size: 0.84rem; line-height: 1.65; }
.footer a:hover { color: #eaf3ee; }
.footer .legal { border-top: 1px solid var(--forest-line); padding: 18px 0 34px; font-size: 0.78rem; color: #7fa08e; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
/* entrée du hero au chargement (cascade discrète) */
.hero-copy > * { animation: heroUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4) { animation-delay: .30s; }
.hero-copy > *:nth-child(5) { animation-delay: .38s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.float-in { animation: floatIn .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes floatIn { from { opacity: 0; transform: rotate(-3deg) translateY(22px) scale(.97); } to { opacity: 1; transform: rotate(-3deg) translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .float-in, .hero-copy > * { transition: none; animation: none; opacity: 1; transform: none; }
  .cred { transform: rotate(-3deg); }
}

/* responsive */
@media (max-width: 940px) {
  .hero .row { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .cred-stage { justify-self: start; }
  .apply .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .evt-grid { grid-template-columns: 1fr; }
  .evt-card.featured { grid-column: auto; }
  .rules-grid { grid-template-columns: 1fr; }
  .footer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .grid2 { grid-template-columns: 1fr; }
  /* boutons de la carte empilés (l'un sous l'autre) — mobile uniquement */
  .evt-actions { flex-direction: column; align-items: stretch; }
  .evt-actions .btn { width: 100%; }
  /* parcours : timeline minimaliste (sans cartes) en mobile */
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .step { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0; box-shadow: none;
    display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: start; }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step:hover { transform: none; box-shadow: none; }
  .step .step-ico { width: 38px; height: 38px; border-radius: 10px; grid-column: 1; grid-row: 1 / span 3; }
  .step .step-ico svg { width: 19px; height: 19px; }
  .step .num { position: static; grid-column: 2; grid-row: 1; margin: 0; font-size: .68rem; }
  .step h3 { grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 1rem; }
  .step p { grid-column: 2; grid-row: 3; margin-top: 3px; font-size: .86rem; line-height: 1.5; }
  .navlink .lbl { display: none; }
  /* en-tête compact : sous-titre sur 1 ligne, switch FR/EN jamais coupé */
  .topbar .row { gap: 8px; height: 60px; }
  .logo { min-width: 0; gap: 9px; }
  .logo .mark { height: 34px; }
  .logo .word { min-width: 0; }
  .logo .word b, .logo .word span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .logo .word b { font-size: .8rem; }
  .logo .word span { font-size: .56rem; letter-spacing: 0; }
  .navlink { padding: 8px; flex: none; }
  .langtoggle { flex: none; }
  .hero .trust { gap: 16px; }
  .equip-row { grid-template-columns: 1fr 42px; }
  /* onglets : défilement horizontal discret, sans casser la ligne */
  .tabs { width: 100%; max-width: 100%; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 10px 14px; font-size: .84rem; }
  .tab svg { display: none; }
  .tab.active svg { display: block; }
  /* cartes : empilées, chip date en ligne */
  .evt-card, .evt-card.featured { flex-direction: column; gap: 14px; padding: 20px; }
  .evt-card::before { display: none; }
  .evt-cal { flex-direction: row; gap: 8px; width: auto; height: auto; align-self: flex-start; padding: 7px 13px; border-radius: 999px; box-shadow: none; }
  .evt-cal .d, .evt-card.featured .evt-cal .d { font-size: 1.15rem; }
  .evt-cal .m { margin-top: 0; }
  /* pastille date featured : même pilule que les autres (fini le cercle) */
  .evt-card.featured .evt-cal { width: auto; height: auto; }
  .evt-card.featured .evt-body h3 { font-size: 1.3rem; }
  .evt-actions .btn { flex: 1; }
  .prog-block { padding: 20px; }
  .timeline li::before { left: 55px; }
}
