/* Maquette de démonstration — Écuries de La Motte. Réalisée par Overtek. */
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('fonts/outfit.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --craie: #f6f1e7; --papier: #fffdf8; --encre: #1b2a22; --encre-2: #4c5a51; --trait: rgba(27, 42, 34, .14);
  --rose: #e5127d; --rose-f: #b80d63; --sable: #e4d5b6; --pre: #dfe8cf; --bois: #8b6f4b;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif; --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --demo-h: 30px; --top-h: 60px; --bord: clamp(18px, 4.4vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--craie); color: var(--encre); font: 400 17px/1.55 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.demo { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--demo-h); display: flex; align-items: center; justify-content: center; padding: 0 12px; background: var(--encre); color: #f3ead8; font-size: 12.5px; letter-spacing: .02em; text-align: center; line-height: 1.15; }

.top { position: fixed; z-index: 50; top: var(--demo-h); left: 0; right: 0; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--bord); background: linear-gradient(rgba(246, 241, 231, .93), rgba(246, 241, 231, .7) 70%, rgba(246, 241, 231, 0)); }
.marque { font: 400 25px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.marque span { font: 500 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 30px); font-size: 15px; font-weight: 500; }
.menu a { text-decoration: none; padding: 8px 0; }
.menu a:hover { color: var(--rose-f); }
.menu__cta { background: var(--rose); color: #fff !important; padding: 9px 16px !important; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.menu__cta:hover { background: var(--rose-f); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 6px auto; background: var(--encre); transition: transform .25s; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--encre); border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; background: rgba(255, 253, 248, .7); }
.btn:hover { background: var(--encre); color: var(--papier); }
.btn--plein { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn--plein:hover { background: var(--rose-f); border-color: var(--rose-f); color: #fff; }
.sur { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-f); }

/* ---------- scène ---------- */
.scene { position: relative; padding-top: calc(var(--demo-h) + var(--top-h)); background: var(--sable); }
.stage { position: relative; }
#gl { display: none; }
.affiche { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lecture, .fil, .plan { display: none; }
.etapes { display: grid; gap: 14px; padding: 22px var(--bord) 44px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.etape { position: relative; background: var(--papier); border-radius: 18px; padding: 24px 24px 22px; box-shadow: 0 14px 40px -22px rgba(27, 42, 34, .45); }
.etape--titre, .etape--fin { grid-column: 1 / -1; }
.etape h1 { font: 400 clamp(46px, 6.1vw, 92px)/.95 var(--serif); letter-spacing: -.01em; margin: 10px 0 12px; }
.etape h2 { font: 400 clamp(38px, 4.2vw, 60px)/1 var(--serif); margin: 8px 0 6px; }
.chapo { font: italic 400 clamp(21px, 2vw, 27px)/1.2 var(--serif); color: var(--encre-2); margin-bottom: 14px; }
.etape > p { max-width: 46ch; }
.fort { font-weight: 600; margin-bottom: 8px; }
.prix { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--trait); font-size: 15.5px; color: var(--encre-2); }
.prix b { color: var(--encre); font-weight: 700; white-space: nowrap; }
.num { position: absolute; top: 18px; right: 18px; width: 54px; height: 54px; display: grid; place-items: center; background: #fff; border: 3px solid var(--encre); border-radius: 8px; font: 700 28px/1 var(--sans); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.geste { display: none; }

.live .scene { padding-top: 0; }
.live .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.live #gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.live .affiche { display: none; }
.live .stage::before { content: ''; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(246, 241, 231, .88), rgba(246, 241, 231, .62) 30%, rgba(246, 241, 231, 0) 56%); opacity: 0; transition: opacity .6s ease; }
.live .stage[data-e="0"]::before { opacity: 1; }
.live .etapes { display: block; padding: 0; position: absolute; z-index: 3; left: var(--bord); top: calc(var(--demo-h) + var(--top-h)); bottom: 0; width: min(430px, 36vw); pointer-events: none; }
.live .etape { position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-46%) translateX(-26px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .45s; background: rgba(255, 253, 248, .93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.live .etape.on { opacity: 1; visibility: visible; transform: translateY(-46%); pointer-events: auto; transition: opacity .5s ease .12s, transform .7s cubic-bezier(.2, .7, .2, 1) .12s, visibility 0s; }
.live .etape--titre { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; width: min(560px, 44vw); right: auto; }
.live .etape--titre h1 { text-shadow: 0 1px 0 rgba(255, 253, 248, .6), 0 0 34px rgba(255, 250, 235, .9); }
.live .etape--titre > p:not(.sur):not(.cta):not(.geste) { text-shadow: 0 0 18px rgba(255, 250, 235, .95), 0 0 6px rgba(255, 250, 235, .9); }
.live .geste { display: block; margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--encre); opacity: .85; }
.live .geste::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--rose); vertical-align: middle; margin-right: 10px; }

.live .lecture { display: block; position: absolute; z-index: 3; left: var(--bord); bottom: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--encre); background: rgba(255, 253, 248, .8); padding: 6px 12px; border-radius: 999px; }
.live .fil { display: flex; flex-direction: column; gap: 6px; position: absolute; z-index: 4; right: 14px; top: 50%; transform: translateY(-50%); }
.fil li { display: flex; justify-content: flex-end; }
.fil button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 5px 4px; cursor: pointer; font: 600 12px/1 var(--sans); color: var(--encre); }
.fil button span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; background: rgba(255, 253, 248, .9); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.fil button::after { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--encre); background: rgba(255, 253, 248, .85); transition: background .25s, transform .25s, border-color .25s; flex: none; }
.fil button.on::after { background: var(--rose); border-color: var(--rose); transform: scale(1.25); }
.fil button:hover span, .fil button:focus-visible span { opacity: 1; transform: none; }

