/* =========================================================
   À TON AISE — Café · Bar · Lorient
   Feuille de style unique. Charte : bleu #144f9e, rouge #ff3131,
   jaune #ffd700. Titres Adumu, textes Poppins.
   ========================================================= */

/* ---------- Polices (auto-hébergées, RGPD-safe) ---------- */
/* Adumu — SIL Open Font License, l'usage web est autorisé (licence conservée
   dans assets/fonts/). Sous-ensemble latin + accents français : 19 Ko au lieu
   de 36 Ko pour la police complète. */
@font-face {
  font-family: "Adumu";
  src: url("../fonts/adumu-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --bleu: #144f9e;
  --bleu-nuit: #0d3468;
  --rouge: #ff3131;          /* rouge de la charte : aplats, accents, traits */
  --rouge-texte: #ee0000;    /* même teinte, assombrie : fonds portant du texte blanc
                                (#ff3131 ne donne que 3,66:1 avec du blanc, sous le
                                seuil de 4,5:1 ; celui-ci atteint 4,53:1) */
  --jaune: #ffd700;
  --rose: #f0827f;
  --creme: #fdf8f0;
  --blanc: #ffffff;
  --encre: #21262e;
  --gris: #5c6673;
  --gris-clair: #e6e2da;

  --titre: "Adumu", "Poppins", "Trebuchet MS", sans-serif;
  --texte: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 30 px de lettrage + 2 × 10 px de marge + 3 px de liseré.
     Sur petit écran c'est la pastille ronde (46 px) qui donne la hauteur :
     voir la redéfinition sous 620 px, plus bas. */
  --hauteur-entete: 53px;

  --max: 1120px;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(13, 52, 104, 0.10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bleu); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rouge); }

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--bleu);
  text-transform: uppercase;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-etroit { max-width: 760px; margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--creme { background: var(--creme); }
.section--blanc { background: var(--blanc); }
.section--bleu { background: var(--bleu); color: #eaf1fb; }
.section--bleu h2, .section--bleu h3 { color: var(--jaune); }
/* Les liens de texte passent en jaune pour rester lisibles sur le bleu…
   …mais surtout pas les boutons, qui portent déjà leurs propres couleurs. */
.section--bleu a:not(.btn) { color: var(--jaune); }

.chapeau {
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 62ch;
}

/* Accessibilité : lien d'évitement */
.skip {
  position: absolute; left: -9999px;
  background: var(--jaune); color: var(--bleu-nuit);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 200;
}
.skip:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--texte);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--rouge { background: var(--rouge-texte); color: #fff; }
.btn--rouge:hover { background: #cc0000; color: #fff; }
.btn--jaune, .btn--jaune:hover { color: var(--bleu-nuit); }
.btn--jaune { background: var(--jaune); }
.btn--jaune:hover { background: #ffe14d; }
.btn--ligne { border-color: currentColor; color: var(--bleu); }
.btn--ligne:hover { background: var(--bleu); color: #fff; }
/* Un bouton contour sur fond bleu doit s'inverser, sinon il disparaît. */
.section--bleu .btn--ligne { color: #fff; }
.section--bleu .btn--ligne:hover { background: #fff; color: var(--bleu-nuit); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 240, .96);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--bleu);
}
.entete__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 10px 22px; max-width: var(--max); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }

/* Un seul logo à la fois : le monogramme et le lettrage disent la même chose,
   les afficher côte à côte fait bégayer la marque.
   Grand écran → le lettrage complet. Petit écran → la pastille ronde. */
.logo__rond {
  display: none;
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 50%;
}
.logo__mot { height: 30px; width: auto; }

@media (max-width: 620px) {
  :root { --hauteur-entete: 69px; }   /* la pastille ronde est plus haute */
  .logo__rond { display: block; }
  .logo__mot { display: none; }
}

.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
/* Navigation en Adumu, comme les titres : l'en-tête parle d'une seule voix.
   Adumu est une police d'affichage, donc en capitales et un peu espacée. */
.nav a {
  font-family: var(--titre);
  font-size: 1.05rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bleu-nuit);
  padding: 6px 0; border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--rouge); border-bottom-color: var(--rouge); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--bleu);
}
.burger svg { display: block; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--creme); border-bottom: 3px solid var(--bleu);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav[data-ouvert="true"] { max-height: 420px; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 22px 18px; }
  .nav a { display: block; padding: 13px 0; font-size: 1.15rem; border-bottom: 1px solid var(--gris-clair); }
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  background: var(--bleu-nuit);
  overflow: hidden;
}
.hero img.hero__fond {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero__voile {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,52,104,.92) 0%, rgba(13,52,104,.35) 55%, rgba(13,52,104,.15) 100%);
}
.hero__contenu { position: relative; padding: 60px 0 54px; color: #fff; }
.hero h1 { color: #fff; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.hero__sous {
  font-family: var(--titre); font-size: clamp(1rem, 2.6vw, 1.5rem);
  letter-spacing: .18em; text-transform: uppercase; color: var(--jaune); margin-bottom: 10px;
}
.hero p { color: #eaf1fb; max-width: 54ch; font-size: 1.1rem; }

/* ---------- Bandeau infos ---------- */
.bandeau {
  background: var(--rouge-texte); color: #fff;
  font-weight: 600; text-align: center; padding: 14px 22px; font-size: .98rem;
}
.bandeau a { color: #fff; text-decoration: underline; }
.bandeau a:hover { color: var(--jaune); }

/* ---------- Grilles ---------- */
.grille { display: grid; gap: 28px; }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.carte-bloc {
  background: var(--blanc);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.carte-bloc img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Vignette de remplacement quand la photo n'est pas encore disponible :
   bandeau aux couleurs de la maison, avec le monogramme. */
.carte-bloc__bandeau {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg,
      var(--bleu) 0 42px, var(--rouge) 42px 84px, var(--jaune) 84px 126px);
}
.carte-bloc__bandeau img { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.carte-bloc__txt { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.carte-bloc__txt p { color: var(--gris); }
.carte-bloc__txt .btn { align-self: flex-start; margin-top: auto; }

/* Duo texte + image */
.duo { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1fr; }
.duo img { width: 100%; border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Horaires ---------- */
/* Deux colonnes alignées plutôt qu'un flex « collé aux bords » : dès qu'une
   valeur passait sur deux lignes (« Bienvenus — petit chocolat et sirops à la
   carte »), l'alignement à droite partait en vrille. Ici les intitulés et les
   valeurs restent sur deux colonnes nettes, quelle que soit la longueur. */
.horaires { list-style: none; margin: 0; padding: 0; max-width: 460px; }
.horaires li {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
  gap: 4px 20px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.28);
}
.section--creme .horaires li, .section--blanc .horaires li { border-bottom-color: var(--gris-clair); }
.horaires .jour { font-weight: 600; }
.horaires .ferme { opacity: .7; }

@media (max-width: 380px) {
  .horaires li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Carte / menu ---------- */
.menu-nav {
  position: sticky; top: var(--hauteur-entete); z-index: 50;
  background: var(--creme); border-bottom: 2px solid var(--gris-clair);
  padding: 12px 0; margin-bottom: 10px;
}
.menu-nav ul {
  display: flex; gap: 10px; list-style: none; margin: 0; padding: 0 22px;
  overflow-x: auto; max-width: var(--max); margin-inline: auto;
  scrollbar-width: thin;
}
.menu-nav a {
  white-space: nowrap; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px; background: var(--blanc);
  border: 2px solid var(--bleu); color: var(--bleu);
}
.menu-nav a:hover { background: var(--bleu); color: #fff; }

.famille { margin: 0 0 56px; }
/* Sous l'en-tête ET sous la barre de sections, pour qu'un titre visé par une
   ancre ne se retrouve pas caché derrière. */
[id] { scroll-margin-top: calc(var(--hauteur-entete) + 76px); }
.famille > h2 {
  border-bottom: 4px solid var(--jaune);
  padding-bottom: 8px; margin-bottom: 6px;
}
.famille__note { color: var(--gris); font-size: .95rem; margin-bottom: 26px; }

.sous-famille { margin-bottom: 34px; }
.sous-famille h3 { color: var(--rouge); margin-bottom: 4px; }
.sous-famille__note {
  font-size: .85rem; color: var(--gris); text-transform: uppercase;
  letter-spacing: .06em; margin: -2px 0 14px;
}

.plats { list-style: none; margin: 0; padding: 0; }
.plat {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 18px;
  padding: 12px 0; border-bottom: 1px solid var(--gris-clair);
}
.plat__nom { font-weight: 600; color: var(--bleu-nuit); min-width: 0; }
.plat__prix {
  font-weight: 600; color: var(--gris);
  font-variant-numeric: tabular-nums;   /* chiffres de même largeur : la colonne s'aligne */
  white-space: nowrap;                  /* « 3,50 € » ne se coupe pas après la virgule */
  text-align: right;
}
.plat__desc { grid-column: 1 / -1; font-size: .93rem; color: var(--gris); margin: 0; }
.plat--phare .plat__nom::after {
  content: " ★"; color: var(--jaune); -webkit-text-stroke: .5px var(--rouge);
}

.encart {
  background: var(--jaune); color: var(--bleu-nuit);
  border-radius: var(--rayon); padding: 22px 26px; margin: 30px 0;
  font-weight: 600;
}
.encart p:last-child { margin-bottom: 0; }

/* ---------- Galerie ---------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.galerie img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- Pied de page ---------- */
.pied { background: var(--bleu-nuit); color: #c9d8ef; padding: 56px 0 28px; font-size: .95rem; }
.pied h3 { color: var(--jaune); font-size: 1.2rem; }
.pied a { color: #fff; }
.pied a:hover { color: var(--jaune); }
.pied__grille { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pied__bas {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .87rem; color: #9db3d4;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }

.reseaux { display: flex; gap: 14px; }
.reseaux a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff;
}
.reseaux a:hover { background: var(--jaune); color: var(--bleu-nuit); }

/* ---------- Divers ---------- */
.carte-embed {
  width: 100%; aspect-ratio: 16 / 10; border: 0;
  border-radius: var(--rayon); box-shadow: var(--ombre);
}

/* Carte chargée au clic : l'aperçu occupe exactement la place de la carte,
   pour que la page ne saute pas au moment du chargement. */
.carte-differee {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  background: var(--bleu);
  background-image:
    linear-gradient(rgba(13,52,104,.55), rgba(13,52,104,.55)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 2px, transparent 2px 64px);
}
.carte-differee iframe { width: 100%; height: 100%; border: 0; display: block; }
.carte-differee__bouton {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; cursor: pointer;
  background: none; border: 0; color: #fff;
  font-family: var(--texte); font-size: 1.05rem; font-weight: 600; text-align: center;
}
.carte-differee__bouton small {
  font-weight: 400; font-size: .82rem; color: #cddcf3; max-width: 30ch;
}
.carte-differee__bouton:hover { background: rgba(0, 0, 0, .18); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal { padding-bottom: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
