/* Ma Moitié · landing de test. Branding : 01_Branding/261026_MaMoitie_branding_v2.md */
:root {
  --creme: #EEE9DF;
  --creme-2: #E6E0D3;
  --encre: #2A221C;
  --ardoise: #1F1C19;
  --fromage: #E8B84A;
  --bois: #7A5530;
  --filet: #D6CFC2;
  --blanc: #FBF9F5;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: Caveat, "Bradley Hand", cursive;
  --frame-ratio: 2752 / 1536;  /* vidéo et images en paysage seulement (Alex, 26.10.2026) */
  --topbar: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--creme); color: var(--encre); font: 400 16px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
em { font-style: italic; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--hand); font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bois); margin-bottom: 14px; }
.display { font: 400 clamp(56px, 13vw, 148px)/.92 var(--serif); letter-spacing: -.015em; }
.display-m { font: 400 clamp(40px, 7vw, 76px)/1 var(--serif); letter-spacing: -.01em; margin-bottom: 28px; }
.display-s { font: 400 clamp(28px, 4.2vw, 42px)/1.06 var(--serif); margin-bottom: 12px; }
.lead { font-size: 18px; max-width: 46ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
       background: var(--encre); color: var(--creme); border: 0; border-radius: 999px; font-weight: 500; text-decoration: none;
       cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn:focus-visible, .chip:focus-visible, .step-btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--bois); outline-offset: 3px; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-full { width: 100%; }
.link { color: var(--bois); font-size: 14px; }

/* Barre du haut */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 50; display: flex; align-items: center; justify-content: space-between;
          padding: 0 20px; background: rgba(238, 233, 223, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
          border-bottom: 1px solid rgba(214, 207, 194, .6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/1 var(--serif); }

/* Accueil */
.hero { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--topbar) + 32px) 20px 80px; position: relative; text-align: center; }
.hero-inner { max-width: 900px; }
.hero-lead { font-size: clamp(17px, 2.2vw, 21px); max-width: 42ch; margin: 24px auto 32px; }
.name-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.name-form input { min-height: 48px; width: min(280px, 100%); padding: 0 20px; border: 1px solid var(--filet); border-radius: 999px; background: var(--blanc); font-size: 17px; }
.preview-line { margin-top: 28px; font: 400 22px/1.2 var(--serif); }
.preview-line .hand { font-size: 38px; color: var(--bois); margin-left: 4px; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--encre); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; background: var(--encre); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Histoire au défilement */
.story { position: relative; background: var(--ardoise); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 1; }
/* Téléphone : bandeau cinéma pleine largeur dans la moitié haute ; ordinateur : plein écran (voir plus bas) */
.frame { position: absolute; left: 50%; top: 38%; aspect-ratio: var(--frame-ratio); width: 100vw;
         transform: translate(-50%, -50%); container-type: inline-size; overflow: hidden; background: var(--ardoise); }
.layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.layer picture { display: block; width: 100%; height: 100%; }
.layer img, .layer canvas { width: 100%; height: 100%; object-fit: cover; }
.layer canvas { position: absolute; inset: 0; }
.layer.is-first { opacity: 1; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(238, 233, 223, .15); }
.progress span { display: block; height: 100%; width: 0; background: var(--fromage); }