.live .plan { display: block; position: absolute; z-index: 3; right: 54px; bottom: 20px; width: 236px; padding: 9px 10px 6px; background: rgba(255, 253, 248, .9); border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(27, 42, 34, .6); }
.plan svg { display: block; width: 100%; height: auto; }
.plan p { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-2); margin-top: 3px; text-align: center; }

/* ---------- sections ---------- */
.bloc { padding: clamp(64px, 9vw, 128px) var(--bord); }
.bloc--pre { background: var(--pre); }
.bloc--sable { background: var(--sable); }
.tete { max-width: 760px; margin-bottom: clamp(30px, 4vw, 54px); }
.tete h2 { font: 400 clamp(38px, 5vw, 70px)/1 var(--serif); margin: 12px 0 16px; letter-spacing: -.01em; }
.tete h2 em { font-style: italic; color: var(--rose-f); }
.tete p:not(.sur) { color: var(--encre-2); max-width: 60ch; }
.rv { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv { opacity: 0; transform: translateY(22px); }
.js .rv.in { opacity: 1; transform: none; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
@media (min-width: 901px) { .cartes { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--papier); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--trait); }
.carte__age { align-self: flex-start; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--pre); padding: 5px 10px; border-radius: 999px; }
.carte h3 { font: 400 34px/1.05 var(--serif); margin: 14px 0 8px; }
.carte p { color: var(--encre-2); }
.carte__prix { margin-top: auto !important; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.carte__prix b { font: 400 27px/1 var(--serif); color: var(--rose-f); white-space: nowrap; }
.carte p + .carte__prix { border-top: 0; }

.galops { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: end; padding: clamp(24px, 3.4vw, 44px); background: var(--encre); color: #f3ead8; border-radius: 22px; }
.galops .sur { color: #ff8cc6; }
.galops h3 { font: 400 clamp(30px, 3.2vw, 44px)/1.05 var(--serif); margin: 10px 0 12px; }
.galops p:not(.sur) { color: #cfd6c8; }
.marches { display: flex; align-items: flex-end; gap: 6px; height: 210px; }
.marches li { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; background: rgba(243, 234, 216, .12); border-top: 4px solid var(--rose); border-radius: 6px 6px 0 0; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.1; }
.marches li:nth-child(1) { height: 28%; } .marches li:nth-child(2) { height: 40%; } .marches li:nth-child(3) { height: 52%; } .marches li:nth-child(4) { height: 64%; }
.marches li:nth-child(5) { height: 76%; } .marches li:nth-child(6) { height: 88%; } .marches li:nth-child(7) { height: 100%; }

.jours { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.jour { background: var(--papier); border-radius: 18px; padding: 22px 22px 12px; }
.jour h3 { font: 400 36px/1 var(--serif); margin-bottom: 12px; }
.jour li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0 10px 12px; border-top: 1px solid var(--trait); border-left: 4px solid #9fb5d9; margin-bottom: 0; font-size: 15.5px; }
.jour li.c { border-left-color: var(--rose); }
.jour li.b { border-left-color: #e2b23a; }
.jour time { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.note, .petit { font-size: 13.5px; color: var(--encre-2); }
.note { margin-top: 18px; max-width: 70ch; }

.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; background: var(--sable); }
.photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo--l { grid-column: span 2; }
.photo--l img { aspect-ratio: 16 / 9; }
.photo figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 253, 248, .93); padding: 6px 11px; border-radius: 999px; font-size: 13.5px; }

.grilles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.grille { background: var(--papier); border-radius: 18px; padding: 24px; }
.grille h3 { font: 400 34px/1 var(--serif); margin-bottom: 14px; }
.grille h3 span { font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); margin-left: 6px; }
.grille table { width: 100%; border-collapse: collapse; }
.grille th, .grille td { padding: 10px 0; border-top: 1px solid var(--trait); text-align: left; font-weight: 400; font-size: 15.5px; vertical-align: baseline; }
.grille td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.grille tr:first-child td { font: 400 28px/1 var(--serif); color: var(--rose-f); }
.grille .petit { margin-top: 12px; }

.acces { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 44px); }
.acces h3 { font: 400 27px/1.1 var(--serif); margin: 0 0 8px; }
.acces p + h3 { margin-top: 24px; }
.acces__col > p { color: var(--encre-2); }
.proches li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--trait); }
.proches b { font: 400 24px/1 var(--serif); color: var(--rose-f); white-space: nowrap; }
.acces__col--carte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.acces__col--carte img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.acces__col--carte p { grid-column: 1 / -1; }

