/* Maquette « Bistrot » : papier crème, encre, bordeaux, et la carte sur une ardoise. */
@font-face { font-family: "Cormorant Garamond"; src: url("../commun/cormorant-garamond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root {
  --papier: #f6f0e4;
  --papier-fonce: #ece3d2;
  --encre: #2a2420;
  --encre-douce: #6b5f55;
  --bordeaux: var(--accent, #7a2e2a);
  --bordeaux-fonce: color-mix(in srgb, var(--bordeaux) 78%, black);
  --trait: #d8ccb8;
  --ardoise: #27302d;
  --craie: #f1eee5;
  --craie-douce: #c3cbc6;
  --craie-jaune: #ecc864;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --craie-font: "Caveat Brush", "Segoe Print", cursive;
  --large: 68rem;
  --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-linecap='round'%3E%3Ccircle cx='24' cy='24' r='13'/%3E%3Ccircle cx='24' cy='24' r='8'/%3E%3Cpath d='M5 10v8m-2-8v5m4-5v5M5 18v20M43 10c-3 2-3 9 0 11v17'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

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

.haut { max-width: var(--large); margin: 0 auto; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--trait); }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.menu { display: flex; gap: 1.5rem; margin-left: auto; font-weight: 600; font-size: .95rem; }
.menu a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--encre-douce); }
.menu a:hover { color: var(--bordeaux); }
.haut-tel { text-decoration: none; font-weight: 700; color: var(--bordeaux); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }

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

/* Accueil : le texte à gauche, l'ardoise du jour à droite */
.accueil { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; padding: 3.5rem 0 3rem; }
.accueil-texte { padding-top: 2rem; }
.sur-titre { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--bordeaux); margin: 0 0 1rem; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.05; text-wrap: balance; }
.adresse { color: var(--encre-douce); margin: 1.25rem 0 1.75rem; }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton { display: inline-block; padding: .85rem 1.5rem; background: var(--bordeaux); color: var(--papier); text-decoration: none; font-weight: 600; border-radius: 2px; border: 2px solid var(--bordeaux); transition: background .2s; }
.bouton:hover { background: var(--bordeaux-fonce); border-color: var(--bordeaux-fonce); }
.bouton-clair { background: transparent; color: var(--bordeaux); }
.bouton-clair:hover { background: var(--papier-fonce); border-color: var(--bordeaux); }
.note { margin: 1.5rem 0 0; color: var(--encre-douce); font-size: .95rem; }
.note strong { color: var(--encre); font-size: 1.1rem; }

/* La photo descend sous l'accueil, en bandeau large */
.accueil-photo { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 4px; }
.accueil-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Cadres photo à remplacer */
.vide { background: var(--papier-fonce) repeating-linear-gradient(135deg, transparent 0 22px, rgba(0,0,0,.035) 22px 23px); color: var(--encre-douce); border-radius: 4px; }

/* L'ardoise du jour, encadrée de bois, avec la formule écrite dessus */
.ardoise { background: var(--ardoise); color: var(--craie); padding: 2.25rem 2.25rem 2.5rem; border: .7rem solid #8a6440; border-radius: 4px; box-shadow: 0 1.25rem 2.5rem rgba(42,36,32,.25); }
.craie { font-family: var(--craie-font); font-weight: 400; color: var(--craie); }
.ardoise h2 { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.ardoise-date { font-size: 1.5rem; color: var(--craie-jaune); margin: .4rem 0 0; }
.formule { margin: 1.5rem 0 0; padding: 1rem 1.25rem; border: 2px dashed rgba(241,238,229,.45); border-radius: 6px; text-align: center; }
.formule p { margin: 0; }
.f-titre { font-family: var(--craie-font); font-size: 1.5rem; color: var(--craie-jaune); line-height: 1.1; }
.f-prix { font-family: var(--craie-font); font-size: 2.6rem; line-height: 1.1; }
.f-detail { color: var(--craie-douce); font-size: .95rem; }
.carte { display: grid; grid-template-columns: 1fr; gap: 1.75rem; margin-top: 1.75rem; }
.categorie h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--craie-jaune); padding-bottom: .5rem; border-bottom: 1px solid rgba(241,238,229,.25); margin-bottom: 1rem; }
.plats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ligne { display: flex; align-items: baseline; gap: .5rem; }
.ligne .nom { font-weight: 500; }
.points { flex: 1; border-bottom: 2px dotted rgba(241,238,229,.3); transform: translateY(-.3em); min-width: 1rem; }
.prix { font-weight: 700; white-space: nowrap; }
.detail { margin: .15rem 0 0; font-size: .92rem; color: var(--craie-douce); }

/* Sections */
.bloc { padding: var(--espace) 0 0; }
.bloc h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.histoire p { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.55; max-width: 40rem; margin: 1rem 0 0; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.photo { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 4px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Horaires et accès */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-bottom: var(--espace); }
.horaires { list-style: none; margin: 1rem 0 0; padding: 0; }
.horaires li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--trait); }
.horaires .jours { font-weight: 600; }
.horaires .heures { text-align: right; color: var(--encre-douce); }
.horaires .aujourdhui .heures { color: var(--encre); }
.adresse-grande { font-family: var(--serif); font-size: 1.25rem; margin: 1rem 0 .25rem; }
.repere { color: var(--encre-douce); margin: 0 0 .75rem !important; }
.infos p { margin: 0; }
.lien { display: inline-block; padding: .6rem 0; color: var(--bordeaux); font-weight: 600; text-underline-offset: 3px; }

.bas { border-top: 1px solid var(--trait); text-align: center; color: var(--encre-douce); font-size: .9rem; padding: 2rem 1.25rem 2.5rem; }
.bas p { margin: .25rem 0; }
.bas a { display: inline-block; padding: .5rem; }

.barre-mobile { display: none; }

/* Téléphone */
@media (max-width: 760px) {
  .haut { flex-wrap: wrap; row-gap: 0; padding-bottom: .25rem; }
  .haut-tel { display: none; }
  .menu { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--trait); }
  /* Téléphone : accroche, puis l'ardoise, puis la photo */
  .accueil { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .accueil-texte { padding-top: 0; }
  .double-barre { display: none; }
  .ardoise { margin: 0 -1.25rem; border-width: .5rem 0; border-radius: 0; padding: 2rem 1.25rem 2.25rem; }
  .accueil-photo { aspect-ratio: 4 / 3; margin: 0 -1.25rem; border-radius: 0; }
  .infos { grid-template-columns: 1fr; gap: 2.5rem; }
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
  .barre-mobile { display: grid; position: fixed; inset: auto 0 0 0; background: var(--encre); z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
  .barre-mobile a { color: var(--papier); text-decoration: none; text-align: center; font-weight: 600; font-size: .95rem; padding: 1.1rem .5rem; }
  .barre-mobile a + a { border-left: 1px solid #4a4038; }
  .barre-mobile a:first-child { background: var(--bordeaux); }
}
