/*
Theme Name: Kreol Nomad
Author: Kreol Nomad
Description: Thème bloc sur mesure de Kreol Nomad, The Caribbean canteen. Autonome : aucune extension requise. Les dix pages du site sont fournies comme compositions de page, en blocs natifs modifiables dans l'éditeur.
Version: 2.0.3
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kreol-nomad
Tags: block-theme, full-site-editing, one-column
*/

/* Kreol Nomad. Registre relevé sur la référence :
   grotesque serrée + manuscrite + mono, noir / blanc cassé, angles vifs.

   Feuille commune à la maquette et au thème : le balisage de la maquette
   reproduit celui que rendent les blocs natifs, les sélecteurs sont donc
   les mêmes des deux côtés. Les règles qui croisent un style de bloc
   WordPress sont volontairement plus spécifiques que lui (figure.x img,
   .wp-block-button.x .wp-block-button__link) : le CSS d'un bloc est
   imprimé après cette feuille et gagne à spécificité égale. */

:root {
  --noir: #141414;
  --noir-bouton: #000;
  --blanc: #f6f5f3;
  --papier: #fff;
  --filet: #3a3a3a;
  --bord-photo: #eeeae5;
  --rouge: #d62828;

  --grotesque: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --manuscrite: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --entete: 96px;
  --cadre: 11px;
  --marge: clamp(20px, 4.9vw, 71px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--noir) url(assets/img/bruit.svg);
  color: var(--blanc);
  font: 400 16px/1.32 var(--grotesque);
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0),
   et ici en filet de sécurité À SPÉCIFICITÉ NULLE, pour ne jamais écraser
   les marges des composants. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
:where(figure.wp-block-image) { margin: 0; }

/* ---------- En-tête ---------- */

header.wp-block-template-part { position: sticky; top: 0; z-index: 20; }

