/* ── Fonts (auto-hébergées — pas d'appel Google Fonts) ────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900; /* fonte variable */
    font-display: swap;
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg:           #08090e;
    --bg-surface:   #0f1117;
    --bg-elevated:  #161822;
    --bg-card:      #111320;
    --surface-1:    var(--bg-surface);
    --surface-2:    var(--bg-elevated);

    /* Borders */
    --border:       #1e2136;
    --border-muted: #14162a;

    /* Text */
    --text:           #e8e9f0;
    --text-secondary: #a8abc8;
    --text-muted:     #7c7f9e;
    --text-faint:     #474a6a;

    /* Accents */
    /* Brand accent — matches the cloud logo (#0078B7).
       Token names kept as --green* for backward compat across the codebase. */
    --green:        #0078b7;
    --green-dim:    #005f92;
    --green-hover:  #2596d9;
    --green-glow:   rgba(0, 120, 183, 0.14);
    --green-border: rgba(0, 120, 183, 0.32);

    --amber:        #f59e0b;
    --amber-dim:    #d97706;
    --amber-glow:   rgba(245, 158, 11, 0.10);

    --blue:         #0078b7;
    --blue-dim:     #005f92;
    --blue-glow:    rgba(0, 120, 183, 0.14);

    /* Gradients */
    --gradient-brand:  linear-gradient(135deg, var(--green), var(--green-dim));
    --gradient-text:   linear-gradient(135deg, #0078b7 0%, #7cc4e8 50%, #f59e0b 100%);

    /* Spacing */
    --space-xs:   4px;
    --space-sm:   8px;
    --space-md:   16px;
    --space-lg:   24px;
    --space-xl:   40px;
    --space-2xl:  64px;
    --space-3xl:  96px;
    --space-4xl: 128px;

    /* Typography */
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'Fira Code', 'Cascadia Code', ui-monospace, monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-hero: clamp(2.75rem, 5vw + 1rem, 4.5rem);

    /* Radii */
    --radius-sm:  6px;
    --radius:     8px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-2xl: 28px;

    /* Motion */
    --duration-fast:   120ms;
    --duration:        200ms;
    --duration-slow:   350ms;
    --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max:  1200px;
    --nav-height:     64px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ── Custom Scrollbars ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
::-webkit-scrollbar-corner { background: var(--bg-surface); }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-surface);
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100dvh;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
    padding-block: var(--space-3xl);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Gradient text ────────────────────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(0,120,183,.25), 0 4px 24px var(--green-glow);
}
.btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(0,120,183,.4), 0 8px 32px rgba(0,120,183,.25);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--green-border);
    color: var(--green);
    background: var(--green-glow);
}

.btn-ghost {
    color: var(--text-muted);
    background: transparent;
}
.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.btn-sm  { padding: 7px 14px; font-size: var(--text-xs); }
.btn-lg  { padding: 13px 28px; font-size: var(--text-base); border-radius: var(--radius-lg); }

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-elevated);
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border-muted);
    background: rgba(8, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color var(--duration);
}

.site-header.scrolled {
    border-color: var(--border);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
    transition: opacity var(--duration);
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-img {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    box-shadow: 0 2px 8px var(--green-glow);
}
.nav__logo-text { letter-spacing: -0.02em; }

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
}

.nav__link {
    /* inline-flex + nowrap : libellé et chevron du dropdown sur UNE ligne —
       en inline pur, le chevron wrap sous le texte dès que le <li> rétrécit
       et l'item du menu s'affiche sur deux lignes. */
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 12px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: color var(--duration), background var(--duration);
}
.nav__link svg { flex-shrink: 0; }
.nav__link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Language switcher */
/* ── Nav dropdown ─────────────────────────────────────────────────────────── */
.nav__links .has-dropdown { position: relative; }
.nav__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 200;
    list-style: none;
}
.has-dropdown:hover .nav__dropdown,
.has-dropdown:focus-within .nav__dropdown { display: block; }
/* Pont invisible sur l'espace de 8px entre le <li> et le dropdown :
   sans lui, le curseur quitte le :hover en traversant l'espace
   et le menu se referme avant d'atteindre les liens. */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}
