/* ==========================================
   VARIABLES & RESET
========================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #7c3aed;
    --success: #16a34a;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;

    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --card: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-focus: #93c5fd;

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 32px 64px rgba(0,0,0,0.16);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-h: 72px;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --card: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-focus: #3b82f6;
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
    --primary-light: rgba(37,99,235,0.15);
    --success-light: rgba(22,163,74,0.15);
    --danger-light: rgba(220,38,38,0.15);
    --warning-light: rgba(217,119,6,0.15);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

/* ==========================================
   NAVBAR
========================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="dark"] .navbar { background: rgba(15,23,42,0.85); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.1rem; font-weight: 800;
}

.logo-text { display: flex; align-items: baseline; }
.logo-main { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.logo-sub  { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.nav-links { display: flex; gap: 4px; flex: 1; }

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500; font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.theme-toggle {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    font-size: 0.95rem;
}

.theme-toggle:hover {
    background: var(--bg-alt);
    color: var(--text);
    transform: rotate(20deg);
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 8px;
    margin-left: auto;
}

.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none; flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 12px 0;
    color: var(--text); text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.mobile-menu a:hover { color: var(--primary); }

/* ==========================================
   HERO
========================================== */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e1b4b 100%);
    padding-top: var(--navbar-h);
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb1 { width: 600px; height: 600px; background: #3b82f6; top: -200px; right: -100px; }
.orb2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; left: -100px; animation-delay: -3s; }
.orb3 { width: 300px; height: 300px; background: #06b6d4; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -6s; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #93c5fd;
    padding: 8px 18px; border-radius: 999px;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900; color: white;
    line-height: 1.15; margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem; color: #94a3b8;
    margin-bottom: 40px; line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-stats {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.stat { text-align: center; }

.stat-number-row {
    display: flex; align-items: baseline;
    justify-content: center; gap: 2px; margin-bottom: 4px;
}

.stat-num {
    display: block; font-size: 2rem; font-weight: 800;
    color: white; line-height: 1;
}

.stat-number-row .stat-num { display: inline; }

.stat-symbol { font-size: 1.8rem; font-weight: 800; color: white; line-height: 1; }
.stat-label  { display: block; font-size: 0.78rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

.btn-hero {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; text-decoration: none;
    border-radius: var(--radius);
    font-size: 1rem; font-weight: 700;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease 0.4s both;
    box-shadow: 0 8px 32px rgba(37,99,235,0.4);
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(37,99,235,0.5);
}

.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }

.scroll-indicator {
    width: 24px; height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px; position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ==========================================
   TRUST BAR
========================================== */
.trust-bar { background: var(--primary); padding: 12px 24px; }

.trust-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}

.trust-item {
    display: flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem; font-weight: 500;
}

.trust-item i { color: #93c5fd; }

/* ==========================================
   SECTIONS
========================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 48px; position: relative; }

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800; color: var(--text);
    margin-bottom: 12px; letter-spacing: -0.5px;
}

.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

/* ==========================================
   CALCULATOR TABS
========================================== */
.calc-tabs {
    display: flex; gap: 4px;
    background: var(--bg-alt); padding: 6px;
    border-radius: var(--radius); margin-bottom: 24px;
    border: 1px solid var(--border);
}

.calc-tab {
    flex: 1; padding: 12px 20px;
    border: none; background: transparent;
    border-radius: 12px;
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer; color: var(--text-secondary);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.calc-tab:hover { background: rgba(255,255,255,0.5); color: var(--text); }
[data-theme="dark"] .calc-tab:hover { background: rgba(255,255,255,0.05); }
.calc-tab.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ==========================================
   CALC LAYOUT
========================================== */
.calc-wrapper {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    min-height: 600px;
}

.calc-inputs {
    padding: 36px;
    border-right: 1px solid var(--border);
    background: var(--bg-alt);
}

.calc-inputs h3 {
    font-size: 0.8rem; font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 28px;
    display: flex; align-items: center; gap: 8px;
}

/* ==========================================
   FORM ELEMENTS
========================================== */
.input-group { margin-bottom: 20px; }

.input-group.featured {
    margin-bottom: 28px; padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.input-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.number-input-wrapper { position: relative; display: flex; align-items: center; }

.number-input-wrapper input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 500;
    background: var(--card); color: var(--text);
    transition: var(--transition);
}

.number-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.input-suffix {
    position: absolute; right: 12px;
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-muted); pointer-events: none;
}

.number-input-wrapper.large input {
    padding: 16px 50px 16px 20px;
    font-size: 1.4rem; font-weight: 700;
    border-radius: var(--radius); border-width: 2px;
    text-align: center;
}

.number-input-wrapper.large .input-suffix { font-size: 1.2rem; right: 18px; }

.select-wrapper { position: relative; }

.select-wrapper select {
    width: 100%;
    padding: 11px 36px 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500;
    background: var(--card); color: var(--text);
    cursor: pointer; appearance: none;
    transition: var(--transition);
}

.select-wrapper select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.select-wrapper i {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
    font-size: 0.8rem;
}

/* SLIDER */
.slider-input-group { display: flex; flex-direction: column; gap: 12px; }

input[type="range"] {
    width: 100%; height: 6px; border-radius: 3px;
    background: linear-gradient(to right, var(--primary) var(--val, 10%), var(--border) var(--val, 10%));
    outline: none; appearance: none; cursor: pointer; border: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); cursor: pointer;
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
    transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(37,99,235,0.5);
}

input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary); cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
}

