/* --- ADBLUE-HALDEX MASTER DESIGN SYSTEM v3.0 (claude) --- */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
    --brand-dark:       #1d3557;
    --brand-red:        #e63946;
    --brand-red-hover:  #c1121f;
    --brand-red-glow:   rgba(230, 57, 70, 0.3);
    --brand-blue-light: #457b9d;
    --brand-accent:     #e63946;

    --bg-light:         #f8f9fa;
    --bg-white:         #ffffff;
    --border-color:     #e2e8f0;

    --text-main:        #2b2d42;
    --text-muted:       #6b7280;
    --text-white:       #ffffff;

    --radius-sm:        6px;
    --radius-md:        12px;
    --radius-lg:        20px;

    --shadow-sm:        0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:        0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg:        0 8px 30px rgba(0,0,0,0.1);

    --max-width-grid:   1200px;
    --max-width-reader: 900px;
}

/* ============================================================
   2. BASE RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--bg-white);
    line-height: 1.6;
}

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

a { color: var(--brand-red); }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
    width: 95%;
    max-width: var(--max-width-grid);
    margin: 0 auto;
}

.layout-reader {
    max-width: var(--max-width-reader);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-padding { padding: 4rem 0; }

.text-center { text-align: center; }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--brand-dark);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--brand-dark);
    font-weight: 700;
    margin: 0 0 1rem;
}

h3 {
    color: var(--brand-dark);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */
header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-container { flex-shrink: 0; }

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.logo-img:hover { transform: scale(1.05); }

/* Nav */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--brand-red);
    background: var(--bg-light);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    min-width: 220px;
    z-index: 100;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--brand-red);
}