.pied { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 48px var(--bord) 56px; background: var(--encre); color: #dfe4d6; font-size: 15.5px; }
.pied__nom { font: 400 30px/1 var(--serif); color: #fff; margin-bottom: 8px; }
.pied a { text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.pied .petit { color: #a9b3a5; margin-top: 10px; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  :root { --top-h: 54px; }
  body { font-size: 16px; }
  .demo { font-size: 10.5px; }
  .marque { font-size: 22px; }
  .marque span { display: none; }
  .burger { display: block; }
  .menu { position: fixed; top: calc(var(--demo-h) + var(--top-h)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--bord) 18px; background: var(--craie); box-shadow: 0 24px 40px -24px rgba(27, 42, 34, .5); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; font-size: 18px; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--trait); }
  .menu__cta { margin-top: 14px; text-align: center; border-bottom: 0 !important; padding: 13px 16px !important; }
  .menu-ouvert .menu { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s; }
  .menu-ouvert .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-ouvert .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-ouvert.top { background: var(--craie); }

  .live .stage::before { display: none; }
  .live .etapes { left: 12px; right: 12px; width: auto; top: auto; bottom: 0; height: 100%; }
  .live .etape { top: auto; bottom: 14px; transform: translateY(18px); padding: 18px 18px 16px; }
  .live .etape.on { transform: none; }
  .live .etape--titre { width: auto; right: 0; bottom: 18px; background: rgba(255, 253, 248, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 18px 18px 16px; box-shadow: 0 14px 40px -22px rgba(27, 42, 34, .45); }
  .etape h1 { font-size: clamp(40px, 12vw, 54px); margin: 6px 0 8px; }
  .etape h2 { font-size: 38px; margin: 4px 0 4px; }
  .chapo { font-size: 20px; margin-bottom: 8px; }
  .etape > p { font-size: 15px; line-height: 1.45; }
  .etape .sur { font-size: 11px; padding-right: 58px; }
  .etape--titre .sur { padding-right: 0; }
  .num { width: 44px; height: 44px; font-size: 23px; top: 14px; right: 14px; border-width: 2.5px; }
  .prix { margin-top: 10px; padding-top: 9px; font-size: 14.5px; }
  .cta { margin-top: 12px; gap: 8px; }
  .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .live .geste { margin-top: 12px; font-size: 13px; }
  .live .lecture { display: none; }
  .live .fil { right: 4px; top: calc(var(--demo-h) + var(--top-h) + 8px); transform: none; gap: 2px; }
  .fil button span { display: none; }
  .fil button { padding: 6px; }
  .live .plan { right: auto; left: 12px; bottom: auto; top: calc(var(--demo-h) + var(--top-h) + 8px); width: 124px; padding: 6px 6px 4px; }
  .plan p { display: none; }

  .galops { grid-template-columns: 1fr; }
  .marches { height: 150px; gap: 4px; }
  .marches li { font-size: 10.5px; }
  .photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo figcaption { font-size: 12px; left: 6px; bottom: 6px; padding: 4px 8px; }
  .carte h3, .grille h3 { font-size: 30px; }
}
@media (max-width: 380px) { .demo { font-size: 9.6px; } .etape > p { font-size: 14.2px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv, .js .rv { opacity: 1; transform: none; transition: none; } }
