/* =========================================================
   Opération Cœur Solitaire — feuille de style principale
   Identité : "mission internationale" premium.
   Navy nuit + or désert + corail. Bricolage Grotesque / Inter / JetBrains Mono.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
    --ink:      #0b1020;   /* fond nuit         */
    --ink-2:    #121834;   /* nuit +            */
    --paper:    #fbf7f0;   /* fond clair        */
    --paper-2:  #f2ebdf;   /* clair +           */
    --gold:     #e8b04b;   /* or désert         */
    --gold-dp:  #c9862a;
    --rose:     #ff5d73;   /* corail cœur       */
    --rose-dp:  #e33e58;
    --sky:      #7fc2d6;   /* bleu désert       */
    --text:     #10152a;
    --muted:    #5c6072;
    --line:     rgba(16,21,42,.10);
    --line-d:   rgba(255,255,255,.12);
    --shadow:   0 24px 60px -20px rgba(11,16,32,.35);
    --radius:   22px;
    --maxw:     1180px;
    --display:  'Bricolage Grotesque', system-ui, sans-serif;
    --body:     'Inter', system-ui, sans-serif;
    --mono:     'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section--dark { background: var(--ink); color: #eef1fb; }
.section--paper2 { background: var(--paper-2); }
.eyebrow {
    font-family: var(--mono);
    font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold-dp); display: inline-flex; gap: 10px; align-items: center;
    margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 5vw, 54px); }
.lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #b9c0dc; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 16px; padding: 15px 26px;
    border-radius: 999px; border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--rose { background: linear-gradient(135deg, var(--rose), var(--rose-dp)); color: #fff; box-shadow: 0 14px 30px -10px rgba(227,62,88,.6); }
.btn--rose:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(227,62,88,.7); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-dp)); color: #1a1204; box-shadow: 0 14px 30px -10px rgba(201,134,42,.55); }
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: var(--line-d); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--big { font-size: 17px; padding: 18px 32px; }

