
/* =====================================================================
   1. VARIABLES (charte § 10.3)
   ===================================================================== */
:root {
  --cx-bg: #050a18;
  --cx-sky-1: #07102e; --cx-sky-2: #0c1140; --cx-sky-3: #190f4c;
  --cx-surface: #0d1530; --cx-surface-2: #151f42;
  --cx-glass: rgb(255 255 255 / 5.5%);
  --cx-glass-2: rgb(255 255 255 / 9%);
  --cx-panel: rgb(10 16 36 / 72%);
  --cx-dialog: rgb(9 15 34 / 94%);
  --cx-line: rgb(160 185 255 / 22%);
  --cx-line-strong: rgb(160 190 255 / 30%);
  --cx-field-line: rgb(160 190 255 / 55%);
  --cx-ink: #eaf0ff; --cx-muted: #9fb0d6; --cx-placeholder: #93a3cc;
  --cx-cyan: #5ad7ff; --cx-cyan-bright: #2dd4ff; --cx-blue: #4c8dff; --cx-violet: #8b6cff;
  --cx-on-action: #04122b; --cx-focus: #8fe3ff;
  --cx-action: linear-gradient(135deg, #2dd4ff, #4c8dff);
  --cx-action-hover: linear-gradient(135deg, #5fe0ff, #6fa3ff);
  --cx-green: #34e7a1; --cx-warn: #ffd37a; --cx-warn-ink: #ffe3a7;
  --cx-r-pill: 999px; --cx-r-field: 18px; --cx-r-card: 24px; --cx-r-dialog: 28px; --cx-r-panel: 32px;
  --cx-shadow-panel: 0 40px 100px rgb(0 0 10 / 60%), 0 0 80px rgb(76 141 255 / 16%), inset 0 1px 0 rgb(255 255 255 / 8%);
  --cx-shadow-action: 0 10px 30px rgb(76 141 255 / 40%);
  --cx-shadow-action-hover: 0 12px 40px rgb(76 141 255 / 60%);
  --cx-font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --cx-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

/* =====================================================================
   2. BASE
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cx-bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cx-bg);
  color: var(--cx-ink);
  font-family: var(--cx-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--cx-cyan); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, .mono { font-family: var(--cx-mono); font-size: .92em; }
code { padding: 1px 6px; border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-glass); color: var(--cx-cyan); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--cx-r-pill); background: var(--cx-surface-2); color: var(--cx-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* =====================================================================
   3. CIEL WEB LÉGER (CSS seulement : dégradé, nébuleuses, trois couches d'étoiles, deux filantes)
   ===================================================================== */
.cx-sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(160deg, var(--cx-sky-1) 0%, var(--cx-sky-2) 55%, var(--cx-sky-3) 100%); }
.cx-sky::before { position: absolute; inset: 0; content: ""; background:
  radial-gradient(circle at 6% -8%, rgb(63 208 255 / 26%), rgb(63 208 255 / 10%) 24%, transparent 46%),
  radial-gradient(circle at 104% -4%, rgb(139 108 255 / 30%), rgb(139 108 255 / 12%) 26%, transparent 48%),
  radial-gradient(circle at 38% 118%, rgb(76 141 255 / 26%), rgb(76 141 255 / 10%) 26%, transparent 48%); }
.cx-stars { position: absolute; inset: 0; background-repeat: repeat; }
.cx-stars.far { background-size: 520px 520px; opacity: .5; background-image: url("/assets/etoiles-loin.svg"); }
.cx-stars.mid { background-size: 380px 380px; opacity: .7; background-image: url("/assets/etoiles-milieu.svg"); }
.cx-stars.near { background-size: 760px 760px; opacity: .9; background-image: url("/assets/etoiles-proche.svg"); }
.cx-nova { position: absolute; top: 6vh; left: 0; width: 220px; height: 2px; border-radius: 2px; opacity: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 90%)); }
html[data-motion="on"] .cx-stars.mid { animation: cx-twinkle 7s ease-in-out infinite alternate; }
html[data-motion="on"] .cx-nova.a { animation: cx-nova 11s linear 2s infinite; }
html[data-motion="on"] .cx-nova.b { top: 28vh; width: 150px; animation: cx-nova 17s linear 8s infinite; }
@keyframes cx-twinkle { from { opacity: .45; } to { opacity: .85; } }
@keyframes cx-nova {
  0% { opacity: 0; transform: translate(-25vw, 0) rotate(18deg); }
  1% { opacity: 1; }
  9% { opacity: 0; transform: translate(105vw, 34vw) rotate(18deg); }
  100% { opacity: 0; transform: translate(105vw, 34vw) rotate(18deg); }
}
.cx-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 10 24 / 0%) calc(50% - 740px), rgb(5 10 24 / 30%) calc(50% - 460px), rgb(5 10 24 / 45%) 50%, rgb(5 10 24 / 30%) calc(50% + 460px), rgb(5 10 24 / 0%) calc(50% + 740px)); }

