/* ============================================================
   Swifto — Site vitrine
   Bleu nuit / degrade bleu -> cyan (issu du logo). Police Inter (self-hostee).
   Parti pris : hairlines, grain leger, degrade reserve aux accents cles.
   ============================================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/inter-var.woff2') format('woff2-variations'),
         url('/assets/fonts/inter-var.woff2') format('woff2');
}

:root {
    --bg:            #080e1e;
    --bg-soft:       #0b1330;
    --surface:       #10182f;
    --surface-2:     #141d38;
    --surface-hover: #182142;
    --border:        rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.16);

    --text:        #f4f6fb;
    --text-muted:  #9aa5bd;
    --text-faint:  #66708a;

    --accent:      #0057ff;
    --accent-2:    #00b8ff;
    --accent-grad: linear-gradient(90deg, var(--accent), var(--accent-2));
    --accent-soft: rgba(0, 120, 255, .12);

    --success:     #22c55e;
    --success-bg:  rgba(34,197,94,.12);
    --error:       #ff5470;
    --error-bg:    rgba(255,84,112,.12);
    --amber:       #ffb545;
    --amber-bg:    rgba(255,181,69,.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius:    18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --maxw:        1160px;
    --maxw-narrow: 760px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    position: relative;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--maxw-narrow); }
::selection { background: var(--accent); color: #fff; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Grain leger sur toute la page (profondeur, evite le plat) */
.grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal au scroll (progressive enhancement, voir main.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 30, .55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
    background: rgba(8, 14, 30, .85);
    border-bottom-color: var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand__logo { border-radius: 8px; }
.brand:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14.5px;
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--accent-grad);
    transform: scaleX(0);
    transition: transform .2s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14.5px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), opacity .18s ease;
    white-space: nowrap;
}
.btn .icon { width: 15px; height: 15px; }
.btn--sm { padding: 9px 16px; }
.btn--lg { padding: 15px 28px; font-size: 15.5px; }
.btn--primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -8px rgba(0, 100, 255, .55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 34px -6px rgba(0, 120, 255, .6); color: #fff; }
.btn--primary:disabled { opacity: .6; transform: none; cursor: default; }
.btn--ghost {
    background: rgba(255,255,255,.03);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent-2); background: rgba(0,184,255,.06); color: var(--text); }
.btn--block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 76px 0 100px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 720px;
    z-index: 0;
    background:
        radial-gradient(420px 320px at var(--mx, 50%) var(--my, 0%), rgba(0, 184, 255, .14), transparent 70%),
        radial-gradient(600px 420px at 78% 8%, rgba(0, 184, 255, .24), transparent 60%),
        radial-gradient(560px 380px at 14% 0%, rgba(0, 87, 255, .2), transparent 60%);
    filter: blur(10px);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(560px 420px at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(560px 420px at 50% 0%, #000 30%, transparent 75%);
    opacity: .5;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 56px;
    align-items: center;
}
.hero__content { max-width: 620px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .02em;
    margin-bottom: 22px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    background: rgba(255,255,255,.03);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 22px; }
.hero h1 .grad-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead { font-size: 18px; color: var(--text-muted); max-width: 540px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.trust-bar { display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--text-muted); font-size: 14px; }
.trust-bar li { display: flex; align-items: center; gap: 8px; }
.trust-bar .icon { width: 15px; height: 15px; color: var(--accent-2); }

/* --- Mockup produit (hero) --- */
.hero__visual { position: relative; z-index: 1; }
.mockup {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 30px 80px -20px rgba(0, 8, 30, .7), 0 0 0 1px rgba(255,255,255,.02) inset;
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.mockup__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.mockup__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mockup__url {
    margin-left: 8px;
    font-size: 11.5px;
    color: var(--text-faint);
    background: rgba(255,255,255,.04);
    border-radius: 6px;
    padding: 4px 10px;
}
.mockup__body { padding: 18px; }
.mockup__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mockup__head h4 { font-size: 13.5px; font-weight: 600; }
.mockup__head span { font-size: 11.5px; color: var(--text-faint); }
.mockup__row {
    display: grid;
    grid-template-columns: 1.6fr .8fr .8fr .8fr;
    gap: 8px;
    align-items: center;
    padding: 11px 8px;
    border-radius: var(--radius-xs);
    font-size: 12.5px;
}
.mockup__row--label {
    color: var(--text-faint);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-bottom: 6px;
}
.mockup__row:not(.mockup__row--label):hover { background: rgba(255,255,255,.03); }
.mockup__row span:first-child { color: var(--text); font-weight: 500; }
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.pill--ok { background: var(--success-bg); color: var(--success); }
.pill--warn { background: var(--amber-bg); color: var(--amber); }

.floatcard {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 24, 47, .85);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px -12px rgba(0,8,30,.6);
    backdrop-filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}
.floatcard__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--accent-grad);
    color: #fff;
    flex-shrink: 0;
}
.floatcard__icon .icon { width: 17px; height: 17px; }
.floatcard strong { display: block; font-size: 15px; line-height: 1.2; }
.floatcard span { display: block; font-size: 11.5px; color: var(--text-muted); }
.floatcard--1 { top: -22px; right: -18px; animation-delay: .3s; }
.floatcard--2 { bottom: -20px; left: -22px; animation-delay: 1.1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .floatcard { animation: none; }
}

