/* =========================================================
   Dossardeur v2 — site de présentation
   Identité reprise de l'app : gradient OD navy→bleu, accent émeraude
   ========================================================= */

:root {
    /* Gradient hero */
    --grad-start: #0f172a;
    --grad-mid: #1e3a5f;
    --grad-end: #4472C4;

    --primary: #4472C4;
    --primary-light: #5B8DEF;
    --primary-dark: #2d4889;
    --accent: #0F5132;
    --accent-light: #169a5a;

    /* Corps clair */
    --bg: #f8fafc;
    --card: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --muted: #64748b;
    --border: #e2e8f0;

    --radius: 20px;
    --radius-sm: 14px;
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, .10);
    --shadow-phone: 0 40px 80px -20px rgba(15, 23, 42, .45);

    --maxw: 1140px;
    --font-display: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700;
    border-radius: 999px; padding: 14px 26px; border: none; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(68, 114, 196, .35); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
    padding: 14px 0;
}
.site-header.scrolled {
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: #fff; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
    color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .95rem;
    position: relative; transition: color .2s ease;
}
.nav-links > a:not(.btn):hover { color: #fff; text-decoration: none; }
.nav-links > a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--primary-light); transition: width .25s ease;
}
.nav-links > a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   FONDS SOMBRES (hero, sections dark) — gradient + halos + grain
   ========================================================= */
