/* Maquette « Pizzeria » : comme une pizzeria de quartier. Carton crème, rouge tomate,
   lettres d'enseigne, coins droits, le numéro en grand et la carte comme le menu du comptoir. */
@font-face { font-family: "Oswald"; src: url("../commun/oswald-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --carton: #f4e9d6;
  --carton-2: #eadac0;
  --carton-3: #dcc6a3;
  --encre: #2b1d14;
  --encre-douce: #6b5644;
  --tomate: var(--accent, #b42a16);            /* texte rouge sur le carton : contraste ≥ 4,5:1 */
  --tomate-fonce: color-mix(in srgb, var(--tomate) 80%, black);
  --blanc: #fffaf2;
  --enseigne: "Oswald", "Bahnschrift SemiCondensed", "Bahnschrift", "Arial Narrow", Impact, sans-serif;
  --font: "Figtree", system-ui, sans-serif;
  --large: 70rem;
  --espace: clamp(4rem, 9vw, 6.5rem);
  --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(--carton); color: var(--encre); font: 400 1.0625rem/1.6 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--enseigne); font-weight: 600; line-height: 1; margin: 0; text-transform: uppercase; letter-spacing: .01em; }

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

/* En-tête : l'enseigne rouge */
.haut { background: var(--tomate); color: var(--blanc); }
.haut { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem max(1.25rem, calc((100% - var(--large)) / 2 + 1.25rem)); }
.logo { font-family: var(--enseigne); font-weight: 600; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.menu { display: flex; gap: 1.5rem; align-items: center; font-weight: 700; font-size: .95rem; }
.menu a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Accueil : le texte en haut, le numéro en très grand, la photo du four en bandeau dessous */
.accueil { max-width: var(--large); margin: 0 auto; padding: 3rem 1.25rem 0; }
.sur-titre { color: var(--tomate); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; margin: 0 0 .9rem; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); max-width: 16ch; text-wrap: balance; }
.numero { display: inline-flex; flex-direction: column; margin: 1.75rem 0 1.5rem; text-decoration: none; color: var(--tomate); border: 3px solid var(--tomate); padding: .6rem 1.25rem .8rem; background: var(--blanc); }
.numero:hover { background: var(--tomate); color: var(--blanc); }
.numero-mot { font: 800 .85rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .18em; }
.numero-tel { font-family: var(--enseigne); font-weight: 600; font-size: clamp(2.4rem, 6.5vw, 4.4rem); line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton { display: inline-block; padding: .9rem 1.5rem; background: var(--tomate); color: var(--blanc); text-decoration: none; font-weight: 750; border: 2px solid var(--tomate); }
.bouton:hover { background: var(--tomate-fonce); border-color: var(--tomate-fonce); }
.bouton-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: var(--carton); border-color: var(--encre); }
.note { margin: 1.25rem 0 0; color: var(--encre-douce); }
.note strong { color: var(--encre); font-size: 1.15rem; }

/* Sur grand écran, le numéro se place à droite du titre, comme l'enseigne d'à côté */
@media (min-width: 761px) {
  .accueil-texte { display: grid; grid-template-columns: 1fr auto; column-gap: 3rem; align-items: end; }
  .accueil-texte > * { grid-column: 1; }
  .accueil-texte .numero { grid-column: 2; grid-row: 3 / span 2; align-self: end; margin: 0; }
  .accueil-texte .boutons { margin-top: 1.5rem; }
}
.accueil-photo { margin: 2.5rem 0 0; aspect-ratio: 21 / 8; overflow: hidden; border: 3px solid var(--encre); }
.accueil-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Cadres photo à remplacer */
.vide { background: var(--carton-2) repeating-linear-gradient(135deg, transparent 0 22px, rgba(43,29,20,.05) 22px 23px); color: var(--encre-douce); }

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

/* La pizza du mois : une étiquette rouge, coins droits */
.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(--blanc); padding: 1.4rem 2rem; margin-top: 2.5rem; }
.formule p { margin: 0; }
.f-titre { grid-area: titre; font-family: var(--enseigne); font-weight: 600; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .03em; border-right: 2px solid rgba(255,250,242,.45); padding-right: 2rem; align-self: stretch; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.f-prix { grid-area: prix; font-family: var(--enseigne); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.f-detail { grid-area: detail; }

.bloc { padding: var(--espace) 0 0; }
.bloc h2 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); color: var(--tomate); }
.lien { display: inline-block; padding: .6rem 0; color: var(--tomate); font-weight: 700; text-underline-offset: 4px; }

