/* ============================================================
   Polices hebergees en local.
   Deux raisons : plus aucune requete vers Google (donc plus d-IP
   de visiteur transmise, cf. CNIL), et surtout plus de connexion
   tierce a attendre - c-est ce delai qui faisait paraitre le menu
   different au premier chargement de l-accueil.
   Bitter, Caveat et Karla sont sous licence SIL Open Font.
   ============================================================ */

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/bitter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/bitter-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/caveat-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/karla-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/karla-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Bistrot de La Collegiale — feuille de style unique.
   Pas de build, pas de dependance. Modifiable directement.
   ============================================================ */

:root {
  --bg:        #232125;   /* fond general */
  --bg-deep:   #1b191c;   /* bandeaux plus sombres */
  --ink:       #efeae2;   /* texte principal */
  --ink-soft:  #c6bfc0;   /* paragraphes */
  --ink-mute:  #9a9295;   /* mentions discretes */
  --accent:    #ea575c;   /* rouge du texte : teinte 358, saturation 78% -- 4.57:1 */
  --accent-hi: #f18b8f;   /* le meme, eclairci pour le survol */
  --brick:     #80131c;   /* rouge de la maison : fonds de boutons */
  --brick-hi:  #a91925;
  --line:      #3b363b;
  --line-soft: #6a6069;
  --ink-faint: #7a7278;   /* credit de bas de page */


  --serif:  'Bitter', Georgia, 'Times New Roman', serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --sans:   'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1100px;
  --pad:  24px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

/* Telephone et mail en blanc plutot qu-en rouge. Ils restent des liens :
   le survol les passe en rouge et les souligne, ce qui suffit a signaler
   qu-ils sont cliquables. Les boutons sont exclus, sinon leur texte
   deviendrait rouge sur fond rouge. */
a[href^="tel:"]:not(.btn),
a[href^="mailto:"]:not(.btn) { color: var(--ink); }
a[href^="tel:"]:not(.btn):hover,
a[href^="mailto:"]:not(.btn):hover { color: var(--accent); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brick); color: #fff; padding: 10px 18px; z-index: 99;
}
.skip:focus { left: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* Alternance des fonds : une section sur deux passe en plus sombre,
   pour donner du rythme et eviter le long aplat gris. */
.band-alt { background: var(--bg-deep); }

/* ---------- elements de texte reutilisables ---------- */

.h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 14px;
}

.script { font-family: var(--script); font-weight: 600; }

.lead-script {
  font-size: 26px;
  color: var(--accent);
  margin: -6px 0 18px;
}

.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 52ch;
}

.eyebrow,
.chapter {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

.link-arrow { font-weight: 700; font-size: 15px; }

/* ---------- boutons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--solid { background: var(--brick); color: #fff; }
.btn--solid:hover { background: var(--brick-hi); color: #fff; }

.btn--ghost { border-color: var(--line-soft); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- en-tete ---------- */

/* Fond volontairement plus sombre que le corps de page : sinon la barre
   se confond avec le bandeau de titre des pages interieures et parait
   deux fois plus haute que sur l-accueil. */
.site-head { background: #141216; border-bottom: 1px solid #4a444a; }

.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  min-height: 40px;      /* hauteur stable d-une page a l-autre */
  padding-block: 16px;
}

.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__script { font-family: var(--script); font-weight: 600; font-size: 26px; color: var(--accent); }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 0.04em; }

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
}
.nav > a { color: var(--ink); }
.nav > a:hover { color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;   /* cadrage : enseigne lisible en haut, tables visibles */
}

/* Voile sombre en haut de la photo : sans lui, la barre de navigation
   touche une image lumineuse sur l-accueil et un fond sombre sur les
   autres pages, ce qui la fait paraitre plus fine sur l-accueil alors
   qu-elle est rigoureusement identique. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 130px;
  z-index: 1;
  background: linear-gradient(rgba(20,18,22,.92), rgba(20,18,22,.55) 45%, transparent);
  pointer-events: none;
}

.hero__veil {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 140px;
  background: linear-gradient(transparent, rgba(27,25,28,.5) 30%, rgba(27,25,28,.94));
}
.hero__veil .wrap { padding-bottom: 44px; }

.hero__kicker {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--accent);
  margin: 0 0 4px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 18px;
}

/* ---------- grille deux colonnes, partagee ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: center;
}

.split--carte { padding-block: 64px 72px; gap: 48px; }

/* ---------- affiche de la carte ----------
   Hauteur libre : le client remplacera cette image par une photo
   de format different, le cadre doit s-y adapter tout seul. */

.poster {
  margin: 0 auto;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  transform: rotate(-1.5deg);
}
.poster a { display: block; }
.poster img { width: 100%; height: auto; }

/* ---------- ardoise du jour ---------- */

.ardoise {
  background: var(--bg);
  border-block: 1px solid var(--line);
}
.ardoise .split { padding-block: 72px; }

