/* Site public — système de design « Caraïbe chaleureuse »
   (voir docs/fabrique/conception/systeme-de-design.md).
   Fond sable, encre chaude, rouge hibiscus (primaire), vert lagon (secondaire),
   jaune mangue (accent). Titres ronds et généreux. WCAG 2.2 AA, clair + sombre.
   Socle marque blanche : les couleurs de marque (--c-primaire/-fonce, --c-secondaire,
   --c-accent) sont injectées par restaurant via site.js ; les zones sombres utilisent
   --c-nuit (fixe) pour que le texte reste lisible quelle que soit la teinte choisie.
   Les zones au fond --c-secondaire (diapo 2 du hero, bande « Notre cuisine ») prennent
   --c-sur-secondaire, encre recalculée par site.js selon la luminance de la teinte injectée
   (crème ou encre sombre, la plus contrastée) ; défaut WCAG AA fourni ci-dessous sans injection.
   Polices OFL (Bricolage Grotesque, Source Sans 3) auto-hébergées dans /polices/
   (CSP 'self' : aucune ressource externe) ; licence dans docs/fabrique/licences.md. */

/* --- Polices auto-hébergées (OFL), sous-ensembles latin + latin-ext --- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url(/polices/bricolage-500.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: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url(/polices/bricolage-500-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(/polices/bricolage-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: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(/polices/bricolage-700-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(/polices/bricolage-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: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(/polices/bricolage-800-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(/polices/sourcesans3-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: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(/polices/sourcesans3-400-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(/polices/sourcesans3-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: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(/polices/sourcesans3-600-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(/polices/sourcesans3-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: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url(/polices/sourcesans3-700-ext.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --c-fond: #FBF3E4;            /* sable */
  --c-surface: #FFFFFF;
  --c-surface-2: #F4E7D1;       /* sable soutenu (tuiles, photos absentes) */
  --c-texte: #1E1A16;           /* encre chaude */
  --c-texte-doux: #5C5348;
  --c-primaire: #C8322B;        /* hibiscus */
  --c-primaire-fonce: #A3241E;
  --c-secondaire: #0E5E5A;      /* lagon */
  --c-accent: #F2B33D;          /* mangue (fond uniquement, jamais en texte sur clair) */
  --c-sur-primaire: #FFFFFF;    /* texte sur fond --c-primaire */
  --c-sur-accent: #1E1A16;      /* texte sur fond --c-accent (mangue) */
  --c-nuit: #1E1A16;            /* bandeaux sombres (en-tête, pied) */
  --c-sur-nuit: #FBF3E4;
  --c-sur-nuit-doux: #D9CFC0;
  --c-sur-secondaire: #FBF3E4;  /* encre sur fond --c-secondaire ; recalculée par site.js si teinte injectée */
  --c-succes: #2F7D4F;
  --c-alerte: #B3321F;
  --c-attention: #8A5A00;
  --c-bordure: #E9DCC6;
  --c-bordure-forte: #D6C3A6;

  --r-s: 10px; --r-m: 22px; --r-l: 28px; --r-pill: 999px;
  --ombre: 0 10px 28px -16px rgba(50, 30, 12, .38);
  --ombre-forte: 0 22px 48px -22px rgba(50, 30, 12, .45);
  --gouttiere: 24px;

  --police-titre: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-texte: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-fond: #17120D; --c-surface: #211912; --c-surface-2: #2B2117;
    --c-texte: #F6ECDD; --c-texte-doux: #CBB9A4;
    --c-primaire: #E8574E; --c-primaire-fonce: #F07A71;
    --c-secondaire: #5FB8AF; --c-accent: #F2B33D;
    --c-sur-primaire: #1E1A16; --c-sur-accent: #1E1A16;
    --c-nuit: #0F0B08; --c-sur-nuit: #F6ECDD; --c-sur-nuit-doux: #CBB9A4;
    --c-sur-secondaire: #1E1A16; /* secondaire clair par défaut en sombre : encre sombre */
    --c-succes: #57B477; --c-alerte: #E0705C; --c-attention: #E2B04A;
    --c-bordure: #3A2C1F; --c-bordure-forte: #4D3A27;
    --ombre: 0 10px 28px -16px rgba(0, 0, 0, .6);
    --ombre-forte: 0 22px 48px -22px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --c-fond: #17120D; --c-surface: #211912; --c-surface-2: #2B2117;
  --c-texte: #F6ECDD; --c-texte-doux: #CBB9A4;
  --c-primaire: #E8574E; --c-primaire-fonce: #F07A71;
  --c-secondaire: #5FB8AF; --c-accent: #F2B33D;
  --c-sur-primaire: #1E1A16; --c-sur-accent: #1E1A16;
  --c-nuit: #0F0B08; --c-sur-nuit: #F6ECDD; --c-sur-nuit-doux: #CBB9A4;
  --c-sur-secondaire: #1E1A16; /* secondaire clair par défaut en sombre : encre sombre */
  --c-succes: #57B477; --c-alerte: #E0705C; --c-attention: #E2B04A;
  --c-bordure: #3A2C1F; --c-bordure-forte: #4D3A27;
  --ombre: 0 10px 28px -16px rgba(0,0,0,.6); --ombre-forte: 0 22px 48px -22px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-fond);
  color: var(--c-texte);
  font-family: var(--police-texte);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
