/* La Brasserie du Vieux Chastre.
   Cette feuille REPREND LA PROPOSITION GRAPHIQUE telle quelle : memes couleurs,
   memes tailles, memes classes. Elle a seulement ete depliee et commentee, et
   les regles que la proposition corrigeait plus bas dans le fichier ont ete
   fondues a leur place — le badge du mois y etait par exemple declare deux
   fois, en 110 px puis en 12 px. C'est la seconde qui s'appliquait.

   UN SEUL ECART, et il est mesure : le contour de mise au point etait #bd8140,
   soit 2,95:1 sur le creme, juste sous les 3:1 qu'exige un element d'interface.
   Il passe au lie-de-vin, a 8,9:1. */

:root {
  --wine: #702c38;
  --cream: #f8f2e6;
  --ink: #322b26;
  --muted: #74685d;   /* 4,85:1 sur le creme : ca passe, sans marge */
  --line: #d7c9b6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 30px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}

a { color: inherit; text-underline-offset: 6px; }
a:focus-visible { outline: 3px solid var(--wine); outline-offset: 6px; }

img { max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; }
em { font-weight: normal; }

.wrap { width: calc(100% - 112px); max-width: 1320px; margin: auto; }

.skip { position: absolute; top: -100px; left: 10px; z-index: 10; background: white; padding: 12px; }
.skip:focus { top: 10px; }

/* Le bandeau du haut ---------------------------------------------------- */
.topline {
  display: flex;
  justify-content: space-between;
  background: var(--wine);
  color: var(--cream);
  padding: 9px 56px;
  font-size: 12px;
  letter-spacing: 1.8px;
}
.topline span { letter-spacing: .6px; }
.topline a:focus-visible { outline-color: #e3bca2; }

/* L'en-tete ------------------------------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 0;
  border-bottom: 3px double var(--line);
}

.brand { display: flex; gap: 15px; align-items: center; text-decoration: none; font: 17px/1.2 Georgia, serif; }
.brand strong { font-size: 23px; font-weight: normal; }

/* Le monogramme est dessine en CSS — un double cercle et deux lettres. Une
   image de plus pour ca ne se justifierait pas. */
.monogram {
  display: grid;
  place-items: center;
  border: 3px double var(--wine);
  border-radius: 50%;
  width: 57px;
  height: 57px;
  color: var(--wine);
  font: 23px Georgia, serif;
  flex-shrink: 0;
}

nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--wine); }
nav .phone { border-bottom: 1px solid var(--wine); padding: 8px 0; color: var(--wine); }
nav a[aria-current="page"] {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Le surtitre, partout ---------------------------------------------------- */
/* text-transform plutot que des capitales dans le texte : les intitules sont
   ecrits normalement en Go et dans les gabarits, ou on les relit sans peine,
   et c'est la feuille qui les met en capitales. */
.eyebrow { font-size: 12px; letter-spacing: 2px; font-weight: bold; text-transform: uppercase; margin-bottom: 22px; color: var(--wine); }

/* L'accueil -------------------------------------------------------------- */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 55px 0 68px;
}
.intro-copy { position: relative; z-index: 1; }

h1 {
  font-size: clamp(52px, 6.5vw, 94px);
  letter-spacing: -4.5px;
  line-height: 1.03;
  margin: 0 0 30px;
  color: var(--wine);
}
h1 em { white-space: nowrap; }

.intro-copy > p:not(.eyebrow):not(.small-note) { color: var(--muted); font-size: 17px; line-height: 1.85; }

.button {
  display: inline-flex;
  gap: 35px;
  align-items: center;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  padding: 15px 23px;
  font-size: 14px;
  margin-top: 7px;
  transition: background .2s, transform .2s;
}
.button:hover { background: #52202a; transform: translateY(-2px); }
.button span { font-size: 22px; }

.small-note { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); margin: 24px 0 0; }

/* La photo est un tirage pose sur la table : cadre epais, legere rotation,
   ombre franche, et la legende SOUS l'image — d'ou le fond de 57 px reserve
   par le padding. */
