/* Dada Café Restaurant – maquette de démonstration */

:root {
  --creme: #FBF3E3; --creme-2: #F1E0BF; --rouge: #C83E17; --rouge-2: #A33012;
  --ardoise: #1E2FA0; --ardoise-2: #2C3FBB; --mer: #E0A21A; --encre: #1D2145; --doux: #5E6285;
  --ligne: #E6D7B6; --blanc: #FFFBF2; --rayon: 16px;
  --titre: "Bricolage Grotesque", Georgia, sans-serif; --sans: "DM Sans", system-ui, sans-serif; --header-h: 64px; --btnr: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanc); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; color: var(--ardoise); letter-spacing: -.01em; }
h2 { font-size: clamp(1.95rem, 6vw, 3rem); }
h2 em { font-style: italic; font-weight: 500; color: var(--rouge); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rouge); margin-bottom: .8em; }
.eyebrow-light { color: #FFD9A8; }
.kicker { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mer); margin-bottom: 1em; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.muted { color: var(--doux); }
.small { font-size: .88rem; }
.placeholder { color: #7A2B1A; background: #FBDDCB; padding: 0 .35em; border-radius: 4px; font-style: italic; font-weight: 700; font-size: .88em; }
.section-slate .placeholder, .section-red .placeholder { background: rgba(255,255,255,.16); color: #FFE7C2; }

/* Bandeau démo */
.demo-bar { background: var(--ardoise); color: #FFD9A8; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 6px 16px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 1.5em; border-radius: var(--btnr); font-family: var(--sans); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; transition: background .25s, color .25s, transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--rouge); color: #fff; }
.btn-red:hover { background: var(--rouge-2); }
.btn-slate { background: var(--ardoise); color: #fff; }
.btn-slate:hover { background: var(--ardoise-2); }
.btn-cream { background: var(--creme); color: var(--ardoise); }
.btn-cream:hover { background: #fff; }
.btn-line { border-color: var(--ardoise); color: var(--ardoise); background: transparent; }
.btn-line:hover { background: var(--ardoise); color: #fff; }
.btn-line-dark { border-color: var(--ardoise); color: var(--ardoise); background: var(--blanc); }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--mer); outline-offset: 3px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: rgba(255,251,242,.96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--ligne); box-shadow: 0 6px 24px -18px rgba(43,29,20,.6); }
.logo { display: flex; align-items: center; gap: .6em; text-decoration: none; }
.logo-mark svg { width: 40px; height: 40px; display: block; }
.logo-text { font-family: var(--titre); font-weight: 700; font-size: 1.12rem; color: var(--ardoise); line-height: 1.05; }
.logo-text small { display: block; font-family: var(--titre); font-style: italic; font-weight: 500; font-size: .95rem; color: var(--rouge); }

.burger { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--ardoise); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--blanc); display: flex; flex-direction: column; padding: 8px 16px 24px; border-bottom: 1px solid var(--ligne); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) { text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--ligne); font-family: var(--titre); font-weight: 700; font-size: 1.3rem; color: var(--ardoise); }
.nav a.active:not(.btn) { color: var(--rouge); }
.nav .btn { margin-top: 18px; }

/* Accueil : photo, puis carte qui la chevauche */
.hero { position: relative; background: var(--creme); }
.hero-photo { height: 52svh; min-height: 300px; max-height: 520px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); animation: heroZoom 12s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-card { position: relative; margin: -56px 16px 0; background: var(--blanc); border-radius: var(--rayon); padding: 26px 22px 24px; box-shadow: 0 24px 50px -30px rgba(43,29,20,.55); }
.hero h1 { font-size: clamp(2.5rem, 11vw, 4.4rem); font-weight: 900; margin-bottom: .35em; }
.hero h1 span { display: block; font-style: italic; font-weight: 500; font-size: .55em; color: var(--rouge); letter-spacing: 0; margin-top: .1em; }
.hero-lead { font-size: 1.08rem; color: var(--doux); margin-bottom: 1.3em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }

/* Bandeau */
.ribbon { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 28px 16px 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.ribbon p { margin: 0; padding: 14px 8px; text-align: center; font-size: .88rem; line-height: 1.35; color: var(--doux); }
.ribbon p:nth-child(odd) { border-right: 1px solid var(--ligne); }
.ribbon p:nth-child(-n+2) { border-bottom: 1px solid var(--ligne); }
.ribbon b { display: block; color: var(--ardoise); font-size: .98rem; }

/* Sections */
.section { padding: 72px 16px; }
.section > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-cream { background: var(--creme); }
.section-slate { background: var(--ardoise); color: #DCE4EA; }
.section-slate h2, .section-slate h3 { color: #fff; }
.section-red { background: var(--rouge); color: #FFEDE6; }
.section-red h2 { color: #fff; }

.split { display: grid; gap: 34px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.split-media.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-media.pair img { aspect-ratio: 3 / 4; }
.split-media.pair img:last-child { margin-top: 34px; }

/* Ardoise / carte */
.plates { display: grid; gap: 16px; margin-top: 36px; }
.plate { background: var(--ardoise-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate-body { padding: 18px 18px 20px; }
.plate-body h3 { margin-bottom: .25em; }
.plate-body p { margin-bottom: .5em; color: #C9D5DD; }
.plate-body .price { margin: 0; }
.slate-note { text-align: center; margin-top: 28px; color: #C9D5DD; }

/* Galerie */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.g { display: block; overflow: hidden; border-radius: 14px; background: var(--creme-2); }
.g img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.g:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 16 / 9; }

/* Horaires */
.access { display: grid; gap: 34px; }
address { font-style: normal; font-size: 1.08rem; margin-bottom: .8em; }
.phone { font-family: var(--titre); font-weight: 700; font-size: 1.6rem; color: var(--rouge); text-decoration: none; }
.phone-2 { font-size: 1.15rem; color: var(--ardoise); }
.hours { width: 100%; border-collapse: collapse; margin: 22px 0 10px; }
.hours caption { text-align: left; font-family: var(--titre); font-weight: 700; font-size: 1.15rem; color: var(--ardoise); padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--ligne); font-weight: 500; }
.hours th { color: var(--doux); }
.hours td { text-align: right; font-weight: 700; }
.hours tr.today th, .hours tr.today td { color: var(--rouge); background: #FBE3D6; }
.map { min-height: 320px; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Avis */
.reviews { text-align: center; max-width: 620px; }

/* Contact */
.book { display: grid; gap: 34px; }
.book-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 1.4em; }
.form { background: var(--blanc); color: var(--encre); border-radius: var(--rayon); padding: 24px 20px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 0; }
label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 5px; color: var(--ardoise); }
input, select, textarea { width: 100%; font: inherit; color: var(--encre); background: #fff; border: 1.5px solid var(--ligne); border-radius: 10px; padding: 12px 13px; min-height: 48px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(29,90,120,.35); border-color: var(--mer); }
.field.error input, .field.error select { border-color: var(--rouge); background: #FFF3F0; }
.form-note { font-size: .86rem; margin: 12px 0 0; color: var(--doux); }
.form-note.ok { color: #1F6B3A; font-weight: 700; }
.form-note.err { color: var(--rouge-2); font-weight: 700; }
.fallback { margin-top: 16px; padding: 14px; background: var(--creme); border-radius: 12px; font-size: .92rem; }
.fallback textarea { margin: 8px 0 10px; font-size: .85rem; }

/* Pied de page */
.footer { background: var(--ardoise); color: #C9D5DD; padding: 48px 16px 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 22px; max-width: 1160px; margin: 0 auto; }
.footer p { margin: 0 0 .7em; }
.footer a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer-logo { font-family: var(--titre); font-weight: 700; font-size: 1.4rem; color: #fff; }
.legal { max-width: 1160px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .8rem; color: #9FB0BC; }

/* Barre mobile */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,251,242,.97); border-top: 1px solid var(--ligne); transform: translateY(110%); transition: transform .3s; }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { min-height: 46px; }

/* Message « appeler » (ordinateur) */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--ardoise); color: #fff; padding: 14px 40px 14px 16px; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.toast[hidden] { display: none; }
.toast p { margin: 0; }
.toast-close { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20,14,10,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 10px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; }
.lb-next { right: 10px; top: 50%; }

/* Apparitions */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* Tablette & ordinateur */
@media (min-width: 720px) {
  .plates { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .g-wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-actions, .book-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1.2fr 1.2fr .8fr; }
  .ribbon { grid-template-columns: repeat(4, 1fr); max-width: 1160px; margin-left: auto; margin-right: auto; }
  .ribbon p:nth-child(-n+2) { border-bottom: 0; }
  .ribbon p:not(:last-child) { border-right: 1px solid var(--ligne); }
}
@media (min-width: 960px) {
  :root { --header-h: 74px; }
  .burger { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 26px; padding: 0; background: none; border: 0; transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 6px 0; border: 0; font-family: var(--sans); font-size: .98rem; font-weight: 700; }
  .nav .btn { margin: 0; }
  .logo-text { font-size: 1.3rem; }

  .hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; min-height: min(80svh, 720px); }
  .hero-photo { order: 2; height: auto; max-height: none; border-bottom-left-radius: 0; }
  .hero-card { order: 1; margin: 0; align-self: center; border-radius: 0; box-shadow: none; background: transparent; padding: 48px 56px 48px max(32px, calc((100vw - 1160px) / 2)); }
  .hero h1 { font-size: clamp(3.4rem, 5.6vw, 5.2rem); }

  .section { padding: 104px 32px; }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-reverse .split-text { order: 2; }
  .plates { grid-template-columns: repeat(6, 1fr); }
  .plate { grid-column: span 2; }
  .plate:nth-child(n+4) { grid-column: span 3; }
  .access { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
  .book { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .mobile-cta { display: none; }
}


@media (min-width: 960px) { .plates.n4 .plate, .plates.n2 .plate { grid-column: span 3; } }