.steps { position: relative; z-index: 2; margin-top: -100svh; }
.step { min-height: 120svh; display: flex; align-items: flex-end; padding: 0 16px 9svh; pointer-events: none; }
.step-tall { min-height: 170svh; }
.card { pointer-events: auto; width: 100%; max-width: 440px; background: rgba(251, 249, 245, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        border-radius: 18px; padding: 22px 22px 24px; box-shadow: 0 18px 50px rgba(31, 28, 25, .25); }
.card p:not(.eyebrow) { font-size: 15px; }
.card .btn { margin-top: 18px; }
.step:first-child { padding-top: 40svh; }

/* Configurateur */
.card-config { max-width: 480px; }
.half-fixed { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0 14px; border-bottom: 1px solid var(--filet); margin-bottom: 14px; }
.half-fixed b { display: block; font-size: 14px; }
.half-fixed small { display: block; font-size: 13px; color: #5d5047; }
.dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; }
.dot-base { background: var(--fromage); border: 2px solid var(--encre); }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--encre); border-radius: 999px; background: transparent; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--encre); color: var(--creme); }
.mixer { list-style: none; display: grid; gap: 8px; }
.mixer li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.mixer .name small { display: block; font-size: 12px; color: #6b5d52; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.step-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--filet); background: var(--blanc); font-size: 18px; line-height: 1; cursor: pointer; }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.pct { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.remaining { margin-top: 12px; font-size: 13px; color: var(--bois); min-height: 1.4em; }
.remaining.ok { color: #3f6b2f; }

/* Étiquette posée sur la feuille blanche du sac kraft (scène 9).
   Position mesurée sur k9-etiquette-kraft (9:16) et k09-etiquette-kraft_16x9_v2.
   Texte centré pour laisser libres les bords, où passent les doigts. Tailles relatives à l'étiquette (cqi). */
.label-overlay { position: absolute; z-index: 5; left: 58%; top: 32%; width: 19.6%; height: 40.5%;
                 opacity: 0; color: #111; font-family: var(--sans); text-align: center; container-type: inline-size;
                 overflow: hidden; transform-origin: 50% 50%; --pad: 22cqi 17cqi 8cqi; }
.lbl-in { height: 100%; padding: var(--pad); display: flex; flex-direction: column; align-items: center; }
.lbl-brand { font: 400 6.5cqi/1 var(--serif); margin-bottom: 3cqi; }
.lbl-intro { font: 400 8cqi/1 var(--serif); }
.lbl-name { font: 700 21cqi/.95 var(--hand); margin: 1cqi 0 2.5cqi; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl-rule { width: 60%; height: 1px; background: #111; margin: 0 0 3cqi; }
.lbl-half { font-size: 4.3cqi; line-height: 1.3; margin-bottom: 2.4cqi; }
.lbl-half b { display: block; font-size: 3.5cqi; letter-spacing: .06em; text-transform: uppercase; }
.lbl-foot { margin-top: auto; font-size: 3.8cqi; }

/* Annotations de la scène 4 */
.annotations { position: absolute; z-index: 5; inset: 0; opacity: 0; pointer-events: none; }
.note { position: absolute; width: 30cqw; color: var(--encre); font-size: 2.5cqw; line-height: 1.3; }
.note b { display: block; font: 400 4.6cqw/1 var(--serif); }
.note small { display: block; font-size: 2.1cqw; color: #5d5047; }
.note::before { content: ""; position: absolute; top: 2.4cqw; width: 14cqw; height: 1px; background: var(--encre); }
.note.left { left: 6cqw; text-align: left; }
.note.left::before { left: 100%; }
.note.right { right: 6cqw; text-align: right; }
.note.right::before { right: 100%; }

/* Offre */
.offer { padding: 110px 0 80px; }
.offer-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.price-card { background: var(--blanc); border: 1px solid var(--filet); border-radius: 18px; padding: 26px 24px; }
.price-label { font-size: 14px; color: var(--bois); }
.price { font: 400 clamp(52px, 8vw, 84px)/1 var(--serif); margin: 6px 0 4px; }
.price-sub { font-size: 14px; color: #5d5047; }
.includes { grid-column: 1 / -1; list-style: none; display: grid; gap: 10px; margin-top: 12px; padding: 26px 24px; border-top: 1px solid var(--filet); }
.includes li { padding-left: 26px; position: relative; }
.includes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%;
                       background: linear-gradient(90deg, var(--fromage) 50%, #D9A43A 50%); border: 1.5px solid var(--encre); }
.guarantee { margin-top: 48px; padding: 32px 28px; background: var(--ardoise); color: var(--creme); border-radius: 18px; }
.guarantee p { max-width: 60ch; }

/* FAQ */
.faq { padding: 60px 0 90px; }
details { border-top: 1px solid var(--filet); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--filet); }
summary { cursor: pointer; list-style: none; font: 400 clamp(20px, 2.6vw, 26px)/1.2 var(--serif); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-size: 22px; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; max-width: 62ch; }

/* Réservation */
.reserve { padding: 90px 0 110px; background: var(--creme-2); }
.reserve-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
.recap { margin-top: 28px; padding: 22px; background: var(--blanc); border-radius: 16px; border: 1px solid var(--filet); }
.recap-title { font: 400 24px/1.1 var(--serif); margin-bottom: 8px; }
.recap-title .hand { font-size: 36px; color: var(--bois); }
.recap-line { font-size: 14px; }
.recap .link { display: inline-block; margin-top: 10px; }
.reserve-form { background: var(--blanc); border-radius: 18px; padding: 26px 22px; border: 1px solid var(--filet); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.opt { font-weight: 400; color: #6b5d52; }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field select {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--filet); border-radius: 12px; background: #fff; font-size: 16px; width: 100%; }
.radio, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.radio { min-height: 32px; align-items: center; }
.radio input, .check input { width: 18px; height: 18px; accent-color: var(--encre); flex: none; margin-top: 2px; }
.form-error { color: #9b2c1c; font-size: 14px; }
.fine { font-size: 12.5px; color: #6b5d52; }
.soon { background: var(--ardoise); color: var(--creme); border-radius: 18px; padding: 30px 26px; display: grid; gap: 10px; }
.soon .eyebrow { color: var(--fromage); margin-bottom: 4px; }
.soon-price { font: 400 clamp(40px, 6vw, 56px)/1 var(--serif); }
.soon-price span { font: 400 15px/1 var(--sans); color: #cfc6b8; margin-left: 8px; }
.soon .btn { margin-top: 10px; background: var(--fromage); color: var(--encre); }
.soon .btn:hover { background: #f0c75f; }
.confirm { grid-column: 2; background: var(--ardoise); color: var(--creme); border-radius: 18px; padding: 30px 26px; }
.confirm .eyebrow { color: var(--fromage); }
.confirm .hand { color: var(--fromage); font-size: 1.3em; }

.footer { padding: 40px 0 60px; border-top: 1px solid var(--filet); }
.footer-inner { display: grid; gap: 8px; font-size: 14px; }

/* Ordinateur : plein écran paysage (images 16:9), le récit posé à gauche par-dessus l'image */
@media (min-width: 900px) {
  .frame { top: 50%; }
  .frame { width: max(100vw, calc(100svh * 2752 / 1536)); }
  .step { align-items: center; justify-content: flex-start; padding: 0 0 0 5vw; min-height: 115svh; }
  .step:first-child { padding-top: 0; }
  .step-tall { min-height: 170svh; }
  .card { max-width: 430px; padding: 28px 28px 30px; }
  .card p:not(.eyebrow) { font-size: 16px; }
  .display-s { font-size: clamp(32px, 3vw, 46px); }
  .card-config { max-width: 460px; }
  /* Annotations en colonne à droite de la pointe, qui est au centre du plan large */
  .note { width: 20cqw; font-size: 1.15cqw; }
  .note b { font-size: 2.2cqw; }
  .note small { font-size: .95cqw; }
  .note.left, .note.right { left: 66cqw; right: auto; text-align: left; }
  .note.left::before, .note.right::before { right: 100%; left: auto; width: 6cqw; top: 1.1cqw; }
  .note:nth-child(1) { top: 20% !important; }
  .note:nth-child(2) { top: 38% !important; }
  .note:nth-child(3) { top: 56% !important; }
  .note:nth-child(4) { top: 74% !important; }
}
@media (max-width: 899px) {
  .offer-grid, .reserve-grid { grid-template-columns: 1fr; }
  .confirm { grid-column: auto; }
}
@media (max-width: 420px) {
  .offer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}