.nav__dropdown-link {
    display: block;
    padding: 7px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--duration);
}
.nav__dropdown-link:hover,
.nav__dropdown-link.nav__link--active {
    background: var(--bg-card);
    color: var(--text);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
}

.lang-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 5px;
    color: var(--text-faint);
    transition: all var(--duration);
}
.lang-btn:hover { color: var(--text); background: var(--bg-elevated); }
.lang-btn--active {
    color: var(--text);
    background: var(--bg-elevated);
}

/* Mobile burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background var(--duration);
}
.nav__burger:hover { background: var(--bg-elevated); }
.nav__burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform var(--duration), opacity var(--duration);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
}
.nav__mobile ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.nav__mobile a {
    display: block;
    padding: 10px var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all var(--duration);
}
.nav__mobile a:hover { color: var(--text); background: var(--bg-elevated); }
.nav__mobile-divider { height: 1px; background: var(--border-muted); margin: var(--space-xs) 0; }
.nav__mobile-cta {
    color: var(--green) !important;
    border: 1px solid var(--green-border);
    background: var(--green-glow) !important;
    text-align: center;
    margin-top: var(--space-xs);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: var(--space-4xl) var(--space-3xl);
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.hero__glow--green {
    width: 600px; height: 400px;
    top: -100px; left: 50%;
    transform: translateX(-60%);
    background: radial-gradient(ellipse, #0078b7 0%, transparent 70%);
}
.hero__glow--amber {
    width: 400px; height: 300px;
    top: 0; right: 10%;
    background: radial-gradient(ellipse, #f59e0b 0%, transparent 70%);
    opacity: 0.15;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-muted) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    max-width: 860px;
    margin-inline: auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid var(--green-border);
    color: var(--green);
    background: var(--green-glow);
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
}

.hero__desc {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Stats ────────────────────────────────────────────────────────────────── */
.stats {
    padding-block: var(--space-xl);
    border-top: 1px solid var(--border-muted);
    border-bottom: 1px solid var(--border-muted);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-muted);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 4px;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-surface);
    text-align: center;
    transition: background var(--duration);
}
.stat:hover { background: var(--bg-elevated); }

.stat__value {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
}

.stat__label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Features grid ────────────────────────────────────────────────────────── */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1px;
    background: var(--border-muted);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-surface);
    transition: background var(--duration);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.feature-card:hover { background: var(--bg-elevated); }

.feature-card--large {
    grid-column: span 2;
}

.feature-card--dark {
    background: var(--bg-card);
}
.feature-card--dark:hover { background: var(--bg-elevated); }

.feature-card__icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    flex-shrink: 0;
}
.feature-card__icon--green {
    color: var(--green);
    background: var(--green-glow);
    border-color: var(--green-border);
}
.feature-card__icon--amber {
    color: var(--amber);
    background: var(--amber-glow);
    border-color: rgba(245,158,11,.2);
}
.feature-card__icon--blue {
    color: var(--blue);
    background: var(--blue-glow);
    border-color: rgba(0,120,183,.2);
}

.feature-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
}

.feature-card__tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.feature-card__code {
    margin-top: var(--space-sm);
    background: rgba(0,0,0,.4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: auto;
}
.feature-card__code pre {
    padding: var(--space-md);
}
.feature-card__code code {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--green);
    line-height: 1.8;
}

/* ── CTA section ──────────────────────────────────────────────────────────── */
.cta-section__inner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: var(--space-3xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    background: var(--bg-surface);
}

.cta-section__glow {
    position: absolute;
    width: 500px; height: 300px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.cta-section__desc {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 520px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.cta-section__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-muted);
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer__top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-muted);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--text-faint);
    margin-top: var(--space-md);
    line-height: 1.6;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer__col-title {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: var(--space-md);
}

.footer__col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__col a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--duration);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-lg);
}
.footer__bottom p {
    font-size: var(--text-xs);
    color: var(--text-faint);
}

