/* ==========================================================
   CRUST Orléans : feuille de style
   Couleurs et polices modifiables dans :root
   ========================================================== */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --braise: #2b0d0a;      /* fond principal, rouge-brun très sombre */
  --braise-2: #3a120d;    /* fond secondaire */
  --cendre: #1e0806;      /* pied de page */
  --sauce: #d0161e;       /* rouge Crust */
  --flamme: #f07a1a;      /* orange */
  --dore: #ffc423;        /* jaune doré, boutons */
  --papier: #fff4e6;      /* texte clair */
  --papier-doux: #e9d3c1; /* texte secondaire */

  --titre: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --texte: "Figtree", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --largeur: 1180px;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --rayon: 14px;

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }

body {
  margin: 0;
  background: var(--braise);
  color: var(--papier);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}

.conteneur { width: min(var(--largeur), 100% - 2 * var(--gouttiere)); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--dore); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--titre); font-weight: 800; font-size: 1.3rem; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-commander { background: var(--dore); color: var(--braise); }
.btn-commander:hover { background: #ffd65c; transform: translateY(-2px); }
.btn-contour { border-color: rgba(255, 244, 230, .45); color: var(--papier); }
.btn-contour:hover { border-color: var(--papier); background: rgba(255, 244, 230, .08); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(43, 13, 10, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 244, 230, .08);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px);
  background: rgba(43, 13, 10, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.entete .conteneur { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.logo img { width: 128px; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--papier-doux);
  padding: .3em 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--papier); border-bottom-color: var(--flamme); }
.entete .btn { font-size: 1.1rem; padding: .7em 1.15em; }

/* ---------- Accueil (hero) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(70% 90% at 78% 55%, #b3121a 0%, #7a0d10 38%, transparent 72%),
    var(--braise);
}
.hero .conteneur {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(1rem, 3vw, 3rem);
}
.hero-mot {
  position: absolute; z-index: -1; right: -2vw; bottom: -0.16em;
  font-family: var(--titre); font-weight: 900; font-size: clamp(9rem, 30vw, 26rem);
  line-height: .8; letter-spacing: -.01em; color: transparent;
  -webkit-text-stroke: 2px rgba(255, 196, 35, .28);
  user-select: none; pointer-events: none; white-space: nowrap;
}
.hero h1 { font-size: clamp(3.2rem, 7.2vw, 6.4rem); }
.hero h1 span { display: block; }
.hero h1 .ligne-2 { color: var(--dore); }
.hero-intro { max-width: 34ch; font-size: 1.15rem; color: var(--papier-doux); margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-livraison { margin: 1.1rem 0 0; font-size: .98rem; color: var(--papier-doux); }
.hero-livraison a { color: var(--papier); font-weight: 700; text-decoration-color: var(--flamme); text-underline-offset: .2em; }
.hero-livraison a:hover { color: var(--dore); }
.hero-visuel { position: relative; }
.hero-visuel img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  transform: scale(1.12);
}
.halal {
  position: absolute; right: 6%; top: 6%;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--papier); color: var(--sauce);
  font-family: var(--titre); font-weight: 900; font-size: 1.35rem; line-height: .9;
  transform: rotate(-10deg); box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.halal small { display: block; font-size: .62rem; font-family: var(--texte); font-weight: 700; color: var(--braise); margin-top: 3px; }

/* Une seule animation, au chargement */
@media (prefers-reduced-motion: no-preference) {
  .hero-visuel img { animation: entree-burger .9s cubic-bezier(.2,.8,.2,1) both; }
  .hero-texte > * { animation: entree-texte .7s ease-out both; }
  .hero-texte > *:nth-child(2) { animation-delay: .12s; }
  .hero-texte > *:nth-child(3) { animation-delay: .22s; }
  .hero-texte > *:nth-child(4) { animation-delay: .32s; }
  .halal { animation: entree-tampon .5s .7s cubic-bezier(.3,1.6,.5,1) both; }
}
@keyframes entree-burger { from { opacity: 0; transform: scale(1.02) translateY(18px); } }
@keyframes entree-texte { from { opacity: 0; transform: translateY(14px); } }
@keyframes entree-tampon { from { opacity: 0; transform: rotate(-30deg) scale(.4); } }

/* ---------- Bandeau infos ---------- */
.infos { background: var(--sauce); }
.infos ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.infos li {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.15rem clamp(.75rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3;
}
.infos li + li { border-left: 1px solid rgba(255, 244, 230, .25); }
.infos svg { width: 26px; height: 26px; flex: none; color: var(--dore); }
.infos strong { display: block; font-family: var(--titre); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.infos a { text-decoration: none; }
.infos a:hover strong { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-titre { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.section-intro { max-width: 52ch; color: var(--papier-doux); margin-top: 1rem; }

/* Incontournables */
.vedettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.vedettes figure { margin: 0; border-radius: var(--rayon); overflow: hidden; }
.vedettes img { width: 100%; }

/* Fait maison */
.maison {
  position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, var(--braise) 0%, rgba(43,13,10,.86) 18%, rgba(43,13,10,.86) 82%, var(--braise) 100%),
    url("https://res.cloudinary.com/drive-eat/image/upload/f_auto,q_auto,w_1920/v1792138349/crust-orleans/ambiance-epices.jpg") center / cover no-repeat;
}
.maison-grille {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem;
}
.maison article { display: grid; gap: 1.4rem; }
.maison article:nth-child(2) { margin-top: clamp(0rem, 8vw, 6rem); }
.maison img { border-radius: var(--rayon); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.maison h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--dore); }
.maison p { color: var(--papier-doux); max-width: 46ch; margin-top: .6rem; }

/* ---------- Carte ---------- */
.carte { background: var(--braise-2); }
.carte-entete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.onglets {
  display: flex; gap: .5rem; margin: 2.5rem 0 2rem;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.onglets::-webkit-scrollbar { display: none; }
.onglet {
  flex: none; cursor: pointer;
  font-family: var(--titre); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; text-transform: uppercase;
  padding: .6em 1.1em; border-radius: 999px;
  background: transparent; color: var(--papier-doux);
  border: 1.5px solid rgba(255, 244, 230, .22);
}
.onglet:hover { color: var(--papier); border-color: rgba(255, 244, 230, .5); }
.onglet[aria-selected="true"] { background: var(--papier); color: var(--braise); border-color: var(--papier); }

.panneau { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.js .panneau[hidden] { display: none; }
.panneau > figure { margin: 0; position: sticky; top: 100px; }
.panneau > figure img { border-radius: var(--rayon); width: 100%; }
.panneau h3 { font-size: 2rem; color: var(--dore); margin: 0 0 .4rem; }
.panneau h3:not(:first-child) { margin-top: 2.5rem; }
.panneau .note { font-size: .95rem; color: var(--papier-doux); margin: 0 0 1rem; }

.plats { list-style: none; margin: 0; padding: 0; }
.plats li { padding: .85rem 0; border-bottom: 1px solid rgba(255, 244, 230, .1); }
.plat-ligne { display: flex; align-items: baseline; gap: .6rem; }
.plat-nom { font-family: var(--titre); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; }
.plat-ligne::after { content: none; }
.points { flex: 1; border-bottom: 2px dotted rgba(255, 244, 230, .3); transform: translateY(-.3em); min-width: 1.5rem; }
.plat-prix { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--dore); }
.plats p { margin: .15rem 0 0; font-size: .95rem; color: var(--papier-doux); max-width: 60ch; }

/* Vignettes produits (visuels détourés) : colonne fixe pour garder l'alignement même sans image */
.avec-vignettes li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1rem; align-items: center; padding: .6rem 0; }
.avec-vignettes .plat-texte { grid-column: 2; }
.plat-vignette { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }

/* Figure de panneau avec un visuel détouré (fond transparent) */
.panneau > figure.detoure {
  border-radius: var(--rayon);
  background: radial-gradient(75% 75% at 50% 45%, #7a0d10 0%, var(--braise) 78%);
}
.panneau > figure.detoure img { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }

.carte-pied {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 244, 230, .12);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: .95rem; color: var(--papier-doux);
}
.carte-pied p { margin: 0; max-width: 60ch; }

/* ---------- Appel à commander ---------- */
.appel {
  position: relative; isolation: isolate; text-align: center;
  padding: clamp(5rem, 12vw, 9rem) 0;
  background:
    linear-gradient(180deg, rgba(43,13,10,.55), rgba(43,13,10,.75)),
    url("https://res.cloudinary.com/drive-eat/image/upload/f_auto,q_auto,w_1920/v1792138330/crust-orleans/ambiance-flammes.jpg") center / cover no-repeat;
}
.appel h2 { font-size: clamp(3rem, 8vw, 6.5rem); }
.appel p { margin: 1.2rem auto 2.2rem; max-width: 42ch; font-size: 1.15rem; color: var(--papier-doux); }
.appel .btn { font-size: 1.5rem; }
.appel-choix { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 3.5rem; }
.appel-bloc h3 { font-size: 1.5rem; color: var(--dore); margin-bottom: .9rem; }
.appel-livraison { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.btn-livraison:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ubereats { background: #06c167; color: #000; }
.btn-deliveroo { background: #00ccbc; color: #000; }

/* ---------- Nous trouver ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; align-items: stretch; }
.coordonnees { display: grid; gap: 1.8rem; align-content: start; }
.coordonnees h3 { font-size: 1.5rem; color: var(--dore); margin-bottom: .35rem; }
.coordonnees p { margin: 0; }
.tel { font-family: var(--titre); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); text-decoration: none; line-height: 1; }
.tel:hover { color: var(--dore); }
.reseaux-liens { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; }
.reseaux a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; }
.reseaux a:hover { color: var(--dore); }
.reseaux svg { width: 22px; height: 22px; }

.plan {
  position: relative; min-height: 380px; border-radius: var(--rayon); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(43,13,10,.35), rgba(43,13,10,.85)),
    url("https://res.cloudinary.com/drive-eat/image/upload/f_auto,q_auto,w_1200/v1792138376/crust-orleans/ambiance-soir.jpg") center / cover no-repeat;
  display: grid; place-items: end start; padding: clamp(1.25rem, 3vw, 2rem);
}
.plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plan-contenu p { max-width: 38ch; margin: .8rem 0 1.2rem; font-size: .95rem; color: var(--papier-doux); }
.plan-contenu .adresse { font-family: var(--titre); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1; color: var(--papier); margin: 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.plan-actions .btn { font-size: 1.05rem; padding: .7em 1.1em; }

/* ---------- Pied de page ---------- */
.pied { background: var(--cendre); padding: 3rem 0; font-size: .9rem; color: var(--papier-doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.pied img { width: 110px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--papier); text-decoration: underline; }

/* ---------- Barre mobile fixe ---------- */
.barre-mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .entete .btn { margin-left: auto; }
  .hero .conteneur { grid-template-columns: 1fr; }
  .hero-visuel { order: -1; margin: -1rem -4vw 0; }
  .hero-texte { text-align: left; }
  .infos ul { grid-template-columns: 1fr; }
  .vedettes { grid-template-columns: 1fr; }
  .infos li + li { border-left: 0; border-top: 1px solid rgba(255, 244, 230, .25); }
  .maison-grille { grid-template-columns: 1fr; }
  .maison article:nth-child(2) { margin-top: 0; }
  .panneau { grid-template-columns: 1fr; }
  .panneau > figure { position: static; }
  .panneau > figure img { aspect-ratio: 16 / 9; object-fit: cover; max-height: 220px; }
  .panneau > figure.detoure img { object-fit: contain; margin-inline: auto; }
  .contact-grille { grid-template-columns: 1fr; }
  .pied { padding-bottom: calc(3rem + 80px); }

  .barre-mobile {
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .5rem;
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
    padding: .7rem var(--gouttiere) calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(30, 8, 6, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 244, 230, .1);
  }
  .barre-mobile .btn { font-size: 1.1rem; padding: .8em .5em; }
}
@media (max-width: 560px) {
  .entete .conteneur { min-height: 64px; gap: 1rem; }
  .logo img { width: 104px; }
  .entete .btn { display: none; }
  .halal { width: 68px; height: 68px; font-size: 1.1rem; right: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
