/* ============================================================
   front.css — Feuille de style globale Front
   Cohérent avec le style admin (admin.css)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap");

/* ══════════════════════════════════════
   1. VARIABLES — reprises de admin.css
══════════════════════════════════════ */
:root {
    /* Fonds */
    --bg: #f0ede8;
    --surface: #faf9f7;
    --surface-2: #f2f0eb;

    /* Texte */
    --ink: #1a1714;
    --ink-soft: #6b6560;
    --ink-muted: #a09b96;

    /* Accent */
    --accent: #1f2937;
    --accent-light: #e3e6ea;

    /* Sémantiques */
    --green: #3d6b52;
    --green-light: #e8f2ec;
    --red: #b91c1c;
    --red-light: #fee2e2;
    --gold: #a07c30;
    --gold-light: #f5ecd4;
    --blue: #2d5fa6;
    --blue-light: #dce8f8;

    /* Bordures & ombres */
    --border: #e3dfd8;
    --shadow-sm: 0 2px 8px rgba(26, 23, 20, 0.06);
    --shadow-md: 0 8px 32px rgba(26, 23, 20, 0.09);
    --shadow-lg: 0 20px 60px rgba(26, 23, 20, 0.12);

    /* Rayons */
    --radius: 20px;
    --radius-sm: 12px;

    /* Transitions */
    --transition: 0.2s ease;

    /* Nav */
    --nav-h: 90px;
}

/* ══════════════════════════════════════
   2. RESET & BASE
══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
}

/* ══════════════════════════════════════
   3. NAVIGATION
══════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.site-nav.scrolled {
    background: rgba(240, 237, 232, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo */
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-right: auto;
    padding-right: 2rem;
}

.nav-logo img {
    height: 68px;
    width: auto;
    display: block;
    transition: opacity var(--transition);
}

.nav-logo:hover img {
    opacity: 0.85;
}

.nav-logo-text {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-weight: 400;
    font-style: italic;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.nav-logo-sub {
    font-family: "Sora", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    display: block;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.2rem;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links > li > a:hover {
    color: var(--ink);
    background: rgba(31, 41, 55, 0.06);
}
.nav-links > li > a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.2rem;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--ink);
    background: rgba(31, 41, 55, 0.06);
}

.nav-dropdown-toggle .caret {
    font-size: 0.7rem;
    color: var(--ink-muted);
    transition: transform var(--transition);
}

.nav-dropdown.open .nav-dropdown-toggle .caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all var(--transition);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.1rem;
    font-family: "Sora", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
    background: var(--surface-2);
    color: var(--ink);
}
.nav-dropdown-menu a i {
    font-size: 1.05rem;
    color: var(--ink-muted);
    width: 20px;
    text-align: center;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.35rem 0.5rem;
}

/* Bouton connexion */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.8rem;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-family: "Sora", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.2);
    margin-left: 0.5rem;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.35);
    color: #fff;
}

.nav-btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--border);
    box-shadow: none;
}

.nav-btn-ghost:hover {
    background: var(--surface-2);
    color: var(--ink);
    transform: none;
    box-shadow: none;
}

/* Burger mobile */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.4rem;
    background: none;
    border: none;
    margin-left: auto;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
    opacity: 0;
}
.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    z-index: 99;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0.2rem;
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    font-family: "Sora", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-mobile a:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.nav-mobile hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.4rem 0;
}

/* ══════════════════════════════════════
   4. MAIN CONTENT
══════════════════════════════════════ */
.site-main {
    padding-top: var(--nav-h);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}
.container--narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ══════════════════════════════════════
   5. PAGE HEADER
══════════════════════════════════════ */
.page-header {
    padding: 3rem 0 2rem;
}

.page-eyebrow {
    font-family: "Sora", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

.page-title {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-title .subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-left: 0.6rem;
    vertical-align: middle;
}

.page-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   6. FRONT CARDS
══════════════════════════════════════ */
.front-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow var(--transition);
}

.front-card:hover {
    box-shadow: var(--shadow-md);
}