/* ── Error page ───────────────────────────────────────────────────────────── */
.error-page__inner {
    text-align: center;
    padding-block: var(--space-4xl);
    max-width: 480px;
    margin-inline: auto;
}

.error-page__code {
    font-size: 8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
}

.error-page__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.error-page__desc {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card--large {
        grid-column: span 2;
    }
    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__actions .btn-ghost,
    .nav__actions .btn-primary:not(.nav__actions > a:last-of-type) { display: none; }
    .nav__burger { display: flex; }

    .features__grid {
        grid-template-columns: 1fr;
    }
    .feature-card--large { grid-column: span 1; }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .cta-section__inner { padding: var(--space-xl) var(--space-lg); }
    .footer__nav { grid-template-columns: 1fr; }
}

/* ── Form base ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-label .required { color: #f87171; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    transition: border-color var(--duration), box-shadow var(--duration);
    appearance: none;
    -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237c7f9e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    border: 1px solid transparent;
}
.alert--success {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .25);
    color: #86efac;
}
.alert--error {
    background: rgba(239, 68, 68, .08);
    border-color: rgba(239, 68, 68, .25);
    color: #fca5a5;
}
.alert--warning {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .25);
    color: #fcd34d;
}
.alert--info {
    background: var(--green-glow);
    border-color: var(--green-border);
    color: var(--green-hover);
}

/* ── Form helpers ─────────────────────────────────────────────────────────── */
.form-error {
    font-size: var(--text-xs);
    color: #fca5a5;
    margin-top: 4px;
}
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: rgba(239, 68, 68, .5);
}

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-wrap {
    min-height: calc(100dvh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.auth-box__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-xl);
    justify-content: center;
}

.auth-box__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.auth-box__back {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--text-faint);
    margin-bottom: var(--space-md);
    transition: color var(--duration);
}
.auth-box__back:hover { color: var(--text-muted); }

.auth-box__footer {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-lg);
}
.auth-box__footer a { color: var(--green); }
.auth-box__footer a:hover { color: var(--green-hover); }

.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-form .form-group { margin-bottom: var(--space-md); }

.auth-form__forgot {
    float: right;
    font-size: var(--text-xs);
    color: var(--text-faint);
    font-weight: 400;
    transition: color var(--duration);
}
.auth-form__forgot:hover { color: var(--text-muted); }

.auth-form__remember {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: var(--space-sm);
}
.auth-form__remember input { accent-color: var(--green); }

/* ── Account pages ────────────────────────────────────────────────────────── */
.account-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.account-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 600px;
}

.account-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: all var(--duration);
}
.account-card:not(.account-card--soon):hover {
    border-color: var(--green-border);
    background: var(--bg-elevated);
    transform: translateY(-1px);
}
.account-card svg { color: var(--green); flex-shrink: 0; }
.account-card__label { flex: 1; font-size: var(--text-sm); font-weight: 500; }
.account-card__arrow { color: var(--text-faint); font-size: var(--text-lg); }
.account-card--soon { opacity: 0.5; cursor: default; }
.account-card__soon {
    font-size: var(--text-xs);
    color: var(--text-faint);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

@media (max-width: 480px) {
    .account-grid { grid-template-columns: 1fr; }
}

/* ── Account tables ───────────────────────────────────────────────────────────
   Skin réservé à l'espace client (n'affecte pas le back-office admin, qui
   partage la classe .admin-table). Le conteneur .data-table-card fait porter
   le cadre à la carte et laisse le tableau occuper toute la largeur, avec
   défilement horizontal sur petit écran. */
.data-table-card {
    padding: 0;
    overflow: hidden;
}
.data-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.account-wrap .admin-table {
    width: 100%;
    min-width: 640px;              /* déclenche le scroll plutôt que d'écraser les colonnes */
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.account-wrap .admin-table thead tr {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.account-wrap .admin-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
}
.account-wrap .admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-muted);
    color: var(--text);
    vertical-align: middle;
}
.account-wrap .admin-table tbody tr:last-child td { border-bottom: none; }
.account-wrap .admin-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.account-wrap .admin-table tbody tr:hover td { background: var(--bg-elevated); }