.entete {
  height: var(--entete);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  background: var(--noir) url(assets/img/bruit.svg);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.wp-block-navigation.nav .wp-block-navigation__container {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.wp-block-navigation.nav .wp-block-navigation-item__content {
  display: block;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
.wp-block-navigation.nav .wp-block-navigation-item__content:hover { opacity: .65; }
.wp-block-navigation.nav .nav-commande { display: none; }

/* le logo, en blanc : sa hauteur est fixée ici, la largeur suit */
figure.logo { line-height: 0; }
figure.logo img { width: auto; height: 60px; }

.entete-droite { display: flex; justify-content: flex-end; }

/* « Commander » : un bouton clair, posé sur le lien du paragraphe. Le style
   tient au lien et non au balisage d'un bloc bouton, pour s'appliquer aussi
   à un en-tête déjà personnalisé dans l'éditeur de site. */
.lien-plus a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  background: var(--blanc);
  color: var(--noir);
  font: 400 16px/1.32 var(--grotesque);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: background .2s;
}
.lien-plus a:hover { background: #dedbd6; }

/* ---------- Boutons ---------- */

.wp-block-buttons { display: flex; flex-wrap: wrap; }

.wp-block-button.btn { width: 291px; max-width: 100%; margin: 0; }
.wp-block-button.btn .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 82px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--noir-bouton);
  color: var(--papier);
  font: 400 17px/1.32 var(--grotesque);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.wp-block-button.btn .wp-block-button__link:hover { background: #2b2b2b; }

.wp-block-button.btn-clair { width: 271px; max-width: 100%; margin: 0; }
.wp-block-button.btn-clair .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--blanc);
  color: var(--noir);
  font: 400 16px/1.32 var(--grotesque);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.wp-block-button.btn-clair .wp-block-button__link:hover { background: #dedbd6; }

/* ---------- Textes ---------- */

.titre-geant {
  font-size: clamp(46px, 7.6vw, 112px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -0.055em;
  text-align: center;
  text-wrap: balance;
  hyphens: none;
}

.titre-moyen {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
}

.colonne {
  width: 100%;
  max-width: 321px;
  line-height: 21px;
  text-align: justify;
  text-indent: 2.1em;
}

.mono {
  font: 400 16px/21px var(--mono);
  letter-spacing: 0;
  text-align: justify;
  text-indent: 3.9em;
}

/* Écriture « signature », liée et penchée. Le léger contour épaissit le trait,
   plus fin que celui des titres. */
.manuscrit {
  font: 400 62px/1 var(--manuscrite);
  letter-spacing: 0;
  text-align: center;
  -webkit-text-stroke: .5px currentColor;
}

/* ---------- Photos ---------- */

figure.polaroid {
  background: var(--blanc);
  padding: 10px;
  flex: none;
}
figure.polaroid img { width: 100%; height: 100%; object-fit: cover; }

figure.polaroid-grand { width: 410px; aspect-ratio: 410 / 508; transform: rotate(-4deg); }

figure.polaroid-petit { width: 259px; aspect-ratio: 259 / 332; padding: 8px; }

/* ---------- Hero ---------- */

.hero {
  margin: 0;   /* pleine largeur, sans le cadre noir des autres panneaux */
  min-height: calc(100vh - var(--entete));
  min-height: calc(100svh - var(--entete));
  padding: 40px var(--marge);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--blanc);
  color: var(--noir);
  text-align: center;
}

/* le logo, en grand, à la place du titre */
figure.hero-logo { width: min(440px, 66vw); }
figure.hero-logo img { width: 100%; height: auto; }

/* la phrase de présentation est le titre de la page (h1), composée comme du texte courant */
.hero-texte {
  margin-top: 40px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.wp-block-buttons.hero-boutons { justify-content: center; gap: 22px; margin-top: 46px; }

/* ---------- Notre histoire ---------- */

.histoire {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 114px;
  min-height: 690px;
  padding: 96px 12vw 96px 20px;
}

.histoire-texte { width: 278px; flex: none; }
.histoire-texte .titre-moyen { margin-bottom: 80px; }
.histoire-texte .mono + .mono { margin-top: 36px; }

/* ---------- Ambiance ---------- */

.ambiance {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 20px 120px;
  background: var(--blanc);
  color: var(--noir);
}
.ambiance .titre-geant { max-width: 1100px; }
.ambiance .colonne { margin-top: 84px; }

.ambiance figure.cadre-photo {
  width: min(513px, 100%);
  margin-top: 88px;
  border: 9px solid var(--bord-photo);
}
figure.cadre-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* ---------- Plein cadre ---------- */

.plein-cadre {
  position: relative;
  height: min(694px, 100vh);
  min-height: 520px;
  overflow: hidden;
  color: var(--papier);
}

figure.plein-cadre-photo { position: absolute; inset: 0; }
figure.plein-cadre-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: brightness(.82);
}
/* photos claires : assombries davantage pour garder le texte lisible */
.plein-cadre-clair figure.plein-cadre-photo img { filter: brightness(.58); }

.plein-cadre::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 4, .62), rgba(8, 6, 4, 0) 58%);
}

.plein-cadre-titre {
  position: absolute;
  z-index: 1;
  top: 38px;
  left: 18px;
  max-width: 440px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.plein-cadre-bas {
  position: absolute;
  z-index: 1;
  right: 23px;
  bottom: 86px;
  width: 271px;
}
.plein-cadre-bas .wp-block-buttons { margin-top: 42px; }

/* ---------- Aperçu du menu ---------- */

.apercu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 40px;
  padding: 96px 16px 128px var(--marge);
  background: var(--blanc);
  color: var(--noir);
}

/* le titre court sur toute la largeur ; son retrait droit rattrape la marge
   asymétrique de la section pour qu'il reste centré sur la page */
.apercu .titre-geant {
  grid-column: 1 / -1;
  margin-bottom: 44px;
  padding-right: calc(var(--marge) - 16px);
}