/* ---------- nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(251,247,240,.72);
    border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; letter-spacing: -.01em; }
.brand__dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--rose), var(--rose-dp)); box-shadow: 0 0 0 4px rgba(255,93,115,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(255,93,115,.18); } 50% { box-shadow: 0 0 0 9px rgba(255,93,115,0); } }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--muted); transition: color .18s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: 10px 20px; font-size: 14px; }
@media (max-width: 820px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: clamp(48px,7vw,92px) 0 clamp(56px,8vw,104px); }
.hero__glowA, .hero__glowB { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; }
.hero__glowA { width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,93,115,.55), transparent 70%); top: -140px; right: -80px; }
.hero__glowB { width: 460px; height: 460px; background: radial-gradient(circle, rgba(232,176,75,.45), transparent 70%); bottom: -160px; left: -120px; }
.hero__grid > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; }
.hero h1 .hl { background: linear-gradient(120deg, var(--gold), var(--rose)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { margin-top: 22px; font-size: clamp(16px,2vw,19px); color: #c3c9e6; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-d); padding: 8px 14px; border-radius: 999px; margin-bottom: 26px; }
.hero__badge b { color: #fff; }
.blink { width: 8px; height: 8px; border-radius: 50%; background: #38e08b; box-shadow: 0 0 10px #38e08b; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* hero visual */
.hero__photo { position: relative; }
.hero__photo img { border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); aspect-ratio: 3/4; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: 26px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.hero__tag {
    position: absolute; left: -18px; bottom: 26px; z-index: 3;
    background: rgba(11,16,32,.72); backdrop-filter: blur(12px);
    border: 1px solid var(--line-d); border-radius: 16px; padding: 14px 18px;
    font-family: var(--mono); font-size: 12px; color: #dfe4fb; box-shadow: var(--shadow);
}
.hero__tag b { color: var(--gold); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__photo { max-width: 380px; margin: 0 auto; } .hero__tag { left: 8px; } }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 20px; overflow: hidden; margin-top: 8px; }
.stat { background: var(--ink-2); padding: 22px 20px; text-align: center; }
.stat__num { font-family: var(--mono); font-weight: 700; font-size: clamp(24px,3.4vw,34px); color: var(--gold); }
.stat__lab { font-size: 12.5px; color: #aab2d6; margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .22s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.section--dark .card { background: var(--ink-2); border-color: var(--line-d); color: #e7ebfb; }
.card__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(232,176,75,.18), rgba(255,93,115,.14)); margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.section--dark .card p { color: #aab2d6; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; font-weight: 500; padding: 9px 15px; border-radius: 999px; background: rgba(232,176,75,.14); border: 1px solid rgba(232,176,75,.3); color: var(--gold-dp); }
.section--dark .chip { color: var(--gold); background: rgba(232,176,75,.1); }
.chip--rose { background: rgba(255,93,115,.12); border-color: rgba(255,93,115,.3); color: var(--rose-dp); }

/* subject split */
.subject { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .subject { grid-template-columns: 1fr; } }
.subject__photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.subject__photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* gauges */
.gauge { margin: 14px 0; }
.gauge__head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.gauge__head b { font-family: var(--mono); color: var(--rose-dp); }
.section--dark .gauge__head b { color: var(--rose); }
.gauge__track { height: 10px; border-radius: 999px; background: rgba(16,21,42,.08); overflow: hidden; }
.section--dark .gauge__track { background: rgba(255,255,255,.1); }
.gauge__fill { height: 100%; border-radius: 999px; width: 0; background: linear-gradient(90deg, var(--gold), var(--rose)); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

/* timeline */
.tl { position: relative; margin-top: 30px; }
.tl::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--rose)); opacity: .5; }
.tl__item { position: relative; padding: 0 0 26px 62px; }
.tl__num { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; background: var(--ink-2); color: var(--gold); border: 1px solid var(--line-d); }
.tl__item h3 { font-size: 19px; }
.tl__item p { color: #aab2d6; font-size: 15px; margin-top: 3px; }

/* ---------- candidate wall ---------- */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wall { grid-template-columns: 1fr; } }
.cand { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .22s, box-shadow .3s; }
.cand:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cand__ph { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.cand__ph img { width: 100%; height: 100%; object-fit: cover; }
.cand__score { position: absolute; top: 12px; right: 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 999px; color: #fff; background: rgba(11,16,32,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); }
.cand__body { padding: 18px 20px 22px; }
.cand__name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.cand__meta { font-size: 13.5px; color: var(--muted); margin: 2px 0 12px; }
.cand__desc { font-size: 14.5px; color: var(--text); }
.cand__more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--rose-dp); background: none; border: none; cursor: pointer; padding: 0; }
.cand__detail { display: none; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.cand__detail.open { display: block; animation: fade .3s ease; }
.qa { margin-bottom: 12px; }
.qa__q { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.qa__a { font-size: 14.5px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }
.section--dark .empty { border-color: var(--line-d); color: #aab2d6; }

/* donors */
.donors { display: flex; flex-wrap: wrap; gap: 12px; }
.donor { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 14px; padding: 13px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.donor b { font-family: var(--mono); color: var(--gold); }
.donor small { color: #aab2d6; }

/* CTA band */
.band { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; border-radius: 28px; padding: clamp(36px,6vw,64px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,93,115,.4), transparent 70%); top: -160px; right: -100px; filter: blur(60px); }
.band h2 { position: relative; }
.band .lead { color: #c3c9e6; margin: 16px auto 30px; position: relative; }
.band__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* footer */
.footer { background: var(--ink); color: #aab2d6; padding: 40px 0; font-size: 14px; }
.footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer a { color: #dfe4fb; }
.footer__dis { font-size: 12.5px; color: #6b729a; max-width: 70ch; margin-top: 10px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
