/*
 * TAVERNAUTE.NET — Feuille de style principale
 * Mobile-first | WCAG 2.1 AA | Thème taverne sombre
 */

/* ═══════════════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════════════ */
:root {
    /* Couleurs */
    --bg:          #0d0f14;
    --surface:     #14161d;
    --surface2:    #1c1f2a;
    --border:      #252837;
    --border2:     #333650;
    --accent:      #c8913a;
    --accent-h:    #e0a84a;
    --accent2:     #7b5ea7;
    --text:        #ddd8cc;
    --text-muted:  #6e6b60;
    --text-strong: #f0ebe0;
    --ok:          #4da870;
    --warn:        #d4a017;
    --err:         #c94444;
    --info:        #4a90b8;

    /* Typographie */
    --font-body:    'Georgia', 'Times New Roman', serif;
    --font-ui:      'Trebuchet MS', 'Verdana', sans-serif;
    --font-mono:    'Courier New', monospace;

    /* Layout */
    --container:    1140px;
    --radius:       6px;
    --radius-lg:    12px;
    --shadow:       0 2px 12px rgba(0,0,0,.45);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.6);
    --transition:   .18s ease;

    /* Header */
    --header-h:     60px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover  { color: var(--accent-h); }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3, h4 {
    font-family: var(--font-body);
    line-height: 1.25;
    color: var(--text-strong);
}

ul, ol { list-style: none; }
ul[role="list"] { list-style: none; }

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITÉ
═══════════════════════════════════════════════════════ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: .5rem 1rem;
    background: var(--accent);
    color: #000;
    font-family: var(--font-ui);
    font-weight: bold;
    z-index: 9999;
    border-radius: 0 0 var(--radius) 0;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Focus visible global */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 768px) { .container { padding-inline: 1.5rem; } }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1.5rem;
}

.header-brand { flex-shrink: 0; }
.brand-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-strong);
    font-size: 1.1rem;
    letter-spacing: .04em;
}
.brand-link:hover { color: var(--accent-h); }
.brand-logo { font-size: 1.3rem; }
.brand-name { font-weight: bold; }

/* Nav principale */
.main-nav { flex: 1; }
.main-nav ul {
    display: flex;
    gap: .25rem;
    list-style: none;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: .4rem .75rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: .88rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    letter-spacing: .02em;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent-h);
    background: rgba(200,145,58,.1);
}

/* Zone user */
.header-user {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .6rem;
    border-radius: 20px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color var(--transition);
}
.user-pill:hover { border-color: var(--accent); color: var(--text); }
.user-pill img { border-radius: 50%; width: 28px; height: 28px; object-fit: cover; }
.user-pseudo { font-family: var(--font-ui); font-size: .85rem; }
.user-xp {
    font-size: .75rem;
    color: var(--accent);
    font-family: var(--font-ui);
}

