/* Variables & Reset - Nouvelle Charte Graphique "Maquette" */
:root {
    --primary: #6c5ce7; /* Violet doux et vibrant (couleur principale) */
    --primary-dark: #5b4ddb;
    --primary-light: #f1efff; /* Lavande très clair pour les fonds et badges */
    --primary-rgb: 108, 92, 231; /* Pour les effets rgba dynamiques */
    
    --bg-main: #ffffff; /* Fond blanc classique */
    --bg-subtle: #f9f8ff; /* Fond lavande subtil pour les sections alternées */
    --bg-dark: #6c5ce7; /* Le fond sombre devient le violet principal (Footer, Bannières) */
    
    --text-main: #2b254d; /* Indigo très foncé pour le texte principal */
    --text-muted: #787399; /* Gris violacé pour le texte secondaire */
    
    --border: #e8e6f5; /* Bordure très douce */
    
    /* Accents tirés de la maquette (ex: illustrations, pastilles) */
    --accent: #ffb86c; 
    --accent-light: #fff5e8;

    /* Typographie : Outfit pour les titres (arrondi, moderne) et Inter pour le corps */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Ombres beaucoup plus douces et diffuses */
    --shadow-sm: 0 4px 15px rgba(108, 92, 231, 0.05);
    --shadow-md: 0 10px 30px rgba(108, 92, 231, 0.08);
    --shadow-lg: 0 20px 40px rgba(108, 92, 231, 0.12);
    --shadow-xl: 0 30px 60px rgba(108, 92, 231, 0.18);
    
    /* Boutons en forme de pilule (arrondi total) */
    --radius: 50px; 
    --radius-lg: 24px; /* Grandes cartes avec un bon arrondi */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section, .section-padding { padding: 100px 0; }
.bg-subtle { background-color: var(--bg-subtle); }
.bg-dark { background-color: var(--bg-dark); color: white; }

h1, h2, h3, h4 { 
    font-family: var(--font-heading);
    color: var(--text-main); 
    font-weight: 700; 
    line-height: 1.25; 
    margin-bottom: 20px; 
    letter-spacing: -0.02em; 
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: white; }

h1 { font-size: 3.5rem; letter-spacing: -0.04em; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

/* Elements Utils */
.badge {
    display: inline-flex;
    padding: 8px 20px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Boutons (Arrondis extrêmes, style maquette) */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 36px; border-radius: var(--radius);
    font-weight: 600; font-size: 1.05rem; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center; border: 2px solid transparent;
}
.btn-primary { 
    background-color: var(--primary); 
    color: white; 
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.25);
}
.btn-primary:hover { 
    background-color: var(--primary-dark); 
    border-color: var(--primary-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.35); 
    color: white; 
}
.btn-outline { background-color: white; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background-color: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.btn-white { background-color: white; color: var(--primary-dark); border-color: white; font-weight: 700; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-white:hover { background-color: var(--bg-subtle); border-color: var(--bg-subtle); color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn-white-outline { background-color: transparent; color: white; border-color: white; }
.btn-white-outline:hover { background-color: white; color: var(--primary); }

/* Navigation */
.navbar {
    background: white; 
    position: sticky; top: 0; left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.05);
    border-bottom: none;
}
.nav-container { 
    display: flex; justify-content: space-between; align-items: center; height: 80px; 
    max-width: 100% !important; /* Force le header à prendre toute la largeur de l'écran */
    padding: 0 40px; /* Conserve juste une marge de respiration sur les bords de l'écran */
}
.logo-wrapper {
    display: flex; align-items: center; gap: 8px; flex: 1; text-decoration: none;
}
.header-logo { height: 32px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; font-family: var(--font-heading); }
.nav-links { 
    display: flex; gap: 36px; align-items: center; 
    position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-actions { flex: 1; display: flex; justify-content: flex-end; }
.nav-links a { color: var(--text-main); font-weight: 600; font-size: 1rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-links {
        position: static;
        transform: none;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100vw;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 20px rgba(108, 92, 231, 0.1);
        padding: 0;
        transform: none;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        padding: 20px 24px;
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }
    .nav-actions { display: none; }
}

/* Unified Hero */
.page-hero {
    background-color: var(--bg-subtle); 
    padding: 100px 0 80px; 
    text-align: center;
    border-bottom: 1px solid white;
}
.page-hero h1 { max-width: 850px; margin-left: auto; margin-right: auto; line-height: 1.15; }
.page-hero p { font-size: 1.35rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

/* Navigation Utilities */
.nav-btn-client {
    margin-right: 12px;
}

/* Footer Utilities */
.footer-brand {
    grid-column: span 2;
}

.footer-logo {
    color: white;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--primary-light);
    max-width: 400px;
    font-size: 1.05rem;
}

/* Helper Classes */
.vr {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.bg-subtle {
    background-color: var(--bg-subtle);
}

.border-top {
    border-top: 1px solid var(--border);
}

.opacity-90 {
    opacity: 0.9;
}

/* Grid Cards (Flottantes) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 56px;}
.card {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon { 
    width: 64px; height: 64px; 
    background: var(--primary-light); 
    color: var(--primary); 
    border-radius: 50%; /* Icônes rondes */
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.75rem; margin-bottom: 24px; 
}
.card h3 { margin-bottom: 16px; font-size: 1.4rem; }
.card p { color: var(--text-muted); margin-bottom: 24px; flex-grow: 1; }
.card-link { font-weight: 600; display: inline-flex; align-items: center; margin-top: auto; font-size: 1.05rem;}
.card-link::after { content: "→"; margin-left: 8px; transition: transform 0.2s; }
.card:hover .card-link::after { transform: translateX(6px); }

/* Sidebar Navigation */
aside h3 { color: var(--primary); }
aside ul li a { border-radius: 8px; padding: 10px 16px; display: block; transition: all 0.2s; font-size: 1.05rem;}
aside ul li a:hover { background-color: var(--primary-light); color: var(--primary) !important; transform: translateX(4px); }

/* Tables (Comparatif) */
table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table th { padding: 24px; font-size: 1.125rem; font-weight: 700; font-family: var(--font-heading); color: var(--text-main); text-align: left; }
table td { padding: 24px; color: var(--text-main); font-size: 1.05rem; }
table tr { border-bottom: 1px solid var(--border); transition: background-color 0.2s; }
table tbody tr:hover { background-color: var(--bg-subtle); }
.table-col-accent { background-color: var(--primary-light) !important; color: var(--primary-dark) !important; border-left: 2px solid var(--primary); border-right: 2px solid var(--primary); font-weight: 700 !important; }

/* Stats Component */
.stats-grid { display: flex; justify-content: center; gap: 64px; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 48px 0; flex-wrap: wrap; margin-top: 32px;}
.stat-item { text-align: center; }
.stat-value { font-size: 4rem; font-weight: 800; color: white; display: block; line-height: 1; margin-bottom: 8px; font-family: var(--font-heading);}
.stat-label { color: var(--primary-light); text-transform: uppercase; font-size: 0.95rem; font-weight: 700; letter-spacing: 1px;}

/* Footer */
.footer { background-color: var(--bg-dark); color: white; padding: 80px 0 40px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 { color: white; margin-bottom: 24px; font-size: 1.25rem; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: var(--primary-light); font-size: 1.05rem; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); display: flex; justify-content: space-between; color: var(--primary-light); font-size: 0.95rem; flex-wrap: wrap; gap: 16px;}
.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: white; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    h1 { font-size: 2.5rem; }
    .page-hero { padding: 60px 0; }
    .stats-grid { gap: 40px; flex-direction: column; }
}

/* =========================================================================
   UTILITIES (Added for CSS Refactoring)
   ========================================================================= */

/* Espacements (Margins) */
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-48 { margin-top: 48px; }

/* Typographie & Couleurs */
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.text-danger { color: #991b1b; }
.text-accent { color: var(--accent); }
.text-white { color: #fff; }
.text-success { color: #166534; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 0.95rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 2rem; }
.text-3xl { font-size: 2.5rem; }
.text-4xl { font-size: 3rem; }
.text-center { text-align: center; }
.list-none { list-style: none; }
.p-0 { padding: 0; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.px-32 { padding-left: 32px; padding-right: 32px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.py-24 { padding-top: 24px; padding-bottom: 24px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.opacity-20 { opacity: 0.2; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Badges variantes */
.badge-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-accent { background: rgba(255, 220, 100, 0.2); color: var(--accent); border: 1px solid var(--accent); }

/* Bouton Dark */
.btn-dark {
    background: var(--primary-dark);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-dark:hover { background: var(--primary); transform: translateY(-2px); }

/* Layouts (Guides) */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.guide-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

@media (max-width: 1024px) {
    .grid-3-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .grid-3-cols { grid-template-columns: 1fr; }
    .grid-2-cols { grid-template-columns: 1fr; }
    .guide-layout { grid-template-columns: 1fr; }
}

/* Composants de Sidebar */
.sidebar-sticky { position: sticky; top: 100px; height: max-content; }
.sidebar-nav { border-left: 2px solid var(--border); padding-left: 16px; }

/* Checklist Interactive */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.checklist-item:hover { background: var(--bg-subtle); border-color: var(--border); }
.checklist-item.checked { background: #f0fdf4; border-color: #bbf7d0; text-decoration: line-through; color: var(--text-muted); }
.checklist-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #166534;
    transition: all 0.2s ease;
    background: white;
}
.checklist-item.checked .checklist-check {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

/* Checklist Group (Titles) */
.checklist-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

/* Blocs d'Information */
.info-box { background-color: var(--bg-subtle); padding: 24px; border-radius: 8px; }
.alert-box { background-color: #fef2f2; padding: 24px; border-radius: 8px; }
.cta-box { background-color: var(--primary); padding: 48px; border-radius: var(--radius-lg); border: none; text-align: center; color: white; box-shadow: var(--shadow-lg); }

/* Scoring Tool Styles */
.hidden { display: none !important; }
.score-circular {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; font-family: var(--font-heading);
    color: white; background: var(--border);
    transition: all 0.5s ease;
    margin-bottom: 16px;
}
.score-green { background-color: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
.score-orange { background-color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
.score-red { background-color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }

/* =========================================================================
   COMPOSANTS PHASE 2 (Modal & Product Cards)
   ========================================================================= */

/* Modale */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(43, 37, 77, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease; padding: 20px;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
    background: white; border-radius: var(--radius-lg);
    max-width: 500px; width: 100%; padding: 48px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    position: relative; transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
    position: absolute; top: 24px; right: 24px;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--text-muted);
}
.modal h2 { font-size: 2rem; margin-bottom: 16px; text-align: center; }
.modal p { text-align: center; color: var(--text-muted); margin-bottom: 32px; }

/* Product Data Card (Baux) */
.product-card {
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 32px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 24px;
}
.product-card:hover { 
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.product-info { display: flex; align-items: center; gap: 24px; }
.product-icon {
    width: 64px; height: 64px; background: var(--primary-light);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: var(--primary);
}
.product-details h4 { margin-bottom: 4px; font-size: 1.25rem; }
.product-meta { display: flex; gap: 12px; align-items: center; }
.meta-tag { 
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    padding: 2px 8px; border-radius: 4px; background: #f0f0f0; color: #666;
}
.meta-tag.primary { background: var(--primary-light); color: var(--primary); }

.modal-tall {
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .product-card { flex-direction: column; align-items: flex-start; gap: 24px; }
    .product-card .btn { width: 100%; }
}

/* =========================================================================
   COMPOSANTS PHASE 3 (DASHBOARD DEMO)
   ========================================================================= */

.dashboard-body { background-color: #f8fafc; } /* Gris très léger type SaaS */
.dash-subnav { background: white; border-bottom: 1px solid var(--border); }
.dash-tabs { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.dash-tabs li a { display: block; padding: 20px 0; color: var(--text-muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.dash-tabs li a:hover { color: var(--text-main); }
.dash-tabs li a.active { color: var(--primary); border-bottom-color: var(--primary); }
.dash-tabs i { margin-right: 8px; }

.dash-main .flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.dash-title { font-size: 2rem; margin-bottom: 8px; }

/* Grilles & Cartes */
.grid-4-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }

.dash-panel { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); border: 1px solid var(--border); }
.panel-title { font-size: 1.25rem; font-weight: 700; margin: 0; display: flex; align-items: center; }

/* KPI Cards */
.kpi-card { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); display: flex; align-items: center; gap: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.kpi-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.25rem; }
.kpi-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; }
.kpi-value { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-main); margin-top: 4px; }
.kpi-unit { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

/* Property Card */
.property-card { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; transition: all 0.2s; background: white; }
.property-card:hover { border-color: var(--primary-light); box-shadow: 0 4px 12px rgba(108, 92, 231, 0.05); }
.prop-info { display: flex; align-items: center; gap: 16px; }
.prop-icon { font-size: 1.5rem; color: var(--primary); width: 40px; height: 40px; background: var(--bg-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.property-card.disabled { opacity: 0.8; background: #f8fafc; }

/* Candidat List */
.candidate-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.candidate-item:last-child { border-bottom: none; }
.cand-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cand-info { flex: 1; }
.cand-score { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.875rem; color: white; }
.score-A { background: #22c55e; }
.score-B { background: #eab308; }

/* Badges CSS purs */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }

/* Colors Helpers */
.bg-green-light { background: #dcfce7; } .text-green { color: #166534; }
.bg-blue-light { background: #dbeafe; } .text-blue { color: #1e40af; }
.bg-orange-light { background: #ffedd5; } .text-orange { color: #c2410c; }
.bg-gray-light { background: #f1f5f9; } .text-gray { color: #475569; }

@media (max-width: 1024px) {
    .grid-4-cols { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .property-card { grid-template-columns: 1fr; gap: 12px; text-align: center; }
    .prop-info { flex-direction: column; }
    .prop-rent { text-align: center; }
    .dash-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }
    .grid-4-cols { grid-template-columns: 1fr; }
}

.demo-modal-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* --- Animations (AOS-like) --- */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade-up"] {
    transform: translateY(30px);
}

[data-reveal="fade-in"] {
    transform: scale(0.95);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* --- Table Styles (Replacing inline styles) --- */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 64px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    text-align: left;
    background: white;
}

.comparison-table th {
    padding: 24px;
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 2px solid var(--border);
    background-color: var(--bg-subtle);
}

.comparison-table td {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.comparison-table .highlight {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* --- Glossaire Index --- */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
}

.letter-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.letter-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.glossary-term {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.glossary-term h3 {
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

/* --- Footer Newsletter --- */
.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
}

.newsletter-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* --- Utility Helpers (Cleaning up) --- */
.max-w-900 { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.opacity-90 { opacity: 0.9; }
.w-full { width: 100%; }
.list-disc { list-style: disc; }
.pl-20 { padding-left: 20px; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.line-height-1-8 { line-height: 1.8; }

/* Form Styles */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem;}
.form-control {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border);
    border-radius: 12px; font-family: var(--font-sans); outline: none;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); }

/* Phase 4 : FAQ & Accordions */
.faq-section {
    padding: 100px 0;
    background: #fff;
}

.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-main);
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-main);
}

.faq-item.active {
    background: rgba(var(--primary-rgb), 0.02);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 16px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 16px 24px;
}

/* Checklist Styles */
.checklist-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.checklist-group {
    margin-bottom: 32px;
}

.checklist-group h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.checklist-item:hover {
    background: rgba(var(--primary-rgb), 0.03);
}

.checklist-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-main);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checklist-item.checked .checklist-check {
    background: var(--primary-main);
}

.checklist-item.checked .checklist-check::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checklist-item.checked span {
    text-decoration: line-through;
    opacity: 0.6;
}

@media print {
    .nav, .footer, .btn-no-print, .newsletter-form {
        display: none !important;
    }
    .checklist-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    body { background: white; }
}

/* Comparison Table Standardization */
.table-wrapper {
    overflow-x: auto;
    margin: 40px 0 64px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: white;
    text-align: left;
}

.comparison-table th, 
.comparison-table td {
    padding: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.comparison-table thead th {
    background: #fcfcfd;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.comparison-table .table-accent {
    background: rgba(var(--primary-rgb), 0.03);
    border-left: 2px solid var(--primary-main);
    font-weight: 600;
}

.comparison-table .text-check {
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
}

.comparison-table .text-cross {
    color: #ef4444;
    font-weight: bold;
}

.comparison-table .label-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #718096;
    margin-top: 4px;
}

.comparison-table .price-cell {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Form Grid Utilities */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-span-2 {
    grid-column: span 2;
}

.text-main {
    color: var(--primary-dark);
}

/* --- Phase 4 : Guide Theme Specifics --- */
.breadcrumb {
    margin-bottom: 32px;
}

.breadcrumb a {
    text-decoration: none;
    color: #718096;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-main);
}

.info-note {
    background: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary-main);
    padding: 24px;
    border-radius: 4px 12px 12px 4px;
    margin: 32px 0;
}

.info-note p {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 500;
    line-height: 1.6;
}

.guide-feature-list {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.guide-feature-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.guide-feature-item:hover {
    border-color: rgba(var(--primary-rgb), 0.1);
    background: white;
    box-shadow: var(--shadow-sm);
}

.guide-feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cta-banner {
    background: var(--primary-dark);
    padding: 48px;
    border-radius: 20px;
    color: white;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.cta-banner h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.6;
}

.guide-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

@media (max-width: 768px) {
    .guide-grid-2 {
        grid-template-columns: 1fr;
    }
    .cta-banner {
        padding: 32px 24px;
    }
}

/* --- FAQ Accordion --- */
.faq-section {
    padding: 96px 0;
    background: var(--bg-subtle);
}

.faq-grid {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s ease;
}

.faq-question i {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    padding-bottom: 24px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px;
}

/* --- Utility Colors & Status --- */
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-success { color: #10b981 !important; }

.bg-danger { background-color: #fef2f2 !important; }
.bg-warning { background-color: #fffbeb !important; }
.bg-success { background-color: #f0fdf4 !important; }

.badge-danger { background-color: #fee2e2 !important; color: #991b1b !important; }
.badge-success { background-color: #dcfce7 !important; color: #166534 !important; }
.badge-warning { background-color: #fef3c7 !important; color: #92400e !important; }

.info-note-warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 24px;
    border-radius: 12px;
    margin: 32px 0;
}

.info-note-warning h4 {
    color: #92400e;
    margin-bottom: 12px;
}

.info-note-warning ul, .info-note-warning p {
    color: #78350f;
}

/* --- Layout Utils --- */
.vr {
    width: 1px;
    height: 48px;
    background: var(--border);
    opacity: 0.5;
}

.accent-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
}

.accent-success {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}


.accent-warning {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
}

/* --- New Utilities & Components --- */
.vh-80 { min-height: 80vh; }
.text-huge { font-size: 4rem; }

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.hero-mini {
    background: var(--primary-dark);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}


.accent-warning {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
}

/* --- New Utilities & Components --- */
.vh-80 { min-height: 80vh; }
.text-huge { font-size: 4rem; }

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.hero-mini {
    background: var(--primary-dark);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.hero-mini h1, .hero-mini h2, .hero-mini h3, .hero-mini p {
    color: white !important;
}

.checklist-page {
    padding: 60px 0;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .text-huge { font-size: 2.5rem; }
    .hero-mini { padding: 60px 0 40px; }
}

/* --- Global Utilities --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

.back-to-top.visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scanner d'Authenticité --- */
.scanner-container {
    max-width: 1000px;
    margin: 48px auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
}

.scanner-box {
    width: 100%;
    height: 600px;
    background: #f1f5f9;
    background-image: 
        radial-gradient(circle, #cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    border: 2px dashed var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.scanner-box.scanning::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    animation: scanLine 3s infinite linear;
    z-index: 5;
}

@keyframes scanLine {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.doc-preview {
    max-width: 90%;
    max-height: 90%;
    opacity: 0.1;
    transition: opacity 1s ease;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.scanner-box.scanned .doc-preview {
    opacity: 1;
}

.analysis-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: help;
    animation: pulseRed 1.5s infinite;
    z-index: 10;
}

@keyframes pulseRed {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.analysis-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    width: 220px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-align: center;
    line-height: 1.4;
}

.analysis-dot:hover .analysis-tooltip {
    opacity: 1;
    bottom: 130%;
}

.verdict-box {
    margin-top: 32px;
    padding: 24px;
    border-radius: 12px;
    display: none;
    text-align: center;
    animation: slideUpFade 0.5s ease forwards;
}

@keyframes slideUpFade {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.verdict-fake {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.scan-progress {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: none;
    z-index: 6;
}

/* Positions spécifiques Hotspots Scanner */
.dot-qr { top: 15%; left: 80%; }
.dot-net { bottom: 25%; left: 75%; }
.dot-font { top: 45%; left: 20%; }
.no-underline { text-decoration: none; }
.black-link { color: var(--dark, #1B2B41); transition: color 0.3s ease; }
.black-link:hover { color: var(--primary, #6E56FF); }
.leading-taller { line-height: 1.8; }
.sticky { position: sticky; }
.top-120 { top: 120px; }
.inline-block { display: inline-block; }
.mt-8 { margin-top: 8px; }