a { color: var(--c-primaire-fonce); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.contenu { max-width: 1200px; margin: 0 auto; padding: 0 var(--gouttiere); }

/* Surtitre (overline) */
.surligne {
  display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primaire-fonce); margin: 0 0 16px;
}
.surligne-mangue { color: var(--c-accent); }

/* ===================== En-tête (une seule barre sombre) ===================== */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: var(--c-nuit); color: var(--c-sur-nuit);
}
.entete .contenu { display: flex; align-items: center; gap: 14px 22px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-sur-nuit); flex: none; }
.marque strong { white-space: nowrap; }
.monogramme {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--c-primaire); color: var(--c-sur-primaire);
  display: grid; place-items: center; font-family: var(--police-titre); font-weight: 800; font-size: 20px;
}
.marque strong { font-family: var(--police-titre); font-size: 24px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.entete-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.entete-nav a {
  padding: 10px 13px; text-decoration: none; color: var(--c-sur-nuit);
  white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 600; font-size: 16px; border-radius: var(--r-pill);
}
.entete-nav a:hover { color: var(--c-sur-nuit); background: rgba(255,255,255,.08); }
.etat-ouverture { font-size: 14px; font-weight: 600; color: var(--c-sur-nuit-doux); white-space: nowrap; }
.btn-mangue {
  background: var(--c-accent); color: var(--c-sur-accent); border: 0; border-radius: var(--r-pill);
  min-height: 44px; padding: 10px 22px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center;
  flex: none; white-space: nowrap;
}
.btn-mangue:hover { filter: brightness(1.06); }

.pastille { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.pastille.ouvert { background: #4ADE80; }
.pastille.ferme { background: #F87171; }

/* Navigation à onglets des pages secondaires (apropos, horaires, etc.) */
nav.liens { background: var(--c-nuit); border-top: 1px solid rgba(255,255,255,.08); }
nav.liens .contenu { display: flex; gap: 4px; overflow-x: auto; align-items: center; }
nav.liens a {
  padding: 12px 14px; text-decoration: none; color: var(--c-sur-nuit-doux);
  white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center;
  font-weight: 600; font-size: 16px; border-bottom: 3px solid transparent;
}
nav.liens a:hover { color: var(--c-sur-nuit); }
nav.liens a[aria-current="page"] { color: var(--c-sur-nuit); border-bottom-color: var(--c-accent); }
nav.liens a.nav-cta {
  margin-left: auto; background: var(--c-accent); color: var(--c-sur-accent); border: 0;
  border-radius: var(--r-pill); min-height: 42px; padding: 8px 20px; font-weight: 700;
}
nav.liens a.nav-cta:hover { filter: brightness(1.06); }

/* Bandeau hors-ligne / info */
.bandeau { padding: 11px var(--gouttiere); text-align: center; font-size: 15px; }
.bandeau.info { background: color-mix(in srgb, var(--c-secondaire) 14%, var(--c-surface)); color: var(--c-texte); }
.bandeau.hors-ligne { background: color-mix(in srgb, var(--c-accent) 30%, var(--c-surface)); color: var(--c-texte); }
.bandeau[hidden] { display: none; }

/* ===================== Accroche (hero) ===================== */
.hero { position: relative; }
.hero .dedans {
  max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gouttiere) clamp(44px, 6vw, 72px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero .texte { flex: 1 1 440px; min-width: 0; }
.hero h1 { margin: 0; font-size: clamp(44px, 6vw, 80px); line-height: 1.02; max-width: 15ch; color: var(--c-texte); }
.hero .sous { margin: 22px 0 0; font-size: clamp(18px, 2.2vw, 20px); color: var(--c-texte-doux); max-width: 34ch; line-height: 1.5; }
.hero .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero #maj { margin: 20px 0 0; font-size: 14px; color: var(--c-texte-doux); }

.mosaique {
  flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr;
  gap: 16px; height: clamp(320px, 40vw, 460px);
}
.mosaique span { border-radius: var(--r-l); background-size: cover; background-position: center; }
.mosaique span:nth-child(1) { grid-row: 1 / 3; background-color: var(--c-surface-2); }
.mosaique span:nth-child(2) { background-color: var(--c-secondaire); }
.mosaique span:nth-child(3) { background-color: var(--c-accent); }

.lien-sobre {
  color: var(--c-texte); font-weight: 700; text-decoration: none; border: 2px solid currentColor;
  border-radius: var(--r-pill); padding: 11px 24px; min-height: 48px; display: inline-flex; align-items: center;
}
.lien-sobre:hover { background: var(--c-texte); color: var(--c-fond); }

/* ===================== Sections ===================== */
.bande { background: var(--c-surface); border-top: 1px solid var(--c-bordure); border-bottom: 1px solid var(--c-bordure); }
.section { padding: clamp(48px, 7vw, 72px) 0; }
#commander { padding: clamp(56px, 8vw, 80px) 0; }

.titre-section { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.titre-section h2 { margin: 0; font-size: clamp(34px, 4.4vw, 52px); }
.titre-section p { margin: 0; color: var(--c-texte-doux); max-width: 42ch; font-size: 16px; }
.titre-section .trait { display: none; }

/* Filtres catégories */
.filtres { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0 10px; }
.filtres button {
  border: 2px solid var(--c-bordure-forte); background: transparent; color: var(--c-texte);
  border-radius: var(--r-pill); padding: 8px 18px; min-height: 44px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 15px; font-weight: 600; transition: border-color .12s ease, background .12s ease;
}
.filtres button:hover { border-color: var(--c-texte); }
.filtres button[aria-pressed="true"] { background: var(--c-texte); color: var(--c-fond); border-color: var(--c-texte); }

/* Grille de plats (classes produites par app.js) */
.plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; padding: 20px 0 8px; }
.carte {
  background: var(--c-fond); border: 1px solid var(--c-bordure); border-radius: var(--r-m);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte .photo {
  height: 170px; width: 100%; object-fit: cover; background: var(--c-surface-2);
  display: flex; align-items: center; justify-content: center;
}
.carte .photo.vide-photo::after { content: ""; width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--c-primaire) 22%, transparent); }
.carte .corps { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte .tag { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-secondaire); }
.carte .allergenes { margin: 0; font-size: 13px; color: var(--c-texte-doux); }
/* Carte « Menu » (formule) : liseré accent + composition des plats. */
.carte.carte-menu { border: 2px solid color-mix(in srgb, var(--c-accent) 55%, var(--c-bordure)); }
.carte .formule-compo { margin: 2px 0 0; font-size: 14px; color: var(--c-texte-doux); line-height: 1.4; }
/* Panier : ligne avec remarque facultative, pastille Menu. */
.ligne-panier { border-bottom: 1px solid var(--c-bordure); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.tag-menu { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c-sur-accent); background: var(--c-accent); border-radius: var(--r-pill); padding: 2px 8px; vertical-align: middle; }
.remarque-ligne { width: 100%; padding: 8px 11px; border: 1px solid var(--c-bordure); border-radius: var(--r-s); background: var(--c-surface); color: var(--c-texte); font: inherit; font-size: 14px; }
.remarque-ligne:focus-visible { outline: 2px solid var(--c-primaire); outline-offset: 1px; }
.carte h3 { margin: 0; font-size: 24px; font-weight: 800; }
.carte .desc { color: var(--c-texte-doux); font-size: 16px; margin: 0; flex: 1; line-height: 1.5; }
.carte .pied { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.prix { font-family: var(--police-titre); font-weight: 800; color: var(--c-texte); font-size: 20px; font-variant-numeric: tabular-nums; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 10px;
  border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-texte-doux); font-weight: 600; width: fit-content;
}
.badge.epuise { background: color-mix(in srgb, var(--c-alerte) 14%, var(--c-surface)); color: var(--c-alerte); }
.badge.allergenes { background: transparent; padding-left: 0; }
.reste { font-size: 13px; color: var(--c-texte-doux); }

/* Étapes de commande */
.etapes { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.etapes li { border: 2px solid var(--c-texte); border-radius: var(--r-m); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.etapes .num { font-family: var(--police-titre); font-weight: 800; font-size: 44px; line-height: 1; color: var(--c-primaire); }
.etapes h3 { margin: 0; font-size: 24px; font-weight: 800; }
.etapes p { margin: 0; color: var(--c-texte-doux); }
.section .apres { margin-top: 32px; }

/* Notre cuisine — bande pleine largeur lagon */
.bande-cuisine {
  background: var(--c-secondaire);     /* lagon plein (maquette) ; photo éventuelle dans .cuisine-image */
  color: var(--c-sur-secondaire);      /* encre lisible quelle que soit la teinte injectée */
}
.bande-cuisine[hidden] { display: none; }
.cuisine-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: clamp(56px, 8vw, 80px) var(--gouttiere); }
.cuisine-image { height: 380px; border-radius: var(--r-l); background: rgba(0,0,0,.28); background-size: cover; background-position: center; }
/* Surtitre sur la bande lagon : encre lisible (le gold --c-accent n'atteint pas 4.5:1 sur
   le vert, et la teinte secondaire est paramétrable en marque blanche). */
.bande-cuisine .surligne { color: var(--c-sur-secondaire); opacity: .9; }
.cuisine-texte h2 { margin: 0 0 16px; color: var(--c-sur-secondaire); font-size: clamp(32px, 4vw, 48px); }
.cuisine-texte p { margin: 0; color: var(--c-sur-secondaire); font-size: 18px; line-height: 1.65; max-width: 54ch; }

/* Infos pratiques */
.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.infos .bloc { background: var(--c-surface); border: 1px solid var(--c-bordure); border-radius: var(--r-m); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.infos h3 { margin: 0; font-size: 28px; font-weight: 800; }
.infos p { margin: 0; color: var(--c-texte-doux); }
.infos a { font-weight: 700; }
.infos-horaires-liste { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.infos-horaires-liste dt { color: var(--c-texte); font-weight: 600; }
.infos-horaires-liste dd { margin: 0; color: var(--c-texte-doux); text-align: right; font-variant-numeric: tabular-nums; }
.infos-horaires-liste dd.ferme { font-style: italic; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px; border-radius: var(--r-pill); font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--c-primaire); background: var(--c-primaire); color: var(--c-sur-primaire); text-decoration: none;
  transition: background .14s ease, border-color .14s ease;
}
.btn:hover { background: var(--c-primaire-fonce); border-color: var(--c-primaire-fonce); }
.btn.secondaire { background: transparent; color: var(--c-primaire-fonce); }
.btn.secondaire:hover { background: color-mix(in srgb, var(--c-primaire) 8%, transparent); }
.btn.ajouter { min-height: 44px; padding: 8px 20px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* États vides / chargement */
.vide, .chargement { text-align: center; color: var(--c-texte-doux); padding: 64px 20px; grid-column: 1 / -1; }
.vide .emoji { display: block; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 55%, transparent); font-size: 0; }
.vide strong { display: block; color: var(--c-texte); font-family: var(--police-titre); font-weight: 800; font-size: 26px; margin-bottom: 8px; }
.chargement { font-size: 16px; }

/* Contenu éditorial (pages statiques) */
.prose { padding: 8px 0 56px; }
.en-tete-page { background: var(--c-surface-2); border-bottom: 1px solid var(--c-bordure); }
.en-tete-page .contenu { padding: clamp(40px, 6vw, 72px) var(--gouttiere) clamp(32px, 4vw, 48px); }
.en-tete-page h1 { margin: 0; color: var(--c-texte); font-size: clamp(34px, 5.5vw, 56px); }
.prose h1 { font-size: 34px; margin: 10px 0; }
.prose h2 { font-size: 25px; margin: 32px 0 10px; font-weight: 800; }
.prose p, .prose li { color: var(--c-texte); max-width: 68ch; }
.avis {
  border-left: 4px solid var(--c-accent); background: color-mix(in srgb, var(--c-accent) 14%, var(--c-surface));
  padding: 14px 18px; border-radius: 0 var(--r-s) var(--r-s) 0; margin: 20px 0; font-size: 15px;
}
table.horaires { border-collapse: collapse; width: 100%; max-width: 460px; }
table.horaires th, table.horaires td { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--c-bordure); }
table.horaires th { font-weight: 700; }
table.horaires td { color: var(--c-texte-doux); text-align: right; font-variant-numeric: tabular-nums; }

/* Pied de page — bandeau sombre (scopé à <footer> : le bas des cartes porte aussi
   la classe .pied et ne doit PAS hériter du fond sombre du pied de page). */
footer.pied { margin-top: 0; background: var(--c-nuit); color: var(--c-sur-nuit-doux); font-size: 15px; }
footer.pied .contenu { padding: 36px var(--gouttiere); display: flex; gap: 18px 32px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.pied-nom { font-family: var(--police-titre); font-size: 18px; font-weight: 800; color: var(--c-sur-nuit); letter-spacing: .04em; text-transform: uppercase; }
.pied-pages, .pied-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer.pied a { color: var(--c-sur-nuit-doux); text-decoration: underline; text-underline-offset: 3px; }
footer.pied a:hover { color: var(--c-sur-nuit); }
.pied-annee { color: var(--c-sur-nuit-doux); }

/* Barre panier (accueil) */
.barre-panier {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; width: min(540px, calc(100% - 36px));
  background: var(--c-primaire); color: var(--c-sur-primaire); text-align: center; padding: 15px 24px;
  font-weight: 700; text-decoration: none; border-radius: var(--r-pill); box-shadow: var(--ombre-forte); z-index: 20;
}
.barre-panier[hidden] { display: none; }

/* Créneaux (réutilise .filtres button) */
.filtres .creneau[aria-pressed="true"] { background: var(--c-texte); color: var(--c-fond); border-color: var(--c-texte); }
.filtres .creneau[disabled] { opacity: .5; cursor: not-allowed; }

/* ===================== Responsive ===================== */
/* Desktop : en-tête sur une seule rangée (logo à gauche, nav + CTA à droite),
   conformément à la maquette Main.dc.html. */
@media (min-width: 1000px) {
  .entete .contenu { flex-wrap: nowrap; }
  .entete-nav { flex-wrap: nowrap; }
}
@media (max-width: 860px) {
  .entete-nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  .etat-ouverture { order: 2; margin-left: auto; }
  .btn-mangue { order: 1; }
  .cuisine-grille { grid-template-columns: 1fr; gap: 28px; }
  .cuisine-image { height: 240px; order: 2; }
}
@media (max-width: 640px) {
  .hero .dedans { gap: 32px; }
  .mosaique { height: 260px; }
  nav.liens a.nav-cta { margin-left: 8px; }
}

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

.prose .a-completer { color: var(--c-texte-doux); font-style: italic; }
.visuellement-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo d'établissement dans l'en-tête (remplace le monogramme) */
.monogramme.avec-logo { background-size: cover; background-position: center; color: transparent; }

/* Carrousel d'accueil */
.hero { max-width: 1200px; margin: 0 auto; padding: clamp(28px,4vw,40px) var(--gouttiere) 20px; border-bottom: 0; }
.carrousel { position: relative; }
.diapo { border-radius: 32px; min-height: clamp(380px, 46vw, 520px); padding: clamp(28px,5vw,56px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; overflow: hidden; box-shadow: var(--ombre); }
.diapo[hidden] { display: none; }
.diapo-1 { background: var(--c-primaire); color: var(--c-sur-primaire); }   /* texte lisible quelle que soit la teinte de marque */
.diapo-2 { background: var(--c-secondaire); color: var(--c-sur-secondaire); }
.diapo-3 { background: var(--c-accent); color: var(--c-sur-accent); }
.diapo-texte { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.diapo-texte .surligne { color: inherit; opacity: .92; margin: 0; }
.diapo-texte h1, .diapo-texte h2 { margin: 0; font-family: var(--police-titre); font-weight: 800; font-size: clamp(32px,5.4vw,72px); line-height: 1.02; letter-spacing: -.02em; color: inherit; max-width: 16ch; overflow-wrap: anywhere; }
.diapo-sous { margin: 0; font-size: clamp(17px,2vw,20px); max-width: 38ch; color: inherit; opacity: .95; line-height: 1.5; }
.diapo-tuile { flex: 1 1 320px; min-width: 0; height: clamp(220px,32vw,380px); border-radius: 26px; background: rgba(255,255,255,.16); }
.diapo-3 .diapo-tuile { background: rgba(30,26,22,.12); }
.diapo-tuile.avec-photo { background-size: cover; background-position: center; }
.btn-clair, .btn-sombre, .btn-mangue-s { display: inline-flex; align-items: center; min-height: 50px; padding: 14px 28px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.btn-clair { background: #FBF3E4; color: #1E1A16; }
.btn-sombre { background: var(--c-nuit); color: var(--c-sur-nuit); }
.btn-mangue-s { background: var(--c-accent); color: var(--c-sur-accent); }
.carrousel-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.carrousel-points { display: flex; gap: 8px; }
.carrousel-point { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carrousel-point span { display: block; height: 10px; width: 10px; border-radius: 999px; background: var(--c-bordure-forte); transition: width .3s ease; }
.carrousel-point[aria-current="true"] span { width: 36px; background: var(--c-texte); }
.carrousel-fleches { display: flex; align-items: center; gap: 10px; }
.carrousel-ctrl { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--c-texte); background: transparent; color: var(--c-texte); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carrousel-ctrl:hover { background: var(--c-texte); color: var(--c-fond); }
/* Bouton pause : cercle blanc + anneau de progression (synchronisé 6 s). */
.carrousel-pause { position: relative; background: var(--c-surface); border: 0; color: var(--c-texte); }
.carrousel-pause:hover { background: var(--c-surface); color: var(--c-texte); }
.carrousel-pause svg.anneau { position: absolute; inset: 0; transform: rotate(-90deg); }
.carrousel-pause .anneau-piste { stroke: var(--c-bordure); }
.carrousel-pause .anneau-trait { stroke: var(--c-primaire); stroke-dasharray: 132; stroke-dashoffset: 132; stroke-linecap: round; }
.carrousel-pause.anime .anneau-trait { animation: carrousel-anneau 6s linear forwards; }
.carrousel-pause.en-pause .anneau-trait { animation-play-state: paused; }
.carrousel-pause .carrousel-ico { position: relative; }
@keyframes carrousel-anneau { from { stroke-dashoffset: 132; } to { stroke-dashoffset: 0; } }
/* Flèche « suivant » : cercle plein sombre. */
.carrousel-suiv { background: var(--c-nuit); border: 0; color: var(--c-sur-nuit); }
.carrousel-suiv:hover { background: var(--c-nuit); color: var(--c-sur-nuit); filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .carrousel-pause.anime .anneau-trait { animation: none; } }
.carrousel-ctrl:focus-visible, .carrousel-point:focus-visible { outline: 3px solid var(--c-texte); outline-offset: 2px; }
.entete-nav a:focus-visible, .btn-mangue:focus-visible, .marque:focus-visible { outline: 3px solid var(--c-sur-nuit); outline-offset: 2px; border-radius: var(--r-pill); }

/* Commander pour demain */
.banniere-jour { background: var(--c-accent); color: var(--c-sur-accent); font-weight: 600; }
.banniere-jour .lien-bouton, .lien-bouton { background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
  color: inherit; text-decoration: underline; cursor: pointer; }
.proposition { background: var(--c-surface, #fff); border: 1px solid var(--c-bordure); border-radius: var(--r-m);
  padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.proposition[hidden] { display: none; } /* sinon display:flex l'emporte sur l'attribut hidden */
.proposition p { margin: 0; flex: 1 1 260px; }

/* Commande en salle (client, téléphone d'abord) */
.salle-body { margin: 0; background: var(--c-fond); }
.salle-ecran { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--c-fond); }
.salle-tete { flex: 0 0 auto; background: var(--c-nuit); color: var(--c-sur-nuit); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.salle-mono { width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--police-titre); font-weight: 800; }
.salle-marque { font-family: var(--police-titre); font-size: 18px; letter-spacing: .04em; }
.salle-contenu { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.salle-banniere { margin: 12px 14px 4px; padding: 14px 16px; border-radius: 18px; background: var(--c-secondaire); color: #fff; display: flex; align-items: center; gap: 14px; }
.salle-num { width: 56px; height: 56px; border-radius: 14px; background: var(--c-fond); color: var(--c-secondaire); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
.salle-num span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.salle-num strong { font-family: var(--police-titre); font-size: 26px; }
.salle-banniere-txt { display: flex; flex-direction: column; }
.salle-banniere-txt span { opacity: .92; font-size: 14px; }
.salle-titre { padding: 10px 14px 4px; }
.salle-titre h1 { margin: 0; font-family: var(--police-titre); font-weight: 800; font-size: 28px; }
.salle-plats { list-style: none; margin: 0; padding: 8px 14px; display: flex; flex-direction: column; gap: 10px; }
.salle-plat { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--c-bordure); border-radius: 16px; padding: 10px; }
.salle-photo { width: 64px; height: 64px; flex: none; border-radius: 12px; background: #E7D3B3; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 10px; font-weight: 700; color: #5C5348; }
.salle-photo img { width: 100%; height: 100%; object-fit: cover; }
.salle-plat-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.salle-prix { font-weight: 700; font-variant-numeric: tabular-nums; }
.salle-stepper { display: flex; align-items: center; border: 2px solid var(--c-texte); border-radius: 999px; }
.salle-stepper button { width: 44px; height: 44px; border: 0; background: transparent; font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.salle-qte { min-width: 22px; text-align: center; font-weight: 800; }
.salle-ajout { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--c-accent); color: #fff; font-size: 24px; font-weight: 800; cursor: pointer; }
.salle-bas { margin-top: auto; background: #fff; border-top: 1px solid var(--c-bordure); padding: 10px 14px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -6px 18px rgba(30,26,22,.08); }
.salle-lien { min-height: 44px; border: 0; background: transparent; font: inherit; text-align: left; padding: 0; color: var(--c-secondaire); font-weight: 700; cursor: pointer; }
.salle-bas textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--c-bordure); border-radius: 12px; padding: 10px; font: inherit; }
.salle-envoyer { min-height: 60px; border-radius: 18px; border: 0; background: var(--c-accent); color: #fff; font-family: var(--police-titre); font-weight: 800; font-size: 20px; cursor: pointer; }
.salle-envoyer:disabled { opacity: .5; cursor: not-allowed; }
.salle-note { text-align: center; }
.salle-msg { background: color-mix(in srgb, var(--c-alerte) 14%, #fff); color: var(--c-alerte); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.salle-err { margin: 24px 16px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--c-bordure); text-align: center; }
.salle-confirme { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.salle-check { width: 64px; height: 64px; border-radius: 50%; background: var(--c-succes); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.salle-confirme h1 { margin: 0; font-family: var(--police-titre); font-weight: 800; }

/* Mes commandes (client, sans compte) */
.mc-liste { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mc-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--c-bordure); border-radius: var(--r-m); padding: 12px 14px; background: #fff; }
.mc-retrouver { margin-top: 24px; border-top: 1px solid var(--c-bordure); padding-top: 16px; }
.mc-installer { margin-top: 20px; }
.ec-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Suivi de commande (client) */
.suivi-heure { font-size: 20px; margin: 0 0 4px; }
.suivi-resto { margin-top: 18px; }
.suivi-annul { margin-top: 20px; }
.suivi-annul-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