.slider-labels {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--text-muted);
}

/* ADVANCED OPTIONS */
.advanced-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(37,99,235,0.05);
    border: 1px dashed var(--border-focus);
    color: var(--primary);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; margin-bottom: 16px;
    transition: var(--transition); user-select: none;
}

.advanced-toggle:hover { background: var(--primary-light); }
.advanced-toggle i:last-child { margin-left: auto; transition: transform 0.3s; }
.advanced-toggle.open i:last-child { transform: rotate(180deg); }

.advanced-options { display: none; animation: fadeIn 0.3s ease; margin-bottom: 8px; }
.advanced-options.open { display: block; }

/* Séparateur options avancées */
.advanced-separator {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0 16px;
    color: var(--text-muted);
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.advanced-separator::before,
.advanced-separator::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Temps partiel slider */
.temps-part-wrapper {
    display: flex; align-items: center; gap: 12px; margin-top: 8px;
}

.temps-part-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px; border-radius: 3px;
    background: linear-gradient(to right, var(--primary) var(--val, 100%), var(--border) var(--val, 100%));
    outline: none; cursor: pointer;
}

.temps-part-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
    cursor: pointer;
}

.temps-part-display {
    font-weight: 700; font-size: 1rem;
    color: var(--primary);
    min-width: 48px; text-align: center;
    background: var(--primary-light);
    padding: 4px 10px; border-radius: 6px;
}

.input-hint {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.75rem; color: var(--text-muted);
    margin-top: 5px;
}

/* ACRE SASU Toggle */
.acre-toggle-wrapper {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px; margin-top: 8px;
}

.acre-toggle-label {
    display: flex; align-items: center;
    justify-content: space-between;
    cursor: pointer; gap: 12px;
}

.acre-toggle-info { display: flex; flex-direction: column; gap: 3px; }

.acre-toggle-title {
    font-weight: 700; font-size: 0.9rem; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}

.acre-toggle-desc { font-size: 0.78rem; color: var(--text-muted); }

.toggle-switch { position: relative; flex-shrink: 0; }

.toggle-switch input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}

.toggle-track {
    display: block; width: 48px; height: 26px;
    background: var(--border); border-radius: 13px;
    cursor: pointer; transition: background 0.3s;
    position: relative;
}