/* Le texte occupe exactement la hauteur des photos : premier plat calé en
   haut, bouton calé en bas. Si le texte est plus haut (écran étroit), ce
   sont les photos qui s'étirent. */
.apercu-carte { display: flex; flex-direction: column; gap: 32px; }
.apercu-carte .plats { margin-top: -5px; }   /* haut des capitales au niveau du haut des photos */

.plats { display: grid; gap: 26px; }
.plat {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-items: baseline;
}
.plat-nom, .plat-prix {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.plat-nom { font-weight: 700; }
.plat-prix { white-space: nowrap; }
.plat-desc { grid-column: 1 / -1; margin-top: 4px; }

.apercu-carte .wp-block-buttons { margin-top: auto; }

.apercu-photos { display: flex; gap: 10px; }
.apercu-photos figure { display: flex; }
.apercu-photos figure img { width: 261px; height: 100%; min-height: 364px; object-fit: cover; }

/* ---------- Atelier (traiteur) ---------- */

.atelier { padding: 52px 20px 330px; }
.atelier .titre-geant { max-width: 900px; margin: 0 auto; }

.atelier-corps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 118px;
}

.atelier-mot {
  justify-self: center;
  max-width: 440px;
  transform: rotate(-4deg);
}

.atelier-texte {
  justify-self: center;
  align-self: end;
  width: 290px;
  transform: translateY(calc(100% + 54px));
}
.atelier-texte .colonne { max-width: none; }
.atelier-texte .wp-block-buttons { margin-top: 36px; }
.atelier-texte .wp-block-button.btn-clair { width: 100%; }

/* ---------- Duo photo / panneau ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cadre);
  padding: 0 var(--cadre) var(--cadre);
}

/* hauteur minimale commune ; si le texte du panneau en demande plus, la photo suit */
figure.duo-photo, .duo-panneau { min-height: min(900px, 62vw); }
figure.duo-photo { position: relative; }
figure.duo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.duo-panneau {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 32px;
  background: var(--blanc);
  color: var(--noir);
}

.duo-mot {
  position: absolute;
  top: 6%;
  right: 9%;
  width: 290px;
  transform: rotate(3deg);
}

.duo-titre {
  margin-top: max(31%, 190px);   /* garde la place de l'accroche manuscrite quand le panneau rétrécit */
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -0.055em;
  text-align: center;
  max-width: 5.2em;
}

.duo-panneau .colonne { max-width: 290px; margin-top: 13%; margin-left: 40px; }
.duo-panneau .wp-block-buttons { margin-top: 44px; margin-left: 40px; }
.duo-panneau .wp-block-button.btn { width: 290px; }
.duo-panneau .wp-block-button.btn .wp-block-button__link { height: 64px; }

.duo-inverse .duo-mot { right: auto; left: 9%; transform: rotate(-3deg); }

/* variante pleine largeur : ni cadre noir autour, ni filet entre la photo et le panneau */
.duo.duo-plein { gap: 0; padding: 0; }

/* ---------- Carte (menu, épicerie, formules, agenda) ---------- */

.ambiance-tete { padding-bottom: 0; }
/* deux bandes claires qui se suivent : un pixel de recouvrement, sinon le fond noir
   transparaît en filet quand la hauteur du titre tombe sur une fraction de pixel */
.ambiance-tete + .carte { margin-top: -1px; }

.carte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px 9vw;
  padding: 118px var(--marge) 124px;
  background: var(--blanc);
  color: var(--noir);
}
.carte-sombre { background: none; color: var(--blanc); }

.carte-titre,
.entry-content .orderable-category-heading .orderable-category-heading__title {
  margin: 0 0 40px;
  color: inherit;
  font: 700 38px/1 var(--grotesque);
  letter-spacing: -0.045em;
  text-align: left;
  text-transform: uppercase;
}

.carte-note { grid-column: 1 / -1; opacity: .7; }
.carte-groupe .wp-block-buttons { margin-top: 44px; }

