/* Maquette « Pizzeria 2 » : l'ancienne version, fond sombre, typo grasse, rouge tomate, grande photo du four en fond. */
:root {
  --nuit: #161412;
  --nuit-2: #211e1b;
  --nuit-3: #2d2925;
  --creme: #f4efe6;
  --creme-douce: #b9b0a3;
  --tomate: var(--accent, #bf311b);           /* fonds avec texte crème : contraste ≥ 4,5:1 */
  --tomate-fonce: color-mix(in srgb, var(--tomate) 82%, black);
  --tomate-texte: color-mix(in srgb, var(--tomate) 55%, #ffb199); /* texte rouge sur fond sombre */
  --font: "Figtree", system-ui, sans-serif;
  --large: 72rem;
  --espace: clamp(4rem, 9vw, 7rem);
  --picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M7 11c11-6 23-6 34 0L24 43z'/%3E%3Cpath d='M10 16c9-4 19-4 28 0'/%3E%3Ccircle cx='20' cy='22' r='2.5'/%3E%3Ccircle cx='28' cy='27' r='2.5'/%3E%3Ccircle cx='23' cy='33' r='2'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nuit); color: var(--creme); font: 400 1.0625rem/1.6 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 850; line-height: 1.02; margin: 0; letter-spacing: -.02em; }

.bandeau { background: var(--creme); color: var(--nuit); text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.bandeau a { color: inherit; font-weight: 700; }

.haut { position: absolute; z-index: 5; left: 0; right: 0; max-width: var(--large); margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-weight: 900; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; }
.menu { display: flex; gap: 1.5rem; align-items: center; font-weight: 600; font-size: .95rem; }
.menu a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { color: var(--tomate-texte); }
.menu-tel { background: var(--tomate); padding: 0 1.1rem; border-radius: 99px; }
.menu-tel:hover { color: var(--creme) !important; background: var(--tomate-fonce); }

/* Accueil : la photo en fond plein ; sans photo, un grand cadre bien visible à droite */
.accueil { position: relative; min-height: min(88vh, 46rem); display: flex; align-items: flex-end; }
.accueil-fond { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.accueil-fond img { width: 100%; height: 100%; object-fit: cover; }
.accueil-fond.vide { justify-items: end; padding: 0 9% 0 0; color: var(--creme-douce);
  background: radial-gradient(circle at 74% 45%, color-mix(in srgb, var(--tomate) 45%, transparent) 0, transparent 38%), radial-gradient(ellipse at 70% 40%, #4a2418 0%, #24170f 50%, var(--nuit) 85%); }
.accueil-fond.vide .picto { width: 7rem; height: 7rem; opacity: .75; }
.accueil-fond.vide .a-remplacer { width: 14rem; }
.accueil::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--nuit) 0%, rgba(22,20,18,.5) 40%, rgba(22,20,18,.15) 100%); }
.accueil-texte { position: relative; z-index: 2; width: 100%; max-width: var(--large); margin: 0 auto; padding: 8rem 1.25rem 3.5rem; }
.sur-titre { color: var(--tomate-texte); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 0 1rem; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); max-width: 14ch; text-wrap: balance; }
.services { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 2rem; }
.services li { border: 1px solid rgba(244,239,230,.35); border-radius: 99px; padding: .3rem .85rem; font-size: .9rem; font-weight: 600; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.accueil-texte .boutons { margin-top: 2rem; }
.bouton { display: inline-block; padding: .95rem 1.6rem; background: var(--tomate); color: var(--creme); text-decoration: none; font-weight: 750; border-radius: 99px; border: 2px solid var(--tomate); transition: background .2s, border-color .2s; }
.bouton:hover { background: var(--tomate-fonce); border-color: var(--tomate-fonce); }
.bouton-contour { background: transparent; border-color: rgba(244,239,230,.6); }
.bouton-contour:hover { background: var(--creme); color: var(--nuit); border-color: var(--creme); }
.note { margin: 1.5rem 0 0; color: var(--creme-douce); }
.note strong { color: var(--creme); font-size: 1.15rem; }

/* Cadres photo à remplacer */
.vide { background: var(--nuit-2) repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px); color: var(--creme-douce); }

.contenu { max-width: var(--large); margin: 0 auto; padding: 0 1.25rem; }

/* Offre */
.formule { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "titre prix" "titre detail"; column-gap: 2rem; align-items: center; background: var(--tomate); color: var(--creme); border-radius: 1.25rem; padding: 1.5rem 2rem; margin-top: 1rem; }
.formule p { margin: 0; }
.f-titre { grid-area: titre; font-weight: 900; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .06em; border-right: 2px solid rgba(244,239,230,.4); padding-right: 2rem; align-self: stretch; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.f-prix { grid-area: prix; font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.1; }
.f-detail { grid-area: detail; }

.bloc { padding: var(--espace) 0 0; }
.bloc h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
.titre-bloc { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.lien { display: inline-block; padding: .6rem 0; color: var(--tomate-texte); font-weight: 700; text-underline-offset: 4px; }

/* La carte */
.carte { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; align-items: start; }
.categorie { background: var(--nuit-2); border-radius: 1.25rem; padding: 1.75rem; }
.categorie h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tomate-texte); margin-bottom: 1.25rem; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ligne { display: flex; align-items: baseline; gap: .5rem; }
.ligne .nom { font-weight: 750; font-size: 1.1rem; }
.points { flex: 1; border-bottom: 1px dashed #4a443d; transform: translateY(-.3em); min-width: 1rem; }
.prix { font-weight: 800; white-space: nowrap; }
.detail { margin: .1rem 0 0; font-size: .92rem; color: var(--creme-douce); }

/* Le four */
.histoire { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.photo { margin: 0; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; }
.photo:first-child:not(:only-child) { grid-row: span 2; aspect-ratio: auto; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.histoire-texte p { color: var(--creme-douce); font-size: 1.15rem; margin: 1.25rem 0 0; }

/* Horaires et accès */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-bottom: var(--espace); }
.carte-info { background: var(--nuit-2); border-radius: 1.25rem; padding: 2rem; }
.carte-info h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.horaires { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.horaires li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--nuit-3); }
.horaires li:last-child { border-bottom: 0; }
.horaires .jours { font-weight: 700; }
.horaires .heures { color: var(--creme-douce); text-align: right; }
.horaires .aujourdhui .heures { color: var(--creme); }
.adresse-grande { font-size: 1.3rem; font-weight: 600; margin: 1.25rem 0 .25rem; }
.repere { color: var(--creme-douce); margin: 0 0 1.5rem; }
.carte-info .lien { margin-top: 1rem; }

.bas { text-align: center; color: var(--creme-douce); font-size: .9rem; padding: 2.5rem 1.25rem 3rem; border-top: 1px solid var(--nuit-3); }
.bas p { margin: .25rem 0; }
.bas a { display: inline-block; padding: .5rem 0; }
.bas-nom { font-weight: 900; text-transform: uppercase; font-size: 1.6rem; color: var(--creme); letter-spacing: .02em; }

.barre-mobile { display: none; }

/* Téléphone */
@media (max-width: 760px) {
  .haut { flex-wrap: wrap; row-gap: 0; }
  .menu { width: 100%; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(244,239,230,.2); }
  .menu-tel { display: none !important; }
  .accueil { min-height: 0; display: block; }
  .accueil-fond { position: relative; height: 45vh; min-height: 17rem; }
  .accueil-fond.vide { justify-items: center; padding: 6rem 0 0; }
  .accueil-fond.vide .picto { width: 4.5rem; height: 4.5rem; }
  .accueil::after { display: none; }
  .accueil-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--nuit), transparent 55%); }
  .accueil-texte { margin-top: -4.5rem; padding: 0 1.25rem 2.5rem; }
  .double-barre { display: none; }
  .formule { grid-template-columns: 1fr; grid-template-areas: "titre" "prix" "detail"; row-gap: .4rem; padding: 1.5rem; margin-top: 2.5rem; }
  .f-titre { border-right: 0; padding-right: 0; }
  .histoire, .infos { grid-template-columns: 1fr; }
  .histoire { gap: 2rem; }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .barre-mobile { display: grid; gap: .5rem; position: fixed; inset: auto 0 0 0; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(22,20,18,.94); backdrop-filter: blur(8px); z-index: 10; }
  .barre-mobile a { text-align: center; text-decoration: none; font-weight: 750; padding: .85rem .5rem; border-radius: 99px; border: 1px solid rgba(244,239,230,.4); }
  .barre-mobile a:first-child { background: var(--tomate); border-color: var(--tomate); }
}

