:root {
    /* Palette de marque Validon — voir DESIGN.md. */
    --primary: #0f766e;            /* teal noble de marque */
    --primary-dark: #115e59;
    --primary-teal: #0f766e;
    --primary-gradient-end: #0d9488;
    --bg-dark: #f8fafc;            /* fond slate très doux */
    --card-bg: #ffffff;            /* cartes blanc pur */
    --glass-border: rgba(15, 118, 110, 0.12);
    --text-main: #0f172a;          /* texte très lisible et contrasté */
    --text-muted: #475569;
    --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-image: radial-gradient(circle at 50% 0%, rgba(15, 118, 110, 0.06), transparent 60%);
}

.config-card {
    box-shadow: 0 4px 20px -2px rgba(15, 118, 110, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(15, 118, 110, 0.1) !important;
}

/* Ajustements pour les éléments en dur */
.stat-value {
    color: #0f172a !important;
}
.section-title {
    color: #0f172a !important;
}
.suggestions-box {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}
.suggestions-box div:hover {
    background-color: #f1f5f9 !important;
}

/* Titres premium — signature serif de la marque (DA §3).
   NB : le logo (.sidebar h2) reste en Outfit 800, la serif est réservée aux titres. */
.section-title {
    font-family: 'Libre Baskerville', Georgia, serif;
}
.sidebar h2 { font-weight: 800; letter-spacing: -0.02em; }

/* Anti-débordement horizontal strict Espace Pro */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.main-content, #view-quotes, #quotes-slider-viewport {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% -20%, rgba(15, 118, 110, 0.15), transparent 70%);
}

/* Layout */
.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0.75rem 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
/* Navigation remplacée par la home d'accueil (accueil.html) → sidebar masquée */
.sidebar { display: none !important; }
/* Barre retour vers l'accueil */
#back-accueil { display:inline-flex; align-items:center; gap:8px; color:var(--primary); font-weight:700; text-decoration:none; font-size:.95rem; align-self:flex-start; }
#back-accueil:hover { color:var(--primary-dark); }

@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; padding: 0.5rem 1rem 1rem 1rem; }
}

/* Sidebar */
.sidebar h2 {
    font-size: 1.5rem;
    margin-top: 0;
    /* background: linear-gradient... removed to allow inline styling */
    margin-bottom: 2rem;
    text-align: center;
}
.nav-item {
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.nav-item.active, .nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left: 3px solid var(--primary);
}
.btn-logout {
    margin-top: 2rem;
    color: #ef4444;
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 100%;
    text-align: left;
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Analytics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
}
.stat-value { font-size: 2rem; font-weight: 700; color: white; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* Forms */
.section-title {
    margin-top: 0;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); }
input, textarea, select {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    box-sizing: border-box;
}
input:focus { border-color: var(--primary); outline: none; }

.btn-save {
    /* CTA principal — pilule à dégradé vert (signature DA) */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-gradient-end) 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
    float: right;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
    transition: all 0.3s var(--ease-brand);
}
.btn-save:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

/* Code Block */
.code-block {
    background: #000;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    color: #0f766e;
    overflow-x: auto;
    position: relative;
}
.copy-btn {
    position: absolute;
    top: 5px; right: 5px;
    background: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* DEBUG LOGGER */
#debug-log {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: rgba(0,0,0,0.9);
    color: #0f0;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    overflow-y: scroll;
    z-index: 9999;
    border-top: 2px solid #0f0;
    display: none; /* Hidden by default, toggled via code if needed */
}

/* ===== TOAST NOTIFICATION ===== */
#va-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99999;
    pointer-events: none;
}
#va-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#va-toast.success { border-left: 4px solid var(--primary); }
#va-toast.error   { border-left: 4px solid #ef4444; }

/* ===== BARRE DE PROGRESSION ONBOARDING ===== */
#onboarding-progress {
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.progress-step .step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.progress-step.active .step-num  { background: var(--primary); color: white; }
.progress-step.done .step-num    { background: rgba(15,118,110,0.2); color: var(--primary); }
.progress-step.inactive .step-num { background: rgba(255,255,255,0.1); color: var(--text-muted); }
.progress-step.active  { color: white; }
.progress-step.done    { color: var(--primary); }
.progress-connector { flex: 1; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.progress-connector.done { background: var(--primary); }

/* Config Card styling (Premium glass design) */
.config-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.config-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.4), transparent);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

/* Enjoliver les inputs et formulaires */
input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15), inset 0 1px 2px rgba(0,0,0,0.05);
    outline: none;
}

/* Option de parrainage et cartes de choix d'intégration */
.method-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 118, 110, 0.12) !important;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.method-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary) !important;
    background: rgba(15, 118, 110, 0.05) !important;
    box-shadow: 0 15px 30px rgba(15, 118, 110, 0.1), 0 0 0 1px var(--primary);
}
.method-card div {
    transition: transform 0.3s ease;
}
.method-card:hover div {
    transform: scale(1.15) rotate(5deg);
}