/* ---------- Demande de devis : e-mail et téléphone ---------- */

.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 9vw;
  padding: 118px var(--marge) 132px;
}

.formulaire-intro .titre-moyen { margin-bottom: 44px; text-align: left; }
.formulaire-mot {
  width: fit-content;
  max-width: 400px;
  margin-top: 56px;
  transform: rotate(-3deg);
}

.wp-block-buttons.contact-boutons { gap: 12px; margin-top: 48px; }

/* ---------- Commande en ligne : habillage de l'extension Orderable (WooCommerce) ----------
   Le thème fonctionne sans elle. Le jour où elle est installée, son catalogue
   (bloc ou code court posé dans une page) prend ce style : panneau clair,
   photos carrées, boutons noirs. Le panier et le paiement restent ceux de
   l'extension. Les sélecteurs sont préfixés par .entry-content pour dépasser
   la feuille de l'extension. */

.entry-content > .orderable-main {
  margin: 0;
  padding: 96px var(--marge) 0;
  background: var(--blanc);
  color: var(--noir);
}
.entry-content > .orderable-main:not(:has(+ .orderable-main)) { padding-bottom: 124px; }
.entry-content .orderable-main .orderable-main__group { margin: 0; }

/* le nom de la catégorie porte le même style que les titres de la carte (.carte-titre) */
.entry-content .orderable-category-heading { margin: 0; }

