/* ============================================================
   Knittle - Marketing CSS
   Palette monochromatique chaude alignée 1:1 sur Theme.swift de
   l'app iOS (H 22° S 38%). Référence : COLOR_AUDIT.md du repo app.

   RÈGLES DURES :
   - 5 tokens couleur + 2 états, point.
   - CTA primary = bg ink + text cream (PAS terracotta, retiré de l'app).
   - CTA secondary = bg powder + text ink.
   - Aucun gradient (la spec interdit, cosyShadow() est no-op).
   - Aucune ombre teintée d'accent (que ink à très basse opacité).
   - Clay (accent) ≤ 5 % de l'écran.
   ============================================================ */

:root {
    /* ─── 5 brand tokens (Theme.swift, valeurs hex light) ─── */
    --cream:   #F2E8E1;   /* primary surface, 70% de l'écran */
    --powder:  #E5CFC2;   /* secondary surface, cards, secondary buttons */
    --clay:    #C39A8A;   /* accent doux, micro-éléments décoratifs */
    --cocoa:   #5C3A2E;   /* texte secondaire, icônes sur cream */
    --ink:     #2A1C16;   /* texte primaire, CTA primary, focus cards */

    /* ─── 2 state tokens (warm-family neighbours) ─── */
    --success: #7A8F5C;
    --error:   #A33D2D;

    /* ─── Aliases sémantiques ─── */
    --bg-primary:         var(--cream);
    --bg-surface:         var(--powder);
    --bg-elevated:        var(--ink);
    --text-primary:       var(--ink);
    --text-secondary:     var(--cocoa);
    --text-tertiary:      rgba(92, 58, 46, .6);    /* cocoa @ 60% */
    --text-on-dark:       var(--cream);
    --text-on-dark-muted: var(--clay);
    --accent:             var(--clay);
    --cta-primary-bg:     var(--ink);
    --cta-primary-text:   var(--cream);
    --cta-secondary-bg:   var(--powder);
    --cta-secondary-text: var(--ink);
    --border-subtle:      rgba(42, 28, 22, .08);   /* ink @ 8% */
    --border-default:     rgba(42, 28, 22, .15);   /* ink @ 15% */

    /* ─── Radii (alignés sur enum Radius de l'app) ─── */
    --r-chip:  14px;
    --r-card:  20px;
    --r-sheet: 24px;
    --r-pill:  28px;
    --r-sm:    10px;       /* pour les petits éléments tertiaires */

    /* ─── Ombres neutres (ink @ basse opacité, jamais d'accent) ─── */
    --shadow-soft: 0 1px 2px rgba(42, 28, 22, .04), 0 6px 16px rgba(42, 28, 22, .05);
    --shadow-lift: 0 12px 28px rgba(42, 28, 22, .10), 0 2px 4px rgba(42, 28, 22, .04);

    /* ─── Texture tricot (clay subtile, pas de jaune inventé) ─── */
    --knit-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23C39A8A' stroke-width='1.2' opacity='.4'><path d='M0 15 Q15 0 30 15 T60 15'/><path d='M0 45 Q15 30 30 45 T60 45'/><path d='M15 30 Q30 15 45 30 T75 30'/><path d='M-15 30 Q0 15 15 30 T45 30'/></g></svg>");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-default);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s, color .15s;
}
a:hover {
    color: var(--text-secondary);
    text-decoration-color: var(--cocoa);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
    color: var(--text-primary);
    margin: 0;
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.2;
}
p { margin: 0; }

/* L'italique serif est l'effet décoratif. La couleur reste primary ou accent
   selon le contexte (l'app utilise clay pour les emphases discrètes). */
em {
    font-style: italic;
    color: var(--accent);
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-weight: 500;
}

/* Phosphor Icons - sizing par défaut (sont des <i> chargés par web component).
   La couleur suit currentColor. Le poids de trait suit le suffixe de classe
   (ph = regular, ph-light, ph-bold, ph-fill, ph-duotone). */
[class*=" ph-"],
[class^="ph-"] {
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
    vertical-align: -.15em;
}