/* Amélioration de la zone de code */
.code-block {
    background: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem !important;
    border-radius: 12px !important;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #0d9488 !important;
    overflow-x: auto;
    position: relative;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.5);
}
.copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(15, 118, 110, 0.4);
}

/* Tags de prestation */
.tag-item {
    background: rgba(15, 118, 110, 0.12) !important;
    border: 1px solid rgba(15, 118, 110, 0.3) !important;
    color: #0d9488 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s !important;
}
.tag-item:hover {
    background: rgba(15, 118, 110, 0.2) !important;
    transform: scale(1.02);
}
.tag-close {
    color: rgba(255,255,255,0.4) !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: color 0.2s !important;
}
.tag-close:hover {
    color: #ef4444 !important;
}

/* ============================================================
   COUCHE DE POLISH DA — harmonisation & UX (voir DESIGN.md)
   Additive : ne touche pas aux couleurs définies inline,
   unifie formes, mouvement, accessibilité et responsive.
   ============================================================ */

/* — Typo cohérente sur tous les éléments interactifs — */
button, input, textarea, select, .nav-item { font-family: 'Outfit', sans-serif; }

/* — Boutons de contenu : forme pilule + motion de marque —
   Scopé au contenu principal ; exclut les utilitaires (copier/fermer/aperçu carte). */
.main-content button:not(.copy-btn):not(.tag-close):not(.modal-btn):not(.preview-card-btn),
.config-card button:not(.copy-btn):not(.tag-close):not(.preview-card-btn) {
    border-radius: 99px !important;
    cursor: pointer;
    transition: transform 0.25s var(--ease-brand), box-shadow 0.25s var(--ease-brand), background 0.25s var(--ease-brand), filter 0.2s ease !important;
}

.preview-card-btn {
    border-radius: 12px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: default !important;
    transition: all 0.2s ease !important;
}
.main-content button:not(.copy-btn):not(.tag-close):not(.btn-logout):not(.modal-btn):hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.main-content button:active { transform: translateY(0) scale(0.98); }

/* — Bouton secondaire neutre (DA §5.2) : remplace les indigo/ambre disparates — */
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-brand);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* — Accessibilité : anneau de focus clavier visible — */
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .nav-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* — Navigation latérale : transition douce + état actif renforcé — */
.nav-item { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.nav-item.active {
    background: rgba(15, 118, 110, 0.08);
    font-weight: 600;
}

/* — Cartes statistiques : vie au survol + chiffre accentué — */
.stat-card {
    transition: transform 0.3s var(--ease-brand), border-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.stat-value {
    background: linear-gradient(135deg, #a7f3d0 0%, #0d9488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* — Barre de défilement aux couleurs de la marque — */
* { scrollbar-width: thin; scrollbar-color: rgba(15, 118, 110,0.4) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(15, 118, 110,0.35);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(15, 118, 110,0.55); background-clip: content-box; }

/* — Système de MODALE (classes utilisées dans le HTML mais non définies → corrigé) — */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000; padding: 20px;
    animation: va-fade-in 0.25s ease;
}
.modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 460px; width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    animation: va-pop-in 0.3s var(--ease-brand);
}
.modal-icon { font-size: 3rem; display: inline-block; margin-bottom: 0.5rem; }
.modal-btn {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-gradient-end) 100%);
    color: #fff; border: none;
    padding: 14px 28px; border-radius: 99px;
    font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%;
    box-shadow: 0 4px 15px rgba(13,148,136,0.3);
    transition: all 0.3s var(--ease-brand);
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13,148,136,0.45); }