/* Language switch */
.lang-switch {
    display: flex;
    gap: 4px;
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
    flex-shrink: 0;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-btn:hover { color: var(--brand-dark); background: var(--bg-light); }
.lang-btn.active { color: var(--brand-dark); background: #f0f4f8; }

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    background: var(--brand-red);
    color: var(--text-white);
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.25s;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background: var(--brand-red-hover);
    box-shadow: 0 4px 15px var(--brand-red-glow);
    color: var(--text-white);
}

.btn-primary {
    background: var(--brand-red);
    color: var(--text-white);
    border-color: var(--brand-red);
}

.btn-primary:hover {
    background: var(--brand-red-hover);
    border-color: var(--brand-red-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-secondary:hover {
    background: var(--brand-dark);
    color: var(--text-white);
    box-shadow: none;
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero-section {
    background: var(--bg-light);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content { max-width: 800px; margin: 0 auto; }

.badge {
    display: inline-block;
    background: var(--brand-dark);
    color: var(--text-white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--brand-dark);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   8. AD SPACE
   ============================================================ */
.ad-space {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); }

.alert-card {
    border-left: 4px solid var(--brand-red);
    background: #fff8f8;
}

/* ============================================================
   10. SCANDAL SECTION
   ============================================================ */
.scandal-section { background: var(--bg-white); }

/* ============================================================
   11. COMPONENTS
   ============================================================ */
.testimony-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-left: 5px solid var(--brand-red);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    font-style: italic;
    box-shadow: var(--shadow-sm);
}

.expert-box {
    background: #eff6ff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #bfdbfe;
    margin: 2rem 0;
}

.expert-box h3 { color: #1e40af; }

.cta-box {
    background: var(--brand-dark);
    color: var(--text-white);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 4rem;
}

.cta-box h2 { color: var(--text-white); margin-top: 0; }

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer-logo-bar {
    background: var(--bg-white);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-text-bar {
    background: var(--brand-dark);
    color: var(--text-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-text-bar p { color: var(--text-white); opacity: 0.85; }
.footer-text-bar p.small { font-size: 0.8rem; opacity: 0.6; margin-top: 0.75rem; }

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-white);
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-links span { color: var(--text-white); opacity: 0.3; }

/* legacy footer rule — kept for compatibility */
footer { margin-top: 0; }

/* ============================================================
   13. ARTICLE / READER LAYOUT
   ============================================================ */
.layout-reader h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.layout-reader h2 { margin-top: 2.5rem; }

/* ============================================================
   13b. PACK DÉFENSE — éléments spécifiques
   ============================================================ */
.sales-hero { padding: 4rem 0; }
.sales-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3rem; }
.hero-text { max-width: 760px; }
.mockup-container { max-width: 420px; width: 100%; }
.mockup-container img { width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }

.pd-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; }
.pd-btn-main { font-size: 1.2rem; padding: 1.2rem 2.5rem; }
.pd-payment-logos { display: flex; gap: 10px; align-items: center; opacity: 0.7; }
.pd-secure { font-size: 0.8rem; font-weight: 600; }
.pd-instant { margin-top: 1.5rem; font-size: 0.9rem; opacity: 0.8; }

.benefit-grid { padding: 4rem 0; background: var(--bg-light); }
.pd-section-header { margin-bottom: 3rem; }
.pd-section-title { font-size: clamp(1.6rem, 3vw, 2.5rem); color: var(--brand-dark); }
.pd-section-sub { color: var(--text-muted); }
.benefit-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); }
.benefit-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }

.price-section { padding: 4rem 0; text-align: center; }
.pd-price-title { font-size: clamp(1.6rem, 3vw, 2.8rem); margin-bottom: 2.5rem; color: var(--brand-dark); }
.pd-pack-label { text-transform: uppercase; letter-spacing: 2px; color: var(--brand-red); margin-top: 0; }
.pd-price-sub { margin-bottom: 2rem; color: var(--text-muted); }
.pd-features { text-align: left; margin: 0 auto 2.5rem; display: inline-block; padding-left: 0; list-style: none; }
.pd-features li { margin-bottom: 0.8rem; }
.pd-cards-label { margin-top: 1rem; font-size: 0.8rem; opacity: 0.6; font-weight: 600; }
.pd-testimonial { margin: 3rem auto 0; max-width: 680px; font-style: italic; color: var(--text-muted); }

/* ============================================================
   14. BURGER BUTTON (caché sur desktop)
   ============================================================ */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    flex-shrink: 0;
}
.burger:hover { background: var(--bg-light); }
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.arrow { font-size: 0.7rem; opacity: 0.6; transition: transform 0.2s; display: inline-block; }
.dropdown-open > .nav-link .arrow { transform: rotate(180deg); }

/* ============================================================
   15. RESPONSIVE
   ============================================================ */

/* 900px : collapse grids */
@media (max-width: 900px) {
    .grid-2-col { grid-template-columns: 1fr; }
    .hero-section { padding: 3rem 0 2.5rem; }
    .sales-hero > .container { flex-direction: column; }
    .mockup-container { flex: none; max-width: 100%; }
}

/* 768px : hamburger menu */
@media (max-width: 768px) {
    .burger { display: flex; }

    /* Header : logo (gauche) | lang-switch + burger (droite) */
    .header-container { flex-wrap: wrap; align-items: center; gap: 0.5rem; }
    .logo-container { flex: 1; }
    .logo-img { height: 52px; }
    .lang-switch { border-left: none; padding-left: 0; order: 2; }
    .burger { order: 3; }

    /* Nav : panneau caché, s'ouvre sous le header */
    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        border-top: 1px solid var(--border-color);
        padding: 0.5rem 0 0.75rem;
        margin-top: 0.25rem;
        background: var(--bg-white);
    }
    .main-nav.nav-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    .main-nav li { width: 100%; }

    .nav-link {
        display: block;
        font-size: 0.95rem;
        padding: 0.65rem 0.5rem;
        border-radius: var(--radius-sm);
        font-weight: 600;
    }
    .nav-link:hover { background: var(--bg-light); color: var(--brand-red); }

    /* Dropdown : caché par défaut, visible au tap */
    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--border-color);
        border-radius: 0;
        padding: 0.25rem 0 0.5rem 1rem;
        margin: 0 0 0.25rem 0.75rem;
        min-width: auto;
    }
    .dropdown.dropdown-open .dropdown-menu { display: block; }
    .dropdown-menu a {
        font-size: 0.875rem;
        padding: 0.4rem 0.5rem;
        color: var(--text-muted);
        border-radius: var(--radius-sm);
    }
    .dropdown-menu a:hover { color: var(--brand-red); background: var(--bg-light); }

    /* Bouton PACK DÉFENSE dans le menu mobile */
    .nav-cta { margin-top: 0.5rem; }
    .nav-cta .btn {
        display: block;
        text-align: center;
        margin: 0;
    }

    /* Sections */
    .hero-section { padding: 2.5rem 0 2rem; }
    .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .hero-subtitle { font-size: 1rem; }
    .btn-large { padding: 0.75rem 1.4rem; font-size: 0.9rem; }
    .card { padding: 1.5rem; }
    .cta-box { padding: 2rem 1.5rem; }
    .layout-reader { padding: 2.5rem 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-section { padding: 2rem 1.25rem; }

    /* Pack défense mobile */
    .sales-hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
    .mockup-container { flex: none; max-width: 85%; margin: 0 auto; }
    .pd-actions { align-items: center; }
    .pd-btn-main { font-size: 1rem; padding: 1rem 1.5rem; width: 100%; text-align: center; }
    .benefit-grid { padding: 2.5rem 0; }
    .pd-section-header { margin-bottom: 2rem; }
}

/* 480px : petits téléphones */
@media (max-width: 480px) {
    .container { width: 92%; }
    h2 { font-size: 1.25rem; }
    .card { padding: 1.25rem; }
    .testimony-card { padding: 1.5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; width: 100%; }
    .footer-text-bar { padding: 2rem 0; }
    .footer-links { flex-wrap: wrap; gap: 0.5rem; }
    .btn { font-size: 0.85rem; }
    .price-card { padding: 2rem 1.25rem; }
    .price-value { font-size: 3.5rem; }
}