/* Alignement de colonne — appliquer la même classe sur le <th> et les <td>. */
.col-left   { text-align: left; }
.col-right  { text-align: right; }
.col-center { text-align: center; }
/* La cellule d'un badge de statut se centre sur son contenu. */
.account-wrap .admin-table td.col-center .badge { display: inline-block; }

@media (max-width: 640px) {
    .account-wrap .admin-table th,
    .account-wrap .admin-table td { padding: 12px; }
}

/* ── Confirm modal ────────────────────────────────────────────────────────── */
.confirm-modal {
    position: fixed;
    inset: 0;
    margin: auto;               /* centre la boîte sur les deux axes */
    height: fit-content;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    color: var(--text);
    padding: 0;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.confirm-modal::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}
.confirm-modal[open] { animation: confirmPop 0.16s ease-out; }
@keyframes confirmPop {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.confirm-modal__box { padding: var(--space-xl); margin: 0; }
.confirm-modal__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.confirm-modal__text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}
.confirm-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}
.btn.btn--danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}
.btn.btn--danger:hover { background: #dc2626; border-color: #dc2626; }

/* ── Address cards ────────────────────────────────────────────────────────── */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}
.address-card {
    position: relative;
    padding: var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: 1.7;
}
.address-card--default {
    border-color: var(--green-border);
    background: var(--bg-elevated);
}
.address-card__badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--green);
    background: var(--green-glow);
    border: 1px solid var(--green-border);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: var(--space-sm);
}
.address-card__label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.address-card__name { font-weight: 500; }
.address-card__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-muted);
}

/* ── Shop — product grid ──────────────────────────────────────────────────── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration);
}
.product-card:hover {
    border-color: var(--green-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.product-card--featured { border-color: var(--green-border); background: var(--bg-elevated); }
.product-card__img {
    height: 180px;
    overflow: hidden;
    background: var(--bg-elevated);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
}
.product-card__body { flex: 1; padding: var(--space-lg); }
.product-card__badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--amber);
    background: var(--amber-glow);
    border: 1px solid rgba(245,158,11,.3);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: var(--space-sm);
}
.product-card__name { font-weight: 600; font-size: 1rem; margin-bottom: var(--space-xs); }
.product-card__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* Liste de fonctionnalités des cartes produit (✓/✗) — importée de la prod */
.product-card__features { margin-top: var(--space-md); }
.product-card__features .features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-card__features .features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}
.product-card__features .icon-tick,
.product-card__features .icon-cross {
    flex: 0 0 auto;
    font-weight: 700;
    line-height: 1.5;
}
.product-card__features .icon-tick  { color: var(--green); }
.product-card__features .icon-cross { color: #f87171; }
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-muted);
}
.product-card__price { display: flex; flex-direction: column; gap: 2px; }
.product-card__amount { font-weight: 700; font-size: 1.1rem; }
.product-card__type { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Product detail ───────────────────────────────────────────────────────── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.product-detail__img img { width: 100%; border-radius: var(--radius-lg); }
.product-detail__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: var(--space-md); }
.product-detail__price { display: flex; align-items: baseline; gap: var(--space-sm); }
.product-detail__amount { font-size: 2rem; font-weight: 800; color: var(--text); }
.product-detail__type { font-size: var(--text-sm); color: var(--text-muted); }

