/*
Theme Name: Simu Reprise Child
Theme URI: https://example.com/simu-reprise-child
Description: Thème enfant pour le simulateur de reprise d'entreprise, basé sur Twenty Twenty-Four.
Author: Antigravity
Author URI: https://example.com
Template: twentytwentyfour
Version: 1.0.0
*/

:root {
    --color-primary: #0B2149; /* Bleu nuit */
    --color-secondary: #D4A858; /* Doré doux */
    --color-bg: #F5F5F7; /* Blanc cassé */
    --color-text: #333333;
    --color-alert: #C0392B;
    --font-heading: 'Poppins', sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Simulator Results */
.srp-resultats {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.srp-resultats h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.srp-score {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
}

.srp-recommendation {
    font-weight: bold;
    margin-top: 1rem;
}

/* --- LANDING PAGE STYLES --- */

/* Reset & Base */
.srp-landing {
    line-height: 1.6;
}
.srp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.srp-section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--color-primary);
}
.section-title.left { text-align: left; }

/* HERO */
.srp-hero {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    padding: 100px 0 80px;
    border-bottom: 1px solid #eee;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}
.hero-actions .btn-primary { margin-right: 15px; }
.hero-trust { margin-top: 30px; font-size: 0.9rem; color: #888; }
.hero-trust span { margin-right: 15px; }

/* MOCKUP */
.srp-mockup-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(11, 33, 73, 0.15);
    overflow: hidden;
    border: 1px solid #e1e4e8;
    height: 380px; 
    position: relative;
    font-family: var(--font-body);
}

.mock-header {
    background: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.dots { display: flex; gap: 6px; margin-right: 20px; }
.mock-header .dot { width: 10px; height: 10px; border-radius: 50%; background: #dfe1e5; }
.mock-url {
    background: #fff;
    border-radius: 4px;
    padding: 4px 15px;
    font-size: 0.75rem;
    color: #888;
    flex-grow: 1;
    text-align: center;
    border: 1px solid #eee;
}

.mock-body-grid {
    display: flex;
    height: 100%;
}
.mock-sidebar {
    width: 70px;
    background: #fcfcfc;
    border-right: 1px solid #eee;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ms-item { height: 8px; background: #eee; border-radius: 4px; width: 100%; }
.ms-item.active { background: var(--color-secondary); width: 60%; }

.mock-content {
    flex-grow: 1;
    padding: 30px;
    position: relative;
    background: linear-gradient(to bottom, #fff, #fafafa);
}
.mock-title-line { width: 40%; height: 10px; background: #eee; border-radius: 5px; margin-bottom: 40px; }

/* ANIMATED GRAPH */
.mock-chart-container {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 150px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    width: 60%;
}
.mock-bar {
    width: 25px;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
    animation: growUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0.9;
}
.mock-bar.b1 { height: 40%; animation-delay: 0.2s; }
.mock-bar.b2 { height: 70%; animation-delay: 0.4s; background: #3498db; }
.mock-bar.b3 { height: 50%; animation-delay: 0.6s; background: #f1c40f; }
.mock-bar.b4 { height: 90%; animation-delay: 0.8s; background: var(--color-secondary); }

/* FLOATING SCORE */
.mock-score {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid #eee;
    animation: fadeIn 0.8s ease-out forwards, float 6s ease-in-out infinite;
    z-index: 10;
    min-width: 120px;
}
.score-ring { font-size: 2rem; font-weight: bold; color: #27ae60; margin-bottom: 2px; }
.score-max { font-size: 1rem; color: #ccc; font-weight: normal; }
.score-label { display: block; font-size: 0.8rem; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }

/* FLOATING KPI */
.mock-kpi {
    position: absolute;
    bottom: 80px;
    right: 50px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
    animation: fadeIn 0.8s ease-out 0.5s forwards, float 5s ease-in-out 1s infinite;
    opacity: 0;
}
.kpi-icon { font-size: 1.2rem; }
.kpi-label { display: block; font-size: 0.65rem; color: #888; text-transform: uppercase; }
.kpi-val { font-weight: bold; color: #0B2149; }

/* ANIMATIONS */
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0px); } }

/* PROBLEM SECTION */
.steps-grid, .audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.problem-item {
    flex: 0 1 350px; /* Ensure cards have similar width to grid */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    text-align: center;
}
.problem-item .icon { font-size: 3rem; display: block; margin-bottom: 20px; }

/* SOLUTION */
.solution-section { background: #0B2149; color: #fff; }
.solution-section .section-title { color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-box { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 12px; margin-top: 30px; }
.feature-box ul { list-style: none; padding: 0; }
.feature-box li { margin-bottom: 10px; }
.srp-screen-preview { background: #fff; border-radius: 12px; height: 350px; color: #333; }

/* STEPS */
.step-card { text-align: center; position: relative; padding: 20px; }
.step-num { width: 50px; height: 50px; background: var(--color-secondary); color: #fff; border-radius: 50%; line-height: 50px; font-weight: bold; font-size: 1.2rem; margin: 0 auto 20px; }

/* TRUST */
.trust-section { background: #f8f9fa; text-align: center; }
.trust-features { display: flex; justify-content: center; gap: 50px; margin-top: 40px; }

/* PDF */
.pdf-section { background: #fff; }
.pdf-visual { background: #eee; padding: 40px; border-radius: 20px; display: flex; justify-content: center; }
.pdf-doc { 
    width: 200px; 
    height: 280px; 
    background: #fff; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pdf-header {
    background: #f8f9fa;
    padding: 12px 15px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}
.pdf-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pdf-block {
    height: 8px;
    background: #e9ecef;
    border-radius: 2px;
    width: 100%;
}
.pdf-block:nth-child(1) {
    width: 85%;
    margin-top: 5px;
}
.pdf-block:nth-child(2) {
    width: 70%;
    height: 10px;
}
.pdf-chart {
    flex: 1;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px 8px;
    gap: 4px;
    min-height: 60px;
    position: relative;
}
.pdf-chart-bar {
    width: 12px;
    background: var(--color-primary);
    border-radius: 2px 2px 0 0;
    animation: growUp 0.8s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}
.pdf-chart-bar.b1 { height: 40%; animation-delay: 0.2s; }
.pdf-chart-bar.b2 { height: 65%; animation-delay: 0.4s; background: var(--color-secondary); }
.pdf-chart-bar.b3 { height: 50%; animation-delay: 0.6s; background: #6c757d; }
.pdf-chart-bar.b4 { height: 75%; animation-delay: 0.8s; background: var(--color-primary); }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.check-list li:before { content: '✔'; color: var(--color-secondary); position: absolute; left: 0; }

/* CTA FINAL */
.cta-final { background: linear-gradient(to right, #0B2149, #1a3c75); color: #fff; text-align: center; padding: 100px 0; }
.cta-final h2 { color: #fff; margin-bottom: 40px; }
.cta-group { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.btn-primary.large { padding: 15px 40px; font-size: 1.2rem; }
.btn-outline { border: 2px solid #fff; color: #fff; padding: 15px 40px; border-radius: 50px; text-decoration: none; transition: .3s; }
.btn-outline:hover { background: #fff; color: var(--color-primary); }
.cta-sub { color: rgba(255,255,255,0.7); }

/* DASHBOARD ANIMATION (Solution Section) */
.srp-screen-preview.enhanced {
    padding: 20px;
    background: #f4f6f8; /* Very light grey */
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.screen-title { font-size: 0.9rem; font-weight: 600; color: #555; margin-left: auto; margin-right: auto; }
.screen-body { padding-top: 20px; display: flex; flex-direction: column; gap: 20px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
    animation: slideUpFade 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}
.dash-card.c1 { animation-delay: 0.2s; }
.dash-card.c2 { animation-delay: 0.4s; }
.dash-card.c3 { animation-delay: 0.6s; }

.d-label { display: block; font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }

/* Progress Bar */
.d-bar-bg { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.d-bar-fill { height: 100%; background: var(--color-primary); width: 0; animation: fillWidth 1s ease-out 0.5s forwards; }

/* DSCR Value */
.d-row { display: flex; justify-content: space-between; align-items: center; }
.d-val { font-size: 1.4rem; font-weight: bold; color: #0B2149; }
.d-badge { background: #e8f5e9; color: #27ae60; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: bold; }

/* Main Chart */
.dash-main-chart {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
    flex-grow: 1;
    animation: slideUpFade 0.6s ease-out 0.6s forwards;
    opacity: 0;
}
.chart-visual {
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border-bottom: 1px solid #eee;
}
.c-bar {
    flex-grow: 1;
    background: #D4A858;
    border-radius: 2px 2px 0 0;
    opacity: 0.7;
    animation: growUp 0.8s ease-out forwards; /* Reusing growUp */
    transform: scaleY(0);
    transform-origin: bottom;
}
.c-bar.h1 { height: 20%; animation-delay: 0.7s; }
.c-bar.h2 { height: 35%; animation-delay: 0.8s; }
.c-bar.h3 { height: 45%; animation-delay: 0.9s; }
.c-bar.h4 { height: 30%; animation-delay: 1.0s; background: #e74c3c; /* Dip */ }
.c-bar.h5 { height: 60%; animation-delay: 1.1s; }
.c-bar.h6 { height: 75%; animation-delay: 1.2s; }
.c-bar.h7 { height: 90%; animation-delay: 1.3s; background: #27ae60; }

@keyframes slideUpFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fillWidth { from { width: 0; } to { width: 82%; } }

/* HEADER STYLES */
.srp-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 50px; }

.srp-logo a, .srp-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--color-primary); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.logo-icon { font-size: 1.5rem; }
.highlight { color: var(--color-secondary); }

.srp-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.srp-nav a { text-decoration: none; color: #555; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.srp-nav a:hover { color: var(--color-primary); }

.srp-actions { display: flex; align-items: center; gap: 15px; }
.btn-text { text-decoration: none; color: #555; font-weight: 500; margin-right: 10px; }
.btn-text:hover { color: var(--color-primary); }

.btn-primary.small { padding: 8px 18px; font-size: 0.9rem; }
.btn-secondary.small { padding: 6px 16px; font-size: 0.85rem; }

/* FOOTER STYLES */
.srp-footer { background: #081a3b; color: #aab2bd; padding: 60px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 15px 0; max-width: 300px; line-height: 1.5; }
.footer-brand .srp-logo { color: #fff; }
.footer-links h4 { color: #fff; margin-bottom: 20px; font-size: 1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aab2bd; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 30px; opacity: 0.5; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-grid, .grid-2, .problem-grid, .steps-grid, .audience-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .cta-group { flex-direction: column; }
    .hero-actions { display: flex; flex-direction: column; gap: 15px; }
    .hero-actions .btn-primary { margin: 0; }
}

/* DASHBOARD STYLES */
.account-layout { display: flex; gap: 40px; margin-top: 40px; min-height: 600px; }
.account-sidebar { width: 250px; flex-shrink: 0; border-right: 1px solid #eee; padding-right: 20px; }
.account-content { flex-grow: 1; padding-bottom: 50px; }

.user-profile-summary { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.avatar-circle { width: 50px; height: 50px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }
.user-info { display: flex; flex-direction: column; }
.u-name { font-weight: 600; color: #333; }
.u-email { font-size: 0.8rem; color: #888; }

.account-nav { display: flex; flex-direction: column; gap: 5px; }
.account-nav a { display: block; padding: 10px 15px; text-decoration: none; color: #555; border-radius: 6px; transition: all 0.2s; font-weight: 500; }
.account-nav a:hover { background: #f5f5f5; color: var(--color-primary); }
.account-nav a.active { background: #eef2f7; color: var(--color-primary); font-weight: 600; }
.account-nav .logout-link { margin-top: 20px; color: #c0392b; }
.account-nav .logout-link:hover { background: #fff0f0; color: #a93226; }

.tab-title { margin-top: 0; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; font-size: 1.8rem; color: var(--color-primary); }

.dash-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ds-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; align-items: flex-start; }
.ds-card .label { font-size: 0.9rem; color: #888; margin-bottom: 10px; text-transform: uppercase; font-weight: 600; }
.ds-card .value { font-size: 1.5rem; font-weight: bold; color: #333; margin-bottom: 5px; }
.ds-card .value.success { color: #27ae60; }
.ds-card .value.warning { color: #f39c12; }
.ds-card.highlight { background: #f8f9fa; border-color: #e9ecef; align-items: center; justify-content: center; text-align: center; }

.sim-list { display: grid; grid-template-columns: 1fr; gap: 15px; }
.sim-item { display: flex; justify-content: space-between; align-items: center; padding: 20px; border: 1px solid #eee; border-radius: 8px; background: #fff; transition: transform 0.2s; }
.sim-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.si-title { margin: 0 0 5px 0; font-size: 1.1rem; color: var(--color-primary); }
.si-date { font-size: 0.85rem; color: #888; }
.score-badge { padding: 5px 10px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; }
.score-badge.good { background: #e8f8f5; color: #27ae60; }
.score-badge.bad { background: #fdedec; color: #c0392b; }

.sub-details { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 40px; text-align: center; max-width: 600px; margin: 0 auto; }
.sub-status h3 { margin-top: 0; }
.sub-status.active-box .btn-secondary { opacity: 0.5; cursor: not-allowed; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }

@media (max-width: 900px) {
    .account-layout { flex-direction: column; }
    .account-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 30px; }
    .dash-summary-grid { grid-template-columns: 1fr; }
}

/* --- PRICING PAGE STYLES --- */

.pricing-page { padding-top: 60px; padding-bottom: 100px; }
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-header h1 { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 15px; }
.pricing-header .sub-h1 { font-size: 1.1rem; color: #666; max-width: 600px; margin: 0 auto; }

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 80px;
    align-items: start;
}

.price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex; flex-direction: column;
}

.price-card:hover { transform: translateY(-5px); }

.price-card.pro {
    border: 2px solid var(--color-secondary);
    box-shadow: 0 20px 40px rgba(228, 179, 102, 0.15);
    z-index: 1; /* Ensure badge floats above free card if overlap */
}

.best-value-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pc-header { text-align: center; border-bottom: 1px solid #f0f0f0; margin-bottom: 30px; padding-bottom: 20px; }
.pc-header h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--color-primary); }
.price { font-size: 3rem; font-weight: 700; color: var(--color-primary); }
.price .period { font-size: 1rem; color: #999; font-weight: 400; }
.desc { color: #888; margin-top: 10px; font-size: 0.95rem; }

.pc-body { flex-grow: 1; display: flex; flex-direction: column; }
.pc-body ul { list-style: none !important; padding: 0 !important; margin: 0 0 30px !important; text-align: left; flex-grow: 1; }
.pc-body li { margin-bottom: 15px; font-size: 0.95rem; color: #444; display: flex; gap: 10px; align-items: flex-start; }
.pc-body li.disabled { opacity: 0.5; }

.full-width { display: block; text-align: center; width: 100%; box-sizing: border-box; }

/* Why Premium Section */
.why-premium-section { padding: 80px 0; background: #fdfdfd; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.why-premium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.wp-card { background: #fff; padding: 25px; border-radius: 8px; border: 1px solid #eee; }
.wp-card h4 { color: var(--color-primary); margin-top: 0; margin-bottom: 10px; }
.wp-card p { font-size: 0.95rem; color: #666; margin: 0; }
.wp-quote { text-align: center; font-style: italic; color: #555; font-weight: 500; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* Transparency Section */
.transparency-section { padding: 80px 0; text-align: center; }
.transparency-box { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; 
    max-width: 1000px; margin: 40px auto 0; 
    background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden;
}
.tb-col { padding: 40px; text-align: left; }
.tb-col h3 { margin-top: 0; margin-bottom: 20px; font-size: 1.3rem; }
.tb-col.do { background: rgba(39, 174, 96, 0.05); }
.tb-col.dont { background: rgba(192, 57, 43, 0.05); }
.tb-list li { margin-bottom: 15px; position: relative; padding-left: 25px; list-style: none !important; }
.tb-list { padding-left: 0 !important; margin: 0 !important; }
.tb-col.do .tb-list li:before { content: '✅'; position: absolute; left: 0; }
.tb-col.dont .tb-list li:before { content: '❌'; position: absolute; left: 0; }

/* FAQ */
.pricing-faq { max-width: 800px; margin: 80px auto; }
.pricing-faq h2 { text-align: center; margin-bottom: 50px; color: var(--color-primary); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.faq-item { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #eee; }
.faq-item h4 { font-size: 1.1rem; margin: 0 0 10px 0; color: var(--color-primary); }
.faq-item p { color: #666; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .why-premium-grid { grid-template-columns: 1fr; }
    .transparency-box { grid-template-columns: 1fr; }
}


/* --- NEWS GRID (Classy Redesign) --- */
body .srp-container .news-grid,
body.blog .news-grid,
body.archive .news-grid,
.news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 40px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .srp-container .news-card,
body.blog .news-card,
body.archive .news-card,
article.news-card {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.news-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0; /* Fallback */
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.news-cat {
    color: var(--color-primary);
}

.news-title {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-date-line {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 16px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.news-read-link {
    align-self: flex-start;
    margin-top: auto;
    font-weight: 700;
    color: #D4A858;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    transition: padding-left 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.news-read-link .line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background: #D4A858;
    margin-right: 10px;
    transition: width 0.3s;
}

.news-read-link:hover {
    padding-left: 5px;
}

.news-read-link:hover .line {
    width: 45px;
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   ======================================== */

/* Tablet & Small Desktop (max-width: 900px) */
@media (max-width: 900px) {
    .srp-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    /* Header */
    .header-flex {
        flex-wrap: wrap;
    }
    
    .srp-nav ul {
        gap: 20px;
    }
    
    /* Dashboard */
    .account-layout {
        flex-direction: column;
    }
    
    .account-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .dash-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Container */
    .srp-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Header */
    .header-flex {
        padding: 15px 20px;
    }
    
    .srp-logo .logo-text {
        font-size: 1.3rem;
    }
    
    .srp-nav {
        display: none; /* Hide desktop nav on mobile */
    }
    
    .srp-actions {
        gap: 10px;
    }
    
    .srp-actions .btn-primary,
    .srp-actions .btn-secondary {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .srp-hero {
        padding: 60px 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Grids */
    .grid-2,
    .problem-grid,
    .steps-grid,
    .audience-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Simulator Form */
    .srp-form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .srp-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .srp-form-row .srp-form-group {
        width: 100%;
    }
    
    /* Results KPIs */
    .srp-kpis-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .why-premium-grid {
        grid-template-columns: 1fr;
    }
    
    .transparency-box {
        grid-template-columns: 1fr;
    }
    
    /* Dashboard */
    .dash-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .ds-card {
        padding: 20px;
    }
    
    .sim-list {
        gap: 15px;
    }
    
    .sim-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .si-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* News Grid */
    body .news-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Auth Forms */
    .auth-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .auth-col {
        padding: 30px 20px !important;
    }
    
    .auth-col h3 {
        font-size: 1.3rem !important;
    }
    
    #loginform input[type="text"],
    #loginform input[type="password"],
    .auth-col input[type="text"],
    .auth-col input[type="email"],
    .auth-col input[type="password"] {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .auth-col .btn-primary,
    .auth-col button {
        font-size: 1rem !important;
    }
    
    /* Auth page container */
    .srp-container[style*="max-width: 900px"] {
        max-width: 100% !important;
        padding: 40px 20px !important;
    }
    
    .srp-container h1 {
        font-size: 1.8rem !important;
        margin-bottom: 30px !important;
    }
    
    /* Tables */
    table {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col ul {
        align-items: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Container */
    .srp-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header */
    .srp-logo .logo-text {
        font-size: 1.1rem;
    }
    
    .srp-actions .btn-text {
        display: none; /* Hide "Connexion" text on very small screens */
    }
    
    /* Hero */
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-sub {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .problem-item,
    .step-item,
    .audience-card,
    .pricing-card {
        padding: 20px;
    }
    
    /* Form */
    .srp-form-group label {
        font-size: 0.9rem;
    }
    
    .srp-form-group input,
    .srp-form-group select {
        font-size: 1rem;
        padding: 12px;
    }
    
    /* Dashboard */
    .account-nav {
        flex-direction: column;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    /* Pricing */
    .pricing-card .price {
        font-size: 2.5rem;
    }
    
    /* Simulator Results */
    .srp-score-box {
        padding: 20px;
    }
    
    .srp-score {
        font-size: 2.5rem;
    }
    
    /* News Cards */
    .news-card-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    /* Auth Forms - Extra Small Screens */
    .auth-col {
        padding: 25px 15px !important;
    }
    
    .srp-container h1 {
        font-size: 1.5rem !important;
    }
    
    .auth-col h3 {
        font-size: 1.2rem !important;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 500px) and (orientation: landscape) {
    .srp-hero {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu nav {
    padding: 40px 20px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 20px 0;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--color-secondary);
    padding-left: 10px;
}

.mobile-menu .btn-primary {
    margin-top: 20px;
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Responsive Breakpoints */
@media (max-width: 768px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Show mobile menu container */
    .mobile-menu {
        display: block !important;
    }
    
    /* Hide desktop navigation */
    .header-left .srp-nav,
    .srp-header .srp-nav,
    nav.srp-nav {
        display: none !important;
    }
    
    /* Hide desktop actions */
    .srp-header .srp-actions,
    div.srp-actions {
        display: none !important;
    }
    
    /* Adjust header layout */
    .header-flex {
        justify-content: space-between !important;
    }
    
    .header-left {
        flex-grow: 0 !important;
        gap: 0 !important;
    }
    
    /* Ensure logo stays visible */
    .srp-logo {
        display: flex !important;
    }
}

/* Print Styles */
@media print {
    .srp-header,
    .srp-footer,
    .btn-primary,
    .btn-secondary,
    .srp-actions,
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }
    
    .srp-container {
        max-width: 100%;
        padding: 0;
    }
}

/* ========================================
   INTERACTIVE SCORE BAR STYLES
   ======================================== */

/* Score Card Active State */
.score-card.active {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    border-left-width: 6px !important;
}

/* Center CTA */
.center-cta {
    text-align: center;
}

/* Responsive Score Bar */
@media (max-width: 768px) {
    .score-gradient-bar-container {
        margin-bottom: 40px !important;
    }
    
    #scoreIndicator {
        font-size: 1rem !important;
        padding: 6px 12px !important;
    }
    
    #scoreThumb {
        width: 28px !important;
        height: 28px !important;
        border-width: 5px !important;
    }
    
    .score-legend {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    #scoreIndicator {
        font-size: 0.9rem !important;
        padding: 5px 10px !important;
    }
    
    #scoreThumb {
        width: 32px !important;
        height: 32px !important;
    }
}

