/*
Theme Name: FoodMiam
Theme URI: https://demo-restaurant.ws26.fr
Author: WS26, WebSolutions26
Description: Thème du restaurant fictif WS26 FoodMiam : bistro éditorial chaleureux. Papier crème, encre chocolat, rouge braise, titres serif géants, étiquettes collées de travers, motion sobre.
Version: 1.3
License: GNU General Public License v2 or later
Text Domain: foodmiam
*/

@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/archivo.woff2) format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono.woff2) format('woff2');
}

:root {
  --papier: #F6F0E4;
  --papier-2: #EDE4D2;
  --encre: #241610;
  --encre-2: #5C4A3E;
  --braise: #8F3524;
  --braise-2: #C1643B;
  --miel: #B98A2F;
  --soir: #1C0D0A;
  --soir-papier: #EFE3D6;
  --filet: rgba(36, 22, 16, 0.22);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Archivo', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--braise); text-decoration: none; transition: color 140ms ease, border-color 140ms ease; }
a:hover { color: var(--encre); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 64px; width: 100%; }
.filet { border-top: 1px solid var(--filet); }
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--encre-2);
}
.label-braise { color: var(--braise); }
.label-soir { color: rgba(239, 227, 214, 0.55); }

/* --- Navigation --- */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); }
.nav-logo:hover { color: var(--encre); }
.nav-logo .serif { font-size: 26px; }
.nav-logo em { color: var(--braise); }
.nav-liens { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-left: auto; margin-right: 24px; }
.nav-lien {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--encre);
}
.nav-lien:hover { color: var(--braise); }
.nav-actif { color: var(--braise); border-bottom: 1px solid var(--braise); padding-bottom: 3px; }

/* --- Boutons, liens, étiquettes --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-primaire { background: var(--braise); color: var(--papier); }
.btn-primaire:hover { background: var(--encre); color: var(--papier); }
.btn-ghost { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--papier); }
.btn-soir { background: var(--soir-papier); color: var(--soir); }
.btn-soir:hover { background: var(--braise-2); color: var(--soir); }
.btn-compact { padding: 11px 22px; }

.lien {
  font-weight: 600; font-size: 14px; color: var(--braise);
  border-bottom: 1px solid var(--braise); padding-bottom: 3px;
  display: inline-flex; gap: 8px; align-items: center;
}
.lien:hover { color: var(--encre); border-color: var(--encre); }
.lien-fl { display: inline-block; transition: transform 300ms var(--ease-out); }
.lien:hover .lien-fl { transform: translateX(5px); }
.lien-papier { color: var(--papier); border-color: var(--papier); }

.sticker {
  display: inline-block; background: var(--braise); color: var(--papier);
  font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 4px; transform: rotate(-3deg);
}
.sticker-miel { background: var(--miel); color: var(--encre); transform: rotate(2deg); }

/* --- Lignes de carte --- */
.carte-row { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; }
.carte-nom { font-family: var(--serif); font-size: 28px; transition: color 140ms ease; }
.carte-row:hover .carte-nom { color: var(--braise); }
.carte-pts { flex: 1; border-bottom: 1.5px dotted var(--filet); transform: translateY(-6px); }
.carte-prix { font-family: var(--mono); font-size: 15px; color: var(--braise); white-space: nowrap; }
.carte-note {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--encre-2); padding: 0 0 12px;
}
.rubrique { font-size: 36px; line-height: 1.05; margin: 0 0 8px; }