/* =====================================================================
   4. COMPOSANTS COMMUNS (mêmes noms que la charte)
   ===================================================================== */
.cx-glass { border: 1px solid var(--cx-line); background: var(--cx-glass); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 60px rgb(0 0 10 / 35%), inset 0 1px 0 rgb(255 255 255 / 8%); }
.cx-panel { border: 1px solid var(--cx-line-strong); border-radius: var(--cx-r-panel); background: var(--cx-panel); box-shadow: var(--cx-shadow-panel); backdrop-filter: blur(22px) saturate(150%); }
.cx-btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid var(--cx-line); border-radius: var(--cx-r-pill); background: var(--cx-glass-2); color: var(--cx-ink); font-size: 15.5px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.cx-btn:hover:not(:disabled) { border-color: rgb(143 227 255 / 55%); background: rgb(90 215 255 / 12%); text-decoration: none; }
.cx-btn:disabled, .cx-btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.cx-btn.primary { min-height: 50px; padding: 0 26px; border: 0; background: var(--cx-action); box-shadow: var(--cx-shadow-action); color: var(--cx-on-action); font-size: 16px; }
.cx-btn.primary:hover:not(:disabled) { background: var(--cx-action-hover); box-shadow: var(--cx-shadow-action-hover); transform: translateY(-2px); }
.cx-btn.plain { min-height: 40px; border-color: transparent; background: none; color: var(--cx-muted); }
.cx-btn.plain:hover:not(:disabled) { color: var(--cx-ink); }
.cx-btn.careful { border-color: rgb(255 211 122 / 55%); color: var(--cx-warn); }
.cx-btn.careful:hover:not(:disabled) { border-color: rgb(255 211 122 / 80%); background: rgb(255 211 122 / 12%); }
.cx-btn.block { width: 100%; }
.cx-btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.cx-btn[aria-busy="true"] { cursor: progress; opacity: .8; }
.cx-btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cx-label { display: block; margin-bottom: 6px; color: var(--cx-ink); font-size: 14.5px; font-weight: 700; }
.cx-field { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--cx-field-line); border-radius: var(--cx-r-field); background: rgb(255 255 255 / 7.5%); color: var(--cx-ink); font-size: 16px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.cx-field::placeholder { color: var(--cx-placeholder); opacity: 1; }
.cx-field:focus { border-color: var(--cx-focus); outline: none; box-shadow: 0 0 0 4px rgb(90 215 255 / 20%); }
.cx-field[aria-invalid="true"] { border-color: rgb(255 211 122 / 70%); }
.cx-field:disabled { cursor: not-allowed; opacity: .6; }
select.cx-field { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--cx-muted) 50%), linear-gradient(135deg, var(--cx-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
select.cx-field option { background: var(--cx-surface); color: var(--cx-ink); }
textarea.cx-field { min-height: 120px; resize: vertical; font-family: var(--cx-mono); font-size: 14px; }
.cx-hint { margin-top: 6px; color: var(--cx-muted); font-size: 14px; line-height: 1.45; }
.cx-problem { margin-top: 6px; color: var(--cx-warn-ink); font-size: 14.5px; line-height: 1.45; }
.cx-status { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--cx-line); border-radius: 16px; background: var(--cx-glass); color: var(--cx-ink); font-size: 15px; line-height: 1.45; }
.cx-status.good { border-color: rgb(52 231 161 / 45%); color: #aaf5d6; }
.cx-status.warn { border-color: rgb(255 211 122 / 50%); background: rgb(255 211 122 / 10%); color: var(--cx-warn-ink); }
.cx-status .dot { width: 10px; height: 10px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--cx-cyan); box-shadow: 0 0 10px var(--cx-cyan); }
.cx-status.good .dot { background: var(--cx-green); box-shadow: 0 0 10px var(--cx-green); }
.cx-status.warn .dot { background: var(--cx-warn); box-shadow: 0 0 10px var(--cx-warn); }
html[data-motion="on"] .cx-status.wait .dot { animation: cx-pulse 1.8s ease-in-out infinite; }
@keyframes cx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* =====================================================================
   5. MISE EN PAGE DU SITE
   ===================================================================== */
.page { position: relative; z-index: 1; display: flex; min-height: 100vh; flex-direction: column; }
.page > main { flex: 1; }
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap.narrow { width: min(760px, 100%); }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1080px, 100%); margin: 0 auto; padding: 12px clamp(16px, 4vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cx-ink); font-size: 19px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand:hover { text-decoration: none; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.top-nav form { margin: 0; }
.pastille-compte { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--cx-line); border-radius: var(--cx-r-pill); background: var(--cx-glass); color: var(--cx-muted); font-size: 13.5px; white-space: nowrap; }
.pastille-compte i { width: 9px; height: 9px; border-radius: 50%; background: var(--cx-green); box-shadow: 0 0 10px var(--cx-green); }
.site-foot { padding: 40px clamp(16px, 4vw, 32px) 36px; color: var(--cx-muted); font-size: 14px; text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 12px; }
.site-foot a { color: var(--cx-muted); }
.site-foot a:hover { color: var(--cx-ink); }
.site-foot p + p { margin-top: 6px; }
.site-foot .cx-btn.plain { min-height: 36px; padding: 0 14px; font-size: 14px; }