.hero, .section.dark { position: relative; overflow: hidden; color: #fff; }
.hero, .section.dark {
    background: linear-gradient(150deg, var(--grad-start) 0%, var(--grad-mid) 55%, var(--grad-end) 130%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 520px; height: 520px; background: #4472C4; top: -120px; right: -80px; }
.glow-2 { width: 440px; height: 440px; background: #1B7A4B; bottom: -160px; left: -120px; opacity: .35; }
.glow-3 { width: 600px; height: 600px; background: #5B8DEF; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .28; }
.grain {
    position: absolute; inset: 0; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 150px 0 110px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.eyebrow {
    display: inline-block; font-family: var(--font-display); font-weight: 700;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: #bcd0f5; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}

/* Bandeau d'annonce cliquable */
.announce-banner {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
    padding: 7px 8px 7px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; text-decoration: none; font-size: .9rem;
    backdrop-filter: blur(8px); transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.announce-banner:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); text-decoration: none; }
.ab-tag {
    font-family: var(--font-display); font-weight: 700; font-size: .78rem;
    background: var(--accent-light); color: #fff; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}
.ab-text { font-weight: 500; color: rgba(255, 255, 255, .92); }
.ab-arrow { font-weight: 700; color: #7AA5F5; transition: transform .2s ease; padding-right: 6px; }
.announce-banner:hover .ab-arrow { transform: translateX(4px); }
@media (max-width: 480px) { .ab-text { font-size: .82rem; } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin-bottom: 22px; }
.accent-text {
    background: linear-gradient(90deg, #7AA5F5, #34d399);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .82); max-width: 540px; margin-bottom: 34px; }
.hero-sub strong { color: #fff; font-weight: 600; }

.store-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.store-badges.center { justify-content: center; }
.store-badges img { height: 56px; width: auto; transition: transform .2s ease; }
.store-badges a:hover img { transform: translateY(-3px); }

/* Mockup téléphone flottant */
.hero-visual { display: flex; justify-content: center; }
.phone-float img { filter: drop-shadow(var(--shadow-phone)); animation: float 6s ease-in-out infinite; }
.phone-float.small { max-width: 340px; margin: 0 auto; }
.phone-float.small img { width: 100%; }
.glow-shadow img { filter: drop-shadow(0 40px 80px -16px rgba(91, 141, 239, .55)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =========================================================
   VAGUES
   ========================================================= */
.wave { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 1; pointer-events: none; }
.wave svg { width: 100%; height: 70px; display: block; }
.wave-down { bottom: -1px; }
.wave-down svg path { fill: var(--bg); }
.wave-up { top: -1px; }
.wave-up svg path { fill: var(--bg); }

/* =========================================================
   BANDEAU FÉDÉRATIONS
   ========================================================= */
.fede-strip { background: var(--bg); padding: 30px 0 10px; }
.fede-label {
    text-align: center; font-family: var(--font-display); font-weight: 700;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.fede-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 38px; }
.fede-logos img {
    height: 46px; width: auto; opacity: .55; filter: grayscale(1);
    transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.fede-logos img:hover { opacity: 1; filter: grayscale(0); transform: scale(1.05); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 90px 0; }
.section.light { background: var(--bg); }
.section.dark { padding: 120px 0; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.kicker {
    display: inline-block; font-family: var(--font-display); font-weight: 700;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.light-kicker { color: #9bc0ff; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Cartes 3 vues */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px 28px; box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-ic {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; margin-bottom: 18px; color: var(--primary);
    background: linear-gradient(140deg, rgba(68, 114, 196, .14), rgba(15, 81, 50, .10));
    border: 1px solid rgba(68, 114, 196, .14);
}
.card-ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card h3 small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.card p { color: var(--ink-soft); }

/* Sections split image/texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.split-copy > p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 22px; }
.feature-row.alt { background: #fff; }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.ticks li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: #fff; border-radius: 50%;
    background: var(--accent-light);
}

/* Badge nouveau */
.badge-new {
    display: inline-block; font-family: var(--font-display); font-weight: 700;
    font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: var(--accent-light); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
    margin-right: 10px;
}

/* Section sombre — textes */
.on-dark { color: #fff; }
.on-dark-sub { color: rgba(255, 255, 255, .82); font-size: 1.08rem; margin-bottom: 22px; }
.on-dark-ticks li { color: rgba(255, 255, 255, .85); }
.on-dark-ticks li strong { color: #fff; }
.section.dark .split { position: relative; z-index: 1; }
.section.dark .ticks li::before { background: #34d399; color: #06301c; }

.powered { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: rgba(255, 255, 255, .6); font-size: .85rem; }
.powered img { height: 42px; width: auto; border-radius: 8px; }

/* =========================================================
   HELLOASSO — COMMENT ÇA MARCHE
   ========================================================= */
.helloasso { --ha: #3d1d8a; --ha-light: #5b2bb5; }
.ha-kicker { color: var(--ha-light); }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px 30px 32px; box-shadow: var(--shadow-sm);
    overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
}
.step::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--ha-light), #a78bfa);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
    display: block; font-family: var(--font-display); font-weight: 800;
    font-size: 2.6rem; line-height: 1; color: var(--ha-light);
    opacity: .9; margin-bottom: 16px; letter-spacing: -.03em;
}
.step h3 { font-size: 1.18rem; margin-bottom: 12px; }
.step p { color: var(--ink-soft); }
.step p strong, .ha-foot p strong { color: var(--ink); font-weight: 600; }

.ha-foot {
    display: flex; align-items: center; gap: 20px; margin-top: 36px;
    background: linear-gradient(135deg, rgba(61, 29, 138, .06), rgba(167, 139, 250, .08));
    border: 1px solid rgba(91, 43, 181, .15); border-radius: var(--radius); padding: 22px 26px;
}
.ha-foot img { height: 44px; width: auto; border-radius: 8px; flex-shrink: 0; }
.ha-foot p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease;
}
.faq-list details[open] { box-shadow: var(--shadow-md); }
.faq-list summary {
    cursor: pointer; list-style: none; padding: 22px 24px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 400;
    transition: transform .25s ease; line-height: 1;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; color: var(--ink-soft); }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download-inner { position: relative; z-index: 1; text-align: center; }
.download-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.download-inner .on-dark-sub { margin-bottom: 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0b1220; color: rgba(255, 255, 255, .7); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 260px; color: rgba(255, 255, 255, .55); }
.footer-h { display: block; font-family: var(--font-display); font-weight: 700; color: #fff; margin-bottom: 16px; font-size: .95rem; }
.footer-col a, .socials a { display: block; color: rgba(255, 255, 255, .68); margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover, .socials a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; }
.footer-bottom p { font-size: .85rem; color: rgba(255, 255, 255, .45); text-align: center; }

/* =========================================================
   BOUTON FANTÔME (page annonce)
   ========================================================= */
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: var(--primary); transform: translateY(-2px); }

/* =========================================================
   PAGE ANNONCE — FIREBALL
   ========================================================= */
.hero-announce { padding: 160px 0 120px; }
.announce-hero-inner { position: relative; z-index: 1; max-width: 820px; text-align: center; margin: 0 auto; }
.announce-hero-inner h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.announce-hero-inner .hero-sub { margin: 0 auto; }

.prose { max-width: 720px; }
.prose > p { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.78; margin-bottom: 24px; }
.prose > p strong { color: var(--ink); font-weight: 600; }
.prose .lead { font-size: 1.32rem; line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 30px; }
.prose h2 {
    font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 18px;
    padding-top: 10px; position: relative;
}
.prose h2::before {
    content: ''; display: block; width: 48px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-light)); margin-bottom: 20px;
}

.prose-figure { margin: 36px 0; text-align: center; }
.prose-figure img { display: inline-block; height: 54px; width: auto; border-radius: 10px; }

.pull-quote {
    margin: 40px 0; padding: 26px 30px; border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(68, 114, 196, .07), rgba(15, 81, 50, .07));
    border-left: 4px solid var(--primary);
    font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.5;
    color: var(--ink);
}

.thanks { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }

.thanks-card {
    margin: 44px 0; padding: 32px 34px; border-radius: var(--radius);
    background: linear-gradient(140deg, rgba(15, 81, 50, .06), rgba(68, 114, 196, .06));
    border: 1px solid rgba(15, 81, 50, .14); position: relative;
}
.thanks-card-title {
    display: inline-block; font-family: var(--font-display); font-weight: 800;
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-light); margin-bottom: 16px;
}
.thanks-card p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.72; margin-bottom: 16px; }
.thanks-card p:last-child { margin-bottom: 0; }
.thanks-card p strong { color: var(--ink); font-weight: 600; }

.signature { display: flex; align-items: center; gap: 18px; margin: 44px 0 8px; }
.signature-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); }
.signature-text { display: flex; flex-direction: column; }
.signature-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.signature-role { color: var(--muted); font-size: .95rem; }

.announce-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--border); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .phone-float img { animation: none; }
    html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .store-badges { justify-content: center; }
    .hero-visual .phone-float img { max-width: 320px; }
    .cards-3, .steps-3 { grid-template-columns: 1fr; }
    .ha-foot { flex-direction: column; text-align: center; }
    .split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .split.reverse .split-media { order: 0; }
    .split-copy { display: flex; flex-direction: column; align-items: center; }
    .ticks { text-align: left; }
    .powered { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .socials a { display: inline-block; margin: 0 10px 10px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 4px; align-items: stretch;
        background: rgba(15, 23, 42, .96); backdrop-filter: blur(14px);
        padding: 0 24px; max-height: 0; overflow: hidden;
        transition: max-height .35s ease, padding .35s ease;
    }
    .nav-links.open { max-height: 360px; padding-top: 16px; padding-bottom: 24px; }
    .nav-links > a:not(.btn) { padding: 12px 0; }
    .nav-links .btn { margin-top: 8px; }
    .hero { padding: 120px 0 90px; }
}
