/* =========================================================
   BaobabCV — charte bleu, blanc, rose et orange
   ========================================================= */
:root {
  --blue: #1E6FD9;
  --blue-600: #185DBA;
  --blue-700: #134A96;
  --lagoon: #0EA5E9;
  --sky: #E8F3FF;
  --orange: #FF6B1A;
  --orange-soft: #FFF1E8;
  --pink: #E8457C;
  --pink-soft: #FDEBF2;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #EEF2F7;
  --bg: #FFFFFF;
  --surface: #F6F9FD;
  --success: #0F9D76;
  --success-soft: #E6F7F1;
  --warning: #D97706;
  --warning-soft: #FEF6E7;
  --danger: #DC2626;
  --danger-soft: #FDECEC;
  --grad: linear-gradient(135deg, var(--lagoon) 0%, var(--blue) 100%);
  --grad-warm: linear-gradient(135deg, var(--orange) 0%, var(--pink) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(30, 111, 217, .18), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 30px 60px -20px rgba(30, 111, 217, .28);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(14, 165, 233, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.warm-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
main { min-height: calc(100vh - 72px); outline: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(30, 111, 217, .55); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(30, 111, 217, .65); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 107, 26, .6); }
.btn-orange:hover { background: #F25E0C; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #EDF3FB; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Pastilles & badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-size: .85rem; font-weight: 500; color: var(--ink-2);
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px;
  font-size: .85rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line-2);
}
.chip-blue { background: var(--blue); color: #fff; border-color: transparent; }
.chip-orange { background: var(--orange); color: #fff; border-color: transparent; }
.chip-dark { background: var(--ink); color: #fff; border-color: transparent; }
.chip-pink { background: var(--pink-soft); color: var(--pink); border-color: transparent; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--surface); color: var(--ink-2);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.s-blue { background: var(--sky); color: var(--blue); }
.badge.s-orange { background: var(--orange-soft); color: #C2410C; }
.badge.s-pink { background: var(--pink-soft); color: var(--pink); }
.badge.s-green { background: var(--success-soft); color: var(--success); }
.badge.s-red { background: var(--danger-soft); color: var(--danger); }
.badge.s-grey { background: #F1F5F9; color: var(--muted); }

/* ---------- Barre supérieure ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line-2); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo b { color: var(--blue); font-weight: 700; }
.logo i { font-style: normal; color: var(--orange); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--blue); background: var(--sky); }
.nav-toggle { display: none; }
.nav .nav-legal { display: none; }
.nav .nav-login { display: none; }
.hero-login { display: none; }
.topbar-actions { flex-wrap: nowrap; gap: 8px; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); font-size: .9rem; font-weight: 500; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); color: #fff; font-weight: 700; font-size: .8rem; }

/* Écrans moyens ou navigateur zoomé : menu compact, toujours visible. */
@media (max-width: 1280px) {
  .topbar-inner { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 8px; font-size: .86rem; }
  .nav .lbl-long { display: none; }
  .topbar-actions .user-pill { display: none; }
  .logo { font-size: 1.15rem; }
}
@media (max-width: 900px) {
  .nav .lbl-long { display: inline; }
  .nav a { padding: 10px 12px; font-size: .95rem; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .topbar-actions .hide-sm { display: none; }
  /* Connexion : bouton masqué dans l'en-tête sur mobile, donc en tête du menu et sous le bouton principal de l'accueil. */
  .nav .nav-login { display: block; order: -1; margin-bottom: 6px; text-align: center; font-weight: 600; color: var(--blue); border: 1.5px solid var(--blue); }
  .hero-login { display: block; }
  .nav .nav-legal { display: block; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); border-radius: 0; color: var(--muted); font-size: .88rem; white-space: normal; }
}

/* ---------- Hero (landing) ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 90px; }
.hero::before {
  content: ''; position: absolute; right: -8%; top: -10%; width: 58%; height: 130%;
  background: linear-gradient(160deg, var(--orange) 0%, #FF8A3D 60%, var(--pink) 100%);
  transform: skewX(-24deg); border-radius: 0 0 0 80px; z-index: -1; opacity: .96;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.045em; margin-bottom: 18px; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero .chips .chip { font-family: var(--font-display); font-size: 1rem; padding: 8px 16px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.trust div { font-size: .88rem; color: var(--muted); }
.trust strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.hero-visual { position: relative; min-height: 520px; }
.hero-card {
  position: absolute; right: 4%; top: 10px; width: 400px; height: 520px; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff; transform: rotate(2.5deg);
}
.hero-card { padding: 0; }
.float-badge {
  position: absolute; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); font-size: .8rem; line-height: 1.25; z-index: 2;
}
.float-badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.float-badge.b1 { left: 0; top: 150px; }
.float-badge.b2 { right: -4px; bottom: 30px; background: #fff; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.float-badge.b2 .score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-weight: 700; font-family: var(--font-display); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { width: 100%; height: 46%; top: auto; bottom: -6%; right: -20%; }
  .hero-visual { min-height: 480px; }
  .hero-card { position: relative; margin: 0 auto; right: auto; width: min(360px, 88vw); height: 470px; }
  .float-badge.b1 { left: 2%; top: 30px; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; margin-top: 20px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-soft { background: radial-gradient(1200px 400px at 50% 0%, #F1F7FF 0%, #fff 70%); }

/* ---------- Bento fonctionnalités ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2);
  padding: 32px; position: relative; overflow: hidden;
}
.card h3 { font-size: 1.9rem; font-weight: 600; }
.card p { color: var(--muted); }
.bento .span-2 { grid-column: span 2; }
.bento .tall { grid-row: span 2; }
.tag-cloud { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; margin-left: -40px; margin-right: -40px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.tag-row { display: flex; gap: 28px; align-items: center; white-space: nowrap; }
.tag-row:nth-child(2) { margin-left: -40px; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; color: #B7C2D0; }
.tag .x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E5EAF0; color: #fff; font-size: .8rem; }
.tag.on { background: var(--grad); color: #fff; padding: 8px 18px; border-radius: 999px; box-shadow: 0 10px 20px -10px rgba(30, 111, 217, .6); }
.tag.on .x { background: rgba(255, 255, 255, .3); }
.tag.on.warm { background: var(--grad-warm); box-shadow: 0 10px 20px -10px rgba(232, 69, 124, .6); }
.month-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; align-items: start; }
.month-demo .pill { background: var(--surface); border-radius: 16px; padding: 14px; text-align: center; font-size: 1.4rem; color: var(--ink-2); }
.month-demo .list { background: var(--surface); border-radius: 16px; padding: 12px; text-align: center; font-size: 1.3rem; display: grid; gap: 10px; }
.month-demo .list span:nth-child(2) { color: var(--blue); font-weight: 600; }
.month-demo .who { display: grid; place-items: center; position: relative; }
.month-demo .who .face { width: 86px; height: 86px; border-radius: 50%; background: var(--grad-warm); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 1.8rem; box-shadow: var(--shadow-lg); }
.cursor-arrow { position: absolute; top: -14px; right: 18%; width: 34px; height: 34px; color: var(--blue); transform: rotate(-10deg); }
.suggest-card {
  color: var(--ink); padding: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(14, 165, 233, .9) 0%, rgba(30, 111, 217, .85) 45%, rgba(30, 111, 217, 0) 75%),
    repeating-radial-gradient(ellipse at 50% 140%, rgba(255, 255, 255, .0) 0 8px, rgba(255, 255, 255, .22) 9px 10px),
    linear-gradient(180deg, #fff 0%, #EAF6FF 45%, #8FD3F7 70%, #1E6FD9 100%);
}
.suggest-card .brandbar { margin: 20px; padding: 14px 18px; background: rgba(255, 255, 255, .8); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.suggest-card .inner { padding: 20px 28px; text-align: center; }
.suggest-card .items { display: grid; gap: 14px; padding: 8px 28px; }
.suggest-item { background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; text-align: left; }
.suggest-item .ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.suggest-item .ic.err { background: var(--pink); }
.suggest-item b { display: block; font-size: .95rem; }
.suggest-item span { font-size: .85rem; color: var(--ink-2); }
.suggest-tabs { display: flex; gap: 8px; padding: 22px 20px; margin-top: auto; overflow: hidden; }
.suggest-tabs span { background: rgba(255, 255, 255, .35); color: #fff; padding: 8px 16px; border-radius: 10px; font-weight: 600; transform: skewX(-8deg); white-space: nowrap; }
.suggest-tabs span.on { background: #fff; color: var(--ink); }
.templates-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.templates-card h3 .grad-text { display: block; }
.templates-card .stackpeek { position: relative; min-height: 300px; }
.templates-card .peek { position: absolute; width: 230px; height: 320px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.templates-card .peek.p1 { left: 10%; top: 20px; transform: rotate(-6deg); }
.templates-card .peek.p2 { left: 36%; top: 0; transform: rotate(5deg); z-index: 2; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span-2, .bento .tall { grid-column: auto; grid-row: auto; }
  .templates-card { grid-template-columns: 1fr; }
  .templates-card .stackpeek { min-height: 360px; }
}

/* ---------- Étapes / tarif / FAQ ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step3 { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.step3::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 18px; }
.step3:nth-child(2)::before { background: var(--orange); }
.step3:nth-child(3)::before { background: var(--pink); }
@media (max-width: 800px) { .steps3 { grid-template-columns: 1fr; } }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.price-card { border-radius: 24px; padding: 36px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--grad-warm); opacity: .9; }
.price-card .amount { font-family: var(--font-display); font-size: 3.6rem; font-weight: 700; letter-spacing: -0.04em; position: relative; z-index: 1; }
.price-card .amount small { font-size: 1.1rem; font-weight: 500; opacity: .75; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; position: relative; z-index: 1; }
.price-card li::before { content: '✓'; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); font-size: .75rem; }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pm { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem; }
.pm-wave { background: #E6F8FE; color: #0A8DBA; }
.pm-om { background: #FFF1E5; color: #E06400; }
.pm .logo-dot { width: 20px; height: 20px; border-radius: 6px; }
.pm-wave .logo-dot { background: #1DC8F2; }
.pm-om .logo-dot { background: #FF7900; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.cta-band { border-radius: 28px; padding: 56px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; right: 18%; top: -80px; width: 180px; height: 180px; border-radius: 50%; background: var(--orange); opacity: .9; }
.cta-band h2 { font-size: 2.4rem; margin: 0; position: relative; }
.footer { padding: 40px 0; border-top: 1px solid var(--line-2); margin-top: 60px; color: var(--muted); font-size: .9rem; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  transition: border-color .15s, box-shadow .15s; font-size: .95rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 111, 217, .12); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.checkbox { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--blue); }
.alert { padding: 14px 16px; border-radius: 14px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-info { background: var(--sky); color: var(--blue-700); }
.alert-warn { background: var(--warning-soft); color: #92400E; }
.alert-danger { background: var(--danger-soft); color: #991B1B; }
.alert-success { background: var(--success-soft); color: #065F46; }
.alert-pink { background: var(--pink-soft); color: #9D174D; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth-side { background: var(--grad); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 340px; height: 340px; right: -90px; bottom: -90px; border-radius: 50%; background: var(--grad-warm); }
.auth-side h2 { font-size: 2.6rem; position: relative; z-index: 1; }
.auth-side p { opacity: .9; font-size: 1.05rem; max-width: 420px; position: relative; z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-form form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth-form h1 { font-size: 2rem; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Pages applicatives ---------- */
.page { padding-top: 36px; padding-bottom: 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 2.2rem; margin: 0; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.quick-card { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s; display: grid; gap: 8px; }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.quick-card .qi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.quick-card h3 { font-size: 1.15rem; margin: 6px 0 0; color: var(--ink); }
.quick-card p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) {
  .quick { grid-template-columns: 1fr; gap: 10px; }
  .quick-card { grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .quick-card .qi { grid-row: span 2; }
  .quick-card h3 { margin: 0; }
  .page-head h1 { font-size: 1.8rem; }
}
.resume-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.resume-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.resume-card .thumb { height: 200px; background: var(--surface); overflow: hidden; position: relative; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.resume-card .thumb { padding: 14px 24px 0; }
.resume-card .body { padding: 16px; display: grid; gap: 8px; }
.resume-card h3 { font-size: 1.05rem; margin: 0; }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; background: var(--surface); white-space: nowrap; }
.table td { padding: 14px 16px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #FAFCFF; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em; }
.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- Import ---------- */
.dropzone {
  display: block;
  border: 2px dashed #BFD6F5; border-radius: 24px; padding: 56px 24px; text-align: center; background: linear-gradient(180deg, #F7FBFF, #fff);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--blue); background: var(--sky); }
.dropzone .big-ic { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 2rem; box-shadow: var(--shadow-lg); }
.security-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.security-list div { background: var(--surface); border-radius: 14px; padding: 14px; font-size: .85rem; color: var(--ink-2); }
.security-list b { display: block; margin-bottom: 4px; }
@media (max-width: 700px) { .security-list { grid-template-columns: 1fr; } }
.parse-result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .parse-result { grid-template-columns: 1fr; } }
.ring { --v: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--v) * 1%), var(--line-2) 0); }
.ring > span { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--line); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Éditeur ---------- */
/* L'éditeur occupe tout l'écran : le menu du site est masqué pour laisser respirer le contenu. */
body.is-fullscreen .topbar { display: none; }
body.is-fullscreen main { min-height: 100vh; }
.builder { display: flex; flex-direction: column; height: 100vh; background: #fff; }
.bhead { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line-2); background: #fff; flex: none; }
.bhead-logo { width: 28px; height: 28px; }
.bhead .title-input { border: 1px solid transparent; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; min-width: 0; width: min(360px, 32vw); background: transparent; }
.bhead .title-input:hover { background: var(--surface); }
.bhead .title-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.bhead .btn { gap: 6px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.save-state[data-kind="saving"] i { background: var(--orange); }
.save-state[data-kind="error"] { color: var(--danger); }
.save-state[data-kind="error"] i { background: var(--danger); }
.bbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(400px, 560px) 1fr; }
.builder-left { border-right: 1px solid var(--line-2); display: flex; flex-direction: column; min-height: 0; background: #fff; }

/* Étapes : 6 pastilles reliées par une ligne de progression */
.steps { padding: 22px 28px 8px; flex: none; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); position: relative; }
.steps-list::before, .steps-list::after { content: ''; position: absolute; top: 15px; left: calc(100% / (2 * var(--n, 6))); height: 2px; border-radius: 2px; }
.steps-list::before { right: calc(100% / (2 * var(--n, 6))); background: var(--line-2); }
.steps-list::after { width: calc((100% - 100% / var(--n, 6)) * var(--p, 0)); background: var(--blue); transition: width .3s ease; }
.steps-list li { position: relative; z-index: 1; display: flex; justify-content: center; }
.steps-list button { border: none; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.section-title-input { flex: 1; font-weight: 600; border-color: transparent; background: var(--surface); }
.section-title-input:focus { background: #fff; }
.steps-list .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-size: .82rem; transition: all .2s; }
.steps-list li.done .n { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps-list li.active .n { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(15, 23, 42, .08); }
.steps-list li.active button { color: var(--ink); }
.steps-list button:hover .n { border-color: var(--blue); }

.builder-form { flex: 1; overflow-y: auto; padding: 22px 28px 36px; }
.builder-form h2 { font-size: 1.55rem; margin-bottom: 6px; }
.builder-form .intro { color: var(--muted); margin-bottom: 26px; font-size: .95rem; max-width: 460px; }
.builder-form .stack > * + * { margin-top: 18px; }
.builder-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--line-2); background: #fff; flex: none; }
.builder-nav .btn-primary { min-width: 150px; }

.photo-row { display: flex; align-items: center; gap: 16px; }
.photo-row .ph { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; cursor: pointer; display: grid; place-items: center; background: var(--surface); border: 2px dashed var(--line); color: var(--muted); font-size: 1.4rem; transition: border-color .15s; }
.photo-row .ph:hover { border-color: var(--blue); color: var(--blue); }
.photo-row .ph:not(.is-empty) { border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.photo-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.linklike { border: none; background: none; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
details.more { border-top: 1px solid var(--line-2); padding-top: 14px; }
details.more > summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--blue); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '＋ '; }
details.more[open] > summary::before { content: '－ '; }

.item-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; background: #fff; transition: box-shadow .15s; }
.item-card:not(.collapsed) { box-shadow: var(--shadow-sm); border-color: #CFDDF0; }
.item-card.collapsed .item-body { display: none; }
.item-head { display: flex; align-items: center; gap: 4px; }
.item-head .t { flex: 1; min-width: 0; cursor: pointer; padding: 2px 0; }
.item-head .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-head .t small { color: var(--muted); }
.item-head .btn-icon { width: 30px; height: 30px; padding: 0; background: transparent; color: var(--muted); border: none; font-size: .9rem; opacity: .55; }
.item-card:hover .item-head .btn-icon, .item-head .btn-icon:focus-visible { opacity: 1; }
.item-head .btn-icon:hover { background: var(--surface); color: var(--ink); }
.item-head .btn-danger.btn-icon:hover { background: var(--danger-soft); color: var(--danger); }
.item-body { margin-top: 16px; display: grid; gap: 14px; }
.tags-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; min-height: 52px; align-items: center; }
.tags-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 111, 217, .12); }
.tags-input .tag-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--sky); color: var(--blue-700); padding: 6px 8px 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.tags-input .tag-chip button { border: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(30, 111, 217, .12); color: var(--blue-700); cursor: pointer; display: grid; place-items: center; font-size: .7rem; padding: 0; }
.tags-input input { border: none; flex: 1; min-width: 140px; padding: 6px; outline: none; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggest-chips button { border: 1px dashed var(--line); background: #fff; padding: 5px 11px; border-radius: 999px; font-size: .8rem; cursor: pointer; color: var(--muted); }
.suggest-chips button:hover { border-color: var(--blue); color: var(--blue); }
.lang-row { display: grid; grid-template-columns: 1fr 160px 36px; gap: 8px; margin-bottom: 8px; }

/* Sélecteur de mois (étapes guidées) */
.month-field { position: relative; }
.month-btn { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.month-btn.is-empty { color: var(--muted); }
.month-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; background: #fff; border-radius: 18px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, .25); border: 1px solid var(--line-2); padding: 14px;
}
.month-pop .yr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.month-pop .yr b { font-family: var(--font-display); font-size: 1.2rem; }
.month-pop .months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.month-pop .months button { border: none; background: var(--surface); padding: 9px 4px; border-radius: 10px; cursor: pointer; font-size: .85rem; }
.month-pop .months button:hover { background: var(--sky); color: var(--blue); }
.month-pop .months button.sel { background: var(--blue); color: #fff; }
.month-pop .foot { display: flex; justify-content: space-between; margin-top: 10px; gap: 8px; }

/* Panneau droit */
.builder-right { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.right-tabs { display: flex; justify-content: center; padding: 14px 20px 0; flex: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: #E9EEF5; border-radius: 12px; }
.seg button { border: none; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg .count { background: var(--pink); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .7rem; line-height: 18px; }
.seg .count:empty, .seg .count[data-zero] { display: none; }
.right-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 22px 28px 40px; position: relative; }
.preview-stage { display: flex; justify-content: center; }
.preview-paper { background: #fff; box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .35); border-radius: 6px; overflow: hidden; position: relative; }
.preview-paper .watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.preview-paper .watermark span { transform: rotate(-30deg); font-family: var(--font-display); font-size: 64px; font-weight: 700; color: rgba(30, 111, 217, .06); letter-spacing: .1em; white-space: nowrap; }

/* Panneaux Conseils / Mise en forme */
.panel { max-width: 640px; margin: 0 auto; }
.panel-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font); font-weight: 700; margin: 26px 0 12px; }
.panel > section:first-child .panel-title { margin-top: 6px; }
.score-card { display: flex; gap: 18px; align-items: center; padding: 20px 22px; background: #fff; border-radius: 18px; border: 1px solid var(--line-2); }
.score-card .ring { flex: none; }
.score-text b { font-size: 1.05rem; display: block; }
.score-text p { margin: 2px 0 0; }
.score-head { display: flex; gap: 20px; align-items: center; padding: 20px; background: #fff; border-radius: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tip { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line-2); }
.tip .ic { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); align-self: flex-start; margin-top: 6px; }
.tip.error .ic { background: var(--pink); }
.tip.info .ic { background: #94A3B8; }
.tip-text { flex: 1; min-width: 0; }
.tip-text b { display: block; font-size: .93rem; }
.tip-text p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
.tip .btn { flex: none; }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #FFF5EE, #FDEBF2); flex-wrap: wrap; }
.download-card b { font-size: 1.05rem; }
.download-card p { margin: 2px 0 0; }
.style-panel section + section { margin-top: 4px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.tpl-opt { border: 2px solid transparent; border-radius: 14px; background: #fff; padding: 8px; cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); }
.tpl-opt.sel { border-color: var(--blue); }
.tpl-opt .mini { height: 150px; overflow: hidden; border-radius: 8px; background: var(--surface); position: relative; padding: 8px 12px 0; }
.tpl-opt b { display: block; font-size: .88rem; margin: 8px 4px 2px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.sel { box-shadow: 0 0 0 3px var(--ink); }
.font-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.font-opts button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 16px; cursor: pointer; }
.font-opts button.sel { border-color: var(--blue); background: var(--sky); color: var(--blue); }

/* Mobile : un seul panneau à la fois, choisi par le sélecteur « Modifier / Aperçu » sous l'en-tête */
.mobile-toggle, .mobile-only, .mobile-switch { display: none; }
@media (max-width: 1080px) {
  .builder { height: auto; min-height: 100vh; }
  .bhead { position: sticky; top: 0; z-index: 20; padding: 0 12px; gap: 8px; }
  .bhead-logo, .save-state span { display: none; }
  .bhead .title-input { width: auto; flex: 1; font-size: 1rem; }
  .bhead .hide-sm { display: none; }
  .bbody { grid-template-columns: 1fr; }
  .builder-left { border-right: none; }
  .builder-form { overflow: visible; padding: 18px 18px 30px; }
  .steps { padding: 18px 12px 6px; }
  .steps-list .l { display: none; }
  .steps-list li.active .l { display: block; position: absolute; top: 38px; white-space: nowrap; }
  .steps { padding-bottom: 26px; }
  .builder-nav { position: sticky; bottom: 0; padding: 12px 18px; }
  .builder-nav .btn { padding: 11px 16px; }
  .builder-nav .btn-primary { min-width: 0; }
  .builder-right { display: none; min-height: 70vh; }
  .builder.show-preview .builder-left { display: none; }
  .builder.show-preview .builder-right { display: flex; }
  .right-body { padding: 16px 16px 96px; }
  .mobile-only { display: inline-flex; }
  .mobile-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; position: sticky; top: 64px; z-index: 19; margin: 0; padding: 6px 12px; background: #fff; border-bottom: 1px solid var(--line-2); }
  .mobile-switch button { border: none; border-radius: 10px; padding: 9px 8px; background: var(--surface); color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
  .mobile-switch button.active { background: var(--ink); color: #fff; }
  .builder.show-preview .builder-nav { display: none; }
}
@media (max-width: 600px) {
  .bhead { height: 56px; gap: 6px; padding: 0 8px; }
  .mobile-switch { top: 56px; }
  .bhead .btn-icon { width: 38px; height: 38px; }
  .bhead .btn-sm { padding: 8px 10px; font-size: .85rem; min-height: 38px; }
  .bhead .title-input { font-size: .95rem; padding: 6px 4px; text-overflow: ellipsis; }
  .bhead .spacer { display: none; }
  .right-tabs .seg button { padding: 8px 10px; font-size: .85rem; white-space: nowrap; }
  .save-state { flex: none; }
}
@media (min-width: 1081px) and (max-width: 1280px) {
  .bbody { grid-template-columns: minmax(380px, 480px) 1fr; }
  .bhead .hide-sm { display: none; }
}

/* ---------- Paiement ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }
.pay-step { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.pay-step:last-child { border-bottom: none; }
.pay-step .num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-family: var(--font-display); }
.pay-step .content { flex: 1; min-width: 0; }
.pay-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.phone-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); margin-top: 10px; flex-wrap: wrap; }
.phone-box .num-big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.method { position: relative; border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 700; background: #fff; }
.method input { position: absolute; opacity: 0; }
.method .mlogo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: .9rem; }
.method.wave .mlogo { background: #1DC8F2; }
.method.om .mlogo { background: #FF7900; }
.method:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.method:has(input:focus-visible) { outline: 3px solid rgba(14, 165, 233, .45); }
.summary-card { position: sticky; top: 92px; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.summary-total b { font-family: var(--font-display); font-size: 2rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-size: .7rem; color: #fff; z-index: 1; }
.timeline li.done .dot { background: var(--success); }
.timeline li.current .dot { background: var(--orange); box-shadow: 0 0 0 5px var(--orange-soft); }
.timeline li.fail .dot { background: var(--danger); }
.timeline b { display: block; font-size: .92rem; }
.timeline small { color: var(--muted); }

/* ---------- Admin ---------- */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; min-width: 140px; cursor: pointer; text-align: left; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat.sel { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 111, 217, .12); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 10px; margin-bottom: 16px; }
@media (max-width: 1000px) { .filters { grid-template-columns: 1fr 1fr; } }
.admin-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .admin-detail { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.ref-box { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; font-weight: 600; background: var(--surface); border-radius: 12px; padding: 12px 16px; display: inline-block; letter-spacing: .03em; }

/* ---------- Modèles (galerie) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gallery-item { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.gallery-item .g-thumb { height: 340px; background: var(--surface); position: relative; overflow: hidden; }
.gallery-item .g-thumb { padding: 18px 30px 0; }
.gallery-item .g-thumb .cv-frame { box-shadow: var(--shadow); }
.gallery-item .g-body { padding: 18px; display: grid; gap: 8px; }

/* ---------- Modale & toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 28px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal h2 { font-size: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem; animation: pop .2s ease; display: flex; gap: 10px; align-items: flex-start; }
.toast.error { background: #7F1D1D; }
.toast.success { background: #065F46; }
.version-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 8px; }
.version-opt:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.version-opt input { accent-color: var(--blue); width: 18px; height: 18px; }
.loading-page { display: grid; place-items: center; min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .preview-paper, .cv { display: none !important; }
}

/* ---------- Optimisation IA, format, photo ---------- */
.btn-ai { background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%); color: #fff; box-shadow: 0 8px 20px -8px rgba(232, 69, 124, .55); }
.btn-ai:hover { filter: brightness(1.05); }
.diff { display: grid; gap: 10px; max-height: 42vh; overflow: auto; }
.diff-row b { font-size: .85rem; }
.diff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.diff-old, .diff-new { font-size: .82rem; padding: 10px 12px; border-radius: 10px; white-space: pre-line; }
.diff-old { background: #F8FAFC; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, .4); }
.diff-new { background: var(--success-soft); color: #064E3B; }
@media (max-width: 640px) { .diff-cols { grid-template-columns: 1fr; } }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.choice b { font-size: .95rem; }
.choice span { font-size: .8rem; color: var(--muted); }
.choice.sel { border-color: var(--blue); background: var(--sky); }
.photo-field { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--line); border-radius: 16px; }
.photo-field .ph { width: 76px; height: 76px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); font-size: 1.6rem; }
.photo-field .ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fonctionnalités (version épurée) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.feature .f-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.ai-spot { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.ai-spot h3 { font-size: 1.9rem; margin: 14px 0 8px; }
.ai-demo { display: grid; gap: 8px; }
.ai-demo .diff-old, .ai-demo .diff-new { font-size: .95rem; padding: 14px 16px; }
.ai-arrow { text-align: center; color: var(--pink); font-weight: 700; }
/* Encart « test sur une offre » (affiché quand l'IA n'est pas active). */
.match-spot { position: relative; overflow: hidden; margin-top: 26px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding: 44px; border-radius: 28px; color: #fff; background: linear-gradient(130deg, #0F172A 0%, #1E3A8A 55%, #1E6FD9 100%); box-shadow: 0 30px 60px -28px rgba(30, 111, 217, .55); }
.match-spot::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 26, .55), transparent 65%); }
.match-spot::after { content: ""; position: absolute; width: 300px; height: 300px; left: -110px; bottom: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 69, 124, .45), transparent 65%); }
.match-spot > * { position: relative; z-index: 1; }
.match-spot h3 { font-size: 2rem; line-height: 1.15; margin: 16px 0 10px; color: #fff; }
.match-spot .ms-text p { color: rgba(255, 255, 255, .82); margin: 0 0 22px; }
.chip-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .25); }
.ms-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); transform: rotate(1.5deg); }
.ms-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ms-ex { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); background: #FFF1E8; padding: 3px 8px; border-radius: 999px; }
.ms-gauge { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface); margin-bottom: 14px; }
.ms-gauge .ring { width: 74px; height: 74px; }
.ms-gauge .ring span { width: 58px; height: 58px; font-size: 1rem; }
.ms-label { font-size: .78rem; font-weight: 600; color: var(--muted); margin: 10px 0 6px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-chips span { font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.ms-chips .ok { background: #E7F8F0; color: #0F8A5F; }
.ms-chips .ok::before { content: "✓ "; }
.ms-chips .miss { background: #FFF1E8; color: #C2410C; }
.ms-chips .miss::before { content: "+ "; }
.ms-ats { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .8rem; color: #0F8A5F; font-weight: 600; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } .ai-spot { grid-template-columns: 1fr; } .match-spot { grid-template-columns: 1fr; padding: 32px; } }
@media (max-width: 560px) { .match-spot { padding: 24px 18px; } .match-spot h3 { font-size: 1.55rem; } .ms-card { transform: none; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .ai-spot { padding: 24px; } }
.choice .fl { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 4px; margin-right: 8px; border-radius: 5px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.choice.sel .fl { background: var(--blue); }

/* ---------- Pourquoi Baobab ---------- */
.why { padding-top: 70px; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.why-art { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
.why-art svg { width: 100%; height: auto; }
.why-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin: 18px 0 14px; }
.why-lead { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 30px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--ink); color: #fff; }
.why-list li:nth-child(2) .why-n { background: var(--blue); }
.why-list li:nth-child(3) .why-n { background: var(--pink); }
.why-list li:nth-child(4) .why-n { background: var(--orange); }
.why-list h3 { font-size: 1.12rem; margin: 4px 0 4px; }
.why-list p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .why-art { max-width: 300px; order: -1; }
}
.sec-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--sky); color: var(--blue-700); }
.sec-chip.extra { background: var(--success-soft); color: #065F46; }
.sec-chip.created { background: var(--pink-soft); color: #9D174D; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; }
.admin-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; background: var(--ink); color: #fff; margin-bottom: 28px; }
.admin-banner p { margin: 2px 0 0; opacity: .8; font-size: .9rem; }

/* ---------- Pages légales et pied de page ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 22px 0; color: var(--muted); font-size: .85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.site-footer nav, .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a, .footer-links a { color: var(--muted); }
.site-footer a:hover, .footer-links a:hover { color: var(--blue); }
body.is-fullscreen .site-footer, body.is-landing .site-footer { display: none; }
.footer .container.row { flex-wrap: wrap; gap: 10px 20px; }
.legal-page { max-width: 860px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.legal-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; background: #fff; }
.legal-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink-2, #334155); }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.legal li { margin: 4px 0; }
.legal code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em; background: var(--line-2); padding: 1px 6px; border-radius: 6px; }
.legal-dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 20px; margin: 0; }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.legal mark.todo { background: var(--orange-soft); color: #9A3412; padding: 1px 8px; border-radius: 6px; font-weight: 600; font-size: .9em; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dd { margin-bottom: 10px; } }
