/* ==========================================================================
   SAMSUNG REAL GALAXY 237 — BASE
   Design System "Vibrant Local / Cameroun"
   Palette : Samsung Blue + accents drapeau Cameroun (vert/rouge/jaune doré)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* --- Core Samsung --- */
    --samsung-blue: #1428a0;
    --samsung-navy: #000935;
    --samsung-black: #0a0a0a;
    --samsung-deep: #050a24;

    /* --- Accents "237" (drapeau Cameroun, version premium) --- */
    --cm-green: #00874a;
    --cm-green-bright: #16c47f;
    --cm-red: #c8102e;
    --cm-red-bright: #ef3b54;
    --cm-gold: #f4c430;
    --cm-gold-soft: #f9d976;

    /* --- Neutres --- */
    --bg-cream: #faf8f3;
    --bg-paper: #ffffff;
    --bg-mist: #f3f5fa;
    --bg-ink: #050a24;
    --text-ink: #0f1419;
    --text-muted: #5b6b79;
    --text-soft: #8a98a8;
    --border-hair: rgba(15, 20, 25, 0.08);
    --border-line: rgba(15, 20, 25, 0.14);

    /* --- Effets --- */
    --shadow-soft: 0 4px 24px rgba(5, 10, 36, 0.06);
    --shadow-card: 0 12px 40px rgba(5, 10, 36, 0.10);
    --shadow-deep: 0 24px 60px rgba(5, 10, 36, 0.18);
    --shadow-glow-blue: 0 0 60px rgba(20, 40, 160, 0.35);
    --shadow-glow-gold: 0 0 50px rgba(244, 196, 48, 0.45);

    /* --- Radii --- */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 36px;
    --r-pill: 999px;

    /* --- Type --- */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* --- Layout --- */
    --container: 1240px;
    --gutter: 28px;
    --section-y: 96px;
    --section-y-sm: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-ink);
    background: var(--bg-cream);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section-sm {
    padding: var(--section-y-sm) 0;
}

.section-tight {
    padding-top: var(--section-y);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--text-ink);
}

h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.04;
}

h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 60ch;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--samsung-blue);
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
    display: inline-block;
}

.eyebrow.on-dark {
    color: var(--cm-gold);
}

.eyebrow.center {
    justify-content: center;
}

.text-gradient {
    background: linear-gradient(120deg, var(--samsung-blue) 0%, var(--cm-green) 60%, var(--cm-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Motif "WAX" décoratif (fond sombre, textes clairs) ---------- */
.wax-pattern {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(244, 196, 48, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 135, 74, 0.06) 0%, transparent 40%),
        url("../img/wax-texture.webp");
    background-size: auto, auto, 320px 320px;
    background-repeat: no-repeat, no-repeat, repeat;
    color: #ffffff;
}

/* Textes des headers de section sur fond wax sombre */
.wax-pattern .section-header h2,
.wax-pattern h2,
.wax-pattern h3 {
    color: #ffffff;
}

.wax-pattern .section-header p,
.wax-pattern .lead,
.wax-pattern p {
    color: rgba(255, 255, 255, 0.78);
}

.wax-pattern .eyebrow {
    color: var(--cm-gold);
}

.wax-pattern .eyebrow::before {
    background: currentColor;
}

/* FAQ sur fond wax sombre */
.wax-pattern .faq-item {
    border-color: rgba(255, 255, 255, 0.12);
}

.wax-pattern .faq-question {
    color: #ffffff;
}

.wax-pattern .faq-question:hover {
    color: var(--cm-gold);
}

.wax-pattern .faq-toggle {
    background: rgba(255, 255, 255, 0.10);
    color: var(--cm-gold);
}

.wax-pattern .faq-item.is-open .faq-toggle {
    background: var(--cm-gold);
    color: var(--samsung-black);
}

.wax-pattern .faq-answer {
    color: rgba(255, 255, 255, 0.72);
}

/* Les cartes (reflexe, store, badge, care+) gardent leur fond clair propre */
.wax-pattern .reflexe-card,
.wax-pattern .store-card,
.wax-pattern .imei-box,
.wax-pattern .badge-preview {
    color: var(--text-ink);
}

.wax-pattern .reflexe-card h3,
.wax-pattern .store-card h3,
.wax-pattern .imei-box h2,
.wax-pattern .imei-box h3 {
    color: var(--text-ink);
}

.wax-pattern .reflexe-card p,
.wax-pattern .store-card p,
.wax-pattern .imei-box p,
.wax-pattern .imei-box .lead {
    color: var(--text-muted);
}

.wax-pattern .imei-box .imei-step strong {
    color: var(--text-ink);
}

.wax-pattern .imei-box .imei-step span {
    color: var(--text-muted);
}

/* Le bandeau stores-banner sur fond sombre */
.wax-pattern .stores-banner {
    color: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.wax-pattern .stores-banner strong {
    color: var(--cm-gold);
}

/* Form labels sur fond wax sombre */
.wax-pattern .form-label {
    color: #ffffff;
}

.wax-pattern-dark {
    background-image:
        radial-gradient(circle at 15% 20%, rgba(244, 196, 48, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(22, 196, 127, 0.10) 0%, transparent 45%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><g fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1.2'><path d='M50 5 L95 50 L50 95 L5 50 Z'/><circle cx='50' cy='50' r='18'/><path d='M50 32 L68 50 L50 68 L32 50 Z'/><circle cx='50' cy='50' r='3' fill='%23ffffff' fill-opacity='0.06'/></g></svg>");
    background-size: auto, auto, 100px 100px;
}

/* ---------- Section header ---------- */
.section-header {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-header.center {
    margin-inline: auto;
    text-align: center;
}

.section-header.center .eyebrow {
    justify-content: center;
}

.section-header h2 {
    margin-top: 18px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

/* ---------- Accessibility ---------- */
:focus-visible {
    outline: 3px solid var(--cm-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Scroll reveal (used by JS) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