/* Logo Apple inline SVG (Phosphor n'inclut pas le logo Apple pour raisons
   commerciales). currentColor pour suivre le bouton qui le contient. */
.icon-apple {
    display: inline-block;
    vertical-align: -.18em;
    flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(242, 232, 225, .92);  /* cream @ 92% */
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
    max-width: 1180px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}
.nav-logo:hover { color: var(--text-primary); text-decoration: none; }
.nav-logo-mark {
    width: 38px; height: 38px;
    border-radius: var(--r-chip);
    object-fit: cover;
    display: block;
}
.nav-logo-text {
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: -.015em;
    line-height: 1;
}

.nav-links {
    display: flex; align-items: center; gap: 28px;
}
.nav-link {
    color: var(--text-secondary);
    font-weight: 500; font-size: 15px;
    text-decoration: none;
    transition: color .15s;
}
.nav-link:hover, .nav-link.is-active {
    color: var(--text-primary);
    text-decoration: none;
}

/* CTA principale = bg ink + text cream (CTA primary tokens) */
.nav-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    background: var(--cta-primary-bg);
    color: var(--cta-primary-text) !important;
    border-radius: var(--r-pill);
    font-weight: 600; font-size: 14.5px;
    text-decoration: none;
    transition: opacity .15s, transform .12s;
}
.nav-cta:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: var(--cta-primary-text) !important;
    text-decoration: none;
}

.nav-burger {
    display: none;
    background: transparent; border: 0; padding: 8px;
    cursor: pointer;
    width: 40px; height: 40px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* Lang switcher : bg powder (secondary surface). Chevron en icône
   Phosphor qui pivote à l'ouverture. Outside-click géré en JS. */
.lang-switcher { position: relative; }
.lang-switcher-toggle {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border-radius: var(--r-pill);
    color: var(--text-primary);
    font-size: 14px; font-weight: 500;
    user-select: none;
    transition: opacity .15s;
}
.lang-switcher-toggle:hover { opacity: .88; }
.lang-switcher-toggle::-webkit-details-marker { display: none; }
.lang-switcher-toggle::marker { content: ''; }
.lang-switcher-icon {
    font-size: 16px;
    color: var(--text-secondary);
}
.lang-switcher-chevron {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform .2s ease;
}
.lang-switcher[open] .lang-switcher-chevron { transform: rotate(180deg); }
.lang-switcher-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    margin: 0; padding: 6px; list-style: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-lift);
    min-width: 180px;
    z-index: 110;
}
.lang-switcher-menu a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-primary); font-size: 14px;
    border-radius: var(--r-sm);
    text-decoration: none;
}
.lang-switcher-menu a:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
}
.lang-switcher-menu a.is-active {
    color: var(--text-primary);
    font-weight: 600;
}
.lang-switcher-menu a.is-active .ph-check {
    color: var(--accent);
    font-size: 16px;
}

/* ============================================================
   BUTTONS
   Primary = ink + cream | Secondary = powder + ink (Theme.swift).
   Au hover, opacity baisse (mime le press behaviour de SwiftUI).
   ============================================================ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px;
    background: var(--cta-primary-bg);
    color: var(--cta-primary-text) !important;
    border-radius: var(--r-pill);
    font-weight: 600; font-size: 16px;
    text-decoration: none; border: 0; cursor: pointer;
    transition: opacity .15s, transform .12s;
    font-family: inherit;
}
.btn-primary:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: var(--cta-primary-text) !important;
    text-decoration: none;
}
.btn-primary:active {
    opacity: .88;
    transform: scale(.97);
}
.btn-primary i[class*="ph-"] { font-size: 20px; }
.btn-primary .icon-apple { margin-top: -2px; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 26px;
    background: var(--cta-secondary-bg);
    color: var(--cta-secondary-text) !important;
    border: 0;
    border-radius: var(--r-pill);
    font-weight: 600; font-size: 16px;
    text-decoration: none; cursor: pointer;
    transition: opacity .15s, transform .12s;
    font-family: inherit;
}
.btn-ghost:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: var(--cta-secondary-text) !important;
    text-decoration: none;
}

/* App Store badge - convention Apple : fond ink, texte cream */
.app-store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 16px;
    background: var(--cta-primary-bg);
    color: var(--cta-primary-text) !important;
    border-radius: var(--r-chip);
    text-decoration: none;
    transition: opacity .15s, transform .12s;
}
.app-store-badge:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: var(--cta-primary-text) !important;
    text-decoration: none;
}
.app-store-badge .icon-apple { width: 28px; height: 28px; }
.app-store-badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-store-badge-small { font-size: 11px; font-weight: 400; opacity: .85; letter-spacing: .02em; }
.app-store-badge-big { font-size: 19px; font-weight: 600; font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif; letter-spacing: -.01em; }
.app-store-badge--big { padding: 14px 24px 14px 20px; }
.app-store-badge--big .icon-apple { width: 36px; height: 36px; }
.app-store-badge--big .app-store-badge-big { font-size: 22px; }

