/* ══════════════════════════════════════════════════════════════════════════
   alibidev.fr — charte Alibi V3 : gris foncé, plat, carré.
   Le dégradé (violet → rose → orange, sans cyan : choix de Dorian) ne sert que d'accent :
   titres, bouton principal, carte en vedette. Pas de backdrop-filter.
   © by AlibiDev
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  /* Palette d'alibirp.com, à l'identique (lib/defaults.js du site vitrine V3) :
     même famille de couleurs sur tous les sites Alibi. Les FORMES, elles,
     restent propres à AlibiDev (coins à peine arrondis, cartes plates). */
  --cyan: #22d3ee; --blue: #3b5bff; --violet: #7c3aed; --magenta: #c026d3;
  --rose: #ff2d6f; --orange: #ff7a1a; --yellow: #ffc93c;
  --bg: #05030c; --bg-soft: #0b0718;
  --surface: #0c0916; --surface-2: #141021; --bord: rgba(255, 255, 255, .09);
  --texte: #ffffff; --doux: rgba(233, 228, 255, .66);
  /* Accent = rose Alibi. Pas de cyan ni de bleu (Dorian, 2026-10-02). */
  --grad: linear-gradient(100deg, var(--violet), var(--magenta), var(--rose), var(--orange), var(--yellow));
  --grad-court: linear-gradient(100deg, var(--rose), var(--orange));
  --ok: #34d399; --err: #ff5c7a;
  --r: 4px;
  --w: 1160px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--texte);
  background:
    radial-gradient(80% 42% at 78% 0%, rgba(192, 38, 211, .10), transparent 62%),
    radial-gradient(70% 38% at 14% 4%, rgba(59, 91, 255, .09), transparent 62%),
    linear-gradient(180deg, rgba(255, 122, 26, .05) 0%, transparent 34%) var(--bg);
  background-repeat: no-repeat;
  line-height: 1.6; font-size: 1rem; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
::selection { background: var(--rose); color: #fff; }

html { scrollbar-color: #2a2340 var(--bg); }

.skip { position: fixed; top: -80px; left: 1rem; z-index: 50; padding: .6rem 1rem; background: var(--rose); color: #fff; border-radius: var(--r); }
.skip:focus { top: 1rem; }

.w { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.etroit { width: min(760px, 100% - 32px); }
.centre { text-align: center; }
.doux { color: var(--doux); }
.petit { font-size: .85rem; }
.err { color: var(--err); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; margin: 2.6rem 0 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.sur { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--rose); }
.sur + h2 { margin-top: .4rem; }
.intro { max-width: 640px; margin-bottom: 1.4rem; }

/* ── Haut et bas de page ─────────────────────────────────────────────────── */
.haut { position: sticky; top: 0; z-index: 20; background: rgba(5, 3, 12, .92); border-bottom: 1px solid var(--bord); }
.haut-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.logo img { height: 34px; width: auto; }
.bas .logo img { height: 40px; }
.adm-menu .logo img { height: 28px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--doux); font-weight: 500; }
.nav a:hover { color: var(--texte); }
.av { border-radius: 50%; }

.bas { margin-top: 4rem; border-top: 1px solid var(--bord); background: var(--bg-soft); padding: 2.5rem 0 1.5rem; }
.bas-in { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.bas-in p { margin-top: .5rem; }
.bas-liens { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-content: flex-start; }
.bas-liens a { color: var(--doux); text-decoration: none; }
.bas-liens a:hover { color: var(--texte); }
.mention { margin-top: 2rem; font-size: .72rem; color: var(--doux); letter-spacing: .02em; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
/* Mêmes couleurs que les boutons d'alibirp.com (rose → orange, halo rose,
   reflet au survol, légère montée). Seule la forme diffère : coins à peine
   arrondis au lieu de la pilule. */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--rbtn, 10px); border: 0;
  background: var(--grad-court); color: #fff;
  font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(255, 45, 111, .55);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1);
}
.btn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
  translate: -120% 0; transition: translate .7s cubic-bezier(.22, 1, .36, 1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 45, 111, .7); }
.btn:hover::after { translate: 120% 0; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--bord); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn-danger { background: #7f1d1d; box-shadow: none; }
.carte-bas .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::after { transition: none; } }
.lien { color: var(--rose); text-decoration: none; font-weight: 600; }
.lien:hover { text-decoration: underline; }

.flash { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--r); border-left: 3px solid var(--ok); background: var(--surface); }
.flash-err { border-left-color: var(--err); }