h1.titre, .hero h1 { background: linear-gradient(180deg, #fff 30%, #b9c9ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(32px, 6.4vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.panel-page { display: grid; place-items: center; padding: 8px 0 24px; }
.cx-panel.ecran { width: min(480px, 100%); padding: 22px clamp(18px, 5vw, 30px) 24px; text-align: center; }
.cx-panel.ecran.large { width: min(600px, 100%); }
.cx-panel.ecran h1 { font-size: clamp(28px, 7vw, 36px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; background: linear-gradient(180deg, #fff 30%, #b9c9ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.cx-panel.ecran .intro { margin: 10px auto 16px; max-width: 400px; color: var(--cx-muted); font-size: 16.5px; line-height: 1.45; text-wrap: balance; }
.cx-panel.ecran .renard { display: grid; justify-items: center; margin: -6px 0 0; }
.cx-panel.ecran .renard img { width: 180px; height: 180px; }
.cx-panel.ecran form, .cx-panel.ecran .corps { text-align: left; }
.cx-panel.ecran .cx-status { text-align: left; margin-top: 14px; }
.cx-panel.ecran .cx-status + form, .cx-panel.ecran .cx-status + .cx-status { margin-top: 14px; }
.fields > * + * { margin-top: 14px; }
.field-actions { margin-top: 18px; display: grid; gap: 10px; }
.liens { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin-top: 14px; color: var(--cx-muted); font-size: 14.5px; text-align: center; }
.liens a { color: var(--cx-cyan); }
.remember, .secure { display: flex; gap: 10px; margin-top: 14px; color: var(--cx-muted); font-size: 14px; line-height: 1.45; text-align: left; }
.secure { align-items: center; padding-top: 12px; border-top: 1px solid rgb(160 185 255 / 16%); }
.remember svg { width: 17px; height: 17px; flex: none; margin-top: 2px; fill: none; stroke: var(--cx-green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.secure svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--cx-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.champ-mdp { position: relative; }
.champ-mdp .cx-field { padding-right: 96px; }
.champ-mdp .montrer { position: absolute; right: 6px; top: 5px; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--cx-r-pill); background: none; color: var(--cx-cyan); font-size: 14px; font-weight: 700; }
.champ-mdp .montrer:hover { background: var(--cx-glass-2); }
.cx-field.code { font-family: var(--cx-mono); font-size: 34px; font-weight: 800; letter-spacing: .3em; text-align: center; padding-left: calc(16px + .3em); }
.petit { font-size: 14.5px; color: var(--cx-muted); }

/* Accueil */
.hero { padding: clamp(24px, 6vh, 56px) 0 8px; text-align: center; }
.hero .renard-grand { display: grid; justify-items: center; }
.hero .renard-grand img { width: min(260px, 62vw); height: auto; aspect-ratio: 1; }
.hero p.lead { max-width: 620px; margin: 14px auto 0; color: var(--cx-muted); font-size: 18px; line-height: 1.45; text-wrap: balance; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
section.bloc { padding: clamp(30px, 6vh, 54px) 0 6px; }
section.bloc > h2 { margin-bottom: 8px; font-size: clamp(24px, 4.4vw, 28px); font-weight: 780; letter-spacing: -.035em; text-align: center; text-wrap: balance; }
section.bloc > .lead { max-width: 640px; margin: 0 auto 22px; color: var(--cx-muted); text-align: center; text-wrap: balance; }
.grille { display: grid; gap: 14px; }
.grille.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grille.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.carte { padding: 20px; border-radius: var(--cx-r-card); }
.carte h3 { margin: 10px 0 4px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.carte p { color: var(--cx-muted); font-size: 15px; line-height: 1.5; }
.carte .icone { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgb(45 212 255 / 24%), rgb(139 108 255 / 26%)); box-shadow: inset 0 0 0 1px rgb(143 227 255 / 40%); }
.carte .icone svg { width: 22px; height: 22px; fill: none; stroke: var(--cx-cyan); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Accueil : assistant IA et créations (aperçus en CSS pur, décoratifs) */
.assistant-ia .sous-titre { margin: 26px 0 12px; color: var(--cx-ink); font-size: 18px; font-weight: 750; letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.carte h4 { margin: 10px 0 4px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.creation .entete-creation { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.creation .etiquette { font-size: 13.5px; }
.creation .apercu { display: grid; gap: 5px; height: 92px; align-content: center; margin: 14px 0 2px; padding: 10px; border: 1px solid var(--cx-line); border-radius: 16px; background: rgb(5 10 24 / 45%); }
.apercu i { display: block; border-radius: 6px; background: rgb(143 227 255 / 22%); }
.apercu.mini-calendrier { grid-template-columns: repeat(7, 1fr); }
.apercu.mini-calendrier i { height: 22px; }
.apercu.mini-calendrier i:nth-child(3n+1) { background: rgb(52 231 161 / 55%); }
.apercu.mini-calendrier i:nth-child(5n) { background: rgb(139 108 255 / 45%); }
.apercu.mini-quiz { grid-template-columns: 1fr; }
.apercu.mini-quiz i { height: 16px; border-radius: var(--cx-r-pill); }
.apercu.mini-quiz i:nth-child(1) { width: 70%; background: rgb(234 240 255 / 40%); }
.apercu.mini-quiz i:nth-child(2) { width: 90%; }
.apercu.mini-quiz i:nth-child(3) { width: 80%; background: rgb(52 231 161 / 45%); }
.apercu.mini-plan { grid-template-columns: repeat(4, 1fr); align-items: end; align-content: stretch; }
.apercu.mini-plan i:nth-child(1) { height: 30%; }
.apercu.mini-plan i:nth-child(2) { height: 50%; }
.apercu.mini-plan i:nth-child(3) { height: 72%; }
.apercu.mini-plan i:nth-child(4) { height: 100%; background: rgb(52 231 161 / 55%); }
.note-ia { max-width: 640px; margin: 22px auto 0; color: var(--cx-muted); font-size: 14.5px; }
ol.comment { counter-reset: n; display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
ol.comment li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; }
ol.comment li::before { content: counter(n); display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--cx-action); color: var(--cx-on-action); font-weight: 800; }
ol.comment strong { display: block; font-size: 16px; }
ol.comment span { color: var(--cx-muted); font-size: 14.5px; }
.appel { margin: 36px auto 0; padding: 26px 20px; text-align: center; border-radius: var(--cx-r-panel); }
.appel h2 { font-size: clamp(22px, 4.6vw, 28px); font-weight: 780; letter-spacing: -.03em; text-wrap: balance; }
.appel p { margin: 8px auto 18px; max-width: 520px; color: var(--cx-muted); }

/* Ton accès (tarif) */
.tarif { padding: 22px clamp(16px, 4vw, 26px); border-radius: var(--cx-r-card); text-align: center; }
.tarif .montant { font-size: clamp(40px, 9vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.tarif .montant small { font-size: 18px; font-weight: 650; letter-spacing: 0; color: var(--cx-muted); }
.cx-panel .tarif.cx-glass { backdrop-filter: none; box-shadow: none; background: rgb(255 255 255 / 4%); }
.tarif ul { display: grid; gap: 8px; margin: 16px auto 0; max-width: 360px; text-align: left; }
.tarif li { display: flex; gap: 10px; color: var(--cx-ink); font-size: 15px; }
.tarif li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; fill: none; stroke: var(--cx-green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Mon compte */
.compte-grille { display: grid; gap: 16px; padding-bottom: 20px; }
.compte-entete { padding: 20px 0 6px; }
.compte-entete h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.compte-entete p { margin-top: 6px; color: var(--cx-muted); }
.section { padding: 20px clamp(16px, 3vw, 24px); border-radius: var(--cx-r-card); }
.section h2 { font-size: 21px; font-weight: 760; letter-spacing: -.03em; }
.section > p { margin-top: 6px; color: var(--cx-muted); font-size: 15px; }
.section .cx-status { margin-top: 12px; }
.section form + form { margin-top: 10px; }
.liste-pc { display: grid; gap: 10px; margin-top: 14px; }
.liste-pc li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--cx-line); border-radius: 18px; background: rgb(255 255 255 / 4%); }
.liste-pc .nom { font-weight: 700; }
.liste-pc .detail { color: var(--cx-muted); font-size: 14px; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--cx-line); border-radius: var(--cx-r-pill); color: var(--cx-muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.etiquette.vert { border-color: rgb(52 231 161 / 45%); color: #aaf5d6; }
.etiquette.jaune { border-color: rgb(255 211 122 / 50%); color: var(--cx-warn-ink); }
.vide { display: grid; justify-items: center; gap: 6px; margin-top: 14px; padding: 20px 18px; border: 1px dashed rgb(143 200 255 / 38%); border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgb(90 215 255 / 12%), transparent 65%), rgb(255 255 255 / 3%); color: var(--cx-muted); text-align: center; }
.vide img { width: 90px; height: 90px; }
.vide h3 { color: var(--cx-ink); font-size: 18px; font-weight: 750; letter-spacing: -.02em; }
.vide p { max-width: 380px; font-size: 14.5px; line-height: 1.55; }
.zone-delicate { border-color: rgb(255 211 122 / 35%); }
.actions-ligne { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
dl.infos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 12px; font-size: 15px; }
dl.infos dt { color: var(--cx-muted); }
dl.infos dd { overflow-wrap: anywhere; }

/* Choix du PC à retirer (connexion du logiciel) */
fieldset.choix-pc { margin: 14px 0 0; padding: 0; border: 0; }
.choix-pc legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.choix-pc label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.choix-pc input { width: 20px; height: 20px; flex: none; accent-color: #2dd4ff; }

/* Pages d'erreur et de passage */
.erreur-page { padding: 30px 0 10px; text-align: center; }
.erreur-page h1 { margin-bottom: 8px; }
.erreur-page p { max-width: 520px; margin: 0 auto 20px; color: var(--cx-muted); font-size: 17px; }
.erreur-page .code { display: inline-block; margin-bottom: 8px; color: var(--cx-muted); font-family: var(--cx-mono); font-size: 14px; letter-spacing: .08em; }

/* =====================================================================
   6. ADMINISTRATION (sobre : aucune décoration, tout lisible)
   ===================================================================== */
.admin .wrap { width: min(1100px, 100%); }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 0 14px; }
.admin-nav a { padding: 8px 14px; border-radius: var(--cx-r-pill); color: var(--cx-muted); font-size: 14.5px; font-weight: 650; text-decoration: none; }
.admin-nav a:hover { background: var(--cx-glass-2); color: var(--cx-ink); }
.admin-nav a[aria-current="page"] { background: linear-gradient(135deg, rgb(45 212 255 / 28%), rgb(139 108 255 / 30%)); color: #fff; box-shadow: inset 0 0 0 1px rgb(143 227 255 / 50%); }
.admin h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--cx-line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--cx-line); text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--cx-muted); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.inline-form { display: inline; }
.formgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; margin-top: 12px; }
.formgrid .cx-btn { align-self: end; }
.admin .section + .section { margin-top: 14px; }
.admin .cx-status { margin-top: 10px; margin-bottom: 10px; }

/* =====================================================================
   7. PETITS ÉCRANS
   ===================================================================== */
@media (max-width: 640px) {
  .pastille-compte { display: none; }
  .cx-panel.ecran .renard img { width: 140px; height: 140px; }
  dl.infos { grid-template-columns: 1fr; gap: 0; }
  dl.infos dd { margin-bottom: 8px; }
  .liste-pc li { align-items: flex-start; }
  .cx-field.code { font-size: 28px; }
  .top-nav .cx-btn { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
  .hero .actions .cx-btn { width: 100%; }
  .brand span { font-size: 18px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* =====================================================================
   8. MOUVEMENT COUPÉ (réglage du pied de page ou demande du système) ; contraste forcé de Windows
   ===================================================================== */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cx-btn.primary:hover:not(:disabled) { transform: none; }
}
@media (forced-colors: active) {
  h1.titre, .hero h1, .cx-panel.ecran h1 { background: none; color: CanvasText; }
  .cx-btn.primary { border: 1px solid ButtonText; }
}