/* ============================================================
   HERO
   Fond cream uni + texture knit subtile (clay @ 25%). Aucun gradient.
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 100px;
    background: var(--bg-primary);
}
.hero-bg {
    position: absolute; inset: 0;
    background: var(--bg-primary);
    z-index: -1;
}
.hero-knit-texture {
    position: absolute; inset: 0;
    background-image: var(--knit-pattern);
    background-size: 80px 80px;
    opacity: .35;
    z-index: -1;
    pointer-events: none;
}
.hero-inner {
    max-width: 720px; margin: 0 auto;
    text-align: center;
    position: relative;
}
.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-title {
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 24px;
    color: var(--text-primary);
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}
.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 580px; margin: 0 auto 32px;
}
.hero-ctas {
    display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.hero-note {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Liste des plateformes : chips powder, texte ink. */
.hero-platforms {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-platforms li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-surface);
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.hero-platforms i[class*="ph-"] { font-size: 18px; color: var(--accent); }

/* ============================================================
   SHOWCASE CAROUSEL (captures iOS verticales)
   Frame = ink (matche le device chrome iPhone). Aucun gradient.
   ============================================================ */
.showcase {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Viewport : on garde overflow:hidden pour clipper les slides hors-vue (loop
   infini), mais on ajoute du padding-block pour que les box-shadow des frames
   ne soient pas coupées verticalement. Et un mask-image gradient sur les bords
   latéraux pour fader le "morceau de slide suivant" qui peut être visible sur
   les viewports plus larges que la slide active + 2 voisins. */
.showcase-viewport {
    overflow: hidden;
    padding-block: 40px;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;

    mask-image: linear-gradient(to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%);
}
.showcase-viewport:active { cursor: grabbing; }
.showcase-track {
    display: flex;
    gap: 32px;
    position: relative;
    will-change: transform;
    visibility: hidden;
    align-items: flex-start;
}

/* Slides plus larges : 40vw cap 360px ; ça remplit mieux le viewport et
   évite qu'un 4e slide pointe son nez sur les bords. */
.showcase-slide {
    flex: 0 0 40vw;
    max-width: 360px;
    min-width: 0;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .5s cubic-bezier(.4, 0, .2, 1);
    transform: scale(.85);
    opacity: .5;
    will-change: transform, opacity;
}
.showcase-slide.is-active { transform: scale(1); opacity: 1; }
.showcase-caption {
    text-align: center;
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 18px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease, transform .5s ease;
}
.showcase-slide.is-active .showcase-caption {
    opacity: 1;
    transform: translateY(0);
}
.showcase-track.no-transition,
.showcase-track.no-transition * { transition: none !important; }

/* Frame device : on garde ink (le chrome de l'iPhone est noir profond).
   Shadow plus douce et plus serrée pour ne pas trop déborder dans le
   padding-block du viewport. */
.showcase-frame {
    border-radius: 36px;
    padding: 10px;
    background: var(--ink);
    box-shadow:
        0 14px 28px rgba(42, 28, 22, .15),
        0 4px 8px rgba(42, 28, 22, .08);
}
.showcase-img {
    aspect-ratio: 1290 / 2796;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-primary);
}
.showcase-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 32px 20px;
    color: var(--text-secondary);
    background: var(--bg-primary);
}
.showcase-placeholder i[class*="ph-"] {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 14px;
}
.showcase-placeholder p {
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.showcase-placeholder small {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.showcase-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 18px;
    margin-top: 36px;
}
.showcase-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--cta-secondary-bg);
    color: var(--cta-secondary-text);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: opacity .15s, transform .12s;
}
.showcase-arrow:hover {
    opacity: .9;
    transform: translateY(-1px);
}
.showcase-arrow i[class*="ph-"] { font-size: 22px; }
.showcase-dots {
    display: inline-flex; gap: 10px; align-items: center;
}
.showcase-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 0;
    background: var(--border-default);
    cursor: pointer;
    padding: 0;
    transition: background .15s, transform .25s ease;
}
.showcase-dot:hover { background: var(--clay); }
.showcase-dot.is-active {
    background: var(--ink);
    transform: scale(1.3);
}