.entry-content .orderable-products-list.orderable-products-list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 24px;
  margin: 0;
}
.entry-content .orderable-products-list--grid .orderable-products-list__item {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
.entry-content .orderable-products-list__item .orderable-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.entry-content .orderable-products-list__item .orderable-product__hero {
  width: 100%;
  min-width: 0;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
}
.entry-content .orderable-products-list__item .orderable-product__hero img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.entry-content .orderable-products-list__item .orderable-product__content-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
}
.entry-content .orderable-products-list__item .orderable-product__content { padding: 18px 0 0; }
.entry-content .orderable-product--no-image .orderable-product__content { padding-top: 0; }
.entry-content .orderable-products-list__item .orderable-product__title {
  margin: 0 !important;
  color: inherit;
  font: 700 26px/1.05 var(--grotesque);
  letter-spacing: -0.05em;
  text-transform: none;
}
.entry-content .orderable-product__content p,
.entry-content .orderable-product__content .uagb-rm__desc {
  margin: 6px 0 0;
  color: inherit;
  font-size: 16px;
  line-height: 21px;
}
.entry-content .orderable-product__content p:empty { display: none; }
.entry-content .orderable-products-list__item .orderable-product__actions {
  position: static;
  margin-top: auto;
  padding: 18px 0 0;
}
.entry-content .orderable-product__actions-price .amount,
.entry-content .orderable-product__actions-price {
  margin: 0;
  color: inherit;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.entry-content .orderable-button {
  height: 46px;
  padding: 0 22px !important;
  background: var(--noir-bouton);
  border: 0;
  border-radius: 0;
  color: var(--papier);
  font: 400 16px/46px var(--grotesque);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.entry-content .orderable-button:hover,
.entry-content .orderable-button:focus { background: #2b2b2b; color: var(--papier); }
.entry-content .orderable-button.orderable-button--out-of-stock {
  border: 1px solid currentColor;
  color: var(--noir);
  line-height: 44px;
  opacity: .4;
}

/* Tiroir du panier et bouton flottant d'Orderable : insérés à la racine de la
   page, ils hériteraient du texte clair du site sur leur fond blanc. */
.orderable-drawer { background: var(--blanc); color: var(--noir); }
.orderable-drawer h3, .orderable-drawer h4 { color: inherit; font-weight: 700; letter-spacing: -0.045em; }
.orderable-floating-cart .orderable-floating-cart__button {
  background: var(--noir-bouton);
  border-radius: 0;
  box-shadow: none;
}
.orderable-floating-cart .orderable-floating-cart__button svg { fill: var(--papier); }
.orderable-floating-cart .orderable-floating-cart__count {
  background: var(--rouge);
  border-radius: 0;
  color: var(--papier);
}

/* Dans le tiroir, Orderable dessine la croix de fermeture, la corbeille et le
   sélecteur de quantité en gris bleuté très pâle : on les passe au noir du site,
   comme le sélecteur des fiches produits. */
.orderable-drawer .orderable-drawer__close { border-color: var(--noir); }
.orderable-drawer .orderable-drawer__close::before,
.orderable-drawer .orderable-drawer__close::after { background-color: var(--noir); }
.orderable-drawer .orderable-drawer__close:hover,
.orderable-drawer .orderable-drawer__close:focus { border-color: var(--noir); background-color: var(--noir); }
.orderable-drawer .orderable-drawer__close:hover::before,
.orderable-drawer .orderable-drawer__close:hover::after,
.orderable-drawer .orderable-drawer__close:focus::before,
.orderable-drawer .orderable-drawer__close:focus::after { background-color: var(--papier); }

.orderable-drawer .orderable-drawer__cart .orderable-mini-cart-item .orderable-mini-cart-item__remove { color: var(--noir); }
.orderable-drawer .orderable-drawer__cart .orderable-mini-cart-item .orderable-mini-cart-item__remove svg { fill: var(--noir); }
.orderable-drawer .orderable-drawer__cart .orderable-mini-cart-item .orderable-mini-cart-item__remove:hover svg { fill: var(--rouge); opacity: 1; }

.orderable-drawer .orderable-quantity-roller__roller { border-color: var(--noir); }
.orderable-drawer .orderable-quantity-roller__button::before,
.orderable-drawer .orderable-quantity-roller__button::after { background: var(--noir); }
.orderable-drawer .orderable-quantity-roller__button:not(.orderable-button--loading):hover,
.orderable-drawer .orderable-quantity-roller__button:not(.orderable-button--loading):focus { background-color: var(--noir); }
.orderable-drawer .orderable-quantity-roller__button:not(.orderable-button--loading):hover::before,
.orderable-drawer .orderable-quantity-roller__button:not(.orderable-button--loading):hover::after,
.orderable-drawer .orderable-quantity-roller__button:not(.orderable-button--loading):focus::before,
.orderable-drawer .orderable-quantity-roller__button:not(.orderable-button--loading):focus::after { background: var(--papier); }

/* ---------- Pages sans section du thème ----------
   Panier, validation de commande, ou page composée à la main dans l'éditeur :
   un panneau clair, pour que le contenu reste lisible sur le fond noir du site. */

.entry-content:not(:has(> section)) {
  min-height: 60vh;
  padding: 96px var(--marge) 120px;
  background: var(--blanc);
  color: var(--noir);
}

/* ---------- Pages de texte ---------- */

.texte-page {
  min-height: calc(100vh - var(--entete) - 280px);
  padding: 96px var(--marge) 120px;
  background: var(--blanc);
  color: var(--noir);
}
.texte-page > * { max-width: 620px; }
.texte-page .titre-moyen { margin-bottom: 56px; text-align: left; }
.texte-page h2 {
  margin: 44px 0 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.texte-page p { line-height: 21px; }
.texte-page p a { text-decoration: underline; text-underline-offset: 2px; }
.texte-page .wp-block-buttons { margin-top: 44px; }

/* ---------- Plan d'accès (accueil) ----------
   Carte Google Maps, encartée dans le cadre noir comme les autres panneaux,
   et passée en niveaux de gris pour rester dans le noir et blanc du site. */

.plan { padding: 0 var(--cadre) var(--cadre); line-height: 0; }
.plan iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Pied ----------
   Repris du site existant : logo, adresse, horaires, contact, sur fond noir uni. */

.pied {
  padding: 40px 20px 28px;
  background: #000;
  letter-spacing: 0;
  text-align: center;
}

.pied-haut {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

figure.pied-logo { justify-self: center; line-height: 0; }
figure.pied-logo img { width: 70px; height: auto; }

.pied-col p { line-height: 23px; }
.pied-col .pied-titre {
  margin-bottom: 33px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pied-tel a { text-decoration: underline; text-underline-offset: 3px; }
.pied-tel a:hover, .pied-liens a:hover { opacity: .65; }

.pied .wp-block-social-links.reseaux {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.pied .wp-block-social-links.reseaux .wp-social-link {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--papier);
}
.pied .wp-block-social-links.reseaux .wp-social-link a { display: flex; padding: 0; color: inherit; }
.pied .wp-block-social-links.reseaux .wp-social-link svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.pied-bas { margin-top: 60px; }
.pied-liens { margin-top: 8px; font-size: 14px; opacity: .6; }
.pied-liens a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Adaptations ---------- */

@media (max-width: 1180px) {
  .entete { display: flex; gap: 22px; }
  .entete .logo { order: -1; margin-right: auto; }
  .entete-droite { order: 1; }
  .wp-block-navigation.nav { order: 2; }

  .histoire { gap: 64px; padding-right: 20px; }
}

@media (max-width: 820px) {
  :root { --entete: 78px; }
  figure.logo img { height: 50px; }
  .entete-droite { display: none; }
  .wp-block-navigation.nav .nav-commande { display: flex; }

  .hero { padding: 40px 16px; }
  .hero-texte { font-size: 20px; }
  .wp-block-buttons.hero-boutons { width: 100%; }
  .wp-block-button.btn { width: 100%; max-width: 291px; }
  .wp-block-button.btn .wp-block-button__link { height: 64px; }

  .histoire { flex-direction: column; gap: 72px; padding: 84px 20px; min-height: 0; }
  figure.polaroid-grand { width: min(410px, 82vw); }
  .histoire-texte .titre-moyen { margin-bottom: 44px; }

  .ambiance { padding: 72px 20px 84px; }
  .ambiance-tete { padding-bottom: 0; }
  .ambiance .colonne { margin-top: 48px; }
  .ambiance figure.cadre-photo { margin-top: 56px; }

  .plein-cadre-titre { font-size: 30px; right: 18px; }
  .plein-cadre-bas { right: 18px; bottom: 40px; }

  .apercu { grid-template-columns: 1fr; padding: 72px 16px 72px; gap: 56px; }
  .apercu .titre-geant { margin-bottom: 0; padding-right: 0; }
  .apercu-carte { gap: 44px; }
  .apercu-carte .plats { margin-top: 0; }
  .apercu-photos figure { flex: 1; }
  .apercu-photos figure img { width: 100%; height: auto; min-height: 0; aspect-ratio: 261 / 364; }

  .atelier { padding: 64px 20px 84px; }
  .atelier-corps { grid-template-columns: 1fr; justify-items: center; gap: 56px; margin-top: 64px; }
  .atelier-texte { transform: none; width: min(290px, 100%); }

  .duo { grid-template-columns: 1fr; }
  figure.duo-photo { height: 110vw; min-height: 0; }
  .duo-inverse figure.duo-photo { order: -1; }
  .duo-panneau { min-height: 0; padding: 184px 20px 72px; }
  .manuscrit { font-size: 52px; }
  .duo-mot { top: 34px; right: 6%; width: 280px; }
  .duo-inverse .duo-mot { left: 6%; }
  .duo-titre { margin-top: 0; }
  .duo-panneau .colonne { margin: 48px 0 0; }
  .duo-panneau .wp-block-buttons { margin-left: 0; }

  .entry-content > .orderable-main { padding: 72px 20px 0; }
  .entry-content > .orderable-main:not(:has(+ .orderable-main)) { padding-bottom: 84px; }
  .entry-content .orderable-products-list.orderable-products-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 16px; }
  .entry-content:not(:has(> section)) { padding: 72px 20px 84px; }

  .carte { grid-template-columns: 1fr; gap: 72px; padding: 84px 20px; }
  .plat-nom, .plat-prix { font-size: 26px; }
  .carte-titre,
  .entry-content .orderable-category-heading .orderable-category-heading__title { margin-bottom: 32px; font-size: 30px; }
  .formulaire { grid-template-columns: 1fr; padding: 84px 20px; }
  .formulaire-mot { margin-top: 40px; }
  .wp-block-buttons.contact-boutons .wp-block-button { width: 100%; }
  .texte-page { padding: 72px 20px 84px; }

  .plan iframe { height: 360px; }

  .pied { padding: 48px 20px 28px; }
  .pied-haut { grid-template-columns: 1fr; gap: 40px; }
  .pied-col .pied-titre { margin-bottom: 14px; }
  .pied-bas { margin-top: 48px; }
}

/* Téléphone : une ligne par produit, photo à gauche — la carte reste courte. */
@media (max-width: 600px) {
  .entry-content .orderable-products-list.orderable-products-list--grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .entry-content .orderable-products-list__item .orderable-product { flex-direction: row; gap: 16px; }
  .entry-content .orderable-products-list__item .orderable-product__content-wrap { min-width: 0; }
  .entry-content .orderable-products-list__item .orderable-product__hero { width: 112px; flex: none; align-self: flex-start; }
  .entry-content .orderable-products-list__item .orderable-product__content { padding-top: 0; }
  .entry-content .orderable-products-list__item .orderable-product__title,
  .entry-content .orderable-product__actions-price .amount,
  .entry-content .orderable-product__actions-price { font-size: 22px; }
  .entry-content .orderable-products-list__item .orderable-product__actions { flex-wrap: wrap; gap: 10px; padding-top: 14px; }
  .entry-content .orderable-button { height: 40px; padding: 0 14px !important; font-size: 14px; line-height: 40px; }
  .entry-content .orderable-button.orderable-button--out-of-stock { line-height: 38px; }
}

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

/* ==========================================================================
   Propre à WordPress : ce que la maquette n'a pas à connaître.
   ========================================================================== */

/* La barre d'administration ne doit pas recouvrir l'en-tête collant. */
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: 0; } }

/* core/navigation ----------------------------------------------------------
   Le bloc ne passe en panneau mobile qu'en dessous de 600 px. Le design,
   lui, bascule à 1180 px : on avance le seuil. */
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open {
  padding: 8px 0 8px 8px;
  color: inherit;
}
.wp-block-navigation.nav .wp-block-navigation__responsive-container-open svg,
.wp-block-navigation.nav .wp-block-navigation__responsive-container-close svg {
  width: 40px;
  height: 40px;
}

@media (max-width: 1180px) {
  .wp-block-navigation.nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .wp-block-navigation.nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* Le panneau s'ouvre blanc sur blanc sans ceci : le seul endroit du thème
   où !important est justifié (la feuille qui pose le blanc s'imprime après). */
.wp-block-navigation.nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 8px 16px 28px;
  background: var(--noir) url(assets/img/bruit.svg) !important;
  color: var(--blanc) !important;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
  padding-top: 112px;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__container {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.055em;
  text-transform: none;
  white-space: normal;
}
.wp-block-navigation.nav .is-menu-open .wp-block-navigation-item { align-items: flex-start; }
.wp-block-navigation.nav .is-menu-open .wp-block-navigation__responsive-container-close {
  top: 0;
  right: 0;
  color: inherit;
}

/* WooCommerce --------------------------------------------------------------
   Le thème fonctionne sans cette extension. Si elle est installée un jour, ses
   écrans (boutique, fiche produit, compte) gardent ses propres gabarits : on
   leur donne le panneau clair du thème pour qu'ils restent lisibles. */
body.woocommerce main,
body.woocommerce-page main { background: var(--blanc); color: var(--noir); }