/* ── Sections ────────────────────────────────────────────────────────────── */
.sec { padding: 3.5rem 0 0; }
[id] { scroll-margin-top: 80px; } /* sinon l'ancre passe sous l'en-tête collant */
.sec-haut { padding-top: 3rem; }
.hero { padding: 4.5rem 0 2.5rem; border-bottom: 1px solid var(--bord); text-align: center; }
/* Titre centré dans l'axe de la bannière : aligné à gauche, il laissait un grand vide à droite. */
.hero h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); line-height: 1.08; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-eti { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem; padding: .35rem .9rem; border: 1px solid rgba(255, 45, 111, .35); border-radius: 999px; background: rgba(255, 45, 111, .08); color: #ff8fb0; font-size: .85rem; font-weight: 600; }
.hero-eti::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.hero .hero-sous { margin-inline: auto; }
.hero .hero-btns { justify-content: center; }
.hero-sous { max-width: 620px; margin-top: 1.2rem; font-size: 1.15rem; color: var(--doux); }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.preuve { margin-top: 2.2rem; color: var(--doux); font-size: .9rem; }
.preuve::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--ok); }

/* Vitrine sous le titre : trois vraies captures des démos, en fenêtres de navigateur. */
.vitrine { position: relative; display: block; aspect-ratio: 2.3 / 1; margin: 2.2rem 0 1.4rem; perspective: 1600px; text-decoration: none; }
.vitrine::before { content: ''; position: absolute; inset: 12% 18% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 45, 111, .45), rgba(255, 122, 26, .18) 60%, transparent); filter: blur(40px); }
.v-fen { position: absolute; top: 12%; width: 54%; border-radius: 12px; overflow: hidden; border: 1px solid var(--bord); background: var(--bg-soft); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .85); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.v-fen img { display: block; width: 100%; height: auto; }
.v-barre { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #120e1f; border-bottom: 1px solid var(--bord); font-size: 11px; color: var(--doux); }
.v-barre i { width: 9px; height: 9px; border-radius: 50%; background: #2a2340; }
.v-barre i:first-child { background: #ff2d6f; }
.v-barre span { margin: 0 auto; padding-right: 42px; }
.v-gauche { left: 0; transform: rotateY(16deg) scale(.82); transform-origin: left center; opacity: .8; }
.v-droite { right: 0; transform: rotateY(-16deg) scale(.82); transform-origin: right center; opacity: .8; }
.v-centre { top: 2%; left: 23%; z-index: 2; border-color: rgba(255, 45, 111, .45); box-shadow: 0 40px 90px -28px rgba(255, 45, 111, .55), 0 0 0 1px rgba(255, 45, 111, .15); animation: vFlotte 7s ease-in-out infinite; }
.v-badge { position: absolute; z-index: 3; left: 50%; bottom: 2%; transform: translateX(-50%); padding: .55rem 1.1rem; border-radius: 10px; background: var(--grad-court); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 12px 30px -10px rgba(255, 45, 111, .7); white-space: nowrap; }
.vitrine:hover .v-gauche { transform: rotateY(10deg) scale(.84) translateX(-2%); }
.vitrine:hover .v-droite { transform: rotateY(-10deg) scale(.84) translateX(2%); }
.vitrine:hover .v-centre { animation-play-state: paused; transform: translateY(-8px); }
@keyframes vFlotte { 50% { transform: translateY(-8px); } }
@media (max-width: 700px) {
  .vitrine { aspect-ratio: 1.45 / 1; }
  .v-gauche, .v-droite { display: none; }
  .v-centre { left: 0; width: 100%; top: 0; }
  .v-badge { display: none; } /* sur téléphone il masquait la capture, et le bouton existe juste en dessous */
  .vitrine { aspect-ratio: auto; height: auto; }
  .v-centre { position: relative; }
}
@media (prefers-reduced-motion: reduce) { .v-centre { animation: none; } .v-fen { transition: none; } }

.grille-4 { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--bord); border: 1px solid var(--bord); }
.arg { background: var(--surface); padding: 1.4rem; }
.arg h3 { margin-bottom: .4rem; }
.grille-2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.appel { padding-bottom: 1rem; }
.appel .btn { margin-top: 1.2rem; }

/* ── Cartes d'offre ──────────────────────────────────────────────────────── */
.grille-cartes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.carte {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: 1.5rem; background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)); border: 1px solid var(--bord); border-radius: var(--r);
}
.carte-vedette { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-court) border-box; box-shadow: 0 20px 50px -24px rgba(255, 45, 111, .45); }
.badge { position: absolute; top: -.7rem; left: 1.2rem; padding: .15rem .6rem; border-radius: var(--r); background: var(--grad-court); font-size: .75rem; font-weight: 700; }
.prix { font-size: 1.9rem; font-weight: 800; }
.prix-texte { font-size: 1.25rem; }
.prix small { font-size: .85rem; font-weight: 500; color: var(--doux); }
.eco { font-size: .85rem; color: var(--ok); margin-top: -.5rem; }
.carte-bas { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; padding-top: .5rem; }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--bord); font-size: .7rem; font-weight: 600; color: var(--doux); vertical-align: middle; }