.slate {
  background: var(--bg-deep);
  border: 2px solid var(--line);
  padding: 36px 32px;
}
.slate__label { font-size: 34px; color: var(--accent); margin: 0 0 6px; }
.slate__dish  { font-size: 26px; line-height: 1.5; color: var(--ink); margin: 0; }
.slate__price { font-size: 40px; color: var(--accent); margin: 10px 0 0; }
.slate__note {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* ---------- bloc en retrait (le camion) ----------
   Aucun decor : juste un bandeau plus sombre, comme l-ardoise. */

.pt {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}
.pt__in { padding-block: 84px; }

/* ---------- pied de page ---------- */

.site-foot { background: var(--bg-deep); border-top: 1px solid var(--line); }

.site-foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-block: 60px 40px;
}
.foot-text { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

.foot-nav { list-style: none; margin: 0; padding: 0; }
.foot-nav li + li { margin-top: 9px; }
.foot-nav a { font-size: 15px; color: var(--ink-soft); }
.foot-nav a:hover { color: var(--accent); }

.foot-text--mute { font-size: 14px; color: var(--ink-mute); margin-top: 10px; }

/* Barre de bas de page : marque | reseaux | mentions */
.site-foot__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
}
.site-foot__mark { font-size: 24px; color: var(--accent); margin: 0; }
.foot-legal { margin: 0; font-size: 13px; }
.foot-legal a { color: var(--ink-mute); }
.foot-legal a:hover { color: var(--accent); }

/* ---------- petits ecrans ---------- */

/* Sur telephone, les trois colonnes du pied de page empilees font une
   trainee interminable. Navigation et Horaires passent cote a cote, et
   Contact garde toute la largeur : l-adresse mail y tient sans casser. */
@media (max-width: 640px) {
  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    padding-block: 40px 26px;
  }
  .site-foot__grid > :last-child { grid-column: 1 / -1; }
  .foot-nav li + li { margin-top: 7px; }
  .foot-social { margin-top: 14px; }
  .site-foot__bar { padding-block: 18px 26px; }
}

@media (max-width: 560px) {
  .site-head__in { justify-content: center; }
  .nav { gap: 18px; justify-content: center; }
  .hero { min-height: 420px; }
  .hero__veil { padding-top: 100px; }
  .split--carte { padding-block: 48px 56px; }
  .ardoise .split { padding-block: 56px; }
  .pt__in { padding-block: 64px; }
  .slate { padding: 28px 24px; }
}

/* ---------- respect des preferences systeme ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.foot-sep { margin-inline: 8px; color: var(--ink-faint); }

.foot-credit {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.foot-credit:hover { color: var(--accent); }

.foot-copy { color: var(--ink-mute); }

/* ============================================================
   Page "Notre histoire"
   ============================================================ */

/* Le lien de la page courante garde EXACTEMENT la couleur des autres :
   un rouge aurait moins de contraste, donc reculerait visuellement, et
   comme il change de place selon la page le menu paraissait different
   d-une page a l-autre. Un souligne ne touche a aucune geometrie. */
.nav > a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- bandeau de titre ---------- */

.page-head { text-align: center; padding-block: 72px 56px; background: var(--bg-deep); }
.page-head__kicker { font-size: 30px; color: var(--accent); margin: 0 0 6px; }
.page-head__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 22px;
}
.page-head__lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- image pleine largeur ---------- */

.figure-bleed { margin: 0; }
.figure-bleed img {
  width: 100%;
  height: clamp(260px, 40vw, 520px);
  object-fit: cover;
}
.figure-bleed figcaption {
  font-family: var(--script);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-mute);
  text-align: center;
  padding: 14px var(--pad) 0;
}

/* ---------- colonne de recit ----------
   Composition centree, texte aligne a gauche : c-est ce qui se lit
   le mieux sur plusieurs paragraphes. */

.story { padding-block: 64px; }
.story__col { max-width: 760px; margin-inline: auto; }
.story__col--flush { margin-inline: 0; }
.prose--wide { max-width: none; margin-bottom: 18px; }
.prose--wide em { color: var(--ink); font-style: italic; }

/* ---------- equipe ---------- */

.story--team { padding-block: 72px; }
.team {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.team__member {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 24px 22px;
}
.team__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.team__role { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- bandeau final ---------- */

.cta-band {
  text-align: center;
  padding-block: 76px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.cta-band__script { font-size: 30px; color: var(--accent); margin: 0 0 6px; }
.cta-band__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  margin: 0 0 26px;
}
.btn-row--center { justify-content: center; }

@media (max-width: 560px) {
  .page-head { padding-block: 52px 40px; }
  .story { padding-block: 48px; }
  .story--team { padding-block: 56px; }
  .cta-band { padding-block: 58px; }
}

/* ---------- cadre photo ---------- */

.frame { position: relative; margin: 0; }
.frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- blocs deux colonnes du recit ---------- */

.split--feature { padding-block: 58px; gap: 48px; }
.prose--tight { margin-bottom: 0; }

/* ---------- galerie de plats ---------- */

.gallery {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: auto;          /* sans ca, l-attribut height du HTML bat aspect-ratio */
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery__note {
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin: 22px 0 0;
}

/* ---------- reseaux sociaux : icones seules ---------- */

.social { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.social a { display: block; color: var(--ink-mute); transition: color .15s ease; }
.social a:hover { color: var(--accent); }
.social svg { display: block; }
.foot-social { margin-top: 18px; }
.social--inline { margin-top: 14px; }

/* ---------- page contact : liste d-informations ----------
   Pas d-encadres : un intitule a gauche, la valeur a droite,
   separes par un simple filet. */

.info-list { margin: 10px 0 96px; border-top: 1px solid var(--line); }

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 32px;
  align-items: start;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.info-row > .eyebrow { margin: 3px 0 0; }
.info-row__value { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.info-row__value strong {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}
.info-row__note { font-size: 14px; color: var(--ink-mute); margin: 9px 0 0; }

@media (max-width: 640px) {
  .info-row { grid-template-columns: 1fr; padding-block: 22px; }
  .info-list { margin-bottom: 56px; }

  /* Sans cela la galerie tombe a une seule colonne et la page
     devient interminable sur telephone. */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
}
