/* Le Tie Break — feuille de style
   Couleurs reprises du logo : gris charbon et vieux rose. */

:root {
  /* Couleurs de la marque : le gris charbon et le vieux rose du logo */
  --fond: #faf7f5;
  --fond-2: #f2ebe7;
  --encre: #222121;
  --encre-douce: #5b5350;
  --charbon: #212121;
  --charbon-2: #343130;
  --rose: #c9a497;
  --rose-clair: #dcbfb4;
  --rose-pale: #f4e8e3;
  --taupe: #86655b;
  --trait: #e0d6d1;
  --ouvert: #2e7d4f;
  --ferme: #a2452f;

  --marque: "Parisienne", "Segoe Script", cursive;
  --titre: "Cormorant Garamond", Garamond, Georgia, serif;
  --texte: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --largeur: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; text-wrap: balance; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--charbon); color: #fff; padding: .6rem 1rem; z-index: 100; }
.evitement:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: var(--rayon);
  font: 600 1.05rem/1.2 var(--texte); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--rose { background: var(--rose); color: var(--charbon); }
.btn--rose:hover { background: var(--rose-clair); }
.btn--clair { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--clair:hover { background: rgba(255,255,255,.12); }
.btn--sombre { background: var(--charbon); color: #fff; }
.btn--sombre:hover { background: var(--charbon-2); }
.btn--contour { border-color: var(--charbon); color: var(--charbon); }
.btn--contour:hover { background: var(--charbon); color: #fff; }

/* ---------- Annonce ---------- */
.annonce { background: var(--rose-pale); color: var(--charbon); font-size: 1rem; text-align: center; }
.annonce p { margin: 0; padding: .55rem var(--gouttiere); }
.annonce a { font-weight: 700; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: var(--charbon); color: #fff; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo img { width: 3.25rem; height: 3.25rem; }
.logo span { font-family: var(--marque); font-size: 1.9rem; line-height: 1; padding-top: .2em; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { padding: .55rem 1rem; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.menu-btn svg { width: 1.75rem; height: 1.75rem; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charbon); padding: .5rem var(--gouttiere) 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  }
  .nav.is-ouvert { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* ---------- Statut d'ouverture ---------- */
.statut { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.statut::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; flex: none; }
.statut.is-ouvert::before { background: #5fd38d; box-shadow: 0 0 0 4px rgba(95,211,141,.25); }
.statut.is-ferme::before { background: #e7896f; }

/* ---------- Héros ---------- */
.heros { background: var(--charbon); color: #fff; }
.heros__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.heros__texte { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6rem) var(--gouttiere); padding-left: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2 + var(--gouttiere))); }
.heros h1 { font-family: var(--marque); font-weight: 400; font-size: clamp(3rem, 7.5vw, 5.75rem); line-height: 1.05; color: var(--rose); margin-bottom: .4rem; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.heros__depuis { font-family: var(--titre); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; margin-bottom: 1rem; }
.heros__accroche { font-size: 1.2rem; max-width: 30rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.82); }
.heros .statut { margin-bottom: 1.75rem; font-size: 1.05rem; }
.heros__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.heros__photo { width: 100%; height: 100% !important; min-height: 30rem; object-fit: cover; }
@media (max-width: 860px) {
  .heros__grille { grid-template-columns: 1fr; }
  .heros__photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; max-height: 26rem; }
  .heros__texte { padding: 2rem var(--gouttiere) 2.5rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--sombre { background: var(--charbon); color: #fff; }
.section--creme { background: var(--fond-2); }
.titre-section { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.intro { font-size: 1.25rem; color: var(--encre-douce); max-width: 38rem; }
.section--sombre .intro { color: rgba(255,255,255,.85); }

/* Accueil : la maison */
.maison { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.maison__photo { border-radius: var(--rayon); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--fond-2); }
.maison__texte p { max-width: 34rem; }
@media (max-width: 800px) { .maison { grid-template-columns: 1fr; } .maison__photo { aspect-ratio: 4 / 3; } }

/* ---------- Plats (carte + vedettes) ---------- */
.plats { list-style: none; margin: 0; padding: 0; }
.plat { padding: .85rem 0; border-bottom: 1px dashed var(--trait); }
.plat:last-child { border-bottom: 0; }
.plat__ligne { display: flex; align-items: baseline; gap: .5rem; }
.plat__nom { font-weight: 600; font-size: 1.15rem; }
.plat__points { flex: 1; min-width: 1.5rem; border-bottom: 2px dotted var(--trait); transform: translateY(-.3em); }
.plat__prix { font-family: var(--titre); font-weight: 600; font-size: 1.3rem; white-space: nowrap; color: var(--taupe); }
.plat__detail { margin: .15rem 0 0; color: var(--encre-douce); font-size: 1rem; max-width: 34rem; }

.vedettes { margin-top: 2rem; }
.vedettes .plat__nom { font-size: 1.25rem; }
.lien-fleche { display: inline-block; margin-top: 1.5rem; font-weight: 700; color: var(--charbon); text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Page carte ---------- */
.page-tete { background: var(--charbon); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-tete h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: .75rem; }
.page-tete p { color: rgba(255,255,255,.85); font-size: 1.2rem; max-width: 36rem; margin: 0; }

.carte-nav {
  position: sticky; top: 4.25rem; z-index: 10; background: var(--fond);
  border-bottom: 1px solid var(--trait); overflow-x: auto; scrollbar-width: none;
}
.carte-nav::-webkit-scrollbar { display: none; }
.carte-nav__liste { display: flex; gap: .4rem; padding: .7rem var(--gouttiere); max-width: var(--largeur); margin: 0 auto; }
.carte-nav a {
  white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--trait); color: var(--charbon);
}
.carte-nav a:hover { background: var(--charbon); border-color: var(--charbon); color: #fff; }

.carte { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 6vw, 5rem); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.rubrique { break-inside: avoid; margin-bottom: 3rem; }
.rubrique#plats { grid-column: 1 / -1; }
.rubrique#plats .plats { columns: 2; column-gap: clamp(2rem, 6vw, 5rem); }
.rubrique#plats .plat { break-inside: avoid; }
.rubrique__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 3px solid var(--charbon); padding-bottom: .5rem; margin-bottom: .5rem; }
.rubrique__tete h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--charbon); }
.rubrique__prix { font-family: var(--titre); font-weight: 600; font-size: 1.8rem; color: var(--taupe); }
.rubrique__note { color: var(--encre-douce); margin: .5rem 0 0; }
@media (max-width: 800px) {
  .carte { grid-template-columns: 1fr; }
  .rubrique#plats .plats { columns: 1; }
}
.mentions-carte { border-top: 1px solid var(--trait); padding: 1.5rem 0 3rem; color: var(--encre-douce); font-size: 1rem; }
.mentions-carte p { margin: 0 0 .35rem; }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.infos h3 { font-size: 1.6rem; margin-bottom: .9rem; }
.infos address { font-style: normal; font-size: 1.2rem; margin-bottom: 1rem; }
.infos__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.horaires { margin: 0; }
.horaires__ligne { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .6rem; border-radius: 4px; }
.horaires__ligne dt { font-weight: 600; }
.horaires__ligne dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.horaires__ligne.is-aujourdhui { background: var(--rose-pale); }
.horaires__auj { font-weight: 400; font-size: .85rem; color: var(--taupe); }
.fermetures { margin-top: 1rem; padding: .8rem 1rem; background: #fbeee9; border-left: 4px solid var(--ferme); border-radius: 4px; font-size: 1rem; }
.fermetures ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.plan { aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--fond-2); display: grid; place-items: center; text-align: center; border: 1px solid var(--trait); }
.plan iframe { width: 100%; height: 100%; border: 0; }
.plan button { font: inherit; }
.plan p { font-size: .95rem; color: var(--encre-douce); margin: .6rem 1rem 0; }
@media (max-width: 900px) { .infos { grid-template-columns: 1fr 1fr; } .infos__plan { grid-column: 1 / -1; } }
@media (max-width: 560px) { .infos { grid-template-columns: 1fr; } }

/* ---------- Traiteur ---------- */
.traiteur-bandeau { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.traiteur-bandeau__photo img { border-radius: var(--rayon); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.traiteur-bandeau__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: 2.5rem; }
.point { border-top: 2px solid var(--rose); padding-top: .9rem; }
.point h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.point p { margin: 0; color: var(--encre-douce); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
.traiteur-photo { border-radius: var(--rayon); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-height: 34rem; }
@media (max-width: 760px) { .traiteur-bandeau { grid-template-columns: 1fr; } }
.occasions { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.occasions li { border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: .35rem .9rem; font-size: 1rem; }
.section:not(.section--sombre) .occasions li { border-color: var(--trait); color: var(--charbon); }

.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.doc h3 { font-size: 1.6rem; }
.doc p { margin: .2rem 0 0; color: var(--encre-douce); font-size: .95rem; }
.doc--fetes { border-color: var(--rose); background: var(--rose-pale); }
@media (max-width: 700px) { .doc { flex-direction: column; align-items: flex-start; } }

.devis { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .devis { grid-template-columns: 1fr; } }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-weight: 600; font-size: 1rem; }
.champ label small { font-weight: 400; color: var(--encre-douce); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1.05rem; padding: .7rem .8rem; border: 1px solid #bdb8aa; border-radius: var(--rayon);
  background: #fff; color: var(--encre); width: 100%;
}
.champ textarea { min-height: 8rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--rose); outline-offset: 0; border-color: var(--charbon); }
.piege { position: absolute; left: -9999px; }
.formulaire__bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.formulaire__rgpd { font-size: .9rem; color: var(--encre-douce); margin: 0; flex: 1 1 18rem; }
@media (max-width: 560px) { .formulaire { grid-template-columns: 1fr; } }
.form-retour { padding: 1rem 1.2rem; border-radius: var(--rayon); font-weight: 600; margin-bottom: 1.5rem; }
.form-retour.is-ok { background: #e3f2e8; color: #1d5a35; }
.form-retour.is-erreur { background: #fbeee9; color: #8a3523; }

/* ---------- Texte long (mentions) ---------- */
.texte-long { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.texte-long h2 { font-size: 1.8rem; margin: 2.2rem 0 .7rem; color: var(--charbon); }
.texte-long p, .texte-long li { color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { background: #1a1919; color: rgba(255,255,255,.85); padding: 3rem 0 2rem; font-size: 1rem; }
.pied__grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.pied h2 { font-size: 1.6rem; color: #fff; margin-bottom: .6rem; }
.pied a { color: #fff; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .4rem; }
.pied__bas { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 700px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Barre d'action mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 4.5rem; }
  .barre-mobile {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--charbon); border-top: 1px solid rgba(255,255,255,.15);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .barre-mobile a {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    padding: .6rem .25rem .7rem; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600;
  }
  .barre-mobile a:first-child { background: var(--rose); color: var(--charbon); }
  .barre-mobile svg { width: 1.4rem; height: 1.4rem; }
}