.coches { list-style: none; display: grid; gap: .45rem; font-size: .93rem; }
.coches li { position: relative; padding-left: 1.5rem; }
.coches li::before { content: '✓'; position: absolute; left: 0; color: var(--rose); font-weight: 800; }
.coches.grandes { font-size: 1.05rem; gap: .8rem; }

/* Mensuel / annuel : les deux prix sont dans la page, la classe choisit. */
.p-an { display: none; }
body.annuel .p-an { display: inline; }
body.annuel a.p-an { display: inline-flex; }
body.annuel .p-mois { display: none; }
.bascule { display: inline-flex; margin: 0 0 1.6rem; padding: 3px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r); }
.bascule button { padding: .5rem 1rem; border: 0; border-radius: var(--r); background: none; color: var(--doux); font-weight: 600; }
.bascule button[aria-pressed="true"] { background: var(--surface-2); color: var(--texte); }

.coches li.plus { padding-left: 0; }
.coches li.plus::before { content: none; }
.rubriques { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rubriques h3 { margin-bottom: .7rem; color: var(--rose); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.produit .carte { position: sticky; top: 84px; }
.option-achat { padding: .8rem 1rem; border: 1px solid var(--bord); border-radius: var(--r); background: rgba(255,255,255,.03); }
.sous-titre { font-size: .55em; font-weight: 500; }
.demo-grille { margin-top: 2rem; }
.produit { display: grid; gap: 2rem; grid-template-columns: 1fr minmax(260px, 340px); align-items: start; }

/* ── Tableaux ────────────────────────────────────────────────────────────── */
.tableau-defile { overflow-x: auto; }
.comparatif, .tab { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--bord); }
.comparatif th, .comparatif td, .tab th, .tab td { padding: .8rem 1rem; border-bottom: 1px solid var(--bord); text-align: left; }
.comparatif td, .comparatif thead th { text-align: center; }
.comparatif thead th.vedette { color: var(--rose); }
.comparatif .prix { font-size: 1.15rem; }
.oui { color: var(--ok); font-weight: 800; }
.non { color: var(--doux); }
.tab th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.tab tr.eteint td { opacity: .5; }

/* ── FAQ, témoignages, pages légales ─────────────────────────────────────── */
.faq { border-bottom: 1px solid var(--bord); }
.faq summary { padding: 1rem 0; font-weight: 600; cursor: pointer; }
.faq p { padding: 0 0 1rem; color: var(--doux); }
.temoin { padding: 1.4rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r); }
.temoin footer { margin-top: .8rem; color: var(--doux); font-size: .9rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal ul { margin-bottom: .8rem; color: rgba(233, 228, 255, .82); }
.legal ul { padding-left: 1.2rem; }
.encadre { padding: .8rem 1rem; border-left: 3px solid var(--orange); background: var(--surface); }

/* ── Configurateur ───────────────────────────────────────────────────────── */
.conf { display: grid; gap: 1.5rem; grid-template-columns: minmax(240px, 320px) 1fr; align-items: start; }
.conf-couleurs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.apercu {
  --c1: #ff2d6f; --c2: #ff7a1a;
  display: grid; grid-template-columns: 190px 1fr; min-height: 320px;
  border: 1px solid var(--bord); border-radius: var(--r); overflow: hidden; background: var(--bg-soft); font-size: .85rem;
}
.ap-side { display: flex; flex-direction: column; gap: .2rem; padding: 1rem .7rem; background: var(--bg); border-right: 1px solid var(--bord); }
.ap-marque { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; min-width: 0; }
.ap-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-logo { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); font-weight: 800; }
.ap-logo img { width: 100%; height: 100%; object-fit: cover; }
.ap-item { padding: .45rem .6rem; border-radius: var(--r); color: var(--doux); }
.ap-actif { background: color-mix(in srgb, var(--c1) 22%, transparent); color: #fff; box-shadow: inset 3px 0 var(--c1); }
.ap-main { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.ap-titre { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-weight: 700; font-size: 1rem; }
.ap-pill { padding: .1rem .5rem; border-radius: var(--r); background: var(--c2); font-size: .72rem; }
.ap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ap-stats div { padding: .7rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--r); }
.ap-stats b { display: block; font-size: 1.2rem; color: var(--c1); }
.ap-stats small { color: var(--doux); }
.ap-ligne { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; background: var(--surface); border-radius: var(--r); }
.ap-ligne span:first-child { flex: 1; min-width: 0; }
.ap-score { color: var(--doux); }
.ap-btn { padding: .2rem .6rem; border-radius: var(--r); background: var(--c1); font-size: .75rem; font-weight: 600; }

/* ── Formulaires ─────────────────────────────────────────────────────────── */
.formulaire { display: grid; gap: 1rem; max-width: 520px; }
.formulaire.large { max-width: 760px; }
.formulaire label, .conf-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.conf-form { display: grid; gap: 1rem; }
input, select, textarea {
  width: 100%; padding: .65rem .8rem; border-radius: var(--r); border: 1px solid var(--bord);
  background: var(--bg); color: var(--texte); font: inherit; font-weight: 400;
}
textarea { resize: vertical; }
input[type="color"] { height: 42px; padding: 3px; cursor: pointer; }
input[type="checkbox"] { width: auto; }
input[type="file"] { padding: .5rem; }
.formulaire label.case { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.case input { margin-top: .3rem; flex: none; }
.ligne { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
fieldset { border: 1px solid var(--bord); border-radius: var(--r); padding: .8rem 1rem; display: grid; gap: .4rem; }
legend { padding: 0 .4rem; font-weight: 600; font-size: .9rem; }
.champ-suffixe { display: flex; align-items: center; }
.champ-suffixe input { border-radius: var(--r) 0 0 var(--r); }
.champ-suffixe span { padding: .65rem .8rem; border: 1px solid var(--bord); border-left: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--surface-2); color: var(--doux); font-weight: 400; white-space: nowrap; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.recap { margin-bottom: 1.5rem; }
.liste { list-style: none; display: grid; gap: .6rem; margin: .4rem 0 1rem; }
.liste li { display: grid; gap: .1rem; }

/* ── Maintenance ─────────────────────────────────────────────────────────── */
.maintenance { min-height: 60vh; display: grid; place-items: center; }
.maintenance-logo { margin: 0 auto 2.5rem; height: auto; max-width: 100%; }
.maintenance .hero-sous { margin-inline: auto; }

/* ── Réglages du panel (Apparence, Bandeau, Réseaux) ───────────────────── */
.annonce { padding: .55rem 0; font-size: .9rem; font-weight: 600; text-align: center; background: var(--grad-court); color: #fff; }
.annonce a { margin-left: .4rem; color: #fff; text-decoration: underline; }
.annonce-sobre { background: var(--surface-2); color: var(--texte); border-bottom: 1px solid var(--bord); }
.annonce-sobre a { color: var(--rose); }
.annonce-alerte { background: #7f1d1d; }
.reseaux { display: flex; gap: .7rem; margin-top: 1rem; }
.reseaux a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--bord); color: var(--doux); transition: color .2s, border-color .2s; }
.reseaux a:hover { color: #fff; border-color: var(--rose); }
body.calme .v-centre { animation: none; }
body.calme .btn::after { display: none; }
body.calme .btn:hover { transform: none; }
body.titre-uni .hero h1 { background: none; color: var(--texte); }
code { padding: .05rem .35rem; border-radius: var(--r); background: var(--surface-2); font-size: .85em; }

/* ── Espace client (/compte) ─────────────────────────────────────────────── */
.espace { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.esp-menu { position: sticky; top: 84px; display: grid; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; }
.esp-moi { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bord); min-width: 0; }
.esp-moi img { border-radius: 50%; flex: none; }
.esp-moi div { display: grid; min-width: 0; line-height: 1.3; }
.esp-moi b, .esp-moi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-moi small { color: var(--doux); font-size: .8rem; }
.esp-menu nav { display: grid; gap: 2px; }
.esp-menu nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 10px; color: var(--doux); text-decoration: none; font-weight: 500; }
.esp-menu nav a:hover { background: var(--surface-2); color: var(--texte); }
.esp-menu nav a.actif { background: linear-gradient(90deg, rgba(255, 45, 111, .16), rgba(255, 45, 111, .03)); color: #fff; box-shadow: inset 3px 0 var(--rose); }
.esp-menu nav a.actif .ico { color: var(--rose); }
.esp-menu .esp-sortir { margin-top: .6rem; border-top: 1px solid var(--bord); border-radius: 0 0 10px 10px; padding-top: .9rem; }
.ico { flex: none; }
.esp-main { display: grid; gap: 1.3rem; min-width: 0; }
.esp-tete h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.esp-tete p { margin-top: .3rem; }
.esp-bloc { padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; display: grid; gap: 1rem; }
.esp-bloc-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.esp-bloc-tete h2 { margin: 0; font-size: 1.1rem; }
.esp-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.esp-stats-2 { grid-template-columns: repeat(auto-fit, minmax(180px, 260px)); }
.esp-stat { display: grid; gap: .2rem; padding: 1.1rem 1.2rem; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); border: 1px solid var(--bord); border-radius: 14px; min-width: 0; }
.esp-stat small { color: var(--doux); font-size: .8rem; }
.esp-stat b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.esp-stat .esp-stat-txt { font-size: 1.05rem; overflow-wrap: anywhere; }
.esp-stat span { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.esp-alerte { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255, 201, 60, .06); border: 1px solid rgba(255, 201, 60, .28); }
.esp-alerte.err { background: rgba(255, 92, 122, .07); border-color: rgba(255, 92, 122, .35); }
.esp-alerte b { width: 100%; }
.esp-alerte span { flex: 1; min-width: 220px; color: var(--doux); }
.esp-alerte form { display: contents; }
.esp-liste { display: grid; }
.esp-ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--bord); }
.esp-ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.esp-ligne:first-child { padding-top: 0; }
.esp-ligne > div { display: grid; gap: .1rem; min-width: 0; }
.esp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.esp-actions form { display: contents; }
.esp-raccourcis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.esp-raccourcis a { display: flex; gap: .8rem; align-items: center; padding: 1rem; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface); text-decoration: none; min-width: 0; }
.esp-raccourcis a:hover { border-color: rgba(255, 45, 111, .45); }
.esp-raccourcis .ico { color: var(--rose); }
.esp-raccourcis span { display: grid; min-width: 0; }
.esp-raccourcis small { color: var(--doux); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--bord); color: var(--doux); }
.pill.ok { background: rgba(52, 211, 153, .1); color: #6ee7b7; border-color: rgba(52, 211, 153, .28); }
.pill.off { background: rgba(255, 92, 122, .08); color: #ff9db0; border-color: rgba(255, 92, 122, .3); }
.pill.warn { background: rgba(255, 201, 60, .1); color: #ffd877; border-color: rgba(255, 201, 60, .3); }
.pill.acc { background: rgba(255, 45, 111, .12); color: #ff8fb0; border-color: rgba(255, 45, 111, .3); }
.btn-sm { padding: .4rem .8rem; font-size: .82rem; }
.esp-abo { padding: 1.3rem 1.4rem; display: grid; gap: 1rem; border-radius: 14px; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, rgba(255, 45, 111, .5), rgba(255, 122, 26, .2), transparent 60%) border-box; }
.esp-abo-tete { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.esp-abo-tete h3 { font-size: 1.25rem; }
.esp-abo-infos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: .9rem 1rem; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--bord); }
.esp-abo-infos div { display: grid; }
.esp-abo-infos small { color: var(--doux); font-size: .78rem; }
.esp-inclus { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.esp-tab th, .esp-tab td { white-space: nowrap; }
.esp-tab td:nth-child(3) { white-space: normal; min-width: 180px; }
.esp-tab-actions { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; }
.esp-carte { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.esp-carte > div { flex: 1; display: grid; min-width: 180px; }
.esp-carte form { display: contents; }
.esp-cb { display: grid; place-items: center; min-width: 64px; height: 42px; padding: 0 .6rem; border-radius: 8px; background: linear-gradient(135deg, #2a2340, #120e1f); border: 1px solid var(--bord); font-weight: 800; font-size: .8rem; letter-spacing: .03em; }
.esp-av { border-radius: 50%; }
.esp-form small { font-weight: 400; font-size: .8rem; }
.esp-form label { align-content: start; }
.esp-form .btn { justify-self: start; }
[hidden] { display: none !important; }
.esp-choix { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.esp-choix .case input { width: auto; accent-color: var(--rose); }
.esp-etapes { list-style: none; display: grid; counter-reset: etape; }
.esp-etapes li { position: relative; display: grid; padding: 0 0 1.1rem 2.6rem; counter-increment: etape; }
.esp-etapes li::before { content: counter(etape); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--bord); font-size: .8rem; font-weight: 700; color: var(--doux); }
.esp-etapes li::after { content: ''; position: absolute; left: .87rem; top: 1.8rem; bottom: .1rem; width: 2px; background: var(--bord); }
.esp-etapes li:last-child { padding-bottom: 0; }
.esp-etapes li:last-child::after { display: none; }
.esp-etapes li.fait::before { content: '✓'; background: var(--rose); border-color: var(--rose); color: #fff; }
.esp-panel { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); align-items: start; }
.esp-apercu { --c1: #ff2d6f; --c2: #ff7a1a; position: sticky; top: 90px; border-radius: 12px; overflow: hidden; border: 1px solid var(--bord); background: var(--bg-soft); }
.esp-ap-barre { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; background: var(--bg); border-bottom: 1px solid var(--bord); min-width: 0; }
.esp-ap-logo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); font-weight: 800; }
.esp-ap-logo img { width: 100%; height: 100%; object-fit: cover; }
.esp-ap-logo i { font-style: normal; }
.esp-ap-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-ap-corps { display: grid; gap: .8rem; padding: 1.1rem 1rem 1.3rem; justify-items: start; }
.esp-ap-url { font-size: .8rem; color: var(--doux); }
.esp-ap-btn { padding: .5rem .9rem; border-radius: 9px; background: linear-gradient(100deg, var(--c1), var(--c2)); font-weight: 700; font-size: .85rem; }
.esp-ap-pill { padding: .1rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--c1) 20%, transparent); color: var(--c1); font-size: .75rem; font-weight: 700; }
@media (max-width: 900px) {
  .espace { grid-template-columns: 1fr; }
  .esp-menu { position: static; }
  .esp-menu nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .esp-menu .esp-sortir { margin-top: 0; border-top: 0; padding-top: .6rem; border-radius: 10px; }
  .esp-panel { grid-template-columns: 1fr; }
  .esp-apercu { position: static; }
}

/* ── Commande (/commander/:id) et paiement intégré ───────────────────────── */
.cmd-titre { margin: .3rem 0 1.6rem; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.cmd-gauche { display: grid; gap: 1.2rem; min-width: 0; }
.cmd-bloc { display: grid; gap: 1rem; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; }
.cmd-bloc h2 { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: 1.1rem; }
.cmd-num { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--grad-court); color: #fff; font-size: .82rem; font-weight: 800; flex: none; }
.cmd-offre { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cmd-offre h3 { font-size: 1.3rem; }
.cmd-offre-prix { display: grid; justify-items: end; font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.cmd-offre-prix small { font-size: .8rem; font-weight: 500; color: var(--doux); }
.cmd-points { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); font-size: .9rem; }
.cmd-periodes { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cmd-periode { display: grid; gap: .15rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--bord); background: var(--bg-soft); text-decoration: none; transition: border-color .15s; }
.cmd-periode:hover { border-color: rgba(255, 255, 255, .25); }
.cmd-periode.actif { border-color: var(--rose); background: rgba(255, 45, 111, .07); box-shadow: 0 0 0 3px rgba(255, 45, 111, .15); }
.cmd-periode b { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cmd-periode > span { font-size: 1.15rem; font-weight: 700; }
.cmd-options { display: grid; gap: .7rem; }
.cmd-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid var(--bord); background: var(--bg-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.cmd-option:hover { border-color: rgba(255, 255, 255, .25); }
.cmd-option input { position: absolute; opacity: 0; pointer-events: none; }
.cmd-option-case { width: 22px; height: 22px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.cmd-option-case::after { content: '✓'; font-size: .8rem; font-weight: 900; color: #fff; opacity: 0; }
.cmd-option:has(input:checked) { border-color: var(--rose); background: rgba(255, 45, 111, .07); }
.cmd-option input:checked + .cmd-option-case { background: var(--rose); border-color: var(--rose); }
.cmd-option input:checked + .cmd-option-case::after { opacity: 1; }
.cmd-option input:focus-visible + .cmd-option-case { outline: 2px solid var(--rose); outline-offset: 2px; }
.cmd-option-txt { display: grid; gap: .1rem; min-width: 0; }
.cmd-option-prix { display: grid; justify-items: end; font-weight: 700; white-space: nowrap; }
.cmd-option-prix small { font-weight: 500; color: var(--doux); font-size: .78rem; }
.cmd-moi { display: flex; align-items: center; gap: .8rem; }
.cmd-moi img { border-radius: 50%; }
.cmd-moi div, .cmd-factu { display: grid; min-width: 0; }
.cmd-factu { gap: .1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--bord); }
.cmd-factu .lien { justify-self: start; margin-top: .3rem; }
.cmd-recap { position: sticky; top: 84px; display: grid; gap: 1rem; padding: 1.5rem; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-court) border-box; box-shadow: 0 30px 70px -40px rgba(255, 45, 111, .6); }
.cmd-recap h2 { margin: 0; font-size: 1.15rem; }
.cmd-lignes { list-style: none; display: grid; gap: .7rem; }
.cmd-lignes li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.cmd-lignes li span { display: grid; min-width: 0; }
.cmd-lignes li small { font-size: .78rem; }
.cmd-lignes li b { white-space: nowrap; }
.cmd-lignes li[data-ligne] { animation: cmdLigne .25s ease; }
@keyframes cmdLigne { from { opacity: 0; transform: translateY(-4px); } }
.cmd-eco { padding: .55rem .8rem; border-radius: 10px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); color: #a7f3d0; font-size: .85rem; }
.cmd-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--bord); }
.cmd-total span { font-weight: 700; }
.cmd-total b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.cmd-essai { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .8rem 1rem; border-radius: 12px; background: rgba(255, 45, 111, .08); border: 1px solid rgba(255, 45, 111, .3); }
.cmd-essai b { font-size: 1.2rem; }
.cmd-essai small { grid-column: 1 / -1; }
.cmd-note { margin: 0; }
.cmd-cgv { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--doux); cursor: pointer; }
.cmd-cgv input { width: auto; margin-top: .2rem; accent-color: var(--rose); flex: none; }
.cmd-cgv a { color: var(--rose); }
.cmd-payer { width: 100%; padding: 1rem; font-size: 1.05rem; }
.cmd-garanties { list-style: none; display: grid; gap: .35rem; font-size: .78rem; color: var(--doux); }
.cmd-garanties li::before { content: '✓  '; color: var(--ok); font-weight: 800; }
.cmd-paiement { min-height: 420px; padding: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--bord); }
.cmd-garanties-bas { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1rem; }
.cmd-paiement-attente { display: grid; place-items: center; min-height: 380px; color: var(--doux); font-size: .95rem; }
@media (max-width: 900px) {
  .cmd { grid-template-columns: 1fr; }
  .cmd-recap { position: static; }
  .cmd-periodes { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cmd-option { grid-template-columns: auto 1fr; }
  .cmd-option-prix { grid-column: 2; justify-items: start; }
  .cmd-offre { flex-direction: column; }
  .cmd-offre-prix { justify-items: start; }
}

/* ── Espace client : mes services, demandes, historique ──────────────────── */
.esp-services { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.esp-service { display: grid; gap: .9rem; align-content: start; padding: 1.3rem 1.4rem; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface); }
.esp-service.eteint { opacity: .55; }
.esp-service h3 { font-size: 1.15rem; }
.esp-service-url code { font-size: .85rem; }
.esp-demandes-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.esp-demandes-actions form { display: contents; }
.esp-fils { display: grid; gap: .7rem; }
.esp-fil { border: 1px solid var(--bord); border-radius: 12px; background: var(--bg-soft); }
.esp-fil summary { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .85rem 1rem; cursor: pointer; }
.esp-fil summary small { margin-left: auto; }
.esp-msgs { display: grid; gap: .6rem; padding: 0 1rem 1rem; }
.esp-msg { justify-self: start; max-width: 85%; padding: .6rem .85rem; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--bord); }
.esp-msg.admin { justify-self: end; border-radius: 12px 12px 4px 12px; background: rgba(255, 45, 111, .1); border-color: rgba(255, 45, 111, .3); }
.esp-msg p { margin-top: .2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.esp-repondre { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: end; padding: 0 1rem 1rem; }
.esp-histo { list-style: none; display: grid; }
.esp-histo li { display: grid; gap: .1rem; padding: .7rem 0 .7rem 1.2rem; border-left: 2px solid var(--bord); position: relative; }
.esp-histo li::before { content: ''; position: absolute; left: -5px; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
@media (max-width: 560px) { .esp-repondre { grid-template-columns: 1fr; } .esp-msg { max-width: 100%; } }

/* ── Petits écrans ───────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav { display: none; }
  .haut-in > .btn { margin-left: auto; }
  .conf, .produit { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .apercu { grid-template-columns: 1fr; }
  .ap-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--bord); }
  .ap-marque { width: 100%; margin-bottom: .4rem; }
  .ap-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