/* Une fine frise à carreaux, au-dessus de la carte seulement */
.frise { height: 12px; margin: 1.25rem 0 2rem; background: repeating-conic-gradient(var(--tomate) 0 25%, var(--blanc) 0 50%) 0 0 / 12px 12px; }

/* La carte : en grand, sur 2 colonnes, comme le menu plastifié du comptoir */
.carte { columns: 2 20rem; column-gap: 3.5rem; }
.categorie { break-inside: avoid; margin-bottom: 2.25rem; }
.categorie h3 { font-size: 1.6rem; color: var(--tomate); padding-bottom: .4rem; border-bottom: 3px solid var(--encre); margin-bottom: 1rem; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.ligne { display: flex; align-items: baseline; gap: .5rem; }
.ligne .nom { font-weight: 800; font-size: 1.15rem; }
.points { flex: 1; border-bottom: 2px dotted var(--carton-3); transform: translateY(-.3em); min-width: 1rem; }
.prix { font-family: var(--enseigne); font-weight: 600; font-size: 1.3rem; white-space: nowrap; color: var(--tomate); }
.detail { margin: .1rem 0 0; font-size: .95rem; color: var(--encre-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; overflow: hidden; aspect-ratio: 1; border: 3px solid var(--encre); }
.photo:first-child:not(:only-child) { grid-row: span 2; aspect-ratio: auto; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.histoire-texte h2 { color: var(--encre); }
.histoire-texte p { color: var(--encre-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(--blanc); border: 3px solid var(--encre); padding: 2rem; }
.carte-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--encre); }
.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(--carton-3); }
.horaires li:last-child { border-bottom: 0; }
.horaires .jours { font-weight: 700; }
.horaires .heures { color: var(--encre-douce); text-align: right; }
.horaires .aujourdhui .heures { color: var(--encre); }
.adresse-grande { font-size: 1.3rem; font-weight: 700; margin: 1.25rem 0 .25rem; }
.repere { color: var(--encre-douce); margin: 0 0 1.5rem; }
.carte-info .lien { margin-top: 1rem; }

.bas { text-align: center; color: var(--encre-douce); font-size: .9rem; padding: 2.5rem 1.25rem 3rem; border-top: 3px solid var(--encre); }
.bas p { margin: .25rem 0; }
.bas a { display: inline-block; padding: .5rem 0; }
.bas-nom { font-family: var(--enseigne); font-weight: 600; text-transform: uppercase; font-size: 1.8rem; color: var(--tomate); letter-spacing: .03em; }

.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(255,250,242,.35); }
  .accueil { padding-top: 2rem; }
  .numero { display: flex; margin: 1.5rem 0 0; }
  .double-barre { display: none; }
  .accueil-photo { aspect-ratio: 4 / 3; margin: 2rem -1.25rem 0; border-width: 3px 0; }
  .formule { grid-template-columns: 1fr; grid-template-areas: "titre" "prix" "detail"; row-gap: .4rem; padding: 1.4rem; }
  .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: var(--carton); border-top: 3px solid var(--encre); z-index: 10; }
  .barre-mobile a { text-align: center; text-decoration: none; font-weight: 800; padding: .85rem .5rem; border: 2px solid var(--encre); }
  .barre-mobile a:first-child { background: var(--tomate); border-color: var(--tomate); color: var(--blanc); }
}
