/* =====================================================================
   Voltora — Design system (tokens, reset, composants de base)
   ===================================================================== */

:root {
    /* Couleurs de marque */
    --brand: #2f6bff;
    --brand-600: #2f6bff;
    --brand-700: #1f4fd6;
    --brand-300: #93b4ff;
    --brand-50: #eef3ff;

    /* Navy (sections sombres) */
    --navy-900: #0b1220;
    --navy-800: #0e1729;
    --navy-700: #16213b;
    --navy-600: #1e2c4a;

    /* Neutres */
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e6e9f0;
    --line-2: #eef1f6;
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #f8fafc;

    /* États */
    --success: #16a34a;
    --success-bg: #e7f6ec;
    --warning: #d97706;
    --warning-bg: #fdf3e3;
    --danger: #dc2626;
    --danger-bg: #fdeaea;
    --info: #0ea5e9;
    --star: #f5a524;

    /* Rayons / ombres */
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-full: 999px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 6px 20px rgba(15, 23, 42, .08);
    --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);

    /* Typo */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Space Grotesk', var(--font);

    --container: 1200px;
    --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.eyebrow { color: var(--brand-700); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }

/* Icônes Lucide */
.lucide-ico { display: inline-flex; }
.lucide-ico svg, svg.lucide { width: 20px; height: 20px; stroke-width: 2; vertical-align: middle; }
.ico-sm svg { width: 16px; height: 16px; }
.ico-lg svg { width: 26px; height: 26px; }

/* Boutons */
.btn {
    --btn-bg: var(--brand); --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 11px 20px; border-radius: var(--r-full); border: 1px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg);
    font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s; text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--brand-300); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-outline { background: transparent; color: var(--brand-700); border-color: var(--brand-300); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Badges / pastilles */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: 4px 10px; border-radius: var(--r-full); font-size: .74rem; font-weight: 600; background: var(--brand-50); color: var(--brand-700); }
.badge-soft { background: var(--surface-2); color: var(--ink-2); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-dark { background: var(--navy-900); color: #fff; }

/* Étoiles */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }
.star-full { color: var(--star); }
.star-full svg { fill: var(--star); }
.star-empty { color: #d7dce5; }

/* Prix */
.price { display: inline-flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--brand-700); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price-badge { background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: .74rem; padding: 2px 8px; border-radius: var(--r-full); }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }

/* Formulaires */
.field { margin-bottom: 16px; }
.label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.input, .select, .textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
    font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-300); box-shadow: 0 0 0 4px var(--brand-50); }
.textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.field-error .input, .field-error .select { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .82rem; margin-top: 5px; }

/* Alertes */
.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: .92rem; display: flex; gap: .6rem; align-items: center; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--brand-50); color: var(--brand-700); }

/* Grilles utilitaires */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: .5rem; }
.gap { gap: 1rem; }
.hidden { display: none; }

@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
}