@keyframes va-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes va-pop-in { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* — Responsive mobile : navigation horizontale au lieu d'une longue liste — */
@media (max-width: 768px) {
    .container { padding: 1rem 0.6rem; gap: 1.25rem; }
    /* Marges latérales réduites : sur petit écran, chaque pixel de largeur compte pour les champs */
    .config-card { padding: 1.5rem 1rem; }
    .sidebar {
        position: sticky; top: 0; z-index: 50;
        background: rgba(17, 24, 39, 0.85);
        backdrop-filter: blur(12px);
        border-radius: 16px; padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .sidebar nav {
        display: flex; gap: 8px;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: 4px; scrollbar-width: none;
    }
    .sidebar nav::-webkit-scrollbar { display: none; }
    .sidebar .nav-item {
        flex: 0 0 auto; white-space: nowrap;
        margin-bottom: 0; padding: 0.6rem 1rem;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        border-radius: 99px;
    }
    .sidebar .nav-item.active {
        border-left: none !important;
        background: rgba(15, 118, 110,0.15);
        color: #fff;
    }
    .btn-logout { border: 1px solid rgba(239,68,68,0.25) !important; }
    .btn-save { float: none !important; width: 100%; }
}

/* — Le bouton flottant QR n'a de sens que sur mobile (scan terrain) → masqué sur desktop — */
@media (min-width: 769px) {
    #floating-qr-btn { display: none !important; }
}

/* — Respect des préférences de mouvement réduit (accessibilité) — */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* — Anti-débordement mobile : expérience parfaite sur petit écran (inscription incluse) — */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; max-width: 100%; }
    /* La colonne principale (grille 1fr) doit pouvoir rétrécir sous la largeur min de son contenu */
    .sidebar, .main-content { min-width: 0; }
    /* Neutralise les largeurs minimales fixes (inline) qui poussaient la page hors écran */
    .main-content [style*="min-width"] { min-width: 0 !important; }
    /* Les rangées de cartes en flex passent proprement en pile au lieu de déborder */
    .main-content [style*="display:flex"],
    .main-content [style*="display: flex"] { flex-wrap: wrap !important; }
    /* Tableaux & snippets d'intégration : scroll interne plutôt que débordement de page */
    .integration-code, pre, table { max-width: 100%; }
    .integration-code, pre { overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
    .stats-grid { grid-template-columns: 1fr; }

    /* Boutons flottants → compacts (ronds, icône seule) */
    #floating-qr-btn, #floating-search-btn, #floating-support-btn {
        width: 52px; height: 52px;
        padding: 0 !important;
        gap: 0 !important;
        border-radius: 50% !important;
        justify-content: center;
        align-items: center;
        z-index: 9000;
    }
    #floating-support-btn { left: 16px !important; right: auto !important; bottom: 20px !important; }
    #floating-search-btn { right: 16px !important; left: auto !important; bottom: 20px !important; }
    #floating-qr-btn { right: 16px !important; left: auto !important; bottom: 84px !important; }

    #floating-qr-btn > span:last-child,
    #floating-search-btn > span:last-child,
    #floating-support-btn > span:last-child { display: none !important; }
    #floating-qr-btn > span:first-child,
    #floating-search-btn > span:first-child,
    #floating-support-btn > span:first-child { font-size: 1.45rem !important; }
}

/* Frise horizontale compacte pour le suivi des chantiers (Pro Dashboard) */
.pro-steps {
    display: flex;
    margin: 15px 0;
    width: 100%;
}
.pro-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
}
.pro-step::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}
.pro-step:first-child::before {
    display: none;
}
.pro-step.done::before, .pro-step.current::before {
    background: var(--primary);
}
.pro-dot {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: #f1f5f9;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.pro-step.done .pro-dot {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(15, 118, 110, 0.2);
}
.pro-step.current .pro-dot {
    background: var(--bg-dark);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(15, 118, 110, 0.3);
}
.pro-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.2;
    padding: 0 4px;
    font-weight: 500;
}
.pro-step.done .pro-label {
    color: var(--primary);
    font-weight: 700;
}
.pro-step.current .pro-label {
    color: var(--text-main);
    font-weight: 700;
}

/* Accordéon tiroir pour l'Espace Pro (Devis & suivi) */
.quote-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.quote-header-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 15px;
    width: 100%;
    padding: 16px 20px;
    transition: background-color 0.2s ease;
}
.quote-header-btn:hover {
    background: rgba(0, 0, 0, 0.015);
}
.quote-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* --- BOUTONS DE FILTRES RESPONSIVE (SMARTPHONE 100% VS DESKTOP ONGLETS FLEX) --- */
.filter-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 14px;
}

@media (min-width: 600px) {
    .filter-pill-grid {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: auto;
    }
}

.fluid-title {
    font-size: clamp(1.05rem, 0.70rem + 1.8vw, 1.35rem) !important;
    font-weight: 700 !important;
    font-family: 'Libre Baskerville', Georgia, serif !important;
}

.fluid-pill-btn {
    font-size: clamp(0.78rem, 0.45rem + 1.8vw, 0.92rem) !important;
    padding: clamp(6px, 0.20rem + 1.2vw, 8px) clamp(6px, 0.20rem + 1.6vw, 16px) !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 600px) {
    .fluid-pill-btn {
        width: auto !important;
        font-size: 0.88rem !important;
        padding: 8px 18px !important;
    }
}

.fluid-pill-btn:hover {
    background: rgba(15, 118, 110, 0.08) !important;
    border-color: rgba(15, 118, 110, 0.35) !important;
    color: #0f766e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
}

.quotes-header-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.28);
    border-radius: 11px;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
    flex-shrink: 0;
}

.quotes-main-title {
    font-size: clamp(1.25rem, 0.90rem + 1.6vw, 1.55rem) !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.025em !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}
