/* --- ADBLUE-HALDEX MASTER DESIGN SYSTEM v2.2 --- */
:root {
    --brand-dark: #1d3557;
    --brand-red: #e63946;
    --brand-blue-light: #457b9d;
    --brand-accent: #e63946;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #2b2d42;
    --text-muted: #64748b;
    --max-width-grid: 1200px;
    --max-width-reader: 900px;
}

/* Base Styles */
body { margin: 0; padding: 0; font-family: 'Outfit', sans-serif; color: var(--text-main); background: white; line-height: 1.6; }
.container { width: 95%; max-width: var(--max-width-grid); margin: 0 auto; }

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

/* Header & Navigation */
header { padding: 1rem 0; border-bottom: 1px solid #edf2f4; background: white; position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 75px; width: auto; transition: transform 0.3s; }
.logo-img:hover { transform: scale(1.05); }

.main-nav ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; align-items: center; }
.nav-link { text-decoration: none; color: var(--brand-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.nav-link:hover { color: var(--brand-red); }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu { 
    display: none; position: absolute; top: 100%; left: 0; background: white; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.1); border-radius: 8px; padding: 1rem; min-width: 200px; 
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.5rem 0; color: var(--brand-dark); text-decoration: none; font-size: 0.9rem; }
.dropdown-menu a:hover { color: var(--brand-red); }

/* Language Switch */
.lang-switch { display: flex; gap: 8px; border-left: 1px solid #eee; padding-left: 15px; }
.lang-btn { text-decoration: none; color: #aaa; font-size: 0.8rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; }
.lang-btn.active { color: var(--brand-dark); background: #f0f4f8; }

.btn { 
    background: var(--brand-red); color: white; padding: 0.7rem 1.2rem; border-radius: 8px; 
    text-decoration: none; font-weight: 800; font-size: 0.9rem; transition: all 0.3s; 
}
.btn:hover { background: #c1121f; box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }

/* Components */
.testimony-card { 
    background: var(--bg-light); padding: 2.5rem; border-left: 5px solid var(--brand-red); 
    border-radius: 12px; margin-bottom: 2.5rem; font-style: italic; box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}
.expert-box { background: #eff6ff; padding: 2rem; border-radius: 12px; border: 1px solid #bfdbfe; margin: 2.5rem 0; }
.expert-box h3 { color: #1e40af; margin-top: 0; margin-bottom: 1rem; }
.cta-box { background: var(--brand-dark); color: white; padding: 3.5rem; border-radius: 20px; text-align: center; margin-top: 4rem; }
.cta-box h2 { color: white !important; margin-top: 0; }

/* Footer */
footer { color: white; text-align: center; margin-top: 5rem; }
footer a { color: white; text-decoration: none; margin: 0 1rem; opacity: 0.8; }

/* Typo */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--brand-dark); font-weight: 800; line-height: 1.1; margin-bottom: 2rem; }
h2 { color: var(--brand-dark); margin-top: 3.5rem; margin-bottom: 1.5rem; }
img { max-width: 100%; height: auto; }

/* ---- PACK DEFENSE PAGE ---- */
.sales-hero { padding: 4rem 0; }
.sales-hero > .container { display: flex; gap: 4rem; align-items: center; }
.hero-text { flex: 1; }
.hero-tag { display: inline-block; background: var(--brand-red); color: white; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.5rem; }
.sales-title { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--brand-dark); font-weight: 800; line-height: 1.15; margin: 0 0 1.5rem; }
.sales-title span { color: var(--brand-red); }
.sales-subtitle { font-size: 1.1rem; color: #64748b; line-height: 1.7; margin-bottom: 2rem; }
.mockup-container { flex: 0 0 360px; max-width: 360px; }
.mockup-container img { width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.benefit-grid { padding: 5rem 0; background: var(--bg-light); }
.benefit-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.benefit-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.price-section { padding: 5rem 0; text-align: center; }
.price-card { max-width: 500px; margin: 0 auto; background: white; border: 2px solid #e2e8f0; border-radius: 20px; padding: 3rem 2.5rem; box-shadow: 0 8px 30px rgba(0,0,0,0.08); text-align: center; }
.price-value { font-size: 5rem; font-weight: 800; color: var(--brand-dark); line-height: 1; margin: 1rem 0 2rem; }
.price-value span { font-size: 2.5rem; vertical-align: super; }
.guarantee { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; align-items: center; }
.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; margin-top: 1rem; }
.pd-payment-logos span { font-size: 0.8rem; font-weight: 600; }
.pd-instant { margin-top: 1.5rem; font-size: 0.9rem; opacity: 0.8; }
.pd-section-header { margin-bottom: 3rem; }
.pd-section-title { font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--brand-dark); margin-top: 0; }
.pd-section-sub { color: var(--text-muted); margin-bottom: 0; }
.pd-price-title { font-size: clamp(1.6rem, 3vw, 2.8rem); color: var(--brand-dark); margin-bottom: 2.5rem; }
.pd-pack-label { text-transform: uppercase; letter-spacing: 2px; color: var(--brand-red); margin-bottom: 0.5rem; }
.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-top: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; font-style: italic; color: var(--text-muted); }

/* Missing utility classes */
.text-center { text-align: center; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.section-padding { padding: 4rem 0; }
.hero-section { background: #f8f9fa; padding: 5rem 0 4rem; text-align: center; border-bottom: 1px solid #e2e8f0; }
.hero-content { max-width: 800px; margin: 0 auto; }
.badge { display: inline-block; background: var(--brand-dark); color: 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: #64748b; max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--brand-red); color: white; border: 2px solid var(--brand-red); }
.btn-secondary { background: transparent; color: var(--brand-dark); border: 2px solid var(--brand-dark); }
.btn-secondary:hover { background: var(--brand-dark); color: white; }
.btn-large { padding: 0.9rem 2rem; font-size: 1rem; }
.ad-space { margin: 2rem 0; padding: 1rem; border: 1px dashed #e2e8f0; border-radius: 12px; text-align: center; font-size: 0.8rem; color: #64748b; }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.alert-card { border-left: 4px solid var(--brand-red); background: #fff8f8; }
.footer-logo-bar { background: white; padding: 2.5rem 0; border-top: 1px solid #e2e8f0; text-align: center; }
.footer-text-bar { background: var(--brand-dark); color: white; padding: 3rem 0; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; align-items: center; }

/* Form / Registry */
.registry-section { background: var(--bg-light); }
.form-section { background: white; border-radius: 16px; padding: 3rem; max-width: 750px; margin: 0 auto; box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid var(--border-color); }
.form-header { text-align: center; margin-bottom: 2.5rem; }
.form-header h1, .form-header h2 { font-size: 2rem; color: var(--brand-dark); margin-bottom: 0.75rem; }
.form-header p { color: var(--text-muted); }
.registry-intro { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.registry-intro h2 { font-size: 1.25rem; color: var(--brand-dark); margin: 1.5rem 0 0.5rem; }
.registry-intro p { color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--brand-dark); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea { padding: 0.75rem 1rem; border: 1.5px solid var(--border-color); border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: 0.95rem; color: var(--text-main); background: white; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-blue-light); }
.checkbox-group { display: flex; gap: 2rem; margin-top: 0.5rem; flex-wrap: wrap; }
.custom-checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; cursor: pointer; }
.btn-block { width: 100%; text-align: center; padding: 1rem; font-size: 1rem; margin-top: 0.5rem; display: block; }
.form-disclaimer { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }
.status-msg { margin-top: 1rem; padding: 0.9rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-align: center; transition: opacity 0.5s; }
.status-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Burger button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    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); }

/* Responsive */
@media (max-width: 900px) {
    .grid-2-col { grid-template-columns: 1fr; }
    .sales-hero > .container { flex-direction: column; }
    .mockup-container { flex: none; max-width: 100%; }
}
@media (max-width: 768px) {
    .burger { display: flex; }
    .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; }
    .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;
    }
    .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; }
    .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); }
    .nav-cta { margin-top: 0.5rem; }
    .nav-cta .btn { display: block; text-align: center; margin: 0; }
    .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-grid, .layout-reader { padding: 2.5rem 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-section { padding: 2rem 1.25rem; }
}
@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; }
}