.front-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.front-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.front-card-title {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

/* ══════════════════════════════════════
   7. BOUTONS
══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.7rem;
    border-radius: 100px;
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.25);
}
.btn-primary:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.4);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--ink-soft);
    color: var(--ink);
    background: var(--surface-2);
}

.btn-green {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(61, 107, 82, 0.25);
}
.btn-green:hover {
    background: #2f5340;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(61, 107, 82, 0.35);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
}
.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
}

/* ══════════════════════════════════════
   8. TAGS / PILLS
══════════════════════════════════════ */
.tag,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tag-neutral {
    background: var(--surface-2);
    color: var(--ink-soft);
    border: 1px solid var(--border);
}
.tag-accent {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(31, 41, 55, 0.2);
}
.tag-green {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid rgba(61, 107, 82, 0.2);
}
.tag-gold {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(160, 124, 48, 0.2);
}
.tag-red {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid rgba(185, 28, 28, 0.2);
}
.tag-blue {
    background: var(--blue-light);
    color: var(--blue);
    border: 1px solid rgba(45, 95, 166, 0.2);
}

/* ══════════════════════════════════════
   9. FLASH MESSAGES
══════════════════════════════════════ */
.flash-container {
    position: fixed;
    top: calc(var(--nav-h) + 1rem);
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: "Sora", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.25s ease;
}

.flash.success {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid rgba(61, 107, 82, 0.2);
}
.flash.danger {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid rgba(185, 28, 28, 0.2);
}
.flash.warning {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(160, 124, 48, 0.2);
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.45;
    font-size: 0.9rem;
    color: inherit;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.flash-close:hover {
    opacity: 1;
}

/* ══════════════════════════════════════
   10. KPI CARDS
══════════════════════════════════════ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.kpi-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    opacity: 0;
    transition: opacity 0.25s;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.kpi-card:hover::after {
    opacity: 1;
}

.kpi-card.c-dark::after {
    background: var(--accent);
}
.kpi-card.c-green::after {
    background: var(--green);
}
.kpi-card.c-blue::after {
    background: var(--blue);
}
.kpi-card.c-gold::after {
    background: var(--gold);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.kpi-icon.c-dark {
    background: var(--accent-light);
    color: var(--accent);
}
.kpi-icon.c-green {
    background: var(--green-light);
    color: var(--green);
}
.kpi-icon.c-blue {
    background: var(--blue-light);
    color: var(--blue);
}
.kpi-icon.c-gold {
    background: var(--gold-light);
    color: var(--gold);
}

.kpi-label {
    font-size: 0.7rem;
    font-family: "Sora", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-muted);
    margin-bottom: 0.2rem;
}

.kpi-value {
    font-family: "Sora", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

/* ══════════════════════════════════════
   11. TABLE
══════════════════════════════════════ */
.front-table-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.front-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    gap: 1rem;
    flex-wrap: wrap;
}

.front-table-title {
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.front-table {
    width: 100%;
    border-collapse: collapse;
}

.front-table th {
    font-family: "Sora", sans-serif;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    padding: 0.85rem 1.25rem;
    text-align: left;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.front-table th:first-child {
    padding-left: 1.75rem;
}
.front-table th:last-child {
    padding-right: 1.75rem;
}

.front-table td {
    padding: 0.95rem 1.25rem;
    font-size: 0.88rem;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.front-table td:first-child {
    padding-left: 1.75rem;
}
.front-table td:last-child {
    padding-right: 1.75rem;
}
.front-table tbody tr:last-child td {
    border-bottom: none;
}
.front-table tbody tr:hover td {
    background: var(--surface-2);
}

/* ══════════════════════════════════════
   12. FOOTER
══════════════════════════════════════ */
.site-footer {
    background: var(--accent);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
    margin-top: 5rem;
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--gold-light),
        transparent
    );
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3.5rem;
}

.footer-brand-name {
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}

.footer-brand-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-social-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    transition: all var(--transition);
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: "Sora", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: #fff;
}
.footer-links a i {
    font-size: 0.7rem;
    opacity: 0.35;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.footer-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.footer-contact-label {
    font-family: "Sora", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: 0.1rem;
}

.footer-contact-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-legal a {
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    transition: color var(--transition);
}
.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Liens légaux désactivés (pages non encore créées) */
.footer-link-disabled {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: default;
}
.footer-link-disabled i {
    font-size: 0.7rem;
    opacity: 0.35;
}
.footer-legal .footer-link-disabled {
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════
   13. ANIMATIONS
══════════════════════════════════════ */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.anim-fade-up {
    opacity: 0;
    animation: fadeUp 0.55s ease forwards;
}
.anim-fade-up.d1 {
    animation-delay: 0.1s;
}
.anim-fade-up.d2 {
    animation-delay: 0.2s;
}
.anim-fade-up.d3 {
    animation-delay: 0.3s;
}
.anim-fade-up.d4 {
    animation-delay: 0.4s;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════
   15. HOME PAGE
══════════════════════════════════════ */

/* ── HERO ── */
.hero {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    background: var(--accent);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 10%,
        rgba(160, 124, 48, 0.6) 40%,
        rgba(160, 124, 48, 0.6) 60%,
        transparent 90%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 60% at 75% 40%,
            rgba(61, 107, 82, 0.2) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 70% at 15% 80%,
            rgba(160, 124, 48, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 50% 60% at 10% 90%,
            rgba(160, 124, 48, 0.12) 0%,
            transparent 55%
        );
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.hero-watermark {
    position: absolute;
    right: -1rem;
    bottom: -4rem;
    font-family: "Sora", sans-serif;
    font-size: clamp(100px, 16vw, 220px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.028);
    line-height: 1;
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2.5rem 5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(160, 124, 48, 0.12);
    border: 1px solid rgba(160, 124, 48, 0.25);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-family: "Sora", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(212, 168, 75, 0.9);
    margin-bottom: 1.5rem;
}

.hero-eyebrow i {
    color: #a07c30;
}

.hero-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title .underline {
    position: relative;
    display: inline-block;
}

.hero-title .underline::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a07c30, #d4a84b);
    border-radius: 2px;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.9rem;
    border-radius: 100px;
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-btn-primary {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    color: var(--accent);
}

.hero-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.hero-stats {
    display: flex;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats > div {
    flex: 1;
}

.hero-stats > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 2rem;
    padding-right: 2rem;
}

.hero-stat-value {
    font-family: "Sora", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-suffix {
    color: #a07c30;
    font-size: 1.2rem;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.hero-card:has(.hero-card-icon.green):hover {
    box-shadow: 0 8px 24px rgba(61, 107, 82, 0.2);
}

.hero-card:has(.hero-card-icon.gold):hover {
    box-shadow: 0 8px 24px rgba(160, 124, 48, 0.2);
}

.hero-card:has(.hero-card-icon.blue):hover {
    box-shadow: 0 8px 24px rgba(45, 95, 166, 0.2);
}

.hero-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-card-icon.green {
    background: rgba(61, 107, 82, 0.35);
    color: #7dcf9e;
}
.hero-card-icon.gold {
    background: rgba(160, 124, 48, 0.35);
    color: #d4a84b;
}
.hero-card-icon.blue {
    background: rgba(45, 95, 166, 0.35);
    color: #82b0ec;
}

.hero-card-title {
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.hero-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.28);
    font-family: "Sora", sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
    animation: scrollBounce 2.2s ease infinite;
}
.hero-scroll:hover {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    55% {
        transform: translateX(-50%) translateY(7px);
    }
}

/* ── SERVICES ── */
.section-services {
    padding: 7rem 0;
}

.section-head {
    margin-bottom: 3.5rem;
}
.section-head.centered {
    text-align: center;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.s-eyebrow {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.s-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.s-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.svc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.22s ease;
}

.svc-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0.35;
    transition: opacity 0.22s;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.svc-card:hover::after {
    opacity: 1;
}

.svc-card.green::after {
    background: var(--green);
}
.svc-card.gold::after {
    background: var(--gold);
}
.svc-card.blue::after {
    background: var(--blue);
}
.svc-card.dark::after {
    background: var(--accent);
}
.svc-card.purple::after {
    background: #7c3d9e;
}
.svc-card.red::after {
    background: var(--red);
}

.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    transition: transform 0.22s ease;
}

.svc-card:hover .svc-icon {
    transform: scale(1.08);
}

.svc-icon.green {
    background: var(--green-light);
    color: var(--green);
}
.svc-icon.gold {
    background: var(--gold-light);
    color: var(--gold);
}
.svc-icon.blue {
    background: var(--blue-light);
    color: var(--blue);
}
.svc-icon.dark {
    background: var(--accent-light);
    color: var(--accent);
}
.svc-icon.purple {
    background: #f0e8f5;
    color: #7c3d9e;
}
.svc-icon.red {
    background: var(--red-light);
    color: var(--red);
}

.svc-title {
    font-family: "Sora", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.55rem;
}

.svc-desc {
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.65;
}

/* ── STAGGER REVEAL CARTES SERVICES ── */
.services-grid .svc-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .svc-card:nth-child(2) { transition-delay: 80ms; }
.services-grid .svc-card:nth-child(3) { transition-delay: 160ms; }
.services-grid .svc-card:nth-child(4) { transition-delay: 240ms; }
.services-grid .svc-card:nth-child(5) { transition-delay: 320ms; }
.services-grid .svc-card:nth-child(6) { transition-delay: 400ms; }

/* ── SECTION ÉCURIE ── */
.section-ecurie {
    padding: 7rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ecurie-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ecurie-features {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 2rem 0 2.5rem;
}

.ecurie-feat {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.ecurie-feat-dot {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--green-light);
    color: var(--green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1px;
}

.ecurie-feat-dot::before {
    content: "✓";
}

.ecurie-feat-title {
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

.ecurie-feat-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.ecurie-mockup-wrap {
    position: relative;
}

.ecurie-mockup {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(61, 107, 82, 0.12), 0 4px 16px rgba(26, 23, 20, 0.08);
    overflow: hidden;
}

.mockup-topbar {
    background: var(--accent);
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 5px;
}
.mockup-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mockup-bar-title {
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.mockup-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mockup-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
}

.mockup-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.mockup-info-name {
    font-family: "Sora", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}
.mockup-info-sub {
    font-size: 0.7rem;
    color: var(--ink-muted);
}

.mockup-status {
    margin-left: auto;
    padding: 0.16rem 0.6rem;
    border-radius: 100px;
    font-family: "Sora", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mockup-status.green {
    background: var(--green-light);
    color: var(--green);
}
.mockup-status.gold {
    background: var(--gold-light);
    color: var(--gold);
}
.mockup-status.blue {
    background: var(--blue-light);
    color: var(--blue);
}

.ecurie-float-badge {
    position: absolute;
    bottom: -1.25rem;
    right: -1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.float-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--green-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.float-badge-value {
    font-family: "Sora", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.float-badge-label {
    font-size: 0.7rem;
    color: var(--ink-muted);
}

/* ── CTA FINAL ── */
.section-cta {
    padding: 7rem 0;
}

.cta-inner {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 80% at 15% 50%,
            rgba(61, 107, 82, 0.2) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 60% at 85% 50%,
            rgba(160, 124, 48, 0.12) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.cta-inner > * {
    position: relative;
    z-index: 1;
}

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.32rem 0.95rem;
    font-family: "Sora", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}

.cta-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* ── RESPONSIVE HOME ── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        padding-bottom: 4rem;
        gap: 3rem;
    }
    .hero-cards {
        display: none;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-stats > div:not(:last-child) {
        margin-right: 1.25rem;
        padding-right: 1.25rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .ecurie-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ecurie-float-badge {
        display: none;
    }
    .cta-inner {
        padding: 3rem 1.5rem;
    }
}

/* ══════════════════════════════════════
   16. LOGIN PAGE
══════════════════════════════════════ */
.login-page {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 3rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(31, 41, 55, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.login-page::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(61, 107, 82, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.login-box {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.25);
}

.login-title {
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin-bottom: 0.4rem;
}

.login-subtitle {
    font-size: 0.88rem;
    color: var(--ink-muted);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--red-light);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-family: "Sora", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.login-alert i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-label {
    font-family: "Sora", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--ink-muted);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    outline: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.login-input::placeholder {
    color: var(--ink-muted);
}

.login-input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.08);
}

/* ─── États d'erreur des champs (auth : login, register, reset) ─── */
.form-errors {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
}
.form-error-item {
    color: var(--red);
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 500;
}
/* Bordure rouge automatique sur tout champ contenant des erreurs (CSS :has) */
.login-field:has(.form-errors) .login-input {
    border-color: var(--red);
    background: var(--red-light);
}
.login-field:has(.form-errors) .login-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.login-field:has(.form-errors) .login-input-icon {
    color: var(--red);
}

/* Étend .nav-btn : seules les propriétés différentes sont redéfinies */
.login-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.9rem;
    margin-top: 0.5rem;
    margin-left: 0;
    font-weight: 700;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.login-footer a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--ink);
}

/* ══════════════════════════════════════
   14. RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-h: 76px;
    }
    .nav-logo {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding-right: 0;
    }
    .nav-logo img {
        height: 48px;
    }
    .nav-logo-text {
        display: none;
    }
    .container,
    .container--narrow {
        padding: 0 1.25rem;
    }
    .nav-links,
    .nav-dropdown {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
    .nav-inner {
        padding: 0 1.25rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 0 1.25rem 2.5rem;
        gap: 2rem;
    }
    .footer-bottom {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-brand-desc {
        max-width: none;
    }
    .flash-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    .page-title {
        font-size: 1.6rem;
    }
}

/* ══════════════════════════════════════
   17. MON ESPACE CLIENT
══════════════════════════════════════ */

/* ── Layout général ──
   .site-main a déjà padding-top: var(--nav-h)
   .espace-page n'a donc PAS à en rajouter —
   on supprime juste le padding-bottom de site-main
   et on laisse le bandeau couvrir toute la largeur viewport
── */
.espace-page {
    padding-bottom: 5rem;
    min-height: 80vh;
}

/* ── Bandeau de bienvenue (fond sombre pleine largeur) ── */
.espace-welcome {
    background: var(--accent);
    padding: 2.5rem 0 6rem;
    position: relative;
    overflow: hidden;
    /* déborde sur les bords du container pour couvrir toute la largeur */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    margin-bottom: -4rem;
}

.espace-welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 80% at 80% 50%,
            rgba(61, 107, 82, 0.2) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 40% 60% at 10% 80%,
            rgba(160, 124, 48, 0.12) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.espace-welcome-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.espace-welcome-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.espace-welcome-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.espace-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.espace-welcome-eyebrow {
    font-family: "Sora", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
}

.espace-welcome-name {
    font-family: "Sora", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.espace-welcome-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.2rem;
}

.espace-welcome-stats {
    display: flex;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.espace-welcome-stat {
    padding: 0.85rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.espace-welcome-stat:last-child {
    border-right: none;
}

.espace-wstat-value {
    font-family: "Sora", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.espace-wstat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.2rem;
    white-space: nowrap;
}

/* ── Corps de la page ── */
.espace-body {
    padding-top: 5rem;
}

.espace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.espace-grid-wide {
    grid-column: 1 / -1;
}

/* ── Cartes ── */
.espace-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.espace-card:hover {
    box-shadow: var(--shadow-md);
}

.espace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    gap: 1rem;
}

.espace-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}
.espace-card-title i {
    font-size: 1rem;
    color: var(--ink-muted);
}

.espace-card-body {
    padding: 1.5rem 1.75rem;
}

.espace-card-badge {
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
    font-family: "Sora", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ── Chevaux ── */
.chevaux-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cheval-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.cheval-row:hover {
    border-color: var(--accent);
    background: var(--surface);
    transform: translateX(3px);
}

.cheval-monogram {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.cheval-name {
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
}

.cheval-meta {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 0.1rem;
}

.cheval-part {
    margin-left: auto;
    font-family: "Sora", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-light);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
    flex-shrink: 0;
}

.cheval-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-muted);
    font-size: 0.88rem;
}
.cheval-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.35;
}

/* ── Factures ── */
.factures-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.facture-tab {
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--ink-soft);
    transition: all 0.15s ease;
}
.facture-tab.active,
.facture-tab:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.factures-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.facture-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-wrap: wrap;
}
.facture-row:hover {
    background: var(--surface);
    border-color: rgba(31, 41, 55, 0.15);
}

.facture-mois {
    font-family: "Sora", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    min-width: 110px;
}

.facture-cheval {
    font-size: 0.8rem;
    color: var(--ink-soft);
    flex: 1;
}

.facture-montant {
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Alerte impayées ── */
.impaye-banner {
    background: var(--red-light);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.impaye-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(185, 28, 28, 0.12);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.impaye-banner-title {
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
}

.impaye-banner-sub {
    font-size: 0.78rem;
    color: rgba(185, 28, 28, 0.7);
    margin-top: 0.1rem;
}

.impaye-banner-total {
    margin-left: auto;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--red);
    white-space: nowrap;
}

/* ── Courses ── */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.course-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.course-position {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Sora", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}
.course-position.p1 {
    background: var(--gold-light);
    color: var(--gold);
}
.course-position.p2 {
    background: var(--blue-light);
    color: var(--blue);
}
.course-position.p3 {
    background: var(--red-light);
    color: var(--red);
}
.course-position.pn {
    background: var(--surface-2);
    color: var(--ink-muted);
}

.course-info-name {
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}
.course-info-meta {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 0.1rem;
}

.course-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

/* ── Déplacements ── */
.deplacement-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
}

.deplacement-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.deplacement-dest {
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}
.deplacement-meta {
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 0.1rem;
}

.deplacement-km {
    margin-left: auto;
    font-family: "Sora", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--surface-2);
    border-radius: 100px;
    padding: 0.18rem 0.6rem;
    white-space: nowrap;
}

/* ── Empty state ── */
.espace-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.espace-empty i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.6rem;
    opacity: 0.3;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .espace-grid {
        grid-template-columns: 1fr;
    }
    .espace-grid-wide {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .espace-welcome {
        padding: 2rem 0 5.5rem;
    }
    .espace-welcome-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .espace-welcome-stats {
        width: 100%;
    }
    .espace-welcome-stat {
        flex: 1;
    }
    .espace-body {
        padding-top: 3rem;
    }
    .impaye-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .impaye-banner-total {
        margin-left: 0;
    }
}

/* ══════════════════════════════════════
   18. COMPTABILITÉ
══════════════════════════════════════ */

.compta-page {
    padding-bottom: 5rem;
    min-height: 80vh;
}

/* ── Hero ── */
.compta-hero {
    background: var(--accent);
    padding: 2.5rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    margin-bottom: -2.5rem;
}

.compta-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.compta-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.compta-hero-eyebrow {
    font-family: "Sora", sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}

.compta-hero-title {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.compta-hero-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.compta-hero-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.compta-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.35rem 0.85rem;
}

/* ── Body ── */
.compta-body {
    padding-top: 4rem;
}

/* ── KPIs ── */
.compta-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.compta-kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.compta-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.compta-kpi--total .compta-kpi-icon {
    background: var(--accent-light);
    color: var(--accent);
}
.compta-kpi--paye .compta-kpi-icon {
    background: var(--green-light);
    color: var(--green);
}
.compta-kpi--impaye .compta-kpi-icon {
    background: var(--gold-light);
    color: var(--gold);
}
.compta-kpi--impaye.compta-kpi--alert .compta-kpi-icon {
    background: var(--red-light);
    color: var(--red);
}
.compta-kpi--count .compta-kpi-icon {
    background: var(--blue-light);
    color: var(--blue);
}

.compta-kpi-label {
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.compta-kpi-value {
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}

.compta-kpi--impaye.compta-kpi--alert .compta-kpi-value {
    color: var(--red);
}

/* ── Alerte impayées ── */
.compta-alert-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--red-light);
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.4rem;
    margin-bottom: 1.5rem;
}

.compta-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(185, 28, 28, 0.12);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.compta-alert-title {
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
}

.compta-alert-sub {
    font-size: 0.78rem;
    color: rgba(185, 28, 28, 0.7);
    margin-top: 0.15rem;
}

/* ── Toolbar / Filtres ── */
.compta-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.compta-tabs {
    display: flex;
    gap: 0.35rem;
}

.compta-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: "Sora", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--ink-soft);
    transition: all 0.15s ease;
}

.compta-tab.active,
.compta-tab:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.compta-tab-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 0.05rem 0.45rem;
    font-size: 0.7rem;
}

.compta-tab:not(.active) .compta-tab-count {
    background: var(--surface-2);
    color: var(--ink-muted);
}

/* ── Blocs par année ── */
.compta-annee-block {
    margin-bottom: 2rem;
}

.compta-annee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.compta-annee-title {
    font-family: "Sora", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compta-annee-title i {
    color: var(--ink-muted);
}

.compta-annee-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compta-annee-total {
    font-family: "Sora", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
}

.compta-annee-count {
    font-size: 0.75rem;
    color: var(--ink-muted);
    background: var(--surface-2);
    border-radius: 100px;
    padding: 0.15rem 0.6rem;
}

/* ── Tableau ── */
.compta-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compta-table {
    width: 100%;
    border-collapse: collapse;
}

.compta-table thead tr {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.compta-table thead th {
    padding: 0.9rem 1.25rem;
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    text-align: left;
    white-space: nowrap;
}

.compta-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
}

.compta-table tbody tr:last-child {
    border-bottom: none;
}

.compta-table tbody tr:hover {
    background: var(--bg);
}

.compta-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--ink);
    vertical-align: middle;
}

.compta-num {
    font-family: "Sora", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}

.compta-mois {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.compta-entreprise {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.compta-entreprise i {
    opacity: 0.5;
}

.compta-montant {
    font-family: "Sora", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

/* ── Statut pill ── */
.compta-statut-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-family: "Sora", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.compta-statut-pill.paid {
    background: var(--green-light);
    color: var(--green);
}
.compta-statut-pill.unpaid {
    background: var(--red-light);
    color: var(--red);
}

/* ── Bouton PDF ── */
.compta-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.compta-pdf-btn:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.3);
    color: #fff;
}

.compta-pdf-btn i {
    font-size: 1rem;
}

/* ── Empty state ── */
.compta-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--ink-muted);
}

