/* =========================================================
   Sydney Smash Burgers — feuille de styles
   Charte : Studio Bonjour, décembre 2025
   ========================================================= */

/* ---------- 0. Polices auto-hébergées (SIL OFL) ----------
   Barlow Condensed — © The Barlow Project Authors
   Open Sauce One  — © The Open Sauce One Authors
   Servies depuis le domaine : aucune requête vers un tiers.
   ========================================================= */
@font-face{font-family:"Open Sauce One";src:url("../assets/fonts/OpenSauceOne-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Open Sauce One";src:url("../assets/fonts/OpenSauceOne-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Open Sauce One";src:url("../assets/fonts/OpenSauceOne-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("../assets/fonts/BarlowCondensed-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("../assets/fonts/BarlowCondensed-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("../assets/fonts/BarlowCondensed-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}

/* ---------- 1. Tokens ---------- */
:root {
  --creme: #fdf6ef;
  --blanc: #ffffff;
  --rouge: #ca1823;
  --dark: #2d160d;
  --texte-2: rgba(202, 24, 35, .72);
  --filet: rgba(202, 24, 35, .2);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texte: "Open Sauce One", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --gut: clamp(20px, 5vw, 64px);
  --sec: clamp(56px, 9vw, 96px);
  --r-sm: 2px;
  --r-md: 8px;
  --r-lg: 16px;
  --damier: 24px;
  --entete: 88px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--rouge);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--rouge); text-decoration: none; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: .92;
  margin: 0;
}

h1 { font-size: clamp(44px, 7.5vw, 88px); line-height: .9; }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1; }

p { margin: 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.small { font-size: 14px; line-height: 1.45; color: var(--texte-2); }

.compo {
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--texte-2);
}

.mesure { max-width: 62ch; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { padding-block: var(--sec); }
section.tight { padding-block: clamp(36px, 6vw, 64px); }

.skip {
  position: absolute; left: -9999px;
  background: var(--rouge); color: var(--creme);
  padding: 12px 20px; border-radius: var(--r-md); z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* ---------- 3. Damier ---------- */
/* motif exact de la charte : trois rangées, tuile de dix modules */
.damier {
  display: block;
  width: 100%;
  height: calc(var(--damier) * 3);
  background: url("../assets/damier.svg") repeat-x 0 0;
  background-size: calc(var(--damier) * 10) calc(var(--damier) * 3);
}
.damier--creme { background-image: url("../assets/damier-creme.svg"); }

/* ---------- 4. En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid var(--filet);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(202, 24, 35, .08); }
.site-header .wrap {
  min-height: var(--entete);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
/* Cinq entrées tiennent large ; on resserre entre 900 et 1150 px
   pour que le bouton « Commander » ne parte pas à la ligne. */
@media (min-width: 900px) and (max-width: 1149px) {
  .nav { gap: 16px; }
  .nav a.lien { font-size: 14px; letter-spacing: .03em; }
  .site-header .brand img { height: 44px; }
}
.nav a.lien {
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding-bottom: 5px;
  background-image: linear-gradient(var(--rouge), var(--rouge));
  background-size: 0% 3px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s var(--ease);
}
.nav a.lien:hover, .nav a.lien[aria-current="page"] { background-size: 100% 3px; }
.nav a.lien[aria-current="page"] { font-weight: 800; }

.lang {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
  border: 2px solid var(--rouge); border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
}

.burger {
  display: none; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--rouge); border-radius: var(--r-md);
  background: none; color: var(--rouge); cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  margin-inline: auto; position: relative; transition: transform .2s var(--ease), opacity .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border: 2px solid var(--rouge); border-radius: var(--r-md);
  font-family: var(--texte); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(202, 24, 35, .18); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

.btn--primary { background: var(--rouge); color: var(--creme); }
.btn--ghost { background: transparent; color: var(--rouge); }
.btn--ghost:hover { background: rgba(202, 24, 35, .06); }
.btn--cream { background: var(--creme); color: var(--rouge); border-color: var(--creme); }
.btn--onred { background: var(--creme); color: var(--rouge); border-color: var(--rouge); }
.btn--outline-cream { background: transparent; color: var(--creme); border-color: var(--creme); }
.btn--outline-cream:hover { background: rgba(253, 246, 239, .12); box-shadow: none; }

.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--rouge); padding: 0; }
.hero video, .hero .poster {
  width: 100%; height: clamp(520px, 92svh, 1000px);
  object-fit: cover; object-position: center 58%;
  background: var(--rouge);
}
@media (max-width: 599px) {
  .hero video, .hero .poster { height: clamp(560px, 88svh, 760px); }
  .hero__inner .btns { width: 100%; }
  .hero__inner .btns .btn { flex: 1 1 100%; }
}
.hero__inner {
  position: absolute; inset: auto 0 0 0;
  padding-block: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  color: var(--creme);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero__inner h1, .hero__inner p { color: var(--creme); }
.hero__logo { height: clamp(64px, 11vw, 130px); width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.hero__links { display: flex; flex-wrap: wrap; gap: 26px; }
.hero__links a {
  color: var(--creme); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: border-color .2s var(--ease);
}
.hero__links a:hover { border-color: var(--creme); }

/* Bouton de lecture : visible seulement si le navigateur refuse
   la lecture automatique (mode économie d'énergie, mouvement réduit). */
.hero__play {
  position: absolute; top: calc(var(--entete) + 16px); right: var(--gut);
  width: 54px; height: 54px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(45, 22, 13, .5); color: var(--creme);
  border: 2px solid var(--creme); cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .18s var(--ease);
}
.hero__play:hover { transform: scale(1.08); }
.hero__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.hero__play[hidden] { display: none; }

/* ---------- 7. Grilles et cartes ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--blanc);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card--plain { background: none; padding: 0; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(202, 24, 35, .12); }

.zoom { overflow: hidden; border-radius: var(--r-lg); }
.zoom img { transition: transform .6s var(--ease); width: 100%; }
.card:hover .zoom img, .zoom:hover img { transform: scale(1.04); }

.ratio-43 { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ratio-45 { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ratio-169 { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.bande { overflow: hidden; padding: 0; }
.bande img { width: 100%; height: clamp(260px, 38vw, 480px); object-fit: cover; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }

.section-head {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ---------- 8. Carte (menu) ---------- */
.famille + .famille { margin-top: clamp(32px, 5vw, 48px); }
.famille > h2 { font-size: clamp(20px, 3vw, 24px); letter-spacing: .04em; margin-bottom: 12px; }

.ligne {
  padding: 14px 12px; margin-inline: -12px;
  border-top: 1px solid var(--filet); border-radius: var(--r-md);
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.ligne:first-of-type { border-top: none; }
.ligne:hover { background: rgba(202, 24, 35, .05); padding-left: 22px; }
.ligne__tete { display: flex; align-items: baseline; gap: 16px; }
.ligne__nom {
  flex: 1; font-family: var(--display); font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1;
}
.ligne__prix { font-family: var(--display); font-size: clamp(20px, 2.6vw, 24px); font-weight: 800; line-height: 1.1; }
.ligne--sombre .ligne__nom, .ligne--sombre .ligne__prix { color: var(--dark); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 24px; }
.extras div { display: flex; justify-content: space-between; }
.extras span:last-child { font-family: var(--display); font-weight: 800; font-size: 20px; }

/* ---------- 9. Produits en bandes ---------- */
.produit { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: stretch; }
.produit img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.produit__txt {
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.produit:nth-child(even) .produit__media { order: 2; }
@media (max-width: 719px) { .produit:nth-child(even) .produit__media { order: 0; } }

/* ---------- 10. Avis ---------- */
.note { display: flex; align-items: baseline; gap: 12px; }
.note strong { font-family: var(--display); font-size: clamp(48px, 8vw, 72px); font-weight: 800; line-height: .9; }
.etoiles { letter-spacing: .1em; }

/* ---------- 11. FAQ ---------- */
.faq { background: var(--blanc); }
.faq details {
  border-top: 1px solid var(--filet);
  padding: 18px 12px; margin-inline: -12px; border-radius: var(--r-md);
  transition: background-color .2s var(--ease);
}
.faq details:hover { background: rgba(202, 24, 35, .04); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 800; text-transform: uppercase; line-height: 1.15;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--texte-2); }

/* ---------- 12. Horaires ---------- */
.horaires { margin: 0; }
.horaires div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 5px 0; font-size: 14px; }
.horaires dt { color: var(--rouge); }
.horaires dd { margin: 0; color: var(--texte-2); text-align: right; white-space: nowrap; }
.horaires div.aujourdhui dt, .horaires div.aujourdhui dd { font-weight: 700; color: var(--rouge); }

.statut {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.statut::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: currentColor; }

/* ---------- 13. Réseaux ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--rouge); color: var(--creme);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.soc span { font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.soc svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.soc img { width: 22px; height: 22px; }
.soc:hover { transform: scale(1.08); box-shadow: 0 8px 18px rgba(202, 24, 35, .2); }

/* ---------- 14. Bandeaux rouges ---------- */
.rouge { background: var(--rouge); color: var(--creme); }
.rouge h1, .rouge h2, .rouge h3, .rouge p, .rouge a { color: var(--creme); }
.cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* Un bouton garde ses couleurs dans un bandeau rouge : sans ces règles,
   « .rouge a » repeint le libellé en crème sur un fond crème. */
.rouge a.btn--primary { background: var(--rouge); color: var(--creme); }
.rouge a.btn--ghost { color: var(--rouge); }
.rouge a.btn--cream,
.rouge a.btn--onred { background: var(--creme); color: var(--rouge); }
.rouge a.btn--outline-cream { color: var(--creme); }

/* ---------- 15. Articles ---------- */
.article { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 899px) { .article { grid-template-columns: 1fr; } }
.article__aside { position: sticky; top: calc(var(--entete) + 20px); display: flex; flex-direction: column; gap: 16px; }
.article ol, .article ul { list-style: none; margin: 0; padding: 0; }
.etape { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--filet); }
.etape__n { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; min-width: 56px; }
.ingr { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--filet); }
.ingr strong { font-family: var(--display); font-size: 20px; min-width: 78px; }
.encadre { background: var(--rouge); color: var(--creme); border-radius: var(--r-lg); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.encadre .eyebrow, .encadre p { color: var(--creme); }
.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px;
  border: 2px solid var(--rouge); border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- 16. Formulaire ---------- */
form.contact { display: flex; flex-direction: column; gap: 16px; }
form.contact label { font-size: 14px; color: var(--texte-2); }
form.contact input, form.contact textarea {
  width: 100%; min-height: 48px; padding: 12px;
  border: 2px solid var(--filet); border-radius: var(--r-md);
  background: var(--creme); font-family: inherit; font-size: 16px; color: var(--rouge);
}
form.contact input:focus, form.contact textarea:focus { border-color: var(--rouge); outline: none; }
form.contact .champ { display: flex; flex-direction: column; gap: 6px; }
form.contact button { align-self: flex-start; border: none; }

.map { border: 0; width: 100%; height: clamp(300px, 45vw, 460px); border-radius: var(--r-lg); }

/* Plan Google Maps : rien n'est chargé tant que le visiteur n'a pas cliqué. */
.map-ph {
  width: 100%; height: clamp(300px, 45vw, 460px);
  border: 1px solid var(--filet); border-radius: var(--r-lg); background: var(--blanc);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 28px;
}
.map-ph__t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 3vw, 28px); line-height: .95; margin: 0; }
.map-ph p { margin: 0; max-width: 40ch; }

/* ---------- 17. Pied de page ---------- */
.site-footer { background: var(--creme); }
.site-footer .cols {
  display: grid; gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
  padding-block: 40px 32px; align-items: start;
}
@media (max-width: 899px) { .site-footer .cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.site-footer img.logo { height: 76px; width: auto; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav a { font-size: 15px; line-height: 28px; }
.site-footer nav.maj a { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.copy { margin-top: 14px; font-size: 13px; color: var(--texte-2); }

/* ---------- 18. Révélation au scroll ---------- */
.rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 899px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: var(--entete) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); border-bottom: 1px solid var(--filet);
    padding: 12px var(--gut) 24px;
    transform: translateY(-120%); transition: transform .3s var(--ease);
    max-height: calc(100svh - var(--entete)); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a.lien { padding: 14px 0; background-image: none; border-bottom: 1px solid var(--filet); }
  .nav .btn, .nav .lang { margin-top: 14px; width: 100%; }
  .article__aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 20. Impression ---------- */
@media print {
  .site-header, .site-footer, .hero video, .btn, .socials { display: none; }
  body { color: #000; background: #fff; }
}