/* ============================================================
   WATCH SECTION (3 écrans Apple Watch dans la langue courante)
   Frame Watch en CSS pur : boîtier ink + écran qui contient la capture.
   La couronne digitale et le bouton latéral sont des éléments dédiés
   pour rendre le Watch reconnaissable au premier coup d'œil.
   ============================================================ */
.watch-section {
    padding-top: 80px;
    padding-bottom: 100px;
}

.watch-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px 32px;
    max-width: 860px;
    margin: 0 auto;
}

/* 3 Watches plus grandes que dans la version multi-locales (220 au lieu de
   180). Le visiteur voit clairement le contenu de chaque écran. */
.watch-item {
    text-align: center;
    flex: 0 0 auto;
    width: 220px;
    transition: transform .3s ease;
}
.watch-item:hover {
    transform: translateY(-4px);
}

/* La capture (Watch Ultra 49mm) fait 410 x 502 px. On reproduit le ratio
   exactement, et on ajoute le chrome (boîtier) en padding autour. */
.watch-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 410 / 502;
    background: var(--ink);
    border-radius: 38px;
    padding: 8px;
    box-shadow:
        0 12px 24px rgba(42, 28, 22, .18),
        0 3px 6px rgba(42, 28, 22, .08);
}

/* Couronne digitale (Digital Crown) à droite, en haut. */
.watch-crown {
    position: absolute;
    right: -4px; top: 28%;
    width: 7px; height: 22px;
    background: #1a110b;
    border-radius: 2px 4px 4px 2px;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}
/* Bouton latéral (Side Button) plus bas. */
.watch-button {
    position: absolute;
    right: -3px; top: 58%;
    width: 5px; height: 28px;
    background: #1a110b;
    border-radius: 2px 3px 3px 2px;
}

.watch-screen {
    width: 100%; height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--ink);
}
.watch-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Caption sous chaque Watch : courte, en sérif Fraunces, pour matcher le ton
   des autres légendes (showcase, hero). */
.watch-caption {
    margin-top: 22px;
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -.005em;
    line-height: 1.3;
    padding: 0 8px;
}

