/* Casa di Mario — reprise fidèle du design d'origine (Divi) */
:root {
  --fond: #0b1315;
  --fond-entete: #0a0a0c;
  --or: #c9ab81;
  --or-trait: rgba(201, 171, 129, 0.35);
  --blanc: #fff;
  --titre: "Albert Sans", Helvetica, Arial, sans-serif;
  --texte: Manrope, Helvetica, Arial, sans-serif;
  --script: Satisfy, cursive;
  --largeur: 1296px;
  --nav-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--fond); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Rien ne doit élargir la page au-delà de l'écran (sinon le téléphone l'affiche « zoomée » et elle glisse
   sur le côté). « clip » plutôt que « hidden » pour ne pas casser la barre des catégories collée. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--blanc);
  font-family: var(--texte);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }

.script { font-family: var(--script); color: var(--or); font-weight: 400; }
.orn { width: 43px; height: 11px; flex: none; }

/* En-tête logo */
.entete {
  background: var(--fond-entete);
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
}
.entete { position: relative; }
.entete img { width: clamp(100px, 8.5vw, 124px); height: auto; } /* comme l'ancien site : 8,5 % de la largeur */
.langues {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 4px;
}
.langues button {
  background: transparent;
  color: var(--or);
  border: 1px solid var(--or-trait);
  border-radius: 999px;
  padding: 3px 9px;
  font: 600 12px/1.4 var(--titre);
  letter-spacing: 1px;
  cursor: pointer;
}
.langues button[aria-pressed="true"] { background: var(--or); color: var(--fond); border-color: var(--or); }

/* Hero */
.hero {
  background: #0a0a0c url("images/hero.webp") center / cover no-repeat;
  padding: 99px 5% 349px;
  text-align: center;
}
.hero .accroche { font-size: 29px; line-height: 1; padding-bottom: 10px; }
.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: clamp(49px, 7.6vw, 115px);
  line-height: 1.1;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: var(--or);
  padding-bottom: 10px;
}
.orn-large { width: 56px; height: 10px; }
.infos { font-size: 19px; line-height: 1.5; max-width: 680px; margin: 0 auto; }
.infos strong { font-weight: 700; }
.infos .heures { text-decoration: underline; text-underline-offset: 3px; }

/* Boutons Appeler / Réserver / Itinéraire */
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--or); border-radius: 999px;
  background: rgba(11, 19, 21, 0.75);
  color: var(--or);
  font: 600 15px/1 var(--titre); letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.action:hover { background: var(--or); color: var(--fond); }
.action-principale { background: var(--or); color: var(--fond); }
.action-principale:hover { background: var(--blanc); border-color: var(--blanc); }
.badge-guru { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.badge-guru #rg26-b-rcirc5 { cursor: pointer; }
.badge-guru #rg26-b-circledLeaves27 { margin: 0 !important; } /* sa feuille de style impose « margin: auto » */
/* Même taille pour les deux badges : le rond (150 px) est agrandi à la largeur de l'autre (186 px). */
.badge-guru #rg26-b-rcirc5 { zoom: 1.24; }

/* Intro */
.intro {
  width: 90%; /* le contenu occupe 90 % de la largeur, comme sur l'ancien site */
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.intro-texte, .merci-texte { text-align: center; }
.surtitre { font-size: 23px; line-height: 1.2; padding-bottom: 10px; }
.intro h2, .merci h2, .titre-bloc h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--titre);
  font-weight: 500;
  color: var(--or);
  text-transform: uppercase;
  font-size: 41px;
  line-height: 1.2;
  letter-spacing: 0.2em;
  padding-bottom: 10px;
}
.intro-texte > p:last-child, .merci-texte > p:last-child { line-height: 1.8; max-width: 420px; margin: 10px auto 0; }

