/* PinToDelete — thème sombre assorti à l'application */
:root {
    --bg: #090B10;
    --bg-2: #10131D;
    --surface: #12151E;
    --surface-2: #1A1E2A;
    --border: #242938;
    --text: #F4F5F8;
    --muted: #8A91A0;
    --muted-2: #5A6070;
    --red: #E53945;
    --red-light: #FF5A5F;
    --red-dark: #A80F25;
    --green: #27C781;
    --orange: #FFAA35;
    --cyan: #25F4EE;
    --pink: #FE2C55;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1000px 520px at 50% -120px, rgba(229, 57, 69, .16), transparent 70%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 480px);
    background-color: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--red-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.inline { display: inline; }

.container { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 56px); }
.page { flex: 1; padding-top: 32px; padding-bottom: 56px; }

/* ---------- Barre du haut ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(9, 11, 16, .78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--red); }
.brand.small { font-size: 1rem; margin-bottom: 6px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .nav .link { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav .link:hover { color: var(--text); text-decoration: none; }
.nav a.on { color: var(--text); }
.nav a.btn { color: #fff; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 1080px) {
    .nav-burger { display: block; width: 40px; height: 40px; cursor: pointer; position: relative; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after {
        position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); content: ""; border-radius: 2px;
    }
    .nav-burger span { top: 19px; }
    .nav-burger span::before { top: -7px; left: 0; }
    .nav-burger span::after { top: 7px; left: 0; }
    .nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    }
    .nav a, .nav .link { padding: 12px 0; display: block; text-align: left; width: 100%; }
    .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 14px; border: 0; cursor: pointer;
    font: inherit; font-weight: 700; letter-spacing: .02em; color: #fff;
    background: linear-gradient(90deg, var(--red-dark), var(--red) 55%, var(--red-light));
    box-shadow: 0 8px 24px rgba(229, 57, 69, .28);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(229, 57, 69, .38); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.btn-ghost:hover { box-shadow: none; border-color: #3a4054; }
.btn-danger { background: rgba(229, 57, 69, .12); border: 1px solid rgba(229, 57, 69, .5); color: var(--red-light); box-shadow: none; }
.btn-tiktok { background: linear-gradient(90deg, var(--pink), #ff4f6e); box-shadow: none; }

/* ---------- Alertes, badges ---------- */
.alert { padding: 14px 18px 14px 48px; border-radius: 14px; margin-bottom: 18px; border: 1px solid; font-size: .95rem; position: relative; }
.alert::before { position: absolute; left: 16px; top: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.alert-success::before { content: "✓"; background: rgba(39, 199, 129, .22); }
.alert-error::before { content: "!"; background: rgba(229, 57, 69, .28); }
.alert-info::before { content: "i"; background: rgba(138, 145, 160, .22); }
.alert-success { background: rgba(39, 199, 129, .1); border-color: rgba(39, 199, 129, .4); color: #8ff0c3; }
.alert-error { background: rgba(229, 57, 69, .1); border-color: rgba(229, 57, 69, .45); color: #ff9aa0; }
.alert-info { background: rgba(138, 145, 160, .1); border-color: var(--border); color: var(--text); }
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
    font-size: .78rem; font-weight: 700; letter-spacing: .03em; border: 1px solid; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-green { color: var(--green); background: rgba(39, 199, 129, .1); border-color: rgba(39, 199, 129, .35); }
.badge-orange { color: var(--orange); background: rgba(255, 170, 53, .1); border-color: rgba(255, 170, 53, .35); }
.badge-red { color: var(--red-light); background: rgba(229, 57, 69, .1); border-color: rgba(229, 57, 69, .35); }
.badge-grey { color: var(--muted); background: rgba(138, 145, 160, .08); border-color: var(--border); }

/* =====================================================================
   BLOCS — cartes à bordure dégradée, titres à icône, reflets
   ===================================================================== */
.i { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -.125em; }

.card {
    position: relative;
    padding: 26px; margin-bottom: 22px; border-radius: 22px;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #181c27, #11141c) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 40%, rgba(229, 57, 69, .18)) border-box;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px rgba(0, 0, 0, .28);
}
/* Reflet discret en haut de chaque bloc */
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; border-radius: 22px 22px 0 0; pointer-events: none;
    background: radial-gradient(420px 120px at 20% 0, rgba(255, 255, 255, .05), transparent 70%);
}
.card > * { position: relative; }
.card-glow {
    background:
        radial-gradient(500px 220px at 100% 0, rgba(229, 57, 69, .14), transparent 70%) padding-box,
        linear-gradient(180deg, #1b1520, #11141c) padding-box,
        linear-gradient(140deg, rgba(255, 90, 95, .65), rgba(229, 57, 69, .15) 45%, rgba(255, 255, 255, .06)) border-box;
    box-shadow: 0 24px 60px rgba(229, 57, 69, .12), 0 1px 0 rgba(255, 255, 255, .05) inset;
}

.card-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.card-title .ico, .stat-ico {
    width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(255, 90, 95, .22), rgba(168, 15, 37, .12));
    border: 1px solid rgba(229, 57, 69, .35); color: var(--red-light); font-size: 18px;
    box-shadow: 0 6px 18px rgba(229, 57, 69, .18);
}
.sub-title { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 24px 0 10px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2, .card + .grid-2 { margin-top: 22px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

.page-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border);
}
.page-head h1 { margin-bottom: 4px; }

.facts { display: grid; grid-template-columns: max-content 1fr; margin: 18px 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.facts dt, .facts dd { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); font-size: .88rem; background: rgba(255, 255, 255, .02); }
.facts dd { margin: 0; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.note {
    font-size: .88rem; color: var(--muted); margin-top: 16px; padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .025); border-left: 3px solid rgba(229, 57, 69, .6);
}
.note.center { text-align: center; border-left: 0; background: none; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.license-key {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 16px 18px; border-radius: 16px;
    background: repeating-linear-gradient(135deg, rgba(229, 57, 69, .05) 0 10px, transparent 10px 20px), #07080c;
    border: 1px dashed rgba(229, 57, 69, .6);
}
.license-key code { font-size: clamp(1rem, 2.6vw, 1.3rem); font-weight: 800; letter-spacing: .1em; color: #fff; text-shadow: 0 0 18px rgba(229, 57, 69, .45); }

.price-mini { font-size: 1rem; color: var(--muted); margin-bottom: 12px; }
.price-mini span { font-size: 2.6rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { padding: 7px 0 7px 32px; position: relative; }
.ticks li::before {
    content: "✓"; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(39, 199, 129, .15); border: 1px solid rgba(39, 199, 129, .35); color: var(--green);
    font-size: .72rem; font-weight: 900; display: grid; place-items: center;
}
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.steps li {
    counter-increment: st; position: relative; padding: 12px 14px 12px 54px; border-radius: 14px;
    background: rgba(255, 255, 255, .025); border: 1px solid var(--border);
}
.steps li::before {
    content: counter(st); position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900;
    background: linear-gradient(135deg, var(--red-light), var(--red-dark));
}

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input:not([type]), select {
    width: 100%; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--border);
    background: #0a0c12; color: var(--text); font: inherit; outline: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover { border-color: #30364a; }
input:focus, select:focus { border-color: var(--red); background: #0c0e15; box-shadow: 0 0 0 4px rgba(229, 57, 69, .16); }
input[type=checkbox] { accent-color: var(--red); width: 18px; height: 18px; margin-top: 2px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input, .form-row select { flex: 1; min-width: 160px; width: auto; }
.search { display: flex; gap: 8px; }
.search input { min-width: 240px; }

.auth-card {
    position: relative; max-width: 450px; margin: 28px auto; padding: 36px 32px; border-radius: 26px;
    border: 1px solid transparent;
    background:
        radial-gradient(380px 180px at 50% 0, rgba(229, 57, 69, .16), transparent 70%) padding-box,
        linear-gradient(180deg, #181c27, #10131a) padding-box,
        linear-gradient(180deg, rgba(255, 90, 95, .5), rgba(255, 255, 255, .06) 35%, rgba(255, 255, 255, .03)) border-box;
    box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 580px; }
.auth-card h1 { text-align: center; }
.auth-card > .muted { text-align: center; }
.auth-logo { display: block; margin: 0 auto 16px; filter: drop-shadow(0 10px 28px rgba(229, 57, 69, .55)); }
.auth-switch { text-align: center; margin: 16px 0 0; color: var(--muted); font-size: .92rem; }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.checklist li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.checklist .ok { color: var(--green); }
.checklist .ko { color: var(--red-light); background: rgba(229, 57, 69, .08); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255, 255, 255, .025); }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }
th, td { padding: 12px 10px; vertical-align: top; }
td { border-bottom: 1px solid rgba(36, 41, 56, .7); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(229, 57, 69, .035); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pagination a { min-width: 36px; text-align: center; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); }
.pagination a:hover { text-decoration: none; border-color: #3a4054; color: var(--text); }
.pagination a.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(229, 57, 69, .35); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #0d0f15; border: 1px solid var(--border); border-radius: 14px; padding: 4px; }
.tabs a { padding: 7px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { background: linear-gradient(180deg, var(--surface-2), #161a24); color: var(--text); box-shadow: 0 0 0 1px var(--border); }

/* ---------- Administration ---------- */
.admin-layout { flex: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 56px; }
.admin-nav {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 88px; align-self: start;
    padding: 10px; border-radius: 20px; background: #0e1118; border: 1px solid var(--border);
}
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.admin-nav a .i { font-size: 18px; opacity: .8; }
.admin-nav a:hover { text-decoration: none; background: var(--surface); color: var(--text); }
.admin-nav a.on { background: linear-gradient(90deg, rgba(229, 57, 69, .22), rgba(229, 57, 69, .04)); color: var(--text); box-shadow: inset 3px 0 0 var(--red); }
.admin-nav a.on .i { color: var(--red-light); opacity: 1; }
@media (max-width: 860px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
    .admin-nav a { white-space: nowrap; }
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1060px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat {
    position: relative; overflow: hidden; padding: 20px; border-radius: 20px; border: 1px solid transparent;
    background:
        linear-gradient(180deg, #181c27, #11141c) padding-box,
        linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)) border-box;
}
.stat::after {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 57, 69, .16), transparent 70%);
}
.stat-ico { margin-bottom: 14px; }
.stat small { color: var(--muted); display: block; font-weight: 600; }
.stat b { display: block; font-size: 1.85rem; font-weight: 900; margin: 4px 0; letter-spacing: -.02em; }
.stat > span:last-child { color: var(--muted-2); font-size: .85rem; }

/* ---------- Tarif, FAQ, créateur ---------- */
.pricing { display: grid; place-items: center; margin-bottom: 72px; scroll-margin-top: 90px; }
.price-card {
    position: relative; width: 100%; max-width: 430px; padding: 36px; border-radius: 28px; text-align: left;
    border: 1px solid transparent;
    background:
        radial-gradient(400px 200px at 50% 0, rgba(229, 57, 69, .22), transparent 70%) padding-box,
        linear-gradient(180deg, #1d1219, #11141c) padding-box,
        linear-gradient(160deg, var(--red-light), rgba(229, 57, 69, .1) 50%, rgba(255, 255, 255, .08)) border-box;
    box-shadow: var(--shadow), 0 0 80px rgba(229, 57, 69, .16);
}
.price-card::before {
    content: "Sans engagement"; position: absolute; top: -13px; right: 26px; padding: 5px 12px; border-radius: 99px;
    background: linear-gradient(90deg, var(--red-dark), var(--red-light)); font-size: .75rem; font-weight: 800; letter-spacing: .06em;
}
.price { color: var(--muted); margin-bottom: 20px; }
.price span { font-size: 3.6rem; font-weight: 900; color: var(--text); letter-spacing: -.03em; }

.faq { max-width: none; margin: 0 0 96px; scroll-margin-top: 90px; }
.faq details {
    margin-bottom: 10px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--border);
    background: linear-gradient(180deg, #161a24, #11141c); transition: border-color .2s, box-shadow .2s;
}
.faq details:hover { border-color: #343a4d; }
.faq details[open] { border-color: rgba(229, 57, 69, .45); box-shadow: 0 12px 30px rgba(229, 57, 69, .08); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; list-style: none; position: relative; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center; font-size: 1.1rem; color: var(--red-light); background: rgba(229, 57, 69, .12);
}
.faq details[open] summary::after { content: "–"; }
.q-ico { color: var(--red-light); font-size: 18px; display: inline-flex; opacity: .85; }
.faq details p { color: var(--muted); margin: 0 0 18px 30px; }

.creator { display: grid; place-items: center; margin-bottom: 32px; }
.creator-card {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 22px; color: var(--text);
    border: 1px solid transparent;
    background:
        linear-gradient(90deg, #12151e, #1a1e2a) padding-box,
        linear-gradient(90deg, var(--cyan), var(--pink)) border-box;
    transition: transform .2s, box-shadow .2s;
}
.creator-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: -8px 8px 30px rgba(37, 244, 238, .12), 8px 8px 30px rgba(254, 44, 85, .15); }
.creator-card small { display: block; color: var(--muted); }
.creator-card b { display: block; font-size: 1.1rem; }
.creator-card span:not(.btn) { color: var(--cyan); font-size: .9rem; }
.tiktok-dot {
    width: 46px; height: 46px; border-radius: 50%; background: #010101; display: grid; place-items: center; flex: 0 0 auto;
    font-size: 1.5rem; font-weight: 900; color: #fff; text-shadow: -2px -2px 0 var(--cyan), 2px 2px 0 var(--pink);
}

/* ---------- Pages légales ---------- */
.prose h1 { margin-top: .4em; scroll-margin-top: 90px; }
.prose h2 { margin-top: 1.4em; scroll-margin-top: 90px; }
.prose p { color: #c3c7d1; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.legal-nav a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); font-size: .9rem; font-weight: 600; }
.legal-nav a:hover { text-decoration: none; color: var(--text); border-color: var(--red); }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.site-footer {
    position: relative; margin-top: 40px;
    background: linear-gradient(180deg, transparent, #06070b 140px);
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.site-footer::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: min(720px, 90%); height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.f-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin: 40px 0 0; padding: 28px 32px; border-radius: 24px; border: 1px solid transparent;
    background:
        radial-gradient(500px 200px at 0 0, rgba(229, 57, 69, .25), transparent 70%) padding-box,
        linear-gradient(180deg, #1a1520, #12141b) padding-box,
        linear-gradient(120deg, rgba(255, 90, 95, .6), rgba(255, 255, 255, .06)) border-box;
}
.f-cta h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.f-cta p { color: var(--muted); margin: 0; }

.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.f-brand .brand { font-size: 1.35rem; margin-bottom: 14px; }
.f-brand p { color: var(--muted); font-size: .93rem; max-width: 320px; }
.f-trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.f-trust li { display: flex; align-items: center; gap: 10px; color: #b3b8c4; font-size: .88rem; }
.f-trust .i { color: var(--green); font-size: 16px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { margin: 4px 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text); }
.f-col a { color: var(--muted); font-size: .93rem; width: fit-content; position: relative; }
.f-col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--red-light); transition: width .2s; }
.f-col a:hover { color: var(--text); text-decoration: none; }
.f-col a:hover::after { width: 100%; }
.f-creator p { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.f-tiktok {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; color: var(--text);
    border: 1px solid transparent;
    background: linear-gradient(90deg, #12151e, #1a1e2a) padding-box, linear-gradient(90deg, var(--cyan), var(--pink)) border-box;
    transition: transform .2s, box-shadow .2s;
}
.f-tiktok:hover { text-decoration: none; transform: translateY(-2px); box-shadow: -6px 6px 24px rgba(37, 244, 238, .12), 6px 6px 24px rgba(254, 44, 85, .15); }
.f-tiktok > span:nth-child(2) { flex: 1; }
.f-tiktok b { display: block; }
.f-tiktok small { color: var(--cyan); }
.f-tiktok > .i { color: var(--muted); font-size: 18px; }
.f-tiktok .tiktok-dot { width: 40px; height: 40px; font-size: 1.3rem; }

.f-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted-2); font-size: .85rem;
}
.f-bottom p { margin: 0; }
.f-made a { color: var(--text); font-weight: 700; }
.heart { color: var(--red); display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.f-top {
    width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 18px;
    transition: transform .2s, border-color .2s, color .2s;
}
.f-top:hover { transform: translateY(-3px); border-color: var(--red); color: var(--red-light); }

@media (max-width: 1060px) {
    .f-grid { grid-template-columns: 1fr 1fr 1fr; }
    .f-brand { grid-column: 1 / -1; }
    .f-social { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .f-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 40px; }
    .f-grid > .f-col:nth-of-type(3) { grid-column: 1 / -1; }
    .f-cta { padding: 22px; text-align: center; justify-content: center; }
    .f-bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .heart { animation: none; } }

/* =====================================================================
   SUPPORT, NOUVEAUTÉS, DONNÉES
   ===================================================================== */
textarea {
    width: 100%; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--border); resize: vertical; min-height: 110px;
    background: #0a0c12; color: var(--text); font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 57, 69, .16); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } }
.support-grid { align-items: start; }
.support-grid > div > .card:last-child { margin-bottom: 0; }

.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ticket-head .card-title { margin-bottom: 0; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .ticket-layout { grid-template-columns: 1fr; } }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }
.msg { max-width: 86%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--border); }
.msg-user { align-self: flex-end; background: #161a24; border-bottom-right-radius: 6px; }
.msg-admin { align-self: flex-start; background: linear-gradient(180deg, rgba(229, 57, 69, .12), rgba(229, 57, 69, .04)); border-color: rgba(229, 57, 69, .35); border-bottom-left-radius: 6px; }
.msg-meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.msg-admin .msg-meta b { color: var(--red-light); }
.msg-body { overflow-wrap: anywhere; }
.ticket-list { display: grid; gap: 8px; }
.ticket-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text); transition: border-color .15s, transform .15s;
}
.ticket-row:hover { text-decoration: none; border-color: rgba(229, 57, 69, .5); transform: translateX(3px); }
.ticket-row small { display: block; color: var(--muted); }
.quick details { border-top: 1px solid var(--border); padding: 12px 0; }
.quick details:first-child { border-top: 0; padding-top: 0; }
.quick summary { cursor: pointer; font-weight: 700; }
.quick p { color: var(--muted); margin: 8px 0 0; font-size: .93rem; }

.danger-zone { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(229, 57, 69, .3); background: rgba(229, 57, 69, .04); }
.danger-zone summary { cursor: pointer; color: var(--red-light); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.danger-zone .form { margin-top: 12px; }

.eyebrow-sm { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-light); margin-bottom: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 980px; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--red), rgba(229, 57, 69, .05)); }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 34px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 124px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(229, 57, 69, .2); }
.tl-date { color: var(--muted); font-weight: 700; font-size: .9rem; padding-top: 22px; text-align: right; }
.tl-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-body { color: #c3c7d1; }
@media (max-width: 700px) {
    .timeline::before, .timeline li::before { display: none; }
    .timeline li { grid-template-columns: 1fr; gap: 6px; }
    .tl-date { text-align: left; padding-top: 0; }
}
.empty { text-align: center; padding: 56px 24px; }
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 28px; color: var(--red-light); background: rgba(229, 57, 69, .12); margin-bottom: 14px; }

.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.admin-nav-sep { margin: 12px 14px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 800; }
@media (max-width: 860px) { .admin-nav-sep { display: none; } }
.news-admin { display: grid; gap: 10px; }
.news-admin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.news-admin-row .actions { margin: 0; }

/* FAQ pleine largeur : 2 colonnes sur grand écran */
.faq > details { margin-bottom: 0; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.faq > .l-head, .faq > h2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* =====================================================================
   RÉSEAUX SOCIAUX (pied de page)
   ===================================================================== */
.f-social-icons { display: flex; gap: 10px; margin-bottom: 16px; }
.soc {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; color: #fff;
    border: 1px solid var(--border); background: var(--surface-2); transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.soc:hover { text-decoration: none; transform: translateY(-3px); }
.soc-tiktok:hover { background: #000; border-color: #000; box-shadow: -3px -3px 0 var(--cyan), 3px 3px 0 var(--pink); }
.soc-telegram:hover { background: #229ED9; border-color: #229ED9; box-shadow: 0 10px 26px rgba(34, 158, 217, .45); }
.f-contact { gap: 8px; }

/* =====================================================================
   PAGE CONTACT
   ===================================================================== */
.c-hero { text-align: center; padding: 36px 0 44px; }
.c-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; margin-bottom: 18px;
    font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red-light); background: rgba(229, 57, 69, .1); border: 1px solid rgba(229, 57, 69, .3);
}
.c-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.c-accent { background: linear-gradient(90deg, #ff7a7f, var(--red) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-lead { color: #c3c7d1; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

.c-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 28px; }
@media (max-width: 980px) { .c-socials { grid-template-columns: 1fr; } }
.c-social {
    --c1: #fff; --c2: #fff; --glow: rgba(255, 255, 255, .1);
    position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px; border-radius: 28px; color: var(--text);
    border: 1px solid transparent;
    background:
        radial-gradient(420px 220px at 100% 0, var(--glow), transparent 70%) padding-box,
        linear-gradient(180deg, #171b26, #0f1218) padding-box,
        linear-gradient(150deg, var(--c1), rgba(255, 255, 255, .05) 45%, var(--c2)) border-box;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.c-social:hover { text-decoration: none; transform: translateY(-8px); box-shadow: 0 30px 60px var(--glow); }
.c-social-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.c-logo { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 34px; color: #fff; }
.c-arrow { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--muted); border: 1px solid var(--border); transition: transform .25s, color .25s; }
.c-social:hover .c-arrow { transform: rotate(45deg); color: #fff; }
.c-social h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 2px; }
.c-handle { font-weight: 700; margin-bottom: 12px; }
.c-social p:not(.c-handle) { color: var(--muted); flex: 1; }
.c-btn { align-self: flex-start; margin-top: 10px; padding: 11px 20px; border-radius: 14px; font-weight: 800; color: #fff; transition: filter .2s; }
.c-social:hover .c-btn { filter: brightness(1.12); }

.c-tiktok { --c1: rgba(37, 244, 238, .75); --c2: rgba(254, 44, 85, .75); --glow: rgba(254, 44, 85, .16); }
.c-tiktok .c-logo { background: #000; filter: drop-shadow(-3px -3px 0 var(--cyan)) drop-shadow(3px 3px 0 var(--pink)); }
.c-tiktok .c-handle { color: var(--cyan); }
.c-tiktok .c-btn { background: linear-gradient(90deg, var(--pink), #ff4f6e); }

.c-telegram { --c1: rgba(42, 171, 238, .8); --c2: rgba(42, 171, 238, .2); --glow: rgba(42, 171, 238, .18); }
.c-telegram .c-logo { background: linear-gradient(135deg, #37bbfe, #1e96c8); box-shadow: 0 14px 30px rgba(34, 158, 217, .4); }
.c-telegram .c-handle { color: #4cc3ff; }
.c-telegram .c-btn { background: linear-gradient(90deg, #1e96c8, #37bbfe); }

.c-support { --c1: rgba(255, 90, 95, .75); --c2: rgba(229, 57, 69, .2); --glow: rgba(229, 57, 69, .16); }
.c-support .c-logo { background: linear-gradient(135deg, var(--red-light), var(--red-dark)); box-shadow: 0 14px 30px rgba(229, 57, 69, .4); }
.c-support .c-handle { color: var(--red-light); }
.c-support .c-btn { background: linear-gradient(90deg, var(--red-dark), var(--red-light)); }

.c-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .c-grid { grid-template-columns: 1fr; } }
.c-form { margin-bottom: 0; }
.c-side .card:last-child { margin-bottom: 0; }
.c-facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.c-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.c-facts li b { color: var(--text); }
.c-facts .i { color: var(--green); font-size: 18px; margin-top: 3px; }
.c-mail { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); color: var(--text); font-weight: 700; }
.c-mail:hover { text-decoration: none; border-color: var(--red); }
.c-links { display: grid; gap: 8px; }
.c-links a {
    display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; color: var(--text);
    background: rgba(255, 255, 255, .02); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.c-links a .i:first-child { color: var(--red-light); font-size: 18px; }
.c-links a .i:last-child { margin-left: auto; color: var(--muted); }
.c-links a:hover { text-decoration: none; border-color: rgba(229, 57, 69, .5); transform: translateX(3px); }

/* =====================================================================
   ADMINISTRATION v2
   ===================================================================== */
/* Bandeaux du site */
.imp-bar { background: linear-gradient(90deg, #b45309, var(--orange)); color: #1a1003; font-weight: 600; }
.imp-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.imp-inner span { display: flex; align-items: center; gap: 8px; }
.imp-bar .btn { background: #1a1003; box-shadow: none; }
.site-banner { --bc: var(--red); border-bottom: 1px solid color-mix(in srgb, var(--bc) 40%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 22%, #0b0d13), color-mix(in srgb, var(--bc) 8%, #0b0d13)); }
.site-banner.tone-success { --bc: var(--green); }
.site-banner.tone-warning { --bc: var(--orange); }
.site-banner .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-weight: 600; text-align: center; flex-wrap: wrap; }
.site-banner .i { color: var(--bc); font-size: 18px; }
.site-banner a { color: var(--text); text-decoration: underline; }

/* Menu latéral */
.admin-layout { grid-template-columns: 260px minmax(0, 1fr); }
.admin-nav-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.admin-nav-head b { display: block; }
.admin-nav-head small { color: var(--muted); }
.admin-avatar, .who-av {
    width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; color: #fff;
    background: linear-gradient(135deg, var(--red-light), var(--red-dark));
}
.admin-search { position: relative; margin: 4px 0 6px; }
.admin-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.admin-search input { padding: 10px 12px 10px 38px; font-size: .9rem; border-radius: 12px; }
.admin-nav a span:first-of-type { flex: 1; }
.admin-maint { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: .85rem; font-weight: 700; color: var(--orange); background: rgba(255, 170, 53, .1); border: 1px solid rgba(255, 170, 53, .35); display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-nav-head, .admin-search, .admin-maint { display: none; }
}

/* En-tête du tableau de bord */
.a-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.a-hero h1 { margin-bottom: 4px; }
.a-alerts { display: grid; gap: 8px; margin-bottom: 22px; }
.a-alert {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; color: var(--text);
    background: rgba(229, 57, 69, .07); border: 1px solid rgba(229, 57, 69, .3);
}
.a-alert .i { color: var(--red-light); font-size: 18px; }
.a-alert.warn { background: rgba(255, 170, 53, .07); border-color: rgba(255, 170, 53, .35); }
.a-alert.warn .i { color: var(--orange); }
.a-alert.bad { background: rgba(229, 57, 69, .12); }
.a-alert:hover { text-decoration: none; transform: translateX(3px); }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi {
    position: relative; overflow: hidden; padding: 20px; border-radius: 20px; border: 1px solid transparent;
    background: linear-gradient(180deg, #181c27, #11141c) padding-box, linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)) border-box;
}
.kpi .stat-ico { margin-bottom: 12px; }
.kpi small { display: block; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -.02em; margin: 2px 0 4px; }
.kpi-sub { color: var(--muted-2); font-size: .84rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi-main {
    background:
        radial-gradient(300px 160px at 100% 0, rgba(229, 57, 69, .3), transparent 70%) padding-box,
        linear-gradient(180deg, #1d1520, #11141c) padding-box,
        linear-gradient(150deg, var(--red-light), rgba(255, 255, 255, .05) 55%) border-box;
}
.delta { padding: 2px 7px; border-radius: 99px; font-size: .75rem; font-weight: 800; }
.delta-up { color: var(--green); background: rgba(39, 199, 129, .12); }
.delta-down { color: var(--red-light); background: rgba(229, 57, 69, .12); }
.delta-flat, .delta-new { color: var(--muted); background: rgba(138, 145, 160, .12); }

/* Graphiques : une série, une couleur, quadrillage discret */
.chart { margin: 0; }
.chart-plot { position: relative; height: 230px; margin: 6px 0 0 52px; }
.chart-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; }
.cg-line { position: relative; border-top: 1px solid rgba(255, 255, 255, .06); height: 0; }
.cg-line:last-child { border-top-color: rgba(255, 255, 255, .16); }
.cg-line span { position: absolute; right: calc(100% + 10px); top: -.6em; font-size: .72rem; color: var(--muted-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; }
.cb { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 22px; outline: none; cursor: default; }
.cb-bar {
    display: block; width: min(70%, 26px); border-radius: 4px 4px 0 0; min-height: 0;
    background: var(--red); transition: background .15s;
}
.cb-bar.is-zero { height: 2px !important; min-height: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; }
.cb small { position: absolute; bottom: 0; font-size: .7rem; color: var(--muted-2); white-space: nowrap; }
.cb::before { content: ""; position: absolute; inset: 0 0 22px; border-radius: 6px; background: rgba(255, 255, 255, .03); opacity: 0; transition: opacity .15s; }
.cb:hover::before, .cb:focus-visible::before { opacity: 1; }
.cb:hover .cb-bar, .cb:focus-visible .cb-bar { background: var(--red-light); }
.cb::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% - 10px); left: 50%; transform: translate(-50%, 4px);
    padding: 6px 10px; border-radius: 9px; background: #f4f5f8; color: #0b0d13; font-size: .78rem; font-weight: 700; white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5;
}
.cb:hover::after, .cb:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.cb:first-child::after { left: 0; transform: translate(0, 4px); }
.cb:first-child:hover::after, .cb:first-child:focus-visible::after { transform: none; }
.cb:last-child::after { left: auto; right: 0; transform: translate(0, 4px); }
.cb:last-child:hover::after, .cb:last-child:focus-visible::after { transform: none; }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.chart-table table { margin-top: 8px; font-size: .85rem; }
.chart-table td { padding: 6px 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.grid-3 > .card { margin-bottom: 0; }
@media (max-width: 1200px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.a-charts { margin-bottom: 0; }
.mini-list { display: grid; gap: 6px; }
.mini-list > a, .mini-list > div {
    display: block; padding: 10px 12px; border-radius: 12px; color: var(--text); border: 1px solid transparent; background: rgba(255, 255, 255, .02);
}
.mini-list > a:hover { text-decoration: none; border-color: var(--border); background: rgba(229, 57, 69, .04); }
.mini-list b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .93rem; }
.mini-list small { display: block; color: var(--muted); font-size: .8rem; }

/* Répartition horizontale */
.rank { display: grid; gap: 12px; }
.rank-head { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 5px; }
.rank-head b small { color: var(--muted); font-weight: 600; }
.rank-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.rank-track span { display: block; height: 100%; border-radius: 99px; background: var(--red); }

/* Listes et filtres */
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1; max-width: 640px; }
.toolbar .search input { flex: 1; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.sort select { width: auto; padding: 9px 12px; }
.tabs-wide { margin-bottom: 18px; }
.who { display: flex; align-items: center; gap: 12px; }
.who-av { width: 36px; height: 36px; border-radius: 11px; font-size: .9rem; }
.narrow { max-width: 720px; }

/* E-mail groupé */
.seg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -6px; }
@media (max-width: 640px) { .seg-pick { grid-template-columns: 1fr; } }
.seg { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--muted); font-weight: 600; transition: border-color .15s, background .15s; }
.seg span b { display: block; font-size: 1.5rem; color: var(--text); }
.seg input:checked + span { border-color: var(--red); background: rgba(229, 57, 69, .08); color: var(--text); box-shadow: 0 0 0 3px rgba(229, 57, 69, .15); }
.seg input:focus-visible + span { outline: 2px solid var(--red-light); }

/* Réglages : interrupteurs */
.switch-row { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; margin-bottom: 16px; }
.switch-row input { position: absolute; opacity: 0; }
.switch { flex: 0 0 auto; width: 48px; height: 28px; border-radius: 99px; background: #262b39; position: relative; transition: background .2s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #8a91a0; transition: transform .2s, background .2s; }
.switch-row input:checked + .switch { background: var(--red); }
.switch-row input:checked + .switch::after { transform: translateX(20px); background: #fff; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--red-light); outline-offset: 2px; }
.switch-row b { display: block; }
.switch-row small { display: block; color: var(--muted); font-size: .86rem; }
.settings-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; margin-top: 22px; }

/* État du système */
.checks { display: grid; gap: 8px; margin-bottom: 14px; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.check-row b { display: block; }
.check-row small { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.check-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; font-size: 16px; }
.check-row.ok .check-ico { color: var(--green); background: rgba(39, 199, 129, .14); }
.check-row.ko { border-color: rgba(255, 170, 53, .4); background: rgba(255, 170, 53, .05); }
.check-row.ko .check-ico { color: var(--orange); background: rgba(255, 170, 53, .14); }
.file-drop { position: relative; display: grid !important; place-items: center; gap: 4px; padding: 22px; border-radius: 16px; border: 2px dashed rgba(229, 57, 69, .45); background: rgba(229, 57, 69, .04); text-align: center; cursor: pointer; color: var(--text) !important; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop span { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.file-drop small { color: var(--muted); font-weight: 500; }
.maint-actions { display: grid; gap: 8px; }
.export-card .btn { margin-top: 6px; }

/* Administration en pleine largeur (barre du haut, contenu, pied de page) */
body.admin .container { max-width: none; }
body.admin .admin-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-left: clamp(16px, 2vw, 32px); padding-right: clamp(16px, 2vw, 32px); }
@media (max-width: 860px) { body.admin .admin-layout { grid-template-columns: 1fr; } }

/* =====================================================================
   FORMULES (Essentiel / Pro / Ultime)
   ===================================================================== */
.plan-badge { --pc: var(--muted); color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent); border-color: color-mix(in srgb, var(--pc) 40%, transparent); }
.plan-badge.plan-essential { --pc: #a3a9b7; }
.plan-badge.plan-pro { --pc: var(--red-light); }
.plan-badge.plan-ultimate { --pc: #f5c451; }

/* ---- Accueil : 3 cartes ---- */
.l-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; margin-bottom: 28px; }
@media (max-width: 1000px) { .l-plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.l-plan {
    --pc: #a3a9b7;
    position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 28px; border: 1px solid transparent;
    background:
        radial-gradient(380px 180px at 50% 0, color-mix(in srgb, var(--pc) 14%, transparent), transparent 70%) padding-box,
        linear-gradient(180deg, #171b26, #0f1218) padding-box,
        linear-gradient(170deg, color-mix(in srgb, var(--pc) 55%, transparent), rgba(255, 255, 255, .04) 55%) border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}
.l-plan:hover { transform: translateY(-6px); box-shadow: 0 26px 60px color-mix(in srgb, var(--pc) 16%, transparent); }
.l-plan.plan-pro { --pc: var(--red-light); }
.l-plan.plan-ultimate { --pc: #f5c451; }
.l-plan.is-highlight {
    background:
        radial-gradient(420px 220px at 50% 0, rgba(229, 57, 69, .26), transparent 70%) padding-box,
        linear-gradient(180deg, #1d1219, #10131a) padding-box,
        linear-gradient(170deg, var(--red-light), rgba(229, 57, 69, .12) 60%) border-box;
    box-shadow: 0 30px 70px rgba(229, 57, 69, .16);
}
@media (min-width: 1001px) { .l-plan.is-highlight { transform: translateY(-10px); } .l-plan.is-highlight:hover { transform: translateY(-16px); } }
.l-plan-flag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
    padding: 6px 14px; border-radius: 99px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: linear-gradient(90deg, var(--red-dark), var(--red-light)); box-shadow: 0 8px 20px rgba(229, 57, 69, .4);
}
.l-plan h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; color: var(--pc); }
.l-plan-tag { color: var(--muted); margin-bottom: 18px; min-height: 2.6em; }
.l-plan .price { margin-bottom: 18px; }
.l-plan .price span { font-size: 3.2rem; }
.l-plan .ticks { flex: 1; margin-bottom: 24px; }
.l-plan .ticks li { font-size: .95rem; }
.ticks li.is-new { color: #fff; font-weight: 600; }
.ticks li.is-new::before { background: color-mix(in srgb, var(--pc, var(--green)) 18%, transparent); border-color: color-mix(in srgb, var(--pc, var(--green)) 45%, transparent); color: var(--pc, var(--green)); }

/* ---- Accueil : tableau comparatif ---- */
.l-compare-table { width: 100%; max-width: none; margin: 0; padding: 12px 28px; border-radius: 24px; background: #10131a; border: 1px solid var(--border); }
.l-compare-table table { font-size: 1rem; }
.l-compare-table th:first-child, .l-compare-table td:first-child { width: 52%; }
@media (max-width: 1000px) { .l-compare-table { padding: 8px 14px; } }
.l-compare-table th:not(:first-child), .l-compare-table td:not(:first-child) { width: 16%; }
.l-compare-table .yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(39, 199, 129, .15); color: var(--green); font-size: 14px; }
.l-compare-table .no { color: var(--muted-2); }
.l-compare-table .price-row td { border-top: 1px solid var(--border); font-size: 1.05rem; }

/* ---- Espace client : choix de formule ---- */
.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-opt {
    --pc: #a3a9b7;
    display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, .02); transition: border-color .2s, box-shadow .2s;
}
.plan-opt.plan-pro { --pc: var(--red-light); }
.plan-opt.plan-ultimate { --pc: #f5c451; }
.plan-opt:hover { border-color: color-mix(in srgb, var(--pc) 55%, transparent); }
.plan-opt.is-current, .plan-opt.is-wanted { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 18%, transparent); }
.plan-opt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-pop { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--red-light); }
.plan-opt-price { color: var(--muted); }
.plan-opt-price b { font-size: 2rem; font-weight: 900; color: var(--text); }
.plan-opt p { margin: 0; }
.plan-feats { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 6px; flex: 1; }
.plan-feats li { position: relative; padding-left: 22px; font-size: .88rem; color: var(--muted); }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.plan-feats li.is-new { color: var(--text); font-weight: 600; }
.plan-feats li.is-new::before { color: var(--pc); }
.btn.is-disabled { opacity: .6; cursor: default; pointer-events: none; }

/* ---- Fonctions verrouillées ---- */
.locked { display: grid; justify-items: start; gap: 12px; padding: 18px; border-radius: 16px; border: 1px dashed var(--border); background: rgba(255, 255, 255, .02); }
.locked p { margin: 0; color: var(--muted); }
.locked p b { color: var(--text); }
.locked-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--muted); background: rgba(255, 255, 255, .05); }

/* ---- Contrôle à distance ---- */
.remote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
@media (max-width: 520px) { .remote-grid { grid-template-columns: 1fr; } }
.remote-btn {
    width: 100%; display: grid; justify-items: start; gap: 2px; padding: 16px; border-radius: 16px; cursor: pointer; text-align: left;
    font: inherit; color: var(--text); background: rgba(255, 255, 255, .03); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.remote-btn .i { font-size: 22px; color: var(--red-light); margin-bottom: 6px; }
.remote-btn small { color: var(--muted); }
.remote-btn:hover { border-color: rgba(229, 57, 69, .55); transform: translateY(-2px); }
.remote-btn.warn .i { color: var(--orange); }
.remote-btn.warn:hover { border-color: rgba(255, 170, 53, .6); }
.mini-list .intr-wiped { border-color: rgba(229, 57, 69, .4); background: rgba(229, 57, 69, .06); }
.inline-form { display: inline; }
.inline-form select { width: auto; padding: 6px 10px; font-size: .9rem; }

/* =====================================================================
   LOCALISATION (carte Leaflet)
   ===================================================================== */
.map-block { margin: 6px 0 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-head b { display: block; }
.map-head small { display: block; }
.map { height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c0e14; z-index: 0; }
.map-empty { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 14px; border: 1px dashed var(--border); color: var(--muted); }
.map-empty .i { font-size: 30px; color: var(--red-light); flex: 0 0 auto; }
.map-empty p { margin: 0; }
.screen-share { margin-top: 14px; }
.screen-frame { display: block; width: 100%; max-height: 70vh; object-fit: contain; margin: 10px auto 0; border-radius: 12px; background: #050608; }
/* Leaflet : lisibilité sur fond sombre */
.leaflet-container { font: inherit; background: #0c0e14; }
.leaflet-control-attribution { background: rgba(9, 11, 16, .8) !important; color: #8a91a0 !important; }
.leaflet-control-attribution a { color: #b3b8c4 !important; }
.leaflet-bar a { background: #12151e !important; color: #f4f5f8 !important; border-color: #242938 !important; }
.leaflet-bar a:hover { background: #1a1e2a !important; }

/* =====================================================================
   ESPACE CLIENT (account.php) : panneau avec menu latéral
   ===================================================================== */
.dash { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.dash-nav { top: 88px; }
.dash-who { min-width: 0; }
.dash-who b, .dash-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-plan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 8px 10px; }
.dash-plan small { color: var(--muted); font-size: .8rem; }
.dash-main { min-width: 0; }
.dash-panel { scroll-margin-top: 90px; }
.dash-panel + .dash-panel { margin-top: 40px; }
.dash.is-tabbed .dash-panel { display: none; margin-top: 0; animation: dashIn .22s ease; }
.dash.is-tabbed .dash-panel.is-on { display: block; }
@keyframes dashIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dash.is-tabbed .dash-panel { animation: none; } }
.dash-panel > .card, .dash-panel > .grid-2, .dash-panel > .remote-grid, .dash-panel > .danger-zone { margin-bottom: 22px; }
.dash-panel > .grid-2 + .card { margin-top: 0; }
.dash-eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--red-light); }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { margin-bottom: 4px; }
.dash-head p { margin: 0; }
.dash-panel .a-alert { margin-bottom: 14px; }
.dash-panel .a-alert span { flex: 1; }
.dash-panel div.a-alert:hover { transform: none; }
.dash-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.kpi-text { font-size: 1.25rem !important; line-height: 1.3; padding: 6px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.dash-grid > .card { margin-bottom: 0; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* Mise en route */
.dash-progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-bottom: 8px; }
.dash-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red-dark), var(--red-light)); }
.dash-checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dash-checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--border); }
.dash-checklist li.is-done { color: var(--muted); }
.dash-check { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; color: var(--red-light); background: rgba(229, 57, 69, .12); }
.is-done .dash-check { color: var(--green); background: rgba(39, 199, 129, .14); }
.dash-check .i { width: 15px; height: 15px; }

/* Accès rapides */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick a { display: grid; justify-items: start; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text); font-weight: 600; font-size: .9rem; transition: border-color .15s, background .15s, transform .15s; }
.quick a .i { width: 20px; height: 20px; color: var(--red-light); }
.quick a:hover { text-decoration: none; border-color: rgba(229, 57, 69, .45); background: rgba(229, 57, 69, .05); transform: translateY(-2px); }

/* Activité récente */
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.feed li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 4px; position: relative; }
.feed li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: -8px; width: 1px; background: var(--border); }
.feed b { display: block; font-size: .93rem; font-weight: 600; }
.feed small { color: var(--muted); font-size: .8rem; }
.tl-ico { --tc: var(--muted); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.tl-ico .i { width: 16px; height: 16px; }
.tl-green .tl-ico { --tc: var(--green); }
.tl-orange .tl-ico { --tc: var(--orange); }
.tl-red .tl-ico { --tc: var(--red-light); }

/* États vides, abonnement, appareil */
.empty { display: grid; justify-items: start; gap: 12px; padding: 18px; border-radius: 16px; border: 1px dashed var(--border); background: rgba(255, 255, 255, .02); }
.empty p { margin: 0; color: var(--muted); }
.empty p b { color: var(--text); }
.locked-ico.ok { color: var(--green); background: rgba(39, 199, 129, .12); }
.sub-summary { --pc: #a3a9b7; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--pc) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 12%, transparent), transparent 70%); }
.sub-summary.plan-pro { --pc: var(--red-light); }
.sub-summary.plan-ultimate { --pc: #f5c451; }
.sub-summary p { margin: 8px 0 0; }
.sub-price b { font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; }
.sub-price span { color: var(--muted); margin-left: 4px; }
.dash-device { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 22px; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, #161a24, #11141c); }
.dash-device .stat-ico { margin: 0; }
.dash-device > div { flex: 1; min-width: 0; }
.dash-device b, .dash-device small { display: block; }
.dash-panel .map-head .card-title { margin-bottom: 4px; }

@media (max-width: 960px) {
    .dash { grid-template-columns: 1fr; }
    .dash-nav { position: sticky; top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; padding: 6px; border-radius: 14px; scrollbar-width: none; }
    .dash-nav::-webkit-scrollbar { display: none; }
    .dash-nav .admin-nav-head, .dash-nav .dash-plan, .dash-nav .admin-nav-sep { display: none; }
    .dash-nav a { white-space: nowrap; padding: 9px 12px; }
}

/* Espace client : plusieurs téléphones, alertes lues */
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head-row .card-title { margin-bottom: 0; }
.card-head-row .small .i { width: 14px; height: 14px; vertical-align: -2px; color: var(--green); }
.kpi-of { font-size: 1.1rem; color: var(--muted); font-weight: 700; }
.slots { display: flex; gap: 6px; }
.slots i { width: 26px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.slots i.on { background: linear-gradient(90deg, var(--red-dark), var(--red-light)); }
.phones { display: grid; gap: 10px; margin-bottom: 12px; }
.phone-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.phone-row.is-off { border-style: dashed; opacity: .75; }
.phone-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: var(--red-light); background: rgba(229, 57, 69, .12); }
.phone-info { flex: 1; min-width: 180px; }
.phone-info b, .phone-info small { display: block; }
.phone-info small { color: var(--muted); }
.add-phone { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px dashed rgba(39, 199, 129, .4); background: rgba(39, 199, 129, .05); margin-bottom: 4px; }
.add-phone p { margin: 0; color: var(--muted); }
.add-phone p b { color: var(--text); }
.phone-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.phone-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--muted); font-weight: 600; }
.phone-tabs a .i { width: 16px; height: 16px; }
.phone-tabs a:hover { text-decoration: none; color: var(--text); border-color: #3a4054; }
.phone-tabs a.on { color: var(--text); border-color: var(--red); background: rgba(229, 57, 69, .1); box-shadow: 0 0 0 3px rgba(229, 57, 69, .12); }
tr.is-unread td { background: rgba(229, 57, 69, .05); font-weight: 600; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-light); margin-right: 8px; box-shadow: 0 0 0 3px rgba(229, 57, 69, .2); vertical-align: 1px; }
.l-plan-devices { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.l-plan-devices .i { width: 16px; height: 16px; color: var(--red-light); flex: 0 0 auto; }
.l-plan-devices b { color: var(--text); }

/* Espace client : pleine largeur de l'écran */
.container.page-wide { max-width: 2200px; padding-left: clamp(16px, 2vw, 40px); padding-right: clamp(16px, 2vw, 40px); }
.page-wide .dash { grid-template-columns: 290px minmax(0, 1fr); gap: 32px; }
@media (max-width: 960px) { .page-wide .dash { grid-template-columns: 1fr; } }

/* ---------- Clés de licence floutées ---------- */
.secret { filter: blur(7px); cursor: pointer; user-select: none; transition: filter .25s ease; border-radius: 6px; outline-offset: 4px; }
.secret:hover, .secret:focus-visible { filter: blur(4px); }
.secret.is-shown { filter: none; user-select: text; cursor: text; }
.license-key .secret { font-family: ui-monospace, Consolas, monospace; font-size: clamp(1rem, 2.6vw, 1.3rem); font-weight: 800; letter-spacing: .1em; color: #fff; text-shadow: 0 0 18px rgba(229, 57, 69, .45); }
.license-key .lk-actions { display: flex; gap: 8px; }
.secret.mono { font-family: ui-monospace, Consolas, monospace; }
@media print { .secret { filter: blur(7px) !important; } }

/* ---------- Menu latéral de l'espace client ---------- */
.dash-profile {
    display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(229, 57, 69, .12), rgba(255, 255, 255, .02)); border: 1px solid var(--border);
}
.dash-profile .admin-avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1rem; box-shadow: 0 6px 18px rgba(229, 57, 69, .35); }
.dash-profile .dash-who b { font-size: 1rem; }
.dash-profile .dash-who small { color: var(--muted); font-size: .8rem; }
.dash-plan-card { --pc: var(--muted); padding: 12px 14px; margin-bottom: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--pc); }
.dash-plan-card.plan-pro { --pc: var(--red-light); }
.dash-plan-card.plan-ultimate { --pc: #f5c451; }
.dash-plan-card.is-off { --pc: var(--muted-2); }
.dpc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dpc-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); font-weight: 800; }
.dpc-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.dpc-meta b { color: var(--text); font-weight: 700; }
.dpc-bar { height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dpc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--pc); }
.dpc-cta { display: block; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--red-light); }
.admin-nav a.dpc-cta { display: block; padding: 0; margin-top: 10px; border-radius: 0; background: none; box-shadow: none; color: var(--red-light); font-size: .82rem; }
.admin-nav a.dpc-cta:hover { background: none; text-decoration: underline; }
@media (max-width: 860px) { .dash-nav .dash-profile, .dash-nav .dash-plan-card { display: none; } }

/* ---------- Menu latéral de l'administration (même style que l'espace client) ---------- */
.dash-plan-card.plan-admin { --pc: var(--red); }
.plan-badge.plan-admin { --pc: var(--red-light); }
.dpc-meta b.dpc-warn { color: var(--orange); }
.admin-nav .dash-profile .dash-who { min-width: 0; }
.admin-nav .dash-profile .dash-who b, .admin-nav .dash-profile .dash-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .admin-nav .dash-profile, .admin-nav .dash-plan-card { display: none; } }

/* ---------- Jauge de batterie + état d'alimentation ---------- */
.batt { --bc: var(--green); display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.batt-ok { --bc: var(--green); }
.batt-mid { --bc: var(--orange); }
.batt-low { --bc: var(--red-light); }
.batt-charge { --bc: #42c0ff; }
.batt-body { position: relative; width: 30px; height: 15px; border: 1.5px solid var(--bc); border-radius: 4px; padding: 1.5px; }
.batt-body::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 2.5px; height: 6px; border-radius: 0 2px 2px 0; background: var(--bc); }
.batt-body i { display: block; height: 100%; min-width: 2px; border-radius: 1.5px; background: var(--bc); transition: width .4s ease; }
.batt b { color: var(--bc); }
.batt-sm { font-size: .76rem; gap: 5px; }
.batt-sm .batt-body { width: 24px; height: 12px; }
.map-link { display: inline-flex; align-items: center; gap: 4px; }
.map-link .i { font-size: 15px; }

/* Carte en iframe OpenStreetMap (rendu fiable, directement dans le bloc) */
iframe.map { display: block; width: 100%; border: 1px solid var(--border); }

.batt-unknown { --bc: var(--muted-2); color: var(--muted); }
.batt-unknown b { color: var(--muted); }

.warn-text { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--orange); font-size: .8rem; }
.warn-text .i { font-size: 15px; }

/* ---------- Infos générales du téléphone ---------- */
.dev-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-device + .dev-specs { margin: -6px 0 16px; }
.dev-spec { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.dev-spec em { font-style: normal; font-size: .9em; }

/* Formulaire d'alerte plein écran (espace client) */
.alert-form { display: flex; flex-direction: column; gap: 10px; }
.alert-form textarea { width: 100%; resize: vertical; }
.alert-form .btn { align-self: flex-start; }
/* =====================================================================
   RESPONSIVE — durcissement tous mobiles (jusqu'à 320 px de large)
   Ajouts additifs : ne touchent pas au design existant, comblent les
   écarts sur les petits écrans (iPhone SE, Galaxy S anciens, etc.).
   ===================================================================== */

/* 1. Garde-fous : aucun débordement horizontal quelle que soit la largeur */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }               /* clip (pas hidden) => le header sticky fonctionne */
img, svg, video, iframe, canvas { max-width: 100%; }
.table-wrap { -webkit-overflow-scrolling: touch; }
pre, code, .mono { overflow-wrap: anywhere; word-break: break-word; }
.license-key code, .license-key .secret { overflow-wrap: anywhere; word-break: break-all; }
.msg-body, .check-row small, .facts dd { overflow-wrap: anywhere; }

/* 2. Tablettes & grands mobiles ≤ 720 px */
@media (max-width: 720px) {
    h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .page { padding-top: 22px; padding-bottom: 40px; }
    .card { padding: 20px; border-radius: 18px; }
    .page-head { margin-bottom: 20px; padding-bottom: 16px; }
    .auth-card { margin: 18px auto; padding: 26px 20px; border-radius: 22px; }
    th, td { padding: 10px 8px; font-size: .9rem; }
    .toolbar { gap: 8px; }
    .toolbar .search { max-width: none; width: 100%; }
    .search input, .form-row input, .form-row select { min-width: 0; }
    .sort { width: 100%; }
    .sort select { flex: 1; }
}

/* 3. Mobiles courants ≤ 480 px */
@media (max-width: 480px) {
    .topbar-inner { height: 58px; }
    .brand { font-size: 1.05rem; }
    .nav { top: 58px; }
    .nav a, .nav .link { padding: 14px 2px; }          /* cibles tactiles ≥ 44 px */
    .btn-lg { padding: 14px 20px; font-size: 1rem; }
    .hero-cta, .hero-cta .btn { width: 100%; }
    .hero-cta { flex-direction: column; }
    .f-cta { padding: 20px 18px; text-align: center; }
    .f-cta h3 { font-size: 1.2rem; }
    .f-cta .btn { width: 100%; }
    .license-key { padding: 14px; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { border-bottom: 0; padding-bottom: 2px; background: none; }
    .price span { font-size: 2.8rem; }
    .msg { max-width: 100%; }
    .dash-device { flex-wrap: wrap; }
    .page-head .actions { width: 100%; }
    /* iOS : empêcher le zoom auto au focus (champ < 16 px) */
    input, select, textarea { font-size: 16px; }
}

/* 4. Petits mobiles ≤ 380 px (iPhone SE, anciens Galaxy, Pixel compacts) */
@media (max-width: 380px) {
    body { font-size: 15px; }
    .container { padding-left: 14px; padding-right: 14px; }
    .card { padding: 16px; }
    .card-title { font-size: 1.05rem; gap: 10px; }
    .card-title .ico, .stat-ico { width: 34px; height: 34px; }
    .btn { padding: 11px 14px; font-size: .95rem; }
    .btn-sm { padding: 8px 11px; }
    .quick { grid-template-columns: 1fr; }
    .stat b, .kpi b { font-size: 1.55rem; }
    .sub-price b { font-size: 1.8rem; }
    .remote-btn { padding: 14px; }
    .phone-row { gap: 10px; }
    .phone-info { min-width: 140px; }
}