/* --- Menu horizontal trop large entre 769 et 1150 px : il passait sur deux
   lignes et le bouton rouge débordait sur le sélecteur de langue. On bascule
   sur le burger plus tôt. Ajouté le 2026-08-14. --- */
/* Un intitulé ne se coupe jamais en deux lignes, et la barre ne s'enroule pas :
   sans cela « Le Scandale » et « Carte des cas » se cassaient en plein milieu et
   le bouton rouge débordait sur le sélecteur de langue. Complété le 2026-08-14. */
.nav-link { white-space: nowrap; }
.main-nav ul { flex-wrap: nowrap; }
.main-nav ul { gap: 12px; }
.nav-link { font-size: 0.88rem; }
.nav-cta .btn { padding: 0.55rem 0.9rem; font-size: 0.8rem; white-space: nowrap; }
.logo-img { height: 60px; }
@media (max-width: 1150px) {
    .burger { display: flex; order: 3; }
    .header-container { flex-wrap: wrap; align-items: center; gap: 0.5rem; }
    .logo-container { flex: 1; }
    .lang-switch { border-left: none; padding-left: 0; order: 2; }
    .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; }
    .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; }
    .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); }
    .nav-cta { margin-top: 0.5rem; }
    .nav-cta .btn { display: block; text-align: center; margin: 0; }
}
