/* ===== Couleurs : celles de l'application (Theme dans Outils.cs) — fond sombre, vert, bleu, orange, Segoe UI ===== */
:root {
  --bg: #1e1e1e;           /* Theme.Fond */
  --bg-2: #181818;
  --surface: #2c2c2c;      /* Theme.FondBloc */
  --surface-2: #343434;
  --text: #ebebeb;         /* Theme.Texte */
  --muted: #a0a0a0;        /* Theme.TexteDiscret */
  --border: #404040;       /* Theme.Piste */
  --gris: #606060;         /* Theme.Gris, le contour des boutons */
  --accent: #43a047;       /* Theme.Vert */
  --accent-hover: #4caf50;
  --accent-soft: rgb(67 160 71 / 15%);
  --on-accent: #ffffff;
  --vert-fonce: #1e3422;   /* le fond du bouton « Continuer » de l'application */
  --link: #4285f4;         /* Theme.Bleu */
  --ok: #43a047;
  --ok-soft: rgb(67 160 71 / 15%);
  --warn: #f5961e;         /* Theme.Orange */
  --warn-soft: rgb(245 150 30 / 14%);
  --danger: #e54848;       /* Theme.Rouge */
  --danger-soft: rgb(229 72 72 / 14%);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: none;
  --shadow: 0 8px 24px rgb(0 0 0 / 35%);
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h1, .section-head h2 { margin: 0; }
.page-head { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.empty { padding: 3rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.back { display: inline-block; margin-bottom: 1.25rem; color: var(--muted); font-size: .95rem; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.icon { display: inline-block; vertical-align: -2px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 650; line-height: 1.2;
  cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--vert-fonce); color: var(--text); border-color: var(--accent); }
.btn-primary:hover { background: #264a2b; border-color: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--gris); }
.btn-ghost:hover { border-color: #808080; background: #333333; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--text); text-decoration: underline; }
.link-button.danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
form.inline { display: inline; }

/* ===== En-tête ===== */
.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .85rem; padding: .4rem 1rem; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #e267b5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--muted); font-weight: 550; }
.nav a:not(.btn):hover, .nav a.active { color: var(--text); text-decoration: none; }
.nav a.active { box-shadow: 0 2px 0 var(--accent); }
.nav-form { margin: 0; }
.nav-form .link-button { font-weight: 550; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn), .nav .link-button { padding: .8rem 0; border-bottom: 1px solid var(--border); text-align: left; width: 100%; }
  .nav a.active { box-shadow: none; color: var(--accent); }
  .nav .btn { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Accueil ===== */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero::before { width: 520px; height: 520px; top: -220px; right: -120px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.hero::after { width: 420px; height: 420px; bottom: -260px; left: -120px; background: color-mix(in srgb, #e267b5 35%, transparent); }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 14em; }
.accent-text { background: linear-gradient(90deg, #5fd068, var(--link)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.25rem); margin-bottom: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .45rem; }

/* ===== Crew Workbench : page d'accueil ===== */
img.logo-mark { background: none; box-shadow: none; }

/* En-tête de page, toujours sombre (comme l'application) */
.landing-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #f1f0fa;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(67 160 71 / 22%), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgb(66 133 244 / 20%), transparent 60%),
    linear-gradient(180deg, #161616, #1e1e1e);
}
.landing-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.landing-hero-inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 980px) { .landing-hero-inner { grid-template-columns: 1fr; } }
.landing-hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; margin: 1.1rem 0 1.1rem; }
.landing-hero .accent-text { background-image: linear-gradient(90deg, #5fd068, #4285f4); }
.landing-hero .lead { color: #c4c2d8; font-size: clamp(1.08rem, 1.8vw, 1.22rem); margin-bottom: 2rem; }
.landing-hero .hero-points { color: #a9a7c0; }
.landing-hero .hero-points li::before { color: #6ee7a8; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 650; color: #d7f5d9; background: rgb(67 160 71 / 16%); border: 1px solid rgb(67 160 71 / 45%); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 0 4px rgb(110 231 168 / 20%); }
.btn-glow { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px rgb(67 160 71 / 35%); }
.btn-glow:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 12px 36px rgb(67 160 71 / 50%); }
.btn-outline-light { background: rgb(255 255 255 / 6%); color: #f1f0fa; border-color: rgb(255 255 255 / 18%); }
.btn-outline-light:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 35%); }

/* La capture de l'application, dans une fenêtre Windows, avec deux petites cartes posées dessus */
.landing-hero-shot { position: relative; }
.window { border-radius: 12px; overflow: hidden; background: #1b1b1f; border: 1px solid rgb(255 255 255 / 12%); box-shadow: 0 30px 80px rgb(0 0 0 / 55%), 0 0 0 1px rgb(0 0 0 / 40%); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; }
.window:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
@media (max-width: 980px), (prefers-reduced-motion: reduce) { .window, .window:hover { transform: none; } }
.window-bar { display: flex; align-items: center; gap: .5rem; height: 32px; padding: 0 .75rem; background: #232329; color: #b9b8c6; font-size: .78rem; }
.window-controls { margin-left: auto; display: flex; gap: 1.1rem; }
.window-controls i { width: 10px; height: 10px; border: 1.5px solid #8d8c99; border-radius: 2px; }
.window-controls i:first-child { height: 0; border-width: 1.5px 0 0; align-self: center; }
.window > img { width: 100%; height: auto; }
.float-card { position: absolute; display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; border-radius: 14px; background: rgb(24 23 36 / 88%); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / 12%); box-shadow: 0 14px 40px rgb(0 0 0 / 45%); font-size: .85rem; line-height: 1.3; }
.float-card strong { display: block; color: #fff; }
.float-card span:not(.dot) { color: #a9a7c0; }
.float-card-a { left: -1.5rem; bottom: 12%; }
.float-card-b { right: -1rem; top: -1.4rem; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dot-ok { background: #4cd391; box-shadow: 0 0 0 4px rgb(76 211 145 / 22%); }
.dot-blue { background: #6aa8ff; box-shadow: 0 0 0 4px rgb(106 168 255 / 22%); }
@media (max-width: 640px) { .float-card { display: none; } }

/* Bandeau de faits sous l'en-tête */
.facts { border-bottom: 1px solid var(--border); background: var(--surface); }
.facts-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 1.4rem 0; }
.facts-inner div { display: flex; flex-direction: column; }
.facts-inner strong { font-size: 1.05rem; }
.facts-inner span { color: var(--muted); font-size: .92rem; }

.section-title { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section-title h2 { margin-top: .5rem; }

/* Avant / avec */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; max-width: 960px; margin: 0 auto; }
.compare-col { border-radius: var(--radius); padding: 1.6rem 1.75rem; border: 1px solid var(--border); background: var(--surface); }
.compare-col h3 { margin-bottom: 1rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.compare-col li { display: flex; gap: .7rem; }
.compare-col li::before { flex: none; font-weight: 800; }
.compare-before { color: var(--muted); }
.compare-before li::before { content: "✕"; color: var(--danger); }
.compare-after { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 16%, transparent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.compare-after li::before { content: "✓"; color: var(--ok); }

/* Fonctionnalités en grand, texte et capture en alternance */
.rows { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.row-reverse .row-text { order: 2; }
.row-text p { color: var(--muted); font-size: 1.08rem; }
.row-text h2 { margin-top: .4rem; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row-reverse .row-text { order: 0; } }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: #1e1e1e; }

/* ===== Les bonshommes (public/js/bonshommes.js : les mêmes que dans l'application, animés) ===== */
.bh-c { display: block; }
.bh-sur-fenetre { position: absolute; left: 8%; top: -70px; width: 80px; height: 96px; z-index: 2; }
.bh-c-scene { width: 100%; height: 150px; }
.bh-c-attend { width: 150px; height: 110px; margin-bottom: .4rem; }
.bh-c-pose { width: 110px; height: 120px; margin-bottom: .4rem; }
.bh-c-mini { width: 260px; height: 104px; margin-bottom: .6rem; }
.bh-c-etape { position: absolute; right: .8rem; top: .4rem; width: 64px; height: 80px; }
.bh-c-fete { width: min(440px, 100%); height: 160px; margin: 0 auto 1rem; }
.error-bh { display: flex; justify-content: center; margin-bottom: .5rem; }
.steps li { position: relative; }
.scene-band { background: var(--bg-2); border-block: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.scene-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .scene-band-inner { grid-template-columns: 1fr; } }
.scene-band h2 { margin-top: .4rem; }
.scene-band p { color: var(--muted); margin: 0; }

/* Dernier appel, en bas de page */
.cta-band { color: #f1f0fa; text-align: center; padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: radial-gradient(40rem 20rem at 50% 0%, rgb(67 160 71 / 22%), transparent 70%), linear-gradient(180deg, #1e1e1e, #161616); }
.cta-band-inner { display: grid; justify-items: center; gap: .4rem; }
.cta-band img { border-radius: 18px; margin-bottom: .8rem; box-shadow: 0 12px 40px rgb(0 0 0 / 50%); }
.cta-band p { color: #c4c2d8; margin-bottom: 1.4rem; }
.plan-trial { margin: .25rem 0 0; color: var(--ok); }
.plan-trial strong { color: inherit; }
.features { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: .9rem; border-radius: 12px; background: var(--accent-soft); font-size: 1.35rem; }
.download-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.download-head img { flex: none; border-radius: 22px; }
.download-head h1 { margin-bottom: .25rem; }
.download-head .lead { margin: 0; }
.section-alt .faq details { background: var(--bg); }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.steps p { color: var(--muted); margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: .9rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }

/* ===== Cartes des créations ===== */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.card-body { padding: 1.1rem 1.25rem 1.35rem; }
.card-body h3 { margin: .25rem 0 .35rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }

.cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-letter { font-size: 4.5rem; font-weight: 800; color: rgb(255 255 255 / 88%); letter-spacing: -0.04em; text-shadow: 0 4px 20px rgb(0 0 0 / 15%); }
.cover-0 { background: linear-gradient(135deg, #6d5dfc, #c26bd6); }
.cover-1 { background: linear-gradient(135deg, #22b8cf, #4c6ef5); }
.cover-2 { background: linear-gradient(135deg, #f7a23b, #ef5a7a); }
.cover-3 { background: linear-gradient(135deg, #12a594, #63d471); }
.cover-4 { background: linear-gradient(135deg, #4568dc, #b06ab3); }
.cover-5 { background: linear-gradient(135deg, #ff7e5f, #feb47b); }

.badge {
  position: absolute; top: .75rem; right: .75rem;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  background: rgb(255 255 255 / 92%); color: #16161d; box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}
.badge-free { color: #0d6b40; }
.badge-included { color: #4a3bc4; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip { padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: .9rem; }
.chip:hover { text-decoration: none; color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ===== Page d'une création ===== */
.detail { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1.15fr 1fr; align-items: start; }
.cover-large { border-radius: var(--radius); box-shadow: var(--shadow); }
.cover-large .cover-letter { font-size: 7rem; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; }
.tag-free { background: var(--ok-soft); color: var(--ok); }
.access-box { margin: 1.5rem 0 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.access-box p:last-child { margin-bottom: 0; }
.access-box .actions { margin-bottom: .75rem; }
.access-box.locked { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.locked-title { font-weight: 750; font-size: 1.05rem; color: var(--accent); margin-bottom: .35rem; }
.access-box.locked .btn { margin: .25rem 0 .75rem; }
.prose { max-width: 46rem; margin-top: 2.5rem; font-size: 1.05rem; }
.prose h2 { margin-top: 2em; }
.legal { margin-top: 0; font-size: 1rem; }
.legal h1 { margin-bottom: 1rem; }

@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }

/* ===== Tarif ===== */
.pricing-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr minmax(300px, 400px); align-items: start; }
@media (max-width: 860px) { .pricing-layout { grid-template-columns: 1fr; } }
.plan {
  position: relative; isolation: isolate; padding: 2rem; border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.plan::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--link)); filter: blur(28px); opacity: .18;
}
.price { display: flex; align-items: baseline; gap: .4rem; margin: .5rem 0 .25rem; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; }
.price .per { color: var(--muted); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .65rem; }
.checklist li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .8rem; font-weight: 800; }
.plan-form { display: grid; gap: 1rem; }
.plan-done { padding: 1rem; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); }
.plan-done a { margin-left: .4rem; }
.plan .small { margin: .8rem 0 0; }
.reassure { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.reassure li { padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); }
.reassure strong { color: var(--text); }

.faq { margin-top: 1.5rem; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1rem; }

/* ===== Formulaires ===== */
.auth-card {
  width: min(440px, 100% - 2.5rem); margin-inline: auto; padding: 2.25rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.75rem; margin-bottom: .3rem; }
.auth-card > .muted { margin-bottom: 1.5rem; }
.auth-switch { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .95rem; }
.form { display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .95rem; }
.hint { font-weight: 450; font-size: .85rem; color: var(--muted); margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], textarea {
  width: 100%; padding: .7rem .85rem;
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 8rem; }
/* Recherche des membres (administration) */
.search-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.25rem 0 1rem; }
.search-bar input[type="search"] { flex: 1 1 260px; width: auto; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="file"] { font: inherit; font-size: .9rem; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: .8rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.form .check, .check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 450; font-size: .92rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-inline-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
fieldset { margin: 0; padding: 1.1rem 1.2rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: .9rem; }
legend { padding: 0 .4rem; font-weight: 700; }
.current-file { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .75rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.key-box { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; padding: .9rem 1rem; border: 1px dashed var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); }
.key-box code { flex: 1; background: none; padding: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; color: var(--text); user-select: all; word-break: break-all; }
.demo-summary { display: flex; justify-content: space-between; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: var(--radius-sm); background: var(--surface-2); }

/* ===== Messages ===== */
.alert { padding: .85rem 1.1rem; margin: 1.25rem 0; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .95rem; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: rgb(66 133 244 / 13%); color: #8ab4ff; }
main > .container > .alert { margin-bottom: 0; }

/* ===== Compte et administration ===== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.2rem; }
.panel > form:not(.form) { margin-top: 1rem; }
.panel-danger summary { cursor: pointer; list-style: none; }
.panel-danger summary::-webkit-details-marker { display: none; }
.panel-danger summary h2 { display: inline; color: var(--danger); font-size: 1.05rem; }
.panel-danger summary::after { content: " ▾"; color: var(--danger); }
.panel-danger[open] summary { margin-bottom: 1rem; }
.status { display: inline-block; margin-right: .5rem; padding: .15rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 700; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-warn { background: var(--warn-soft); color: var(--warn); }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1.5rem; }
.stat { display: grid; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { color: var(--muted); font-size: .9rem; }
.table-panel { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table th.right, .table td.right { text-align: right; }
.table tr:last-child td { border-bottom: 0; }

/* ===== Pied de page ===== */
.site-footer { margin-top: 2rem; padding: 2.5rem 0 1.5rem; background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: .5rem 0 0; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.footer-nav a { color: var(--muted); }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ===== Projets, versions et retours ===== */
.projets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 1.5rem; }
.projet { display: grid; gap: .4rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; }
.projet:hover { text-decoration: none; border-color: var(--gris); }
.projet-nom { font-weight: 700; font-size: 1.1rem; }
.projet .tag { justify-self: start; }
.tag-prive { background: rgb(245 150 30 / 15%); color: var(--warn); }
.version .section-head { margin-bottom: .2rem; }
.version-notes { margin-top: .8rem; font-size: 1rem; }
.fichiers { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .35rem; }
.retours-bloc { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.retours-bloc summary { cursor: pointer; font-weight: 650; color: var(--muted); }
.retours { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .6rem; }
.retour { padding: .75rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.retour p { margin: .35rem 0 0; white-space: pre-wrap; }
.retour-tete { font-size: .88rem; color: var(--muted); }
.retour-lu { opacity: .6; }
.retour-form { margin-top: .6rem; }
.retour-form textarea { width: 100%; }
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix-item { display: inline-flex !important; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--gris); border-radius: 999px; font-weight: 550 !important; cursor: pointer; }
.choix-item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choix-item input { margin: 0; }
.jauge { width: 100%; height: 10px; border: 0; border-radius: 5px; overflow: hidden; background: #161616; appearance: none; }
.jauge::-webkit-progress-bar { background: #161616; border-radius: 5px; }
.jauge::-webkit-progress-value { background: var(--accent); border-radius: 5px; }
.jauge::-moz-progress-bar { background: var(--accent); border-radius: 5px; }
.jauge-orange::-webkit-progress-value { background: var(--warn); }
.jauge-orange::-moz-progress-bar { background: var(--warn); }
.jauge-rouge::-webkit-progress-value { background: var(--danger); }
.jauge-rouge::-moz-progress-bar { background: var(--danger); }