/* --- Images --- */
.phz { overflow: hidden; border-radius: 6px; border: 1px solid var(--filet); }
.phz-soir { border-color: rgba(239, 227, 214, 0.18); }
.phz > picture { display: contents; }
.im { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms var(--ease-out); }
.phz:hover .im { transform: scale(1.045); }
.ph {
  background: repeating-linear-gradient(45deg, var(--papier-2), var(--papier-2) 10px, var(--papier) 10px, var(--papier) 20px);
  border: 1px solid var(--filet); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.ph-note {
  font-family: var(--mono); font-size: 11px; color: var(--encre-2);
  background: var(--papier); padding: 4px 10px; border: 1px solid var(--filet); border-radius: 4px;
}

/* --- Hero accueil : photo plein cadre, mot-marque posé dessus --- */
.hero { padding: 0 12px 12px; border-bottom: 1px solid var(--filet); }
.hero-scene {
  position: relative; display: flex; flex-direction: column;
  height: calc(100vh - 96px); height: calc(100svh - 96px); min-height: 560px; max-height: 1000px;
  border-radius: 8px; overflow: hidden; background: var(--soir); color: var(--papier);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 13, 10, 0.62) 0%, rgba(28, 13, 10, 0.08) 26%, rgba(28, 13, 10, 0.2) 52%, rgba(28, 13, 10, 0.9) 100%);
}
.hero-haut, .hero-bas, .hero-mot-clip { position: relative; }
.hero-haut {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding: 26px 32px 0;
}
.hero-stickers { display: inline-flex; align-items: center; gap: 16px; }
.hero-bas {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px 32px; padding: 0 32px 8px;
}
.hero-texte { max-width: 420px; }
.hero-texte p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(246, 240, 228, 0.9); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 22px; }
.hero-depuis { font-style: italic; font-size: 20px; color: rgba(246, 240, 228, 0.86); text-shadow: 0 1px 12px rgba(28, 13, 10, 0.6); }
.hero-mot-clip { overflow: hidden; font-size: inherit; line-height: 0.74; margin-bottom: -0.055em; padding-left: 26px; }
.hero-mot {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(84px, 19vw, 290px); line-height: 0.86;
  letter-spacing: -0.015em; white-space: nowrap; display: inline-block; color: var(--papier);
}
.hero-mot em { color: var(--braise-2); }
.hl { display: inline-block; }
.label-papier { color: rgba(246, 240, 228, 0.88); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Titres de pages intérieures --- */
.pageh-clip { overflow: hidden; }
.pageh { font-size: clamp(60px, 10vw, 150px); line-height: 0.92; letter-spacing: -0.015em; }
.pageh-sub { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 36px); color: var(--braise); margin: 14px 0 0; }
.page-entete { border-bottom: 1px solid var(--filet); }
.page-entete-inner { padding: 64px 0; }
.h-titre { font-size: clamp(44px, 6vw, 76px); line-height: 1.0; }

/* --- Bandeau défilant --- */
.mq { background: var(--braise); color: var(--papier); overflow: hidden; padding: 16px 0; }
.mq-track { display: flex; width: max-content; }
.mq-set { display: flex; align-items: center; white-space: nowrap; }
.mq-mot { font-family: var(--serif); font-style: italic; font-size: 22px; padding: 0 28px; }
.mq-lab { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0 28px; }
.mq-dot { font-size: 10px; opacity: 0.65; }

/* --- Sections --- */
.section { padding: 110px 0; }
.section-2 { background: var(--papier-2); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.soir-sec { background: var(--soir); color: var(--soir-papier); overflow: hidden; }
.voix { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.28; }
.cols { display: flex; gap: 32px; flex-wrap: wrap; }
.cols-large { gap: 72px; }
.col-fixe { position: sticky; top: 44px; align-self: flex-start; }

/* --- Cartes actus --- */
.actu-card {
  flex: 1; min-width: 280px; border: 1px solid var(--filet); border-radius: 8px;
  overflow: hidden; background: var(--papier); display: flex; flex-direction: column;
}
.actu-card-media { height: 170px; overflow: hidden; border-bottom: 1px solid var(--filet); }
.actu-card-media .im { height: 100%; }
.actu-card:hover .im { transform: scale(1.045); }
.actu-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.actu-titre { font-family: var(--serif); font-size: 26px; }
.actu-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--encre-2); }
.actu-braise { background: var(--braise); color: var(--papier); border-color: var(--braise); }
.actu-braise p { color: rgba(246, 240, 228, 0.85); }
.actu-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* --- Formulaire --- */
.champ { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 220px; }
.inp {
  font-family: var(--sans); font-size: 16px; color: var(--encre);
  background: transparent; border: none; border-bottom: 1.5px dotted var(--filet);
  padding: 10px 2px; outline: none; border-radius: 0;
  transition: border-color 140ms ease; width: 100%;
}
.inp:focus { border-bottom: 1.5px solid var(--braise); }
.inp-zone { resize: vertical; min-height: 110px; line-height: 1.6; }
.coche { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--encre-2); cursor: pointer; }
.coche input { accent-color: var(--braise); width: 16px; height: 16px; }