figure {
  margin: 0;
  position: relative;
  padding: 11px 11px 57px;
  background: #eee1cc;
  transform: rotate(2deg);
  box-shadow: 8px 12px 0 #e8dfd1;
}
figure img { width: 100%; height: 390px; object-fit: cover; display: block; filter: sepia(.13); }
figcaption { position: absolute; bottom: 9px; left: 0; width: 100%; text-align: center; font: italic 20px Georgia, serif; }
figcaption small { display: block; font: 10px Arial, sans-serif; letter-spacing: 2px; margin-top: 7px; }

/* L'ardoise -------------------------------------------------------------- */
.menu-section { background: var(--wine); color: var(--cream); padding: 54px 0 66px; position: relative; }

/* Les festons, en haut et en bas : un degrade repete, pas une image. */
.menu-section:before, .menu-section:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--cream) 0 22px, transparent 22px 44px);
}
.menu-section:before { top: 0; }
.menu-section:after { bottom: 0; }
.menu-section a:focus-visible { outline-color: #e3bca2; }

.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading .eyebrow { color: #e2bdaa; margin-bottom: 13px; }

h2 { font-size: 56px; line-height: 1.04; letter-spacing: -2px; margin-bottom: 23px; }

/* Le mois, dans son cadre. La proposition le declarait d'abord en 110 px puis
   le ramenait a 12 px plus bas dans le fichier : c'est cette seconde version
   qui s'affichait, et c'est elle qui est gardee. */
.month {
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: 1.8px;
  color: #e3bca2;
  border: 1px solid #aa6b6b;
  padding: 14px 20px;
  text-align: center;
  white-space: nowrap;
}

.demo-note { font-size: 12px; color: #edd8ce; margin: 0 0 29px; }

.menu-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 44px; align-items: start; }

.menu-paper {
  background: var(--cream);
  color: var(--ink);
  padding: 34px 39px;
  box-shadow: 6px 7px 0 #4e202b;
  border: 5px double #cdbba2;
}
.menu-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.8px;
  border-bottom: 2px solid var(--wine);
  padding-bottom: 19px;
  margin: 0;
  color: var(--wine);
}
.menu-caption span:last-child { font: italic 19px Georgia, serif; letter-spacing: 0; }

.dish { display: flex; justify-content: space-between; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.course { display: block; font-size: 10px; color: var(--wine); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 5px; }
.dish h3 { font-size: 25px; line-height: 1.2; margin-bottom: 7px; }
.dish p { font-size: 14px; color: var(--muted); margin: 0; }
.price { font: 25px Georgia, serif; white-space: nowrap; align-self: center; }
.allergens { font-size: 12px; color: var(--muted); margin: 20px 0 0; }

/* Le plat du jour : pose a meme le lie-de-vin, sans cadre. */
.daily { text-align: center; padding: 30px 12px 22px; display: flex; flex-direction: column; align-items: center; }
.tiny-star { font-size: 47px; color: #e3bca2; line-height: 1; margin-bottom: 25px; }
.daily .eyebrow { color: #e3bca2; font-size: 11px; letter-spacing: 1.8px; margin-bottom: 20px; }
.daily h3 { font-size: 39px; line-height: 1.13; margin-bottom: 0; font-style: italic; }
.chalk-line { width: 60px; height: 1px; background: #be8581; margin: 25px auto; }
.daily p:not(.eyebrow) { font-size: 16px; color: #eed8cf; margin-bottom: 18px; }
.daily > a { font: 30px Georgia, serif; }
.daily-sign { font: italic 39px Georgia, serif; color: #e3bca2; transform: rotate(-9deg); margin-top: 35px; }

/* Nous trouver ------------------------------------------------------------ */
.visit { display: grid; grid-template-columns: 1.15fr 1.2fr 1fr; gap: 40px; padding: 65px 0; }
.visit h2 { font-size: 43px; margin-bottom: 25px; }
.visit h3 { font-size: 23px; margin-bottom: 24px; }
.visit .eyebrow { font-size: 11px; }

address { font-style: normal; margin-bottom: 14px; }
.text-link { font-size: 14px; color: var(--wine); }

.hours, .contact { padding-top: 37px; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dd { margin: 0; white-space: nowrap; }
.hours > p { font-size: 12px; color: var(--muted); margin-top: 20px; }

.contact { display: flex; flex-direction: column; align-items: flex-start; }
.contact-phone { font: 29px Georgia, serif; color: var(--wine); text-decoration: none; margin-bottom: 18px; }
.contact > a:last-child { font-size: 14px; overflow-wrap: anywhere; }

/* La carte complete -------------------------------------------------------- */
.full-menu { padding-top: 52px; padding-bottom: 50px; }
.card-intro { text-align: center; margin-bottom: 40px; }
.card-intro h1 { margin-bottom: 20px; }
.card-intro > p:not(.eyebrow) { color: var(--muted); }

/* La mention d'exemple. Elle protege une maison qui existe, dont le vrai
   numero est sur cette page : ni grise, ni en petit. */
.example-warning {
  font-size: 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  margin: 25px auto 0;
  max-width: 720px;
}

.full-menu-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
/* Les plats sont plus nombreux : leur colonne occupe les deux rangees. */
.full-menu-grid section:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.full-menu-grid h2 { font-size: 36px; color: var(--wine); margin-bottom: 7px; }
.full-menu-grid .eyebrow { font-size: 11px; margin-bottom: 12px; }
.full-menu-grid .dish h3 { font-size: 23px; }

.card-bottom { text-align: center; margin-top: 38px; }
.card-bottom p { font-size: 14px; color: var(--muted); }

/* Le pied ------------------------------------------------------------------ */
footer {
  border-top: 3px double var(--line);
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 12px;
}
footer .maison { font: 17px Georgia, serif; }

/* Adaptations -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .topline { padding: 9px 32px; }
  h1 { font-size: 65px; letter-spacing: -3px; }
  .intro { gap: 25px; }
  figure img { height: 350px; }
  .menu-layout { gap: 26px; }
  .menu-paper { padding: 27px; }
  .daily h3 { font-size: 33px; }
  .visit { grid-template-columns: 1fr 1fr; }
  .contact { grid-column: 2; padding-top: 0; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .topline { justify-content: center; font-size: 11px; }
  .topline span { display: none; }
  .header { flex-wrap: wrap; gap: 22px; padding: 20px 0; }
  .brand strong { font-size: 22px; }
  nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; column-gap: 22px; row-gap: 14px; }
  nav .phone { padding: 0; margin-left: auto; }
  .intro { grid-template-columns: 1fr; padding: 35px 0 45px; gap: 35px; }
  h1 { font-size: clamp(49px, 10vw, 68px); letter-spacing: -2.5px; }
  .eyebrow { font-size: 11px; }
  .intro-copy > p:not(.eyebrow):not(.small-note) { font-size: 16px; }
  figure { width: calc(100% - 10px); margin: auto; }
  figure img { height: 260px; }
  .menu-section { padding: 40px 0 45px; }
  h2 { font-size: 44px; }
  .section-heading { flex-wrap: wrap; align-items: flex-start; gap: 14px; }
  .month { font-size: 11px; padding: 9px 13px; margin-bottom: 20px; }
  .menu-layout { grid-template-columns: 1fr; gap: 20px; }
  .menu-paper { padding: 23px 20px; }
  .menu-caption { font-size: 10px; letter-spacing: 1px; }
  .menu-caption span:last-child { font-size: 17px; }
  .dish h3 { font-size: 23px; }
  .daily { padding: 24px 0; }
  .daily h3 { font-size: 38px; }
  .daily-sign { margin-top: 25px; }
  .visit { grid-template-columns: 1fr; gap: 30px; padding: 42px 0; }
  .hours, .contact { grid-column: auto; padding: 0; }
  .visit h3 { margin-bottom: 15px; }
  .full-menu { padding-top: 35px; }
  .full-menu-grid { grid-template-columns: 1fr; }
  .full-menu-grid section:nth-child(2) { grid-column: auto; grid-row: auto; }
  .card-intro h1 { font-size: 56px; }
  .full-menu-grid h2 { font-size: 32px; }
  footer { display: block; }
  footer span, footer .maison { display: block; margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