/* Navigation catégories (collante) */
.categories {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Fond sombre (pas doré) : Safari sur iPhone teinte ses barres avec la couleur du bandeau collé. */
  background: var(--fond);
  border-top: 1px solid var(--or-trait);
  border-bottom: 1px solid var(--or);
  min-height: var(--nav-h);
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.categories a {
  background: var(--fond);
  color: var(--or);
  border: 2px solid var(--or);
  border-radius: 999px;
  padding: 4px 13px;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.7;
  text-transform: uppercase;
  text-decoration: none;
}
.categories a:hover { background: var(--or); color: var(--fond); }
/* Carte */
.categorie {
  padding: 44px 5%;
  scroll-margin-top: var(--nav-h);
}
.categorie + .categorie { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bloc { max-width: var(--largeur); margin: 0 auto; }
.bloc + .bloc { margin-top: 90px; }
.titre-bloc { text-align: center; margin-bottom: 20px; }
.titre-bloc .surtitre { font-size: 26px; }
.titre-bloc h2 { font-size: 48px; letter-spacing: 0.22em; }

.rubrique { margin-top: 40px; scroll-margin-top: var(--nav-h); }
.titre-bloc + .rubrique { margin-top: 0; }
.rubrique > h4 {
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  padding-bottom: 10px;
}
.rubrique > .orn { margin: 0 auto 10px; }
.rubrique > .note { text-align: center; margin-bottom: 10px; }

.plats { display: grid; grid-template-columns: 1fr; column-gap: 60px; margin-top: 36px; }
.plats.cols-2 { grid-template-columns: 1fr 1fr; }

.plat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "nom trait prix"
    "statut statut statut"
    "desc desc desc"
    "options options options"
    "allergenes allergenes allergenes";
  column-gap: 14px;
  align-items: center;
  padding: 0 3px 18px;
  margin-bottom: 34px;
}
.plat .nom {
  grid-area: nom;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--or);
}
.plat .trait { grid-area: trait; height: 1px; background: var(--or-trait); }
.plat .prix {
  grid-area: prix;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  color: var(--or);
  white-space: nowrap;
}
.plat .desc { grid-area: desc; margin-top: 10px; line-height: 1.6; }
.plat .options {
  grid-area: options;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--or);
  font-size: 15px;
}
.plat .halal { color: var(--blanc); margin-left: 2px; }
.plat .piment { letter-spacing: 0; font-size: 0.9em; }
.plat .statut {
  grid-area: statut;
  margin-top: 6px;
  font-family: var(--script);
  font-size: 20px;
  line-height: 1.2;
  color: var(--or);
}
.plat.epuise .nom, .plat.epuise .prix { text-decoration: line-through; text-decoration-thickness: 1px; opacity: 0.6; }
.plat.epuise .desc, .plat.epuise .options { opacity: 0.6; }
.plat .allergenes { grid-area: allergenes; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.mention-allergenes { text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.6); margin: 8px 20px 0; }
.mention {
  text-align: center;
  font-family: var(--titre);
  font-weight: 500;
  font-size: 22px;
  margin-top: 10px;
}

/* Merci */
.merci {
  width: 90%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.merci-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.merci-imgs img { width: 100%; aspect-ratio: 344 / 523; object-fit: cover; }

/* Pied de page */
.pied {
  padding: 23px 5% 31px;
  text-align: center;
  border-bottom: 32px solid var(--fond);
}
.pied > img { width: 64px; margin: 0 auto 20px; }
.reseaux {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 48px;
}
.reseaux a {
  display: inline-block;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1.2;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--or);
}
.reseaux a:hover { color: var(--or); }

/* Tablette */
@media (max-width: 980px) {
  .hero h1 { gap: 24px; }
  .hero { padding-bottom: 200px; }
  .intro, .merci { grid-template-columns: 1fr; padding: 60px 0; }
  .intro-img { max-width: 520px; margin: 0 auto; }
}

/* Mobile */
@media (max-width: 767px) {
  .entete img { width: 120px; }
  .actions { flex-wrap: nowrap; gap: 6px; margin-top: 22px; }
  .badge-guru { flex-wrap: nowrap; gap: 14px; zoom: 0.72; } /* badges plus petits, côte à côte */
  .action { flex: 1; justify-content: center; padding: 11px 4px; font-size: 12px; gap: 5px; letter-spacing: 0.5px; }
  .langues { top: 10px; right: 10px; flex-direction: column; }
  .langues button { padding: 2px 7px; font-size: 11px; }
  .hero { padding: 90px 5%; }
  .hero .accroche { font-size: 26px; }
  .hero h1 { font-size: 49px; letter-spacing: 12px; }
  .orn-large { display: none; }
  .infos { font-size: 17px; }

  .intro { padding: 32px 0 24px; }
  .intro-img, .intro-texte > p:last-child { display: none; }
  .intro h2, .merci h2, .titre-bloc h2 { font-size: 28px; letter-spacing: 0.2em; }
  .intro .orn, .titre-bloc .orn, .merci .orn { display: none; }

  .categories { padding: 6px 4px; gap: 5px; }
  .categories a { font-size: 10px; padding: 3px 10px; }

  .categorie { padding: 20px 5% 17px; }
  .plats, .plats.cols-2 { grid-template-columns: 1fr; }
  .plat {
    grid-template-columns: 1fr;
    grid-template-areas: "nom" "statut" "desc" "options" "allergenes" "prix";
    border-bottom: 1px solid var(--or-trait);
    margin-bottom: 30px;
  }
  .plat .trait { display: none; }
  .plat .prix { margin-top: 8px; }

  .merci { padding: 60px 0 15px; gap: 40px; }
  .merci-imgs { gap: 16px; }
  .pied { padding: 28px 5% 80px; }
  .reseaux { gap: 18px 28px; }
}

/* Animations d'apparition (reprises de l'ancien site) — actives seulement si le script les a lancées. */
.anim-actif .anim {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: var(--delai, 0ms);
}
.anim-actif .anim-bas { transform: translateY(var(--distance, 30px)); }
.anim-actif .anim-zoom { transform: scale(0.97); }
.anim-actif .anim-pivot {
  transform: perspective(1000px) rotateX(45deg);
  transform-origin: center;
  transition-timing-function: ease-in-out;
}
.anim-actif .anim.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .anim-actif .anim { opacity: 1; transform: none; transition: none; }
}

/* Mise en forme des descriptions (gras / italique / souligné) */
.plat .desc strong { font-weight: 700; }
.plat .desc u { text-underline-offset: 3px; }