/* --- Faux plan d'accès --- */
.plan {
  position: relative; background: var(--papier-2);
  border: 1px solid var(--filet); border-radius: 6px; overflow: hidden;
}
.plan-rue { position: absolute; background: var(--papier); }
.plan-rue-h { left: 0; right: 0; height: 12px; }
.plan-rue-v { top: 0; bottom: 0; width: 12px; }
.plan-riviere {
  position: absolute; top: -20%; right: -14%; width: 26%; height: 150%;
  background: rgba(185, 138, 47, 0.16); transform: rotate(14deg);
}
.plan-lab {
  position: absolute; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--encre-2); white-space: nowrap;
}
.plan-lab-riviere {
  top: 38%; right: 4%; transform: rotate(76deg);
  font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: 0;
}
.plan-bloc { position: absolute; background: var(--papier); border: 1px solid var(--filet); border-radius: 3px; }
.plan-ici {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.06em; color: var(--braise);
}
.plan-point { width: 10px; height: 10px; border-radius: 50%; background: var(--braise); flex: none; }
.plan-note {
  position: absolute; right: 10px; bottom: 8px; font-size: 9px;
  color: var(--encre-2); opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .plan-point { animation: planPouls 2.4s ease-out infinite; }
}
@keyframes planPouls {
  0% { box-shadow: 0 0 0 0 rgba(143, 53, 36, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(143, 53, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 53, 36, 0); }
}

/* --- Réservation --- */
.chips {
  display: grid; grid-template-columns: repeat(4, minmax(88px, 110px));
  gap: 12px;
}
.chip {
  font-family: var(--mono); font-size: 14px; color: var(--encre);
  background: transparent; border: 1px solid var(--filet); border-radius: 4px;
  padding: 13px 0; text-align: center; cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.chip:hover { border-color: var(--encre); }
.chip-on { background: var(--braise); color: var(--papier); border-color: var(--braise); }
.chip-off {
  cursor: not-allowed; color: var(--encre-2);
  text-decoration: line-through; text-decoration-color: var(--braise);
  text-decoration-thickness: 1.5px;
}
.chip-off:hover { border-color: var(--filet); }
@media (max-width: 560px) { .chips { grid-template-columns: repeat(2, 1fr); } }
.resa-etape { font-family: var(--mono); font-size: 12px; color: var(--braise); }
.tampon {
  width: 150px; height: 150px; border: 1.5px solid var(--braise); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; color: var(--braise); transform: rotate(-8deg); flex: none;
}
.tampon .serif { font-size: 20px; line-height: 1.05; }
.tampon .mono { font-size: 9px; letter-spacing: 0.14em; }
.cache { display: none !important; }

/* --- Vapeur de cocotte --- */
.vap-box { display: flex; gap: 7px; align-items: flex-end; height: 30px; justify-content: center; }
.vap { width: 2px; height: 22px; border-radius: 2px; background: rgba(239, 227, 214, 0.32); }

/* --- Footer --- */
.foot-grid { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding: 96px 0 72px; }
.info-col { display: flex; flex-direction: column; gap: 8px; }
.foot-lien { font-size: 13px; color: rgba(239, 227, 214, 0.75); }
.foot-lien:hover { color: var(--soir-papier); }
.foot-legal { border-top: 1px solid rgba(239, 227, 214, 0.15); }
.foot-legal-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; flex-wrap: wrap; gap: 10px; }
.foot-legal .mono { font-size: 11px; color: rgba(239, 227, 214, 0.72); }
.foot-legal .foot-lien { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal .foot-lien:hover { color: var(--soir-papier); }
.foot-mot { display: block; width: 100%; height: auto; }
.foot-mot text { font-family: var(--serif); font-size: 250px; letter-spacing: -0.015em; fill: rgba(239, 227, 214, 0.14); }

/* --- Intro animée (accueil) --- */
.intro {
  position: fixed; inset: 0; z-index: 90; background: var(--braise);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; cursor: pointer;
  transition: transform 900ms var(--ease-out), opacity 600ms ease;
}
.intro.out { transform: translateY(-101%); opacity: 0.9; }
.intro.off { display: none; }
.i-svg { display: block; overflow: visible; }
.i-part { transform-box: fill-box; transform-origin: 50% 50%; fill: var(--papier); }
.i-vapx { stroke: var(--papier); }
.i-lid { transform-origin: 50% 100%; }
.i-mot {
  font-family: var(--serif); font-size: clamp(44px, 7vw, 72px); line-height: 0.9;
  color: var(--papier); letter-spacing: -0.015em;
}
.i-mot em { color: var(--papier); }
.i-clip { overflow: hidden; line-height: 0.9; }
.i-l { display: inline-block; }
.i-filet { width: min(260px, 44vw); height: 1px; background: rgba(246, 240, 228, 0.5); }

/* --- Motion (gaté par prefers-reduced-motion) --- */
@media (prefers-reduced-motion: no-preference) {
  .hl { transform: translateY(115%); transition: transform 950ms var(--ease-out); }
  .pret .hl { transform: none; }
  .hero-img { transform: scale(1.06); transition: transform 2600ms var(--ease-out); }
  .pret .hero-img { transform: none; }
  .fade { opacity: 0; transform: translateY(-10px); transition: opacity 700ms ease, transform 700ms var(--ease-out); transition-delay: 650ms; }
  .pret .fade { opacity: 1; transform: none; }
  .rv { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 800ms var(--ease-out); }
  .rv.in { opacity: 1; transform: none; }
  .d1 { transition-delay: 90ms; }
  .d2 { transition-delay: 180ms; }
  .d3 { transition-delay: 270ms; }
  .mq-track { animation: mq 30s linear infinite; }
  .vap { animation: vap 2.8s ease-in-out infinite; }
  .v2 { animation-delay: 0.9s; }
  .v3 { animation-delay: 1.7s; }
  .i-body { animation: iBody 620ms var(--ease-out) both; }
  .i-earL { animation: iEarL 520ms var(--ease-out) 300ms both; }
  .i-earR { animation: iEarR 520ms var(--ease-out) 300ms both; }
  .i-lid { animation: iLid 700ms var(--ease-out) 430ms both; }
  .i-knob { animation: iKnob 520ms var(--ease-out) 740ms both; }
  .i-vap { opacity: 0; animation: iVap 2.6s ease-in-out 1150ms infinite; }
  .i-v2 { animation-delay: 1.9s; }
  .i-v3 { animation-delay: 2.7s; }
  .i-l { transform: translateY(115%); animation: iMot 800ms var(--ease-out) both; animation-delay: 1150ms; }
  .i-filet { transform: scaleX(0); animation: iFilet 900ms var(--ease-out) 1560ms both; }
}
@keyframes iBody { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes iEarL { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes iEarR { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes iLid { from { opacity: 0; transform: translateY(-30px) rotate(-7deg); } to { opacity: 1; transform: none; } }
@keyframes iKnob { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes iVap { 0% { opacity: 0; transform: translateY(8px) scaleY(0.6); } 35% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-18px) scaleY(1.05); } }
@keyframes iMot { to { transform: none; } }
@keyframes iFilet { to { transform: scaleX(1); } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes vap {
  0% { transform: translateY(8px) scaleY(0.6); opacity: 0; }
  35% { opacity: 0.85; }
  100% { transform: translateY(-16px) scaleY(1.05); opacity: 0; }
}

/* --- Contenu WordPress générique (articles, pages simples) --- */
.contenu-wp { max-width: 760px; }
.contenu-wp p { font-size: 16px; line-height: 1.7; }
.contenu-wp h2 { font-size: 36px; margin: 40px 0 12px; }

@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
  .hero-haut, .hero-bas { padding-left: 20px; padding-right: 20px; }
  .hero-mot-clip { padding-left: 16px; }
  .hero-scene { min-height: 620px; }
  .col-fixe { position: static; }
  .site-nav { flex-wrap: wrap; gap: 14px 12px; padding: 16px 0 14px; }
  .nav-resa { margin-left: auto; }
  .nav-liens { order: 3; width: 100%; margin: 0; gap: 8px; flex-wrap: nowrap; justify-content: space-between; }
  .nav-lien { font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; }
  .label, .foot-legal .mono, .plan-lab { font-size: 12px; }
}
