/* =========================================================
   1. JETONS DE DESIGN (couleurs, typographie, rayons)
   ========================================================= */
:root {
  --bg: #F6F0F3;
  --surface: #FFFFFF;
  --surface-2: #FBF7F9;
  --ink: #2A1E33;
  --muted: #6C6076;
  --line: #E4D8E0;
  --staff-line: #CDBFC8;
  --primary: #B8336A;
  --primary-hover: #9E2958;
  --primary-ink: #FFFFFF;
  --primary-soft: #F8E3EC;
  --gold: #D9982A;
  --gold-soft: #FCF1DA;
  --ok: #2F7D5B;
  --err: #B42318;
  --err-soft: #FDECEA;
  --shadow: 0 1px 2px rgba(42,30,51,.05), 0 10px 30px -18px rgba(42,30,51,.35);
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1520; --surface: #251D2B; --surface-2: #2C2333; --ink: #F2EAF0; --muted: #B3A6B8;
    --line: #3D3244; --staff-line: #5A4C62; --primary: #E0648F; --primary-hover: #EA7FA3; --primary-ink: #1B1520;
    --primary-soft: #3E2433; --gold: #F0BC55; --gold-soft: #3A2F1C; --ok: #6CC79D; --err: #FF8A80; --err-soft: #3D2222;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1520; --surface: #251D2B; --surface-2: #2C2333; --ink: #F2EAF0; --muted: #B3A6B8;
  --line: #3D3244; --staff-line: #5A4C62; --primary: #E0648F; --primary-hover: #EA7FA3; --primary-ink: #1B1520;
  --primary-soft: #3E2433; --gold: #F0BC55; --gold-soft: #3A2F1C; --ok: #6CC79D; --err: #FF8A80; --err-soft: #3D2222;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 .8em; }
a { color: var(--primary); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   2. EN-TÊTE
   ========================================================= */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 16px 20px;
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.brand-logo { width: 46px; height: 46px; flex: none; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.save-status { font-size: .85rem; color: var(--ok); transition: opacity .4s; }
.mode-badge {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; cursor: pointer; min-height: 40px;
}
.mode-badge:hover { border-color: var(--primary); }

.banner {
  max-width: 1080px; margin: 0 auto 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--gold-soft); display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  width: calc(100% - 40px);
}
.banner p { margin: 0; flex: 1 1 240px; }

/* =========================================================
   3. ÉCRAN D'ACCUEIL (choix du mode)
   ========================================================= */
.home { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }
.home-hero { max-width: 760px; margin: 12px 0 36px; }
.home-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 18px; }
.home-hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.mode-card {
  text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 22px;
  padding: 28px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.mode-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.mode-card.is-current { border-color: var(--primary); }
.mode-card .mode-dot { width: 14px; height: 14px; border-radius: 50%; }
.mode-card.express .mode-dot { background: #2FA36B; }
.mode-card.perso .mode-dot { background: #3B6FD1; }
.mode-card h2 { font-size: 1.6rem; }
.mode-card p { margin: 0; color: var(--muted); }
.mode-card .mode-meta { font-weight: 700; color: var(--ink); }
.mode-card .mode-cta { margin-top: auto; padding-top: 8px; font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.home-prices { margin-top: 28px; color: var(--muted); font-size: .95rem; max-width: 70ch; }

/* =========================================================
   4. PROGRESSION : la portée musicale
   ========================================================= */
.progress { max-width: 1120px; margin: 0 auto; padding: 4px 20px 8px; }
.progress-text { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-weight: 700; }
.progress-text .pct { color: var(--muted); font-weight: 400; white-space: nowrap; }
.staff-wrap { position: relative; padding: 0 4px; }
.staff { position: relative; height: 58px; }
.staff::before {
  content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 41px;
  background: repeating-linear-gradient(to bottom, var(--staff-line) 0 1px, transparent 1px 10px);
}
.staff::after {
  content: ""; position: absolute; right: 0; top: 8px; height: 41px; width: 7px;
  border-left: 1px solid var(--ink); border-right: 4px solid var(--ink);
}
.note-btn {
  position: absolute; width: 40px; height: 40px; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%;
}
.note-btn:disabled { cursor: default; }
.note-head {
  position: absolute; left: 50%; top: 50%; width: 15px; height: 11px; margin: -5.5px 0 0 -7.5px;
  border-radius: 50%; border: 2px solid var(--muted); background: var(--bg);
  transform: rotate(-22deg); transition: transform .25s, background .25s;
}
.note-stem { position: absolute; width: 1.6px; height: 28px; background: var(--muted); left: calc(50% + 6px); bottom: 50%; }
.note-btn.stem-down .note-stem { left: calc(50% - 7.6px); top: 50%; bottom: auto; }
.note-btn.done .note-head { background: var(--ink); border-color: var(--ink); }
.note-btn.done .note-stem { background: var(--ink); }
.note-btn.current .note-head { background: var(--primary); border-color: var(--primary); transform: rotate(-22deg) scale(1.35); }
.note-btn.current .note-stem { background: var(--primary); }
.note-btn:not(:disabled):hover .note-head { transform: rotate(-22deg) scale(1.3); }
.staff-labels { position: relative; height: 22px; margin-top: 2px; }
.staff-labels span {
  position: absolute; transform: translateX(-50%); font-size: .78rem; color: var(--muted); white-space: nowrap;
}
.staff-labels span.current { color: var(--primary); font-weight: 700; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .4s ease; }

/* =========================================================
   5. MISE EN PAGE FORMULAIRE + ENCADRÉ PRIX
   ========================================================= */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start;
  max-width: 1120px; margin: 0 auto; padding: 16px 20px 40px;
}
.step-head { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 22px; }
.step-icon {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 1.6rem;
}
.step-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 6px; }
.step-head h1:focus { outline: none; }
.step-head p { color: var(--muted); margin: 0; max-width: 62ch; }

.card {
  background: var(--surface); border-radius: 20px; padding: 24px; margin-bottom: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.card-intro { color: var(--muted); margin-bottom: 18px; }
.card.highlight { border: 2px solid var(--gold); background: linear-gradient(var(--gold-soft), var(--surface) 140px); }

.price-box {
  position: sticky; top: 16px; background: var(--surface); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.price-box h2 { font-size: 1.2rem; margin-bottom: 12px; }
.price-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.price-lines li.off span:last-child { color: var(--muted); }
.price-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.price-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.price-total strong { font-size: 2rem; color: var(--primary); }
.price-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.mobile-only { display: none; }
body.no-prices .price-block { display: none !important; }
body.no-prices .layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.status-ok { border-left-color: var(--ok); }

/* =========================================================
   6. ACCORDÉONS
   ========================================================= */
.acc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: .95rem; color: var(--muted); }
.acc-toolbar .links { display: flex; gap: 6px; }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 8px 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 20px; min-height: 64px;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.acc-head .acc-icon { font-size: 1.35rem; }
.acc-head .acc-title { flex: 1; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.acc-count { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.acc-count.has { background: var(--gold-soft); border-color: transparent; color: var(--ink); }
.acc-chev { width: 12px; height: 12px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s; margin: 0 4px 4px; }
.acc-head[aria-expanded="true"] .acc-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.acc-body { padding: 4px 20px 22px; border-top: 1px solid var(--line); }
.acc-body > .fields { padding-top: 18px; }

/* =========================================================
   7. CHAMPS
   ========================================================= */
.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.fields > * { grid-column: 1 / -1; }
.fields > .field.half { grid-column: auto; }
.field { margin-bottom: 20px; }
.field.sub { margin-top: -8px; padding-left: 14px; border-left: 3px solid var(--primary-soft); }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--primary); }
.opt { font-weight: 400; font-size: .82rem; color: var(--muted); margin-left: 6px; }
.field-label, .card-intro, .help, .step-head p { white-space: pre-line; }
.help { font-size: .9rem; color: var(--muted); margin: -2px 0 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238a7d91' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); background: var(--err-soft); }
.error-msg { color: var(--err); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.error-msg:empty { display: none; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--gold-soft); border-left: 4px solid var(--gold); margin-bottom: 20px; font-size: .95rem; }
.note.tip { background: var(--surface-2); border-left-color: var(--primary); }
.note p:last-child { margin: 0; }

/* Photos */
.photos { margin-bottom: 8px; }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  border: 2px dashed var(--staff-line); border-radius: 16px; padding: 22px 16px; cursor: pointer;
  background: var(--surface-2); transition: border-color .2s, background .2s;
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--primary); background: var(--primary-soft); }
.photo-drop.disabled { opacity: .55; cursor: not-allowed; }
.photo-drop strong { font-family: var(--font-head); font-size: 1.05rem; }
.photo-count { font-weight: 700; margin: 10px 0; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(20,14,24,.75); color: #fff; font-size: 1rem; cursor: pointer;
}

/* =========================================================
   8. BOUTONS ET NAVIGATION
   ========================================================= */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.navbar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.nav-total { display: none; text-align: center; line-height: 1.1; }
.nav-total span { display: block; font-size: .78rem; color: var(--muted); }
.nav-total strong { white-space: nowrap; font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); }
.form-alert { padding: 14px 16px; border-radius: 14px; background: var(--err-soft); color: var(--err); font-weight: 700; margin-bottom: 16px; }

/* =========================================================
   9. LIVRAISON, PAIEMENT, RÉCAPITULATIF
   ========================================================= */
.pay-grid { display: grid; grid-template-columns: 1fr 150px; gap: 20px; align-items: center; margin: 12px 0; }
.pay-label { margin: 0; color: var(--muted); }
.pay-number { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; margin: 0 0 8px; }
.pay-number a { color: var(--ink); text-decoration: none; }
.pay-amount { font-size: 1.1rem; margin: 0; }
.pay-amount strong { color: var(--primary); font-size: 1.3rem; }
.qr-slot {
  aspect-ratio: 1; border: 2px dashed var(--staff-line); border-radius: 14px; display: grid; place-items: center;
  text-align: center; color: var(--muted); font-size: .9rem; padding: 10px;
}
.recap-section { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 12px; }
.recap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.recap-head h2 { font-size: 1.15rem; }
.recap-list { margin: 0; display: grid; gap: 10px; }
.recap-list div { display: grid; gap: 2px; }
.recap-list dt { font-size: .85rem; color: var(--muted); }
.recap-list dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.recap-empty { color: var(--muted); font-style: italic; margin: 0; }
.recap-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.recap-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 18px 22px; margin: 18px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.recap-total strong { font-size: 2.2rem; }
.checks { display: grid; gap: 10px; margin: 18px 0; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--primary); }
.check.invalid { border-color: var(--err); background: var(--err-soft); }
.btn-submit { width: 100%; min-height: 64px; font-size: 1.3rem; }

/* Confirmation */
.done { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.done h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.json-box { width: 100%; min-height: 260px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; }
details summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 959px) {
  .layout { grid-template-columns: 1fr; }
  .price-box { display: none; }
  .mobile-only { display: block; }
  .nav-total { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .fields { grid-template-columns: 1fr; }
  .fields > .field.half { grid-column: 1 / -1; }
  .staff-labels { display: none; }
  .card { padding: 20px 16px; }
  .acc-head { padding: 16px; }
  .acc-body { padding: 4px 16px 18px; }
  .acc-count { font-size: .75rem; padding: 3px 8px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .pay-grid { grid-template-columns: 1fr; }
  .qr-slot { max-width: 160px; }
  .btn { padding: 0 18px; }
  .step-icon { width: 46px; height: 46px; font-size: 1.35rem; }
  .save-status { display: none; }
  .mode-badge { font-size: .82rem; padding: 6px 12px; white-space: nowrap; }
  .badge-long { display: none; }
  .navbar .btn { padding: 0 16px; font-size: .98rem; }
  .brand { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Cases à cocher multiples (Ton et intention) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.choice input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Import d'une commande existante */
.import-card { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 20px; padding: 20px 24px; border-radius: 20px; border: 1.5px dashed var(--staff-line); background: var(--surface); }
.import-card > div { flex: 1 1 320px; }
.import-card h2 { font-size: 1.2rem; margin-bottom: 4px; }
.import-card p { margin: 0; color: var(--muted); }
.import-card .error-msg { color: var(--err); margin-top: 8px; }

/* Anti-spam : champ piège hors écran */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Note d'alerte (délai trop court) */
.note.warn { background: var(--err-soft); border-left-color: var(--err); }
/* QR code Wero */
.qr-img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; padding: 8px; display: block; }

/* =========================================================
   PAGES DU SITE : menu, pied de page, pages de contenu
   ========================================================= */
a.brand { color: inherit; text-decoration: none; }
.site-nav { max-width: 1120px; margin: -6px auto 8px; padding: 0 20px; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0 0 4px; overflow-x: auto; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 700; font-size: .95rem; }
.site-nav a:hover { background: var(--surface); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.site-footer { max-width: 1120px; margin: 24px auto 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }

.page { max-width: 900px; margin: 0 auto; padding: 24px 20px 40px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-intro { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.page-intro:empty { display: none; }
.page-cta { margin-top: 36px; }

.steps-list { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 14px; }
.step-item { counter-increment: etape; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 18px 72px; box-shadow: var(--shadow); }
.step-item::before { content: counter(etape); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.step-item h2 { font-size: 1.2rem; margin-bottom: 4px; }
.step-item p { margin: 0; color: var(--muted); }
.step-item p:empty { display: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card.example audio { width: 100%; margin-top: 8px; }
.card.testimonial { margin: 0; }
.card.testimonial blockquote { margin: 0 0 12px; font-size: 1.05rem; }
.card.testimonial figcaption { color: var(--muted); }

.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq-item summary { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; padding: 14px 0; cursor: pointer; }
.faq-item p { color: var(--muted); }
.btn { text-decoration: none; }

/* Page d'accueil */
.hero { padding: 24px 0 12px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 18px; max-width: 16ch; }
.btn-big { min-height: 60px; padding: 0 30px; font-size: 1.2rem; }
.home-section { margin-top: 40px; }
.home-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.home-section-content:empty { display: none; }
.link-more { font-weight: 700; }

/* Nom long dans l'en-tête : retour à la ligne sur petit écran */
@media (max-width: 640px) {
  .brand { white-space: normal; line-height: 1.2; min-width: 0; }
  .topbar { flex-wrap: nowrap; }
}

/* =========================================================
   MA CHANSON (écoute), AVIS CLIENTS, OUTIL DE MISE EN LIGNE
   ========================================================= */
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-input { flex: 1 1 200px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.4rem !important; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.song-card .song-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin: 2px 0 10px; }
.song-msg { font-size: 1.05rem; }
.files { display: grid; gap: 12px; margin: 16px 0; }
.file-item { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.file-item .file-name { font-weight: 700; margin: 0; }
.file-item audio { width: 100%; }
.file-item .btn { justify-self: start; }
.lyrics summary { cursor: pointer; margin: 0; }
.lyrics-text { white-space: pre-line; margin-top: 12px; line-height: 1.7; }
#songZone > * + * { margin-top: 0; }

.stars { color: var(--gold); font-size: 1.3rem; letter-spacing: .1em; margin: 0 0 8px; }
.testimonial-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0 0 6px; }
.stars-input { border: 0; padding: 0; margin: 0 0 20px; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-row label { font-size: 2.4rem; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: color .15s; }
.stars-row label:hover, .stars-row label:hover ~ label, .stars-row input:checked ~ label { color: var(--gold); }
.stars-row input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
#avisForm .check { margin-top: 4px; }
#avisForm .btn-big { margin-top: 16px; }

.files-list { display: grid; gap: 8px; margin-bottom: 8px; }
.file-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
@media (max-width: 640px) { .file-row { grid-template-columns: 1fr; } }
.tool-steps { padding-left: 1.2em; display: grid; gap: 14px; }
.tool-steps p { margin: 0 0 6px; }
.big-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .1em; color: var(--primary); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 0; }
.qr-out { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
#oQr img, #oQr canvas { border-radius: 8px; background: #fff; padding: 8px; }
.lyrics summary.card-title::after { content: "▾"; margin-left: auto; color: var(--muted); } .lyrics[open] summary.card-title::after { content: "▴"; } .lyrics summary { list-style: none; } .lyrics summary::-webkit-details-marker { display: none; }

/* Pages légales */
.legal h2 { font-size: 1.25rem; font-weight: 800; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }

/* BAT (validation des paroles) */
.bat-titre { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 12px 0 0; }
.bat-paroles { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 1.05rem; }
.bat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bat-box { display: grid; gap: 10px; align-content: start; }
.bat-box h3 { font-family: var(--font-head); font-size: 1.1rem; margin: 0; }
.bat-box .btn { justify-self: start; }
@media (max-width: 760px) { .bat-actions { grid-template-columns: 1fr; } }

/* Contact */
.contact-direct { margin-top: 18px; }
#cInfoSujet { grid-column: 1 / -1; }

/* Menu : passe à la ligne sur ordinateur quand il y a beaucoup de pages */
@media (min-width: 641px) {
  .site-nav ul { flex-wrap: wrap; overflow-x: visible; }
  .site-nav a { padding: 7px 12px; }
}

/* Facture (outil) */
.facture-apercu { margin: 6px 0 12px; }
.facture-apercu table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facture-apercu td { padding: 6px 8px; border-bottom: 1px dashed var(--line); }
.facture-apercu td:last-child { text-align: right; white-space: nowrap; }
.facture-apercu tr.total td { font-weight: 800; border-bottom: 0; font-size: 1.05rem; }

/* Pages d'occasion et accueil */
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--primary); margin: 0 0 6px; }
.occasion-page .page-head h1 { max-width: 22ch; }
.occasion-list, .occasion-steps { padding-left: 1.3em; margin: 0 0 12px; }
.occasion-list li, .occasion-steps li { margin-bottom: 6px; line-height: 1.6; }
.occasion-h2 { font-size: 1.4rem; font-weight: 800; margin: 28px 0 12px; }
.occasion-autres ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.occasion-autres a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.occasion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.occasion-card { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: border-color .2s; }
.occasion-card:hover { border-color: var(--primary); }
.occasion-card strong { font-family: var(--font-head); font-size: 1.08rem; }
.occasion-card span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.footer-occasions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: .85rem; }

/* ===== Qui suis-je : portrait et touches personnelles (v3.1) ===== */
.portrait { box-sizing: border-box; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 3px solid var(--surface); box-shadow: var(--shadow); flex-shrink: 0; }
.portrait.portrait-logo { object-fit: contain; padding: 6px; background: #fff; }
.portrait-grand.portrait-logo { padding: 34px; }
.apropos-mini .portrait.portrait-logo { padding: 18px; }
.portrait-grand { width: 220px; height: 220px; }
.portrait-mini { width: 40px; height: 40px; border-width: 2px; }
.apropos-carte { display: flex; gap: 28px; align-items: flex-start; }
.apropos-mini { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.apropos-mini p { margin: 0 0 8px; }
.apropos-mini .portrait { width: 120px; height: 120px; }
.mot-auteur { display: flex; gap: 12px; align-items: center; margin: 14px 0 12px; color: var(--muted); font-size: .95rem; }
.signature { font-family: var(--font-head); font-size: 1.6rem; font-style: italic; color: var(--primary); margin: 10px 0 0; text-align: right; }
.page-cta p { margin-top: 12px; }
@media (max-width: 640px) {
  .apropos-carte, .apropos-mini { flex-direction: column; align-items: center; text-align: left; }
  .portrait-grand { width: 170px; height: 170px; }
}

/* ===== v3.3 : nouveautés ===== */
/* Bandeau saisonnier */
.bandeau-saison { display: block; margin: 0; padding: 10px 16px; text-align: center; font-weight: 700; font-size: .95rem; background: var(--primary); color: var(--primary-ink); text-decoration: none; }
a.bandeau-saison:hover { background: var(--primary-hover); }
/* Bouton WhatsApp */
.bouton-whatsapp { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: #1F8F4E; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.bouton-whatsapp svg { width: 26px; height: 26px; }
.bouton-whatsapp:hover { background: #17733E; }
@media (max-width: 640px) { .bouton-whatsapp span { display: none; } .bouton-whatsapp { padding: 12px; } }
@media print { .bouton-whatsapp, .bandeau-saison { display: none; } }
/* Ce qui est inclus */
.inclus { margin-top: 28px; }
.inclus-liste { margin: 0 0 12px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.inclus-liste li { position: relative; padding-left: 28px; line-height: 1.5; }
.inclus-liste li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--ok); font-weight: 800; }
.inclus-prix { font-size: 1.05rem; margin: 8px 0 4px; }
/* Pourquoi me choisir */
.pourquoi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pourquoi-grid .card { margin: 0; }
.pourquoi-grid h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; }
.pourquoi-grid p { margin: 0; color: var(--muted); }
/* Styles musicaux */
.styles-liste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.styles-liste li { padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--ink); font-weight: 700; font-size: .92rem; }
/* Lecteur d'extraits */
.extraits { display: grid; gap: 12px; margin-bottom: 8px; }
.extrait { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.extrait p { margin: 0 0 8px; }
.extrait audio { width: 100%; }
/* Bon cadeau */
.etapes-simples { padding-left: 1.3em; margin: 0; }
.etapes-simples li { margin-bottom: 8px; line-height: 1.6; }
.bon-apercu { text-align: center; padding: 28px 20px; background: linear-gradient(135deg, var(--primary-soft), var(--gold-soft)); }
.bon-surtitre { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--gold); margin: 0 0 6px; }
.bon-titre { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; color: var(--primary); margin: 0 0 12px; }
.bon-message { font-style: italic; max-width: 48ch; margin: 0 auto 12px; }
.bon-code { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; padding: 8px 18px; border: 2px dashed var(--primary); border-radius: 12px; background: var(--surface); color: var(--primary); }
/* Paiement en ligne */
.pay-enligne { margin-top: 12px; }
.pay-enligne #paypalBoutons { max-width: 360px; margin-top: 12px; }
.note-err { background: var(--err-soft); border-left-color: var(--err); }

/* ===== Bloc « Une chanson unique, créée avec vous » (accueil) et rappel (commande) ===== */
.creation-avec-vous { max-width: 70ch; margin: 22px 0 24px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 16px; box-shadow: var(--shadow); }
.creation-avec-vous h2 { font-size: 1.45rem; font-weight: 800; margin: 0 0 8px; }
.creation-avec-vous p { margin: 0 0 10px; }
.creation-avec-vous p:last-child { margin-bottom: 0; }
.creation-avec-vous .cav-accroche { font-size: 1.12rem; font-weight: 700; }
.creation-avec-vous .cav-resume { font-weight: 700; color: var(--primary); }
.creation-rappel { max-width: 760px; }
.faq-ia { color: var(--muted); padding-left: 1.2em; }
.faq-ia li { margin-bottom: 8px; }
@media (max-width: 600px) { .creation-avec-vous { padding: 16px; } }

/* Date de mise à jour en bas des pages de contenu (visibilité dans les moteurs et les IA) */
.maj-date { margin-top: 32px; font-size: .85rem; color: var(--muted); }

/* v3.4.0 – Optimisation accueil, conversion et accessibilité */
.hero-promesses{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem 1.1rem;margin:1.25rem auto;color:var(--ink);font-size:.94rem}
.hero-promesses span{display:inline-block}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.8rem;margin:1.35rem 0 .65rem}
.hero-actions .btn{min-width:215px;text-align:center}
.btn-secondaire{background:var(--surface);border:2px solid var(--primary);color:var(--primary);text-decoration:none}
.btn-secondaire:hover{background:var(--primary-soft)}
.hero-reassurance{font-size:.93rem;color:var(--muted);max-width:660px;margin:.8rem auto}
.creation-avec-vous{max-width:100%;margin-inline:auto}
#tarifs{scroll-margin-top:25px}
@media(max-width:620px){.hero-actions{flex-direction:column}.hero-actions .btn{width:100%;max-width:420px}.hero-promesses{justify-content:flex-start;flex-direction:column;align-items:flex-start;max-width:390px}}

/* Page tarifs */
.tarifs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}.tarif-offre{border:1px solid var(--border,#d8d8d8);border-radius:14px;padding:1.25rem;display:flex;flex-direction:column;gap:.65rem}.tarif-offre h3{margin:0}.tarif-offre p{margin:.25rem 0}.tarif-offre .btn{margin-top:auto;text-align:center}.tarif-montant{font-size:2rem;font-weight:800;color:var(--primary,#7d315c)}@media(max-width:760px){.tarifs-grid{grid-template-columns:1fr}}

/* ===== Vidéos d'exemple YouTube (v3.4.2, videos.js) ===== */
.video-yt { position: relative; aspect-ratio: 16 / 9; margin-top: 8px; border-radius: 12px; overflow: hidden; background: #000; }
.video-yt button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.video-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-yt .video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .15s ease, background .15s ease; }
.video-yt button:hover .video-play, .video-yt button:focus-visible .video-play { background: var(--primary-hover); transform: translate(-50%, -50%) scale(1.08); }
.video-yt button:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.video-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }

/* ===== Réseaux en pied de page (v3.4.3) ===== */
.footer-reseaux { align-items: center; }
.site-footer a.reseau { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a.reseau svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.site-footer a.reseau:hover, .site-footer a.reseau:focus-visible { border-color: var(--primary); color: var(--primary); }

/* ===== Fil d'Ariane (v3.4.4) ===== */
.fil-ariane { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.fil-ariane a { color: var(--muted); }
.fil-ariane a:hover { color: var(--primary); }
.fil-ariane [aria-current] { color: var(--ink); }

/* ===== v3.4.5 : import discret (commande), accroche, paroles des exemples ===== */
.import-discret { margin-top: 18px; font-size: .92rem; }
.import-discret > summary { cursor: pointer; color: var(--muted); text-decoration: underline; width: fit-content; }
.import-discret > summary:hover { color: var(--primary); }
.import-discret[open] .import-card { margin-top: 10px; }
.page-cta .accroche { font-size: 1.08rem; font-weight: 600; margin: 0 0 14px; text-align: center; }
.page-cta .accroche .muted { font-weight: 400; }
details.paroles { margin-top: 10px; }
details.paroles > summary { cursor: pointer; color: var(--primary); font-weight: 600; }
details.paroles p { margin: 8px 0; line-height: 1.6; }