/* Mobile : Watch un peu plus petites, wrap à 2 puis 1. */
@media (max-width: 720px) {
    .watch-item { width: 170px; }
    .watch-frame { border-radius: 34px; padding: 7px; }
    .watch-screen { border-radius: 28px; }
    .watch-crown { width: 6px; height: 18px; right: -3px; }
    .watch-button { width: 4px; height: 24px; right: -2px; }
    .watch-caption { font-size: 14px; margin-top: 16px; }
    .watch-wall { gap: 28px 18px; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
}
.trust-list {
    max-width: 1180px; margin: 0 auto;
    list-style: none; padding: 0;
    display: flex; justify-content: center;
    gap: 36px; flex-wrap: wrap;
}
.trust-list li {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-secondary);
    font-size: 14.5px; font-weight: 500;
}
.trust-icon {
    color: var(--accent);
    font-size: 22px;
}

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section {
    padding: 100px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.section-wrap { width: 100%; }
.section-wrap--alt { background: var(--bg-surface); }

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}
.section-head--left { text-align: left; margin-left: 0; }
.eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 18px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================================
   FEATURES
   Cards = powder sur cream (contraste secondaire). Au hover, lift léger.
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-surface);
    border-radius: var(--r-card);
    padding: 32px 26px;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    background: var(--bg-primary);
    border-radius: var(--r-chip);
    margin-bottom: 20px;
}
.feature-icon i[class*="ph-"] {
    font-size: 30px;
    color: var(--ink);
}
.feature-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   Numéros = bg ink + text cream (CTA primary). Pas d'ombre colorée.
   ============================================================ */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    list-style: none; padding: 0; margin: 0;
    counter-reset: step;
}
.how-step {
    text-align: center;
    padding: 0 12px;
}
.how-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--cta-primary-bg);
    color: var(--cta-primary-text);
    border-radius: 50%;
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: 26px; font-weight: 600;
    margin-bottom: 20px;
}
.how-step-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}
.how-step-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   DEMO CTA
   Fond powder uni + texture knit subtile (PAS de gradient).
   ============================================================ */
.demo-cta {
    background: var(--bg-surface);
    border-radius: var(--r-sheet);
    padding: 72px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1132px;
    margin: 80px auto 100px;
}
.demo-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--knit-pattern);
    background-size: 80px 80px;
    opacity: .3;
    pointer-events: none;
}
.demo-cta-inner { position: relative; max-width: 580px; margin: 0 auto; }
.demo-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px;
}
.demo-cta p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================================
   FAQ
   Items = bg powder. Pas de hover coloré.
   ============================================================ */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-surface);
    border-radius: var(--r-chip);
    overflow: hidden;
    transition: box-shadow .15s;
}
.faq-item[open] {
    box-shadow: var(--shadow-soft);
}
.faq-q {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-chevron {
    transition: transform .2s;
    color: var(--text-secondary);
    font-size: 18px;
    flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--text-primary); }
.faq-a {
    padding: 0 22px 22px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15.5px;
}

/* ============================================================
   ARTICLE SEO
   ============================================================ */
.seo-article.section {
    max-width: 760px;
    line-height: 1.75;
}
.seo-article-head { margin-bottom: 32px; }
.seo-article h2 {
    font-size: 32px;
    margin-bottom: 14px;
}
.seo-article-intro {
    font-size: 19px;
    color: var(--text-secondary);
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}
.seo-article h3 {
    font-size: 24px;
    margin: 38px 0 14px;
    font-weight: 600;
}
.seo-article p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 14px;
}
.seo-cta {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-primary);
    border-radius: var(--r-card);
    text-align: center;
}
.seo-cta h4 {
    font-size: 22px;
    margin-bottom: 8px;
}
.seo-cta p { margin-bottom: 20px; }

/* ============================================================
   CONTACT FORM
   Form sur cream, champs sur cream-soft (= cream légèrement différencié
   via une bordure). On reste dans la palette : pas d'inventer une couleur.
   ============================================================ */
.contact-section {
    padding-top: 80px;
}
.contact-inner {
    max-width: 720px;
    margin: 0 auto;
}
.contact-form {
    display: flex; flex-direction: column;
    gap: 18px;
    background: var(--bg-surface);
    border-radius: var(--r-sheet);
    padding: 36px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-default);
    border-radius: var(--r-chip);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: border-color .15s, background .15s;
    resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}
.form-submit {
    align-self: flex-start;
    justify-content: center;
    min-width: 200px;
    position: relative;
}
.form-submit-sending { display: none; }
.form-submit.is-sending .form-submit-label { display: none; }
.form-submit.is-sending .form-submit-sending { display: inline; }
.form-feedback {
    padding: 12px 16px;
    border-radius: var(--r-chip);
    font-size: 14.5px;
    font-weight: 500;
    display: none;
}
.form-feedback.is-success {
    display: block;
    background: rgba(122, 143, 92, .15);  /* success @ 15% */
    color: var(--success);
}
.form-feedback.is-error {
    display: block;
    background: rgba(163, 61, 45, .12);   /* error @ 12% */
    color: var(--error);
}