@media (max-width: 640px) {
    .product-detail { grid-template-columns: 1fr; }
    .address-grid { grid-template-columns: 1fr; }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Cart icon / badge ────────────────────────────────────────────────────── */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s;
}
.cart-icon:hover { background: var(--surface-2); color: var(--text); }
.cart-icon__count {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Cart page ────────────────────────────────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-muted);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
    display: block;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 4px;
}
.cart-item__name:hover { color: var(--green); }
.cart-item__unit-price { font-size: var(--text-sm); color: var(--text-muted); }
.cart-item__controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}
.cart-item__line-total { font-weight: 700; min-width: 80px; text-align: right; }
.cart-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}
.cart-item__remove:hover { color: var(--red, #ef4444); }
.cart-qty__input {
    width: 64px;
    padding: 6px 8px;
    background: var(--surface-2);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--text);
    text-align: center;
    font-size: var(--text-sm);
}
.cart-update { margin-top: var(--space-md); text-align: right; }
.cart-empty { text-align: center; padding: var(--space-3xl) 0; color: var(--text-secondary); }

/* ── Billing period toggle (shop) ────────────────────────────────────────── */
.billing-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-1);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}
.billing-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--duration), color var(--duration);
}
.billing-opt.is-active {
    background: var(--green);
    color: #fff;
}
.billing-badge {
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--green-glow);
    color: var(--green);
}
.billing-opt.is-active .billing-badge { background: rgba(255,255,255,.2); color: #fff; }

/* Prix avec remise (barré + remisé + total annuel) */
.price-block { line-height: 1.25; flex-wrap: wrap; }
.price-old {
    color: var(--text);
    text-decoration: line-through;
    font-weight: 700;
    margin-left: 8px;
}
/* Barré « légèrement plus petit » que le prix remisé, selon le contexte */
.product-detail__price .price-old { font-size: 1.4rem; }
.product-card__price   .price-old { font-size: 0.95rem; }
.price-block.is-annual .product-card__amount,
.price-block.is-annual .product-detail__amount {
    color: var(--green);
}
.price-sub {
    display: block;
    flex-basis: 100%;     /* force le « soit …/an » sur la ligne du dessous (conteneur flex) */
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 3px;
}
.price-save {
    display: inline-block;
    color: var(--green);
    font-weight: 700;
    background: var(--green-glow);
    border-radius: 999px;
    padding: 0 7px;
    margin-left: 4px;
}

/* ── Recap table (order confirmation) ────────────────────────────────────── */
.recap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.recap-table thead th {
    text-align: left;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}
.recap-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-muted);
    color: var(--text-secondary);
}
.recap-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.recap-table tbody td:first-child { color: var(--text); font-weight: 600; }
/* Colonnes : Produit étiré, Qté centré fixe, Prix à droite fixe */
.recap-table th:nth-child(2), .recap-table td:nth-child(2) { text-align: center; white-space: nowrap; width: 72px; }
.recap-table th:last-child,   .recap-table td:last-child   { text-align: right; white-space: nowrap; width: 140px; font-variant-numeric: tabular-nums; }
.recap-table tfoot td {
    padding: 8px 14px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.recap-table tfoot tr:first-child td { padding-top: 12px; }
.recap-table__total td {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--green);
    background: var(--green-glow);
    border-top: 1px solid var(--green-border);
    padding-block: 12px;
}

/* ── Contact page : Office (1/3) + map (2/3) ─────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    align-items: stretch;
}
.contact-grid__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-muted);
    min-height: 300px;
}
.contact-grid__map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
    filter: grayscale(0.2) brightness(0.92);
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ── Cart / Checkout summary card ────────────────────────────────────────── */
.cart-summary__card {
    background: var(--surface-1);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: sticky;
    top: 90px;
}
.cart-summary__title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-lg); }
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding-block: 6px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.cart-summary__row > :last-child {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.cart-summary__row--note { font-style: italic; font-size: var(--text-xs); }
.cart-summary__sep { border: none; border-top: 1px solid var(--border-muted); margin-block: var(--space-md); }
.cart-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding-block: var(--space-sm);
    font-weight: 700;
    border-top: 1px solid var(--border-muted);
    margin-top: var(--space-sm);
}
.cart-summary__total > :last-child {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.cart-summary__back {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: none;
}
.cart-summary__back:hover { color: var(--text); }

/* ── Checkout layout ──────────────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
    align-items: start;
}
.checkout-section {
    background: var(--surface-1);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.checkout-section__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--space-lg); }
.checkout-addr-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.checkout-addr-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s;
}
.checkout-addr-item:has(input:checked) { border-color: var(--green); }
.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-block: var(--space-sm);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-muted);
}
.checkout-item__name { color: var(--text-secondary); flex: 1; min-width: 0; }
.checkout-item__name em { color: var(--text-muted); font-style: normal; }
.checkout-item__price {
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.checkout-sidebar .cart-summary__card { top: 90px; }

/* Payment method selector */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-sm); }
.payment-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s;
}
.payment-method:has(input:checked) { border-color: var(--green); }
.payment-method__label { display: flex; align-items: flex-start; gap: var(--space-sm); }
.payment-method__icon { font-size: 1.5rem; flex-shrink: 0; }
.payment-method input[type="radio"] { margin-top: 3px; flex-shrink: 0; }