.toggle-track::after {
    content: ''; position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: white; border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-track { background: var(--primary); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(22px); }

.acre-badge {
    margin-top: 10px; padding: 8px 12px;
    background: #dcfce7; color: #16a34a;
    border-radius: 6px; font-size: 0.82rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}

[data-theme="dark"] .acre-badge {
    background: rgba(22,163,74,0.15); color: #4ade80;
}

/* BOUTON CALCULER */
.btn-calculate {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 24px; letter-spacing: 0.3px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.4);
}

.btn-calculate:active { transform: translateY(0); }

/* ==========================================
   RÉSULTATS
========================================== */
.calc-results { padding: 36px; overflow-y: auto; max-height: 90vh; }

.result-hero {
    background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    border-radius: var(--radius); padding: 28px;
    margin-bottom: 24px; color: white;
    position: relative; overflow: hidden;
}

.result-hero::before {
    content: ''; position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%; pointer-events: none;
}

.result-hero-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}

.result-label { font-size: 0.8rem; font-weight: 600; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.result-badge { background: rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

.result-main-value { display: flex; align-items: flex-start; gap: 4px; margin-bottom: 8px; }
.result-currency { font-size: 1.5rem; font-weight: 700; margin-top: 8px; opacity: 0.8; }

#netValue, #netAE, #netSASU {
    font-size: 3.2rem; font-weight: 900;
    line-height: 1; letter-spacing: -2px;
    transition: all 0.3s ease;
}

.result-sub { font-size: 0.9rem; opacity: 0.7; }

/* RESULT CARDS */
.result-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 24px;
}

.result-card {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    display: flex; align-items: center; gap: 12px;
    transition: var(--transition);
}

.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.result-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}

.result-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result-card-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-card-value { font-size: 1rem; font-weight: 700; color: var(--text); }

/* GRAPHIQUE */
.chart-container {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}

.chart-container h4 {
    font-size: 0.8rem; font-weight: 700;
    color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

.chart-wrapper { display: flex; align-items: center; gap: 24px; }
.chart-wrapper canvas { max-width: 160px !important; max-height: 160px !important; }

.chart-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--text-secondary); }
.legend-value { font-weight: 700; color: var(--text); }
.legend-pct { font-size: 0.75rem; color: var(--text-muted); min-width: 30px; text-align: right; }

/* PROGRESS BARS */
.progress-section { margin-bottom: 20px; }

.progress-section h4 {
    font-size: 0.8rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}

.progress-bars { display: flex; flex-direction: column; gap: 12px; }

.progress-item { display: flex; flex-direction: column; gap: 6px; }

.progress-header { display: flex; justify-content: space-between; font-size: 0.85rem; }
.progress-label { font-weight: 500; color: var(--text-secondary); }
.progress-val { font-weight: 700; color: var(--text); }
.progress-track { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); width: 0%; }

/* ACTIONS */
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-action {
    flex: 1; min-width: 100px; padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card); color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.btn-action:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light); transform: translateY(-2px);
}

/* INFO BOX */
.info-box {
    display: flex; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem; line-height: 1.5; margin-bottom: 20px;
}

.info-box.warning {
    background: var(--warning-light);
    border: 1px solid #fcd34d; color: #92400e;
}