/* Burger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        transform: translateY(-120%);
        transition: transform .25s ease;
        z-index: 99;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; }
    .main-nav a { font-size: 1rem; padding: .6rem 1rem; }
    .header-user .user-xp { display: none; }
}

/* ═══════════════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.2rem;
    background: var(--accent);
    color: #0d0f14;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: .9rem;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn:hover { background: var(--accent-h); color: #0d0f14; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-sm { padding: .35rem .8rem; font-size: .82rem; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }

.btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #0d0f14; }

.btn-ghost {
    background: transparent;
    border-color: var(--border2);
    color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

.btn-admin {
    background: var(--accent2);
    color: #fff;
}
.btn-admin:hover { background: #9370bf; color: #fff; }

.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #a03030; }

.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════
   FORMULAIRES
═══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.2rem; }

label {
    display: block;
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    padding: .65rem 1rem;
    font-size: .95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════
   ALERTES / MESSAGES
═══════════════════════════════════════════════════════ */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-ok   { background: #0e2518; border-color: var(--ok);   color: #90d9aa; }
.alert-err  { background: #2a1010; border-color: var(--err);  color: #f0a0a0; }
.alert-warn { background: #271e08; border-color: var(--warn); color: #f0d070; }
.alert-info { background: #0a1e2a; border-color: var(--info); color: #80c0e0; }

/* ═══════════════════════════════════════════════════════
   CARTES
═══════════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: .9rem;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ═══════════════════════════════════════════════════════
   BADGES & LABELS
═══════════════════════════════════════════════════════ */
.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 3px;
    font-size: .72rem;
    font-family: var(--font-ui);
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge-ok      { background: #1a3326; color: var(--ok); }
.badge-err     { background: #2d1212; color: var(--err); }
.badge-warn    { background: #2d2208; color: var(--warn); }
.badge-accent  { background: rgba(200,145,58,.15); color: var(--accent); }
.badge-muted   { background: var(--surface2); color: var(--text-muted); }
.badge-admin   { background: rgba(123,94,167,.2); color: #c0a0f0; }

.label-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(200,145,58,.1);
    border: 1px solid rgba(200,145,58,.3);
    color: var(--accent);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    font-family: var(--font-ui);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-inner { grid-template-columns: 1fr; }
}

.footer-col h3 {
    font-family: var(--font-ui);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .8rem;
}
.footer-col ul li { margin-bottom: .35rem; }
.footer-col ul a { color: var(--text-muted); font-size: .9rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-brand {
    display: block;
    font-size: 1.1rem;
    color: var(--text-strong);
    margin-bottom: .5rem;
}
.footer-tagline {
    color: var(--text-muted);
    font-size: .85rem;
    line-height: 1.6;
    margin-bottom: .8rem;
}
.footer-version {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .8rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
}
.footer-bottom p {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   CHAT — mise en page
═══════════════════════════════════════════════════════ */
.chat-layout {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    height: calc(100vh - var(--header-h));
    overflow: hidden;
}

@media (max-width: 1024px) {
    .chat-layout { grid-template-columns: 180px 1fr; }
    .chat-users-panel { display: none; }
}
@media (max-width: 640px) {
    .chat-layout { grid-template-columns: 1fr; }
    .chat-rooms-panel { display: none; }
}

/* Salon liste */
.chat-rooms-panel {
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.rooms-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.room-item {
    padding: .65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    font-size: .9rem;
}
.room-item:hover    { background: var(--surface2); }
.room-item.active   { background: rgba(200,145,58,.1); border-left: 3px solid var(--accent); }
.room-item .room-name  { font-weight: bold; color: var(--text-strong); }
.room-item .room-count { font-size: .75rem; color: var(--text-muted); font-family: var(--font-ui); }

/* Zone messages */
.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-top-bar {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--surface);
    flex-shrink: 0;
}
.chat-top-bar h2 {
    font-family: var(--font-ui);
    font-size: .95rem;
    font-weight: bold;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Message */
.msg {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    max-width: 100%;
}
.msg-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.msg-body { flex: 1; min-width: 0; }
.msg-meta {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .15rem;
}
.msg-pseudo {
    font-weight: bold;
    font-size: .88rem;
    color: var(--accent);
    font-family: var(--font-ui);
}
.msg-time {
    font-size: .72rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
}
.msg-text {
    font-size: .93rem;
    line-height: 1.5;
    word-break: break-word;
}
.msg-text .mention { color: var(--accent2); font-weight: bold; }
.msg.bot .msg-pseudo { color: var(--info); }
.msg.hidden { opacity: .4; font-style: italic; }
.msg-actions {
    display: none;
    gap: .25rem;
    margin-top: .2rem;
}
.msg:hover .msg-actions { display: flex; }
.msg-action-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 3px;
    padding: .1rem .4rem;
    font-size: .72rem;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: color var(--transition), border-color var(--transition);
}
.msg-action-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* Zone saisie */
.chat-input-zone {
    padding: .75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}
.chat-input-form {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
}
.chat-input-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: .55rem .85rem;
    resize: none;
    border-radius: var(--radius);
    font-size: .93rem;
}
.chat-send-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 1.2rem;
}

/* Utilisateurs connectés */
.chat-users-panel {
    background: var(--surface);
    border-left: 1px solid var(--border);
    overflow-y: auto;
}
.users-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.user-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    transition: background var(--transition);
}
.user-item:hover { background: var(--surface2); }
.user-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.user-item .u-pseudo { flex: 1; color: var(--text); font-family: var(--font-ui); }
.user-item .u-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.u-status.online  { background: var(--ok); }
.u-status.away    { background: var(--warn); }
.u-status.offline { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   PROFIL
═══════════════════════════════════════════════════════ */
.profile-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}
.profile-hero-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.profile-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}
.profile-info h1 {
    font-size: 1.6rem;
    margin-bottom: .25rem;
}
.profile-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.profile-meta span {
    font-size: .85rem;
    color: var(--text-muted);
    font-family: var(--font-ui);
}
.profile-xp {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent);
    font-family: var(--font-ui);
}

/* Barre XP */
.xp-bar {
    background: var(--surface2);
    border-radius: 20px;
    height: 8px;
    margin-top: .5rem;
    overflow: hidden;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-h));
    border-radius: 20px;
    transition: width 1s ease;
}

/* ═══════════════════════════════════════════════════════
   CLASSEMENT
═══════════════════════════════════════════════════════ */
.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard th, .leaderboard td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.leaderboard th {
    font-family: var(--font-ui);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.leaderboard tr:hover td { background: var(--surface2); }
.leaderboard .rank {
    font-family: var(--font-ui);
    font-weight: bold;
    width: 50px;
    color: var(--text-muted);
}
.leaderboard .rank-1 { color: #ffd700; }
.leaderboard .rank-2 { color: #c0c0c0; }
.leaderboard .rank-3 { color: #cd7f32; }

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,.5);
    padding: 1rem;
}
.cookie-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-inner strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--text-strong);
    font-family: var(--font-ui);
}
.cookie-inner p { font-size: .85rem; color: var(--text-muted); }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   MAINTENANCE OVERLAY
═══════════════════════════════════════════════════════ */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,15,20,.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.maintenance-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    max-width: 480px;
}
.maintenance-box h2 { color: var(--accent); margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════════════════ */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - var(--header-h));
}
.admin-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}
.admin-nav-group { margin-bottom: 1.5rem; }
.admin-nav-group h4 {
    padding: 0 1rem .4rem;
    font-family: var(--font-ui);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.admin-nav-group a {
    display: block;
    padding: .5rem 1rem;
    color: var(--text);
    font-size: .9rem;
    font-family: var(--font-ui);
    transition: background var(--transition), color var(--transition);
}
.admin-nav-group a:hover,
.admin-nav-group a.active {
    background: rgba(200,145,58,.1);
    color: var(--accent);
}
.admin-content { padding: 2rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.stat-card .stat-label {
    font-family: var(--font-ui);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .4rem;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-strong);
    font-family: var(--font-ui);
}

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: var(--font-ui);
    font-size: .85rem;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}
.pagination a:hover { background: var(--surface2); color: var(--text); }
.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #0d0f14;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════
   PAGE LANDING
═══════════════════════════════════════════════════════ */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.features {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color var(--transition);
}
.feature-card:hover { border-color: var(--accent); }
.feature-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.feature-card p { color: var(--text-muted); font-size: .88rem; }

/* ═══════════════════════════════════════════════════════
   SECTION TITRES
═══════════════════════════════════════════════════════ */
.section-title {
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: .5rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-ui);
}

/* ═══════════════════════════════════════════════════════
   UTILITAIRES
═══════════════════════════════════════════════════════ */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm     { font-size: .85rem; }
.text-mono   { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