/* Form row (two columns) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.form-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }

/* ── Quote request form lines ─────────────────────────────────────────────── */
.quote-line {
    display: grid;
    grid-template-columns: 1fr 70px 120px 28px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.quote-line__desc  {}
.quote-line__qty   {}
.quote-line__price {}
.quote-line__remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 0 2px;
    line-height: 1;
    transition: color 0.15s;
}
.quote-line__remove:hover { color: #f87171; }

/* Admin form input small */
.form-input--sm {
    padding: 6px 8px;
    font-size: var(--text-sm);
}

/* Coupon row in checkout */
.coupon-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.coupon-row .form-input { flex: 1; }

/* ── Order confirmation ───────────────────────────────────────────────────── */
.confirmation-icon { font-size: 4rem; line-height: 1; }
.confirmation-subtitle { color: var(--text-secondary); margin-top: var(--space-sm); font-size: 1.05rem; }
.confirmation-card {
    background: var(--surface-1);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}
.confirmation-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.confirmation-card__number { font-weight: 700; font-size: 1.05rem; }
.confirmation-card__date { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cart-layout,
    .checkout-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cart-item { flex-direction: column; align-items: flex-start; }
    .cart-item__controls { width: 100%; justify-content: space-between; }
}

/* Remove motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── FAQ Widget / Accordion ────────────────────────────────────────────────── */
.faq-widget { max-width: 780px; margin: 0 auto; }

.faq-widget__product + .faq-widget__product { margin-top: 3rem; }

.faq-widget__product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 .25rem;
}

.faq-widget__category {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin: 2rem 0 .75rem;
}
.faq-widget__category:first-child { margin-top: 0; }

.faq-accordion { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.faq-accordion__item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    overflow: hidden;
}

.faq-accordion__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-primary, #f1f5f9);
    user-select: none;
    transition: color .15s;
}
.faq-accordion__question:hover { color: var(--accent-blue, #0078b7); }

.faq-accordion__chevron {
    flex-shrink: 0;
    transition: transform .25s ease;
    color: var(--text-muted, #94a3b8);
}
.faq-accordion__item.is-open .faq-accordion__chevron { transform: rotate(180deg); }

.faq-accordion__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-accordion__body {
    padding: 0 20px 18px;
    color: var(--text-secondary, #cbd5e1);
    font-size: .9rem;
    line-height: 1.65;
}
.faq-accordion__body p { margin: 0 0 .6em; }
.faq-accordion__body p:last-child { margin-bottom: 0; }

/* ── Polishing : badge Oracle, tuiles modules, captures, hero screenshot ──── */

/* Badge "Built for Oracle ERP Cloud" (footer) */
.oracle-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: 5px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--green-hover);
    border: 1px solid var(--green-border);
    border-radius: 999px;
    background: var(--green-glow);
}

/* Grille des tuiles modules (remplace les styles inline du contenu CMS) */
.module-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    text-align: center;
}
.module-tile {
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--green);
    transition: border-color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.module-tile:hover { border-color: var(--green-border); transform: translateY(-2px); }

/* Captures d'écran produit */
.shots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: start;
}
.shot { margin: 0; text-align: center; }
.shot img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.shot figcaption {
    margin-top: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Visuel produit dans le hero */
.hero__screenshot {
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
}
.hero__screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--green-glow);
}