[data-theme="dark"] .info-box.warning { color: #fcd34d; border-color: rgba(217,119,6,0.4); }
.info-box i { flex-shrink: 0; margin-top: 2px; }

/* ==========================================
   COMPARATEUR
========================================== */
.comparateur-wrapper {
    background: var(--card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 40px;
    border: 1px solid var(--border);
}

.comparateur-input { max-width: 400px; margin: 0 auto 40px; text-align: center; }

.comparateur-input label {
    display: block; font-size: 0.85rem; font-weight: 700;
    color: var(--text-secondary); margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.comparateur-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.comp-placeholder { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.comp-placeholder i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: 0.4; }

.comp-card {
    border-radius: var(--radius); padding: 28px;
    border: 2px solid transparent; transition: var(--transition);
    position: relative; overflow: hidden; color: white;
}

.comp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.comp-card.best { border-color: rgba(255,255,255,0.4); transform: scale(1.02); box-shadow: var(--shadow-lg); }
.comp-card.best::after {
    content: '⭐ Meilleur'; position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,0.2); color: white;
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700;
}

.comp-card-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; opacity: 0.85; }
.comp-card-net { font-size: 2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 4px; }
.comp-card-label { font-size: 0.8rem; opacity: 0.7; margin-bottom: 20px; }
.comp-details { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; }
.comp-detail { display: flex; justify-content: space-between; font-size: 0.82rem; }
.comp-detail span:first-child { opacity: 0.75; }
.comp-detail span:last-child { font-weight: 600; }

/* ==========================================
   HISTORIQUE
========================================== */
.btn-clear {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    padding: 8px 16px;
    background: var(--danger-light); border: 1px solid var(--danger);
    border-radius: var(--radius-sm); color: var(--danger);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}

.btn-clear:hover { background: var(--danger); color: white; }

.historique-list { display: flex; flex-direction: column; gap: 12px; }

.historique-empty {
    text-align: center; padding: 80px 20px; color: var(--text-muted);
    background: var(--card); border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.historique-empty i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: 0.4; }
.historique-empty p { font-weight: 600; font-size: 1rem; margin-bottom: 4px; color: var(--text-secondary); }
.historique-empty span { font-size: 0.85rem; display: block; }

.historique-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
    display: flex; align-items: center; gap: 20px;
    transition: var(--transition);
}

.historique-item:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: var(--primary); }

.histo-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.histo-info { flex: 1; min-width: 0; }
.histo-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.histo-detail { font-size: 0.8rem; color: var(--text-muted); }
.histo-net { font-size: 1.4rem; font-weight: 800; color: var(--success); white-space: nowrap; flex-shrink: 0; }

.histo-delete {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); flex-shrink: 0;
}

.histo-delete:hover { background: var(--danger-light); border-color: var(--danger); color: var(--danger); }

/* ==========================================
   GUIDE
========================================== */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 60px; }

.guide-card {
    background: var(--card); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow);
    border: 1px solid var(--border); transition: var(--transition);
}

.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.guide-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; margin-bottom: 16px; }
.guide-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.guide-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.guide-formula { background: var(--bg-alt); border-left: 3px solid var(--primary); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: 'Courier New', monospace; font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* FAQ */
.faq-wrapper { margin-top: 20px; }
.faq-wrapper h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; color: var(--text); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.faq-item:hover { box-shadow: var(--shadow); }

.faq-q { padding: 20px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; user-select: none; color: var(--text); transition: var(--transition); }
.faq-q:hover { background: var(--bg-alt); }
.faq-q i { color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; padding: 0 24px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; border-top: 1px solid var(--border); }

/* ==========================================
   PILIER 2 - BANNIÈRE COOKIES RGPD
========================================== */
.cookie-banner {
    position: fixed; bottom: -200px; left: 0; right: 0;
    z-index: 9998;
    background: var(--card);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.visible { bottom: 0; }

.cookie-banner-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-content { flex: 1; min-width: 200px; }
.cookie-title { font-weight: 700; font-size: 0.95rem; color: var(--text); margin: 0 0 4px; }
.cookie-text { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.cookie-link { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn-accept {
    background: var(--primary); color: white; border: none;
    padding: 10px 20px; border-radius: 8px;
    font-weight: 600; font-size: 0.88rem; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s;
}

.cookie-btn-accept:hover { background: var(--primary-dark); transform: translateY(-1px); }

.cookie-btn-refuse {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 8px;
    font-size: 0.88rem; cursor: pointer; transition: all 0.2s;
}

.cookie-btn-refuse:hover { border-color: var(--text-muted); color: var(--text); }

/* ==========================================
   PILIER 3 - TRUST & E-E-A-T
========================================== */
.trust-eeat-section {
    padding: 48px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-badge-main {
    display: flex; align-items: center; gap: 16px;
    background: var(--card); border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius); padding: 20px 24px;
    margin-bottom: 32px; flex-wrap: wrap;
}

.trust-badge-icon {
    width: 48px; height: 48px; background: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.3rem; flex-shrink: 0;
}

.trust-badge-content { flex: 1; min-width: 200px; }
.trust-badge-content strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.trust-badge-content span { font-size: 0.82rem; color: var(--text-muted); }

.trust-badge-logos { display: flex; gap: 8px; flex-wrap: wrap; }

.trust-source-pill {
    display: flex; align-items: center; gap: 5px;
    background: var(--primary-light); color: var(--primary);
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
}

.sources-encart {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; margin-bottom: 32px;
}

.sources-encart h3 {
    font-size: 1rem; font-weight: 700; color: var(--text);
    margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}

.sources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.source-item { display: flex; gap: 12px; }
.source-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.source-item strong { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 3px; }
.source-item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.source-item a { color: var(--primary); text-decoration: none; font-weight: 500; }
.source-item a:hover { text-decoration: underline; }
.source-item a .fas { font-size: 0.65rem; margin-left: 2px; }

.personas-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }

.personas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.persona-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: flex-start; gap: 14px;
    cursor: pointer; transition: all 0.2s; position: relative;
}

.persona-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.12); }

