/* Caféin Perwez — « Cobalt & lait » (BRAND.md fait foi) */
@font-face { font-family: "Red Hat Display"; src: url(../fonts/redhat-display.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url(../fonts/redhat-text.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --cobalt: #2445b5;      /* le bleu de leur carte */
  --cobalt-deep: #142a78;
  --lait: #f4f6fb;        /* blanc de lait, froid (jamais crème) */
  --encre: #0d1838;
  --encre-2: #46507a;
  --caramel: #f3a23c;     /* pain perdu : la seule couleur d'action */
  --caramel-press: #e08f27;
  --line: rgba(13, 24, 56, .12);
  --line-inv: rgba(255, 255, 255, .22);
  --r: 18px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --f-d: "Red Hat Display", system-ui, sans-serif;
  --f-t: "Red Hat Text", system-ui, sans-serif;
  --bar: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--lait); color: var(--encre); font: 400 17px/1.55 var(--f-t); overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-d); margin: 0; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.1rem, 6vw, 4.4rem); font-weight: 850; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--caramel); color: var(--encre); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

/* Boutons : un seul style plein (caramel) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 1rem/1 var(--f-d); text-decoration: none; border: 0; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-main { background: var(--caramel); color: var(--encre); box-shadow: 0 10px 24px -12px rgba(243,162,60,.8); }
.btn-main:active { background: var(--caramel-press); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-inv); }
.btn-ghost-dark { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-full { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(243,162,60,.9); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
  .btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
}
.link { font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 100% 2px; } }

/* En-tête translucide */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 16px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gut) 10px; color: #fff; transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease; }
.top.solid { background: rgba(244, 246, 251, .82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); color: var(--encre); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 2px; text-decoration: none; font-family: var(--f-d); line-height: 1; margin-right: auto; }
.logo .br { font-weight: 300; font-size: 1.5rem; }
.logo .i { font-weight: 800; font-size: 1.35rem; padding: 0 1px; }
.logo .name { font-weight: 800; font-size: 1.2rem; letter-spacing: .14em; margin-left: 8px; }
.logo .town { font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-left: 8px; }
.nav { display: none; gap: 28px; font: 600 .95rem var(--f-d); }
.nav a { text-decoration: none; padding: 10px 0; opacity: .85; transition: opacity 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { opacity: 1; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* 1. Héros */
.hero { background: var(--cobalt); color: #fff; position: relative; }
.hero-pin { min-height: 100svh; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; display: grid; grid-template-rows: auto 1fr; padding: calc(78px + env(safe-area-inset-top, 0px)) var(--gut) 28px; gap: 18px; overflow: hidden; position: relative; }
.kicker { font: 600 .8rem var(--f-d); letter-spacing: .14em; text-transform: uppercase; opacity: .85; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 4px rgba(243,162,60,.25); }
.hero h1 { font-size: clamp(2.6rem, 11vw, 6.6rem); font-weight: 900; margin-top: 10px; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; font-weight: 300; display: block; }
.hero-fact { margin-top: 12px; font-size: .98rem; opacity: .92; }
.hero-fact strong { color: var(--caramel); }
.hero-actions { display: none; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.special { margin-top: 18px; display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: .95rem; }
.special span { white-space: nowrap; font: 700 .78rem var(--f-d); letter-spacing: .12em; text-transform: uppercase; color: var(--caramel); }
.hero-stage { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-items: center; min-height: 0; }
.brace { font: 200 clamp(7rem, 34vw, 22rem)/.8 var(--f-d); color: #fff; opacity: .95; will-change: transform; user-select: none; }
.brace-l { margin-right: -.06em; } .brace-r { margin-left: -.06em; }
.hero-frame { margin: 0; position: relative; width: 100%; max-width: 420px; aspect-ratio: 3 / 4; max-height: 52svh; border-radius: 26px; overflow: hidden; background: var(--cobalt-deep); will-change: transform; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-motto { position: absolute; z-index: 3; inset: auto 0 0; padding: 120px var(--gut) calc(110px + env(safe-area-inset-bottom, 0px)); pointer-events: none; font: 800 clamp(1.5rem, 4.2vw, 3.2rem)/1.05 var(--f-d); letter-spacing: -0.02em; color: #fff; background: linear-gradient(transparent, rgba(13,24,56,.78)); opacity: 0; }
@media (min-width: 900px) { .hero-motto { padding-bottom: 64px; font-size: clamp(2.4rem, 5vw, 4.6rem); } }
@media (max-width: 899px) { .top .btn { display: none; } }
@media (min-width: 900px) {
  .hero-pin { padding-bottom: 48px !important; grid-template-rows: 1fr; grid-template-columns: 1.05fr 1fr; align-items: center; padding-bottom: 48px; }
  .hero-actions { display: flex; }
  .hero-frame { max-height: 74svh; }
  .brace { font-size: clamp(10rem, 22vw, 26rem); }
}
@media (max-width: 899px) and (max-height: 600px) { .hero h1 { font-size: 2.4rem; } .hero-frame { max-height: 44svh; } }

/* 2. La carte (rail) */
.carte { background: var(--lait); padding: 88px 0 72px; overflow: hidden; }
.carte-head { display: grid; gap: 14px; margin-bottom: 36px; }
.carte-head p { max-width: 40ch; color: var(--encre-2); }
.rail { display: flex; gap: 18px; padding: 0 var(--gut) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.plat { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
.plat-media { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: #dfe4f2; }
.plat-media img, .plat-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .plat:hover .plat-media img, .plat:hover .plat-media video { transform: scale(1.03); } }
.plat h3 { margin-top: 16px; }
.plat p { margin-top: 6px; color: var(--encre-2); font-size: .97rem; max-width: 34ch; }
.plat p a { color: var(--cobalt); font-weight: 700; }
@media (min-width: 900px) {
  .carte { padding: 0; }
  .carte.is-pinned { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .carte-head { grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 40px; padding-top: 96px; }
  .rail { overflow: visible; scroll-snap-type: none; width: max-content; padding-right: 30vw; }
  .plat { flex-basis: 30vw; max-width: 400px; }
  .carte:not(.is-pinned) { padding: 0 0 96px; }
  .carte:not(.is-pinned) .rail { overflow-x: auto; width: auto; }
}

/* 3. Signatures */
.sign { background: #fff; padding: 88px 0; }
.sign-head { display: grid; gap: 14px; margin-bottom: 36px; }
.sign-head p { color: var(--encre-2); max-width: 44ch; }
.price-tag { display: inline-block; vertical-align: middle; transform: rotate(-4deg); font: 800 clamp(1rem, 2.4vw, 1.5rem) var(--f-d); letter-spacing: 0; border: 2.5px solid var(--encre); border-radius: 10px; padding: 6px 12px; margin-left: 6px; }
.sign-grid { display: grid; gap: 34px; }
.sign-sub { font: 700 .8rem var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 8px; }
.drinks { list-style: none; margin: 0; padding: 0; }
.drinks li { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drinks li b { font: 750 1.08rem var(--f-d); }
.drinks li span { grid-column: 1; color: var(--encre-2); font-size: .93rem; line-height: 1.4; }
.add { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--lait); color: var(--encre); font: 700 .92rem var(--f-d); cursor: pointer; touch-action: manipulation; user-select: none; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.add:active { transform: scale(0.95); }
.add .p { color: var(--encre-2); font-weight: 600; }
.add.on { background: var(--cobalt); color: #fff; }
.add.on .p { color: rgba(255,255,255,.8); }
@media (hover: hover) and (pointer: fine) { .add:hover { background: #e4e8f5; } .add.on:hover { background: var(--cobalt-deep); } }
.sign-photo { margin: 28px 0 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.sign-photo img { width: 100%; height: 100%; object-fit: cover; }
.classiques { margin-top: 40px; border-top: 1px solid var(--line); }
.classiques summary { list-style: none; cursor: pointer; padding: 20px 0; font: 750 1.2rem var(--f-d); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.classiques summary::-webkit-details-marker { display: none; }
.classiques summary span { font: 500 .92rem var(--f-t); color: var(--encre-2); }
.classiques summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; margin-left: auto; transition: transform 200ms var(--ease-out); }
.classiques[open] summary::after { transform: rotate(45deg); }
.drinks-mini { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
.note { margin-top: 18px; font-size: .9rem; color: var(--encre-2); }
@media (min-width: 700px) { .drinks-mini { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .sign-grid { grid-template-columns: 1fr 1fr; gap: 64px; } .sign-head { grid-template-columns: 1fr 1fr; align-items: end; } .drinks-mini { grid-template-columns: 1fr 1fr 1fr; } }

/* 4. Avis */
.avis { background: var(--cobalt-deep); color: #fff; padding: 88px 0; }
.avis-wrap { display: grid; gap: 40px; }
.avis-score h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; }
.avis-score .big { display: block; font-size: clamp(6rem, 24vw, 13rem); font-weight: 900; letter-spacing: -0.06em; line-height: .85; color: var(--caramel); margin-bottom: 10px; }
.avis-score p { margin: 12px 0 18px; opacity: .85; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.quotes li { border-top: 1px solid var(--line-inv); padding-top: 22px; }
.quotes blockquote { margin: 0; font: 600 clamp(1.25rem, 2.6vw, 1.7rem)/1.3 var(--f-d); letter-spacing: -0.01em; }
.quotes cite { display: block; margin-top: 10px; font-style: normal; opacity: .75; font-size: .92rem; }
@media (min-width: 900px) { .avis-wrap { grid-template-columns: .9fr 1.1fr; align-items: center; } }

/* 5. Réservation */
.resa { padding: 88px 0; background: var(--lait); }
.resa-wrap { display: grid; gap: 40px; }
.lead { margin-top: 12px; color: var(--encre-2); max-width: 42ch; }
form { margin-top: 26px; display: grid; gap: 18px; }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.field legend, .field label { font: 700 .95rem var(--f-d); padding: 0; margin-bottom: 8px; }
.field fieldset legend { margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--encre-2); }
input, textarea, select { font: 400 16px var(--f-t); color: var(--encre); width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(36,69,181,.15); }
.row2 { display: grid; gap: 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.days::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-width: 64px; min-height: 60px; padding: 8px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--encre); font: 600 .85rem/1.2 var(--f-d); text-align: center; cursor: pointer; touch-action: manipulation; user-select: none; transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out); }
.chip b { display: block; font-size: 1.15rem; font-weight: 800; }
.chip:active { transform: scale(0.96); }
.chip[aria-checked="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip:disabled { opacity: .38; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slots .chip { min-height: 46px; min-width: 0; font-size: .95rem; }
.places { font-weight: 500; color: var(--cobalt); margin-left: 6px; }
.stepper { display: inline-grid; grid-template-columns: 50px 72px 50px; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; width: max-content; }
.stepper button { border: 0; background: transparent; font: 600 1.4rem var(--f-d); color: var(--encre); cursor: pointer; min-height: 50px; touch-action: manipulation; }
.stepper button:active { background: var(--lait); }
.stepper input { border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.err { color: #b3261e; font-size: .88rem; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-ok { padding: 16px; border-radius: 14px; background: #e3f2e8; color: #14532d; font-weight: 600; }
.resa-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; display: none; }
.resa-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .resa-wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } .resa-photo { display: block; position: sticky; top: 96px; } }

/* 6. Venir */
.visite { background: #fff; padding: 88px 0 120px; }
.visite-wrap { display: grid; gap: 40px; }
.addr { font-size: clamp(2.6rem, 9.5vw, 7rem); font-weight: 900; letter-spacing: -0.045em; line-height: .92; }
.addr span { color: var(--cobalt); font-weight: 300; }
.hours { margin: 30px 0 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; } .hours dd { margin: 0; text-align: right; }
.hours small { display: block; color: var(--encre-2); font-size: .8rem; }
.extras { margin-top: 16px; color: var(--encre-2); }
.visite-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.visite-photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; max-height: 640px; }
.visite-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .visite-wrap { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 64px; } }

/* Pied */
.foot { background: var(--encre); color: rgba(255,255,255,.82); padding: 48px 0 calc(110px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.foot-wrap { display: grid; gap: 12px; }
.logo-foot { color: #fff; }
.foot a { color: #fff; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.small { font-size: .86rem; }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }

/* Barre téléphone */
.phonebar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(13,24,56,.82); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); transition: transform 380ms var(--ease-out); }
.phonebar a { min-height: 48px; display: grid; place-items: center; border-radius: 16px; text-decoration: none; font: 700 .98rem var(--f-d); touch-action: manipulation; user-select: none; }
.pb-call { color: #fff; padding: 0 18px; box-shadow: inset 0 0 0 1.5px var(--line-inv); }
.pb-main { background: var(--caramel); color: var(--encre); }
.pb-main:active, .pb-call:active { transform: scale(0.97); }
@media (min-width: 900px) { .phonebar { display: none; } }

/* Panier */
.cart-fab { position: fixed; z-index: 46; right: 12px; left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); min-height: 52px; border-radius: 999px; border: 0; background: var(--cobalt); color: #fff; font: 700 1rem var(--f-d); box-shadow: 0 14px 30px -12px rgba(20,42,120,.7); cursor: pointer; touch-action: manipulation; animation: pop 320ms var(--ease-out); }
.cart-fab b { color: var(--caramel); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
@media (min-width: 900px) { .cart-fab { left: auto; right: 28px; bottom: 28px; padding: 0 26px; } }
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: rgba(13,24,56,.5); opacity: 0; transition: opacity 260ms ease; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 26px 26px 0 0; padding: 10px var(--gut) calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1); }
.sheet.open .sheet-bg { opacity: 1; } .sheet.open .sheet-panel { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 1.9rem; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lait); font-size: 1.6rem; cursor: pointer; color: var(--encre); }
.cart-lines { list-style: none; margin: 16px 0 0; padding: 0; }
.cart-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-lines li b { flex: 1; font-family: var(--f-d); }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--encre); touch-action: manipulation; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.days-sm .chip { min-height: 50px; }
.pay-note { text-align: center; font-size: .88rem; color: var(--encre-2); }
@media (min-width: 700px) { .sheet-panel { left: auto; right: 24px; bottom: 24px; top: 24px; width: 440px; max-height: none; border-radius: 26px; transform: translateX(110%); } }

/* Mouvement réduit : tout reste visible et immobile */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .hero-motto { opacity: 1; }
}
