/* Site comemly.com (maquettes section 14) : charte de l'application, mobile d'abord, deux colonnes sur ordinateur. */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #efede8;
  --title: #2c3e50;
  --text: #1c1c1c;
  --muted: #5b6570;
  --border: #e6e2da;
  --gold: #d4af37;
  --gold-text: #8c6d1f;
  --cream: #f3e8c4;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
body.legal { background: var(--surface); font-size: 15px; }
a { color: var(--gold-text); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; color: var(--title); }
h1 { margin: 12px 0 14px; font-size: clamp(38px, 10vw, 76px); line-height: 1.04; letter-spacing: -0.01em; }
main { max-width: 72rem; margin: 0 auto; padding: 0 20px 40px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; padding: 8px 12px; background: var(--surface); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 72rem; margin: 0 auto; padding: 14px 20px; background: var(--bg); }
.legal .site-header { background: var(--surface); }
.wordmark { color: var(--title); font: 400 26px 'Playfair Display', Georgia, serif; text-decoration: none; }
.desktop-nav { display: none; align-items: center; gap: 26px; }
.desktop-nav > a:not(.button) { color: var(--title); font-weight: 500; text-decoration: none; }
.mobile-nav { display: flex; align-items: center; gap: 10px; }
.lang-pill { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-alt); }
.lang-pill a { min-width: 36px; padding: 6px 10px; border-radius: 999px; color: var(--muted); font: 600 13px Inter, system-ui, sans-serif; text-align: center; text-decoration: none; }
.lang-pill a[aria-current] { background: var(--surface); color: var(--title); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.menu > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-alt); color: var(--title); font-size: 18px; list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { position: relative; z-index: 31; }
.menu[open]::before { content: ''; position: fixed; inset: 0; z-index: 29; background: rgba(44, 62, 80, 0.35); }
.menu-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; gap: 4px; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--bg); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12); }
.menu-sheet > a:not(.lang-choice) { padding: 12px 4px; color: var(--title); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); }
.menu-sheet .micro { margin: 14px 0 6px; }
.lang-choice { display: flex; justify-content: space-between; align-items: center; min-height: 54px; margin-top: 8px; padding: 0 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 500; text-decoration: none; }
.lang-choice[aria-current] { border: 2px solid var(--gold); }
.mono, .micro, .version, .badge { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.micro { color: var(--gold-text); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mono { color: var(--muted); font-size: 12px; }

/* Boutons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 16px; background: var(--gold); color: var(--title); font: 600 17px Inter, system-ui, sans-serif; text-decoration: none; }
.button.small { min-height: 40px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.button.wide { width: 100%; }
.button:hover { filter: brightness(1.04); }
.note { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.center { text-align: center; }
.lead { margin: 0 0 24px; color: #3a434c; font-size: 17px; }
.missing { display: none; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--cream); color: var(--title); }
.missing:target { display: block; }

/* Accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 18px; }
.hero > * { min-width: 0; }
.carousel { display: flex; gap: 20px; margin: 0 -20px; padding: 6px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: none; width: min(70vw, 250px); scroll-snap-align: center; text-align: center; }
.phone { overflow: hidden; border: 6px solid #1c1c1c; border-radius: 28px; background: var(--surface); aspect-ratio: 9 / 18; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slide-title { margin: 14px 0 2px; color: var(--title); font: 400 20px 'Playfair Display', Georgia, serif; }
.slide-text { margin: 0; color: var(--muted); font-size: 14px; }
.swipe { margin: 6px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.steps { display: grid; gap: 18px; margin: 18px 0 28px; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--title); color: #fff; font-weight: 600; }
.steps strong { font-size: 17px; }
.steps p { margin: 2px 0 0; color: #3a434c; }
.card { margin: 12px 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card h2, .card h3 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 0; color: #3a434c; }
.desktop-cards { display: none; }
.final { margin: 34px 0 10px; padding: 28px 22px; border-radius: 26px; background: var(--title); color: #fff; text-align: center; }
.final h2 { margin: 0 0 18px; color: #fff; font-size: 30px; line-height: 1.1; text-align: left; }
.final p { margin: 14px 0 0; font-size: 14px; }
.final a:not(.button) { color: #fff; }

/* Offres et FAQ */
.plans-title em { font-style: italic; }
.plans { display: grid; gap: 14px; }
.plan { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h2 { margin: 0; font-size: 26px; }
.price { margin: 0; color: var(--title); font-weight: 600; white-space: nowrap; }
.plan-summary { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.plan.featured { border: none; background: var(--title); color: #fff; }
.plan.featured h2, .plan.featured .price { color: #fff; }
.plan.featured ul { margin: 10px 0 0; padding: 0; list-style: none; }
.plan.featured li { padding: 2px 0; font-weight: 500; }
.plan.featured li::before { content: '— '; }
.badge { display: inline-block; margin: 0 0 8px; padding: 4px 8px; border-radius: 6px; background: var(--gold); color: var(--title); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tagline { margin: 22px 0 6px; color: var(--title); font: italic 400 18px 'Playfair Display', Georgia, serif; text-align: center; }
.section-title { margin: 34px 0 6px; font-size: 32px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--text); font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); }
.faq details[open] summary { font-weight: 600; }
.faq details[open] summary::after { content: '–'; color: var(--text); }
.faq details p { margin: -4px 0 16px; color: #3a434c; }
.other-question { margin: 28px 0 0; padding: 22px; border-radius: var(--radius); background: var(--cream); }
.other-question h2 { margin: 0 0 6px; font-size: 24px; }
.other-question p { margin: 0 0 16px; }

/* Légal (sans script) */
.legal-list { margin: 10px 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.legal-list a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 17px; font-weight: 500; text-decoration: none; }
.back { margin: 8px 0 0; }
.back a { text-decoration: none; }
.version { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.legal main h2 { margin: 22px 0 6px; font: 600 18px Inter, system-ui, sans-serif; color: var(--text); }
/* Ancres des articles (#article-2-3) : le titre visé s'arrête sous le bandeau collant, pas derrière. */
.legal [id^="article-"] { scroll-margin-top: 112px; }
.legal-text { max-width: 72ch; line-height: 1.6; }
.legal-text h3 { margin: 18px 0 4px; font: 600 16px Inter, system-ui, sans-serif; }
.legal-text ul, .legal-text ol { padding-left: 22px; }
.legal-text li { margin: 4px 0; }
.legal-text .draft { padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 13px; }
.legal-text mark.todo { padding: 0 3px; border-radius: 4px; background: #fff1b8; color: #5c4400; }
.legal-text .table-wrap { overflow-x: auto; margin: 12px 0; }
.legal-text table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-text th, .legal-text td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.legal-text th { background: var(--surface); font-weight: 600; }
.legal main h1 { font-size: clamp(32px, 8vw, 48px); }

/* Pied de page */
.site-footer { max-width: 72rem; margin: 0 auto; padding: 18px 20px 34px; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--title); }

/* Ordinateur (14.1b) : même contenu, deux colonnes ; « Se connecter » dans l'en-tête. */
@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
  .site-header { padding: 18px 40px; }
  main { padding: 0 40px 60px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 60px; }
  .hero-cta { display: flex; align-items: center; gap: 22px; }
  .hero-cta .button { width: auto; white-space: nowrap; }
  .hero-cta .note { margin: 0; text-align: left; }
  .carousel { margin: 0; padding: 6px 0 8px; }
  .slide { width: 230px; }
  .desktop-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 60px 0 20px; }
  .mobile-only { display: none; }
  .final { max-width: 46rem; margin: 40px auto 0; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
  main > h1, main > .lead, .faq, .other-question, .legal-list, .legal main > * { max-width: 46rem; }
  .site-footer { padding: 24px 40px 40px; }
}
@media print {
  .site-header, .site-footer, .skip, .back { display: none; }
  body.legal { font-size: 11pt; }
}