.persona-avatar { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }

.persona-info { flex: 1; min-width: 0; }
.persona-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.persona-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0 0 10px; line-height: 1.4; }
.persona-result { display: flex; flex-direction: column; gap: 2px; }
.persona-net { font-size: 1rem; font-weight: 700; color: var(--primary); }
.persona-detail { font-size: 0.72rem; color: var(--text-muted); }

.persona-cta {
    position: absolute; top: 14px; right: 14px;
    background: var(--primary-light); color: var(--primary);
    border: none; border-radius: 8px;
    padding: 6px 10px; font-size: 0.75rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all 0.2s;
}

.persona-cta:hover { background: var(--primary); color: white; }

/* ==========================================
   PILIER 5 - ARTICLE SEO
========================================== */
.seo-article-section { padding: 64px 0; background: var(--bg); }

.seo-article { max-width: 860px; margin: 0 auto; }

.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--border); }

.article-header h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 16px; }

.article-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); background: var(--bg-alt); padding: 5px 12px; border-radius: 20px; }

.article-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.article-body p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

.article-intro {
    font-size: 1.05rem !important; color: var(--text) !important;
    background: var(--bg-alt); padding: 20px 24px;
    border-radius: var(--radius); border-left: 4px solid var(--primary);
    margin-bottom: 32px !important;
}

.article-list { padding-left: 24px; margin-bottom: 16px; }
.article-list li { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 6px; }
.article-list li::marker { color: var(--primary); }

.article-formula-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }

.formula-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.formula-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: 0.05em; }
.formula-item code { font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--text); font-weight: 600; background: var(--card); padding: 6px 10px; border-radius: 6px; display: block; }
.formula-example { font-size: 0.8rem; color: var(--text-muted); }

.article-table-wrapper { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--border); }