.compta-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.25;
}

.compta-empty-title {
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.compta-empty-sub {
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .compta-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .compta-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .compta-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .compta-table thead th:nth-child(3),
    .compta-table tbody td:nth-child(3) {
        display: none;
    }
    .compta-kpi-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .compta-kpis {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   PAGES DE CONTENU (mentions, RGPD, CGU, CGV)
   On styke uniquement la typo INTERNE des .front-card,
   on ne réinvente pas de wrapper.
══════════════════════════════════════ */
.front-card.front-card--prose {
    padding: 3rem 3.5rem;
    line-height: 1.7;
    color: var(--ink);
    font-size: 0.98rem;
}
@media (max-width: 720px) {
    .front-card.front-card--prose { padding: 2rem 1.5rem; }
}
.front-card--prose h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2.25rem 0 0.75rem;
    padding-top: 0.5rem;
}
.front-card--prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
}
.front-card--prose h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 1.5rem 0 0.5rem;
}
.front-card--prose p {
    margin: 0 0 0.9rem;
}
.front-card--prose ul,
.front-card--prose ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}
.front-card--prose li {
    margin-bottom: 0.35rem;
}
.front-card--prose strong {
    color: var(--ink);
    font-weight: 600;
}
.front-card--prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.front-card--prose a:hover {
    color: var(--accent-dark, #2c5e9e);
}
.front-card--prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.25rem;
    font-size: 0.9rem;
}
.front-card--prose th,
.front-card--prose td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    vertical-align: top;
}
.front-card--prose thead {
    background: var(--surface-2, #f5f4f1);
}
.front-card--prose th {
    font-weight: 600;
    color: var(--ink);
}