/* ============================================================
   PRIVACY / LEGAL
   ============================================================ */
.legal-section { padding-top: 80px; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-updated {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 6px;
}
.legal-body { margin-top: 32px; line-height: 1.75; }
.legal-lead {
    font-size: 18px;
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-style: italic;
    color: var(--text-primary);
    padding: 24px 28px;
    background: var(--bg-surface);
    border-left: 4px solid var(--ink);
    border-radius: 0 var(--r-chip) var(--r-chip) 0;
    margin-bottom: 32px;
}
.legal-body h2 {
    font-size: 24px;
    margin: 36px 0 12px;
    font-weight: 600;
}
.legal-body p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 16px;
}
.legal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.legal-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.legal-list li::before {
    content: '';
    position: absolute;
    left: 8px; top: 11px;
    width: 8px; height: 8px;
    background: var(--clay);
    border-radius: 50%;
}
.legal-list strong { color: var(--text-primary); font-weight: 600; }

/* ============================================================
   404
   ============================================================ */
.error-section {
    min-height: 60vh;
    display: flex; align-items: center;
    padding: 80px 24px;
}
.error-inner {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}
.error-code {
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: 120px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 14px;
}

/* ============================================================
   FOOTER
   Sur ink (bg-elevated) : textOnDark = cream, textOnDarkMuted = clay.
   ============================================================ */
.site-footer {
    background: var(--bg-elevated);
    color: var(--text-on-dark);
    padding: 64px 24px 32px;
    margin-top: 80px;
}
.site-footer .nav-logo-text { color: var(--text-on-dark); }
.site-footer a { color: inherit; text-decoration: none; }
.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(242, 232, 225, .12);  /* cream @ 12% */
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-tagline {
    color: rgba(242, 232, 225, .7);  /* cream @ 70% */
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 20px;
}

/* Réseaux sociaux : pastilles rondes sous le badge App Store. */
.footer-social {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 22px 0 0;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(242, 232, 225, .1);   /* cream @ 10% sur ink */
    color: rgba(242, 232, 225, .8);
    transition: background .15s, color .15s, transform .12s;
}
.footer-social a:hover {
    background: var(--clay);
    color: var(--ink);
    transform: translateY(-2px);
}
.footer-social i[class*="ph-"] { font-size: 20px; }
.footer-col-title {
    color: var(--text-on-dark);
    font-family: 'Fraunces', ui-serif, 'New York', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
}
.footer-links {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
    color: rgba(242, 232, 225, .7);  /* cream @ 70% */
    font-size: 14.5px;
    text-decoration: none;
    transition: color .15s;
}
.footer-links a:hover { color: var(--text-on-dark-muted); }  /* clay */
.footer-links a.is-current { color: var(--text-on-dark-muted); font-weight: 600; }
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: rgba(242, 232, 225, .5);
    font-size: 13.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 6px;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 24px 20px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s, opacity .2s;
    }
    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link { padding: 8px 0; }
    .nav-cta { align-self: flex-start; }
    .lang-switcher { align-self: flex-start; }
    .lang-switcher-menu { right: auto; left: 0; }

    .hero { padding: 56px 20px 80px; }
    .section { padding: 72px 20px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }

    .demo-cta { margin: 60px 20px 80px; padding: 56px 24px; }
}

@media (max-width: 720px) {
    /* Sur mobile, on montre la slide active en grand et un demi-voisin
       de chaque côté. Le ratio 40vw devient trop petit pour le contenu. */
    .showcase-slide {
        flex: 0 0 72vw;
        max-width: none;
    }
    .showcase-track { gap: 20px; }
}

@media (max-width: 520px) {
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 17px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-ghost { justify-content: center; }
    .trust-list { gap: 16px; flex-direction: column; align-items: flex-start; padding-left: 12px; }
    .error-code { font-size: 90px; }

    .showcase-caption { font-size: 16px; }
}

/* Focus visibles partout (accessibilité) */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
    outline-offset: 3px;
}