.article-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.article-table thead tr { background: var(--primary); color: white; }
.article-table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.82rem; }
.article-table td { padding: 11px 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.article-table tr.alt td { background: var(--bg-alt); }
.article-table td.diff-neg { color: #dc2626; font-weight: 700; }

.article-example-box { background: linear-gradient(135deg,rgba(217,119,6,0.08),rgba(245,158,11,0.05)); border: 1px solid rgba(217,119,6,0.3); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.example-header { background: linear-gradient(135deg,#d97706,#f59e0b); color: white; padding: 10px 16px; font-size: 0.88rem; font-weight: 600; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 12px; padding: 16px; font-size: 0.85rem; color: var(--text-muted); }
.example-total { grid-column: 1 / -1; font-size: 0.95rem; color: var(--text); padding-top: 8px; border-top: 1px solid var(--border); }

.article-faq { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.article-faq-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.article-faq-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 10px !important; }
.article-faq-item p { font-size: 0.88rem; margin: 0 !important; }

/* ==========================================
   FOOTER
========================================== */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; margin-bottom: 20px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #94a3b8; text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); }

.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-col a { display: block; color: #64748b; text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: #93c5fd; transform: translateX(4px); }

.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { font-size: 0.85rem; margin-bottom: 4px; }
.footer-disclaimer { font-size: 0.78rem !important; opacity: 0.5; max-width: 500px; margin: 8px auto 0 !important; }

/* ==========================================
   TOOLTIP
========================================== */
.tooltip-trigger { cursor: help; color: var(--text-muted); transition: color 0.2s; }
.tooltip-trigger:hover { color: var(--primary); }
.tooltip-box { position: fixed; background: #1e293b; color: white; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; max-width: 240px; line-height: 1.5; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.2s; box-shadow: var(--shadow-lg); }
.tooltip-box.show { opacity: 1; }

/* ==========================================
   TOAST
========================================== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--success); padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: slideInRight 0.3s ease; max-width: 320px; color: var(--text); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

/* ==========================================
   ADSENSE ZONES
========================================== */
.adsense-banner { max-width: 1200px; margin: 0 auto; padding: 12px 24px; text-align: center; }
.adsense-placeholder { background: var(--bg-alt); border: 2px dashed var(--border); border-radius: var(--radius-sm); min-height: 90px; display: flex !important; align-items: center; justify-content: center; }

/* ==========================================
   STICKY RESULT BAR
========================================== */
.sticky-result { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--card); border-top: 2px solid var(--primary); box-shadow: 0 -4px 24px rgba(0,0,0,0.12); transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); padding: 10px 24px; }
.sticky-result.visible { transform: translateY(0); }
.sticky-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.sticky-label { color: var(--text-secondary); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.sticky-value { font-size: 1.5rem; font-weight: 800; color: var(--success); flex: 1; }
.sticky-cta { background: var(--primary); color: white; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem; text-decoration: none; white-space: nowrap; transition: var(--transition); }
.sticky-cta:hover { background: var(--primary-dark); }
.stat-sym-left { font-size: clamp(1.2rem,3vw,1.8rem); color: rgba(255,255,255,0.7); margin-right: 2px; }

/* ==========================================
   ANIMATIONS
========================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.animate-in { animation: fadeInUp 0.5s ease both; }

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .calc-layout { grid-template-columns: 1fr; }
    .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
    .calc-results { max-height: none; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand p { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-primary { display: none; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .calc-tabs { flex-direction: column; }
    .inputs-grid { grid-template-columns: 1fr; }
    .result-cards { grid-template-columns: 1fr; }
    .chart-wrapper { flex-direction: column; align-items: center; }
    .chart-wrapper canvas { max-width: 180px !important; max-height: 180px !important; }
    .footer-links { grid-template-columns: repeat(2,1fr); }
    .trust-item:nth-child(n+4) { display: none; }
    .result-actions { flex-direction: column; }
    #netValue, #netAE, #netSASU { font-size: 2.4rem; }
    .comparateur-wrapper { padding: 20px; }
    .section { padding: 48px 0; }
    .adsense-banner { padding: 8px 16px; }
    .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .cookie-btn-accept, .cookie-btn-refuse { flex: 1; justify-content: center; }
    .trust-badge-main { flex-direction: column; }
    .personas-grid { grid-template-columns: 1fr; }
    .article-formula-box { grid-template-columns: 1fr; }
    .article-meta { gap: 8px; }
    .temps-part-wrapper { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
    .calc-inputs, .calc-results { padding: 20px 16px; }
    .guide-grid { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .hero-stats { gap: 12px; }
    .stat-num { font-size: 1.6rem; }
    .stat-symbol { font-size: 1.4rem; }
    .result-hero { padding: 20px; }
    #netValue, #netAE, #netSASU { font-size: 2rem; }
    .comparateur-wrapper { padding: 16px; }
    .section-header h2 { font-size: 1.5rem; }
    .sticky-label { display: none; }
    .sticky-value { font-size: 1.25rem; }
}