/* ============================================================
   SECTIONS GENERIQUES
   ============================================================ */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-eyebrow {
    display: inline-block;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 16px; }
.section-lead { color: var(--text-muted); font-size: 17px; }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.grid--features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.feature-card {
    position: relative;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -20px rgba(0, 40, 120, .5);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-2);
    margin-bottom: 18px;
}
.feature-icon .icon { width: 20px; height: 20px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ============================================================
   TIMELINE ("comment ca marche")
   ============================================================ */
.timeline { position: relative; max-width: 720px; margin-top: 8px; }
.timeline::before {
    content: "";
    position: absolute;
    top: 8px; bottom: 8px; left: 27px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
    opacity: .35;
}
.timeline-step {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 44px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step__node {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 0 0 6px var(--bg);
}
.section--alt .timeline-step__node { box-shadow: 0 0 0 6px var(--bg-soft); }
.timeline-step__node .icon { width: 22px; height: 22px; }
.timeline-step__content { padding-top: 6px; }
.timeline-step__num { font-size: 12.5px; color: var(--accent-2); font-weight: 700; letter-spacing: .04em; margin-bottom: 4px; display: block; }
.timeline-step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-step p { color: var(--text-muted); font-size: 15px; max-width: 480px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 24px;
    transition: border-color .2s ease, background .2s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-weight: 600;
    font-size: 15.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent-2); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 22px; font-size: 15px; max-width: 620px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.contact-info { padding-top: 6px; }
.contact-info p.section-lead { margin-bottom: 28px; }
.contact-checklist { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-muted); }
.contact-checklist .icon { width: 17px; height: 17px; color: var(--accent-2); margin-top: 2px; flex-shrink: 0; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-muted); margin-bottom: 10px; }
.contact-detail .icon { width: 16px; height: 16px; color: var(--accent-2); }
.contact-detail a { color: var(--text); font-weight: 500; }

.contact-card {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 30px 60px -30px rgba(0,8,30,.6);
}

.form-notice {
    margin-bottom: 22px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
}
.form-notice--success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,.3); }
.form-notice--error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(255,84,112,.3); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--full { grid-column: 1 / -1; }
.contact-form label { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.contact-form input, .contact-form textarea {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(0, 184, 255, .15);
}
.contact-form button { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   PAGES LEGALES
   ============================================================ */
.legal { padding-top: 60px; }
.legal h2 { font-size: 19px; margin: 32px 0 12px; }
.legal p { color: var(--text-muted); margin-bottom: 4px; }
.legal .section-title { margin-bottom: 32px; }
.todo-marker {
    background: rgba(255, 181, 69, .15);
    color: var(--amber);
    border: 1px dashed rgba(255, 181, 69, .5);
    border-radius: 4px;
    padding: 1px 6px;
    font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { position: relative; border-top: 1px solid var(--border); padding: 64px 0 28px; }
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.site-footer__brand img { border-radius: 6px; }
.site-footer__col--brand p { color: var(--text-muted); font-size: 14px; max-width: 220px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__heading { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.site-footer__col a { color: var(--text-muted); font-size: 14px; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    color: var(--text-faint);
    font-size: 13px;
}
.site-footer__credit a { color: var(--text-faint); }
.site-footer__credit a:hover { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { max-width: 460px; margin: 0 auto; }
    .floatcard { display: none; }
    .grid--features { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px 28px;
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn)::after { display: none; }
}
@media (max-width: 560px) {
    .grid--features { grid-template-columns: 1fr; }
    .contact-form { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 72px; }
    .section { padding: 72px 0; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .mockup { transform: none; }
}
