/* La Fontaine d'Italie v2 · direction « Notte » · styles communs. */
@font-face { font-family: 'Bodoni Moda'; src: url('../fonts/bodoni-moda.woff2') format('woff2-variations'), url('../fonts/bodoni-moda.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('../fonts/bodoni-moda-italic.woff2') format('woff2-variations'), url('../fonts/bodoni-moda-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans.woff2') format('woff2-variations'), url('../fonts/instrument-sans.woff2') format('woff2'); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root {
  --nuit: #0B170D;      /* vert de marque #1A3A1E assombri : fond */
  --nuit-2: #0E1E10;
  --vert: #1A3A1E;
  --or: #C8A951;
  --ivoire: #E8DCBE;
  --creme: #F7F2E6;
  --gris: rgba(232, 220, 190, .66);
  --filet: rgba(200, 169, 81, .26);
  --serif: 'Bodoni Moda', Didot, Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --g: max(20px, env(safe-area-inset-left, 0px));
  --gd: max(20px, env(safe-area-inset-right, 0px));
  --nav-h: 76px;
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --g: 48px; --gd: 48px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--ivoire); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
.evitement { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--or); color: var(--nuit); border-radius: 999px; }
.evitement:focus { top: 12px; }

/* Typographie commune */
.surtitre { margin: 0; font: 600 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--or); }
.grand { margin: 0; font: 500 clamp(44px, 7.4vw, 112px)/.95 var(--serif); font-variation-settings: 'opsz' 96; letter-spacing: -.012em; color: var(--creme); }
.grand em, .hero-titre em { font-style: italic; color: var(--or); }
.discret { color: var(--gris); }
.petit { font-size: 14px; color: var(--gris); }
.lien-fleche { display: inline-flex; align-items: center; gap: 10px; color: var(--or); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
.lien-fleche::after { content: "→"; transition: transform .35s var(--ease); }
.lien-fleche:focus-visible { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) { .lien-fleche:hover { background-size: 100% 1px; } .lien-fleche:hover::after { transform: translateX(4px); } }

/* Grain de pellicule (très léger) */
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
/* Carte : lecture d'abord, grain fixe (pas d'animation). */
html:has(.carte-page) .grain { animation: none; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,2%)} 80%{transform:translate(5%,5%)} 100%{transform:translate(0,0)} }

/* Rideau d'ouverture (accueil) et volet de transition */
/* Rideau en CSS pur (aucune attente du JavaScript) : l'état de base est l'état final, les animations partent
   de l'état fermé. Sans animation (mouvement réduit), la page est donc directement ouverte. */
.rideau { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; place-items: center; visibility: hidden; animation: rideau-present 1.9s backwards; }
@keyframes rideau-present { from, to { visibility: visible; } }
.rideau::before, .rideau::after { content: ""; position: absolute; left: 0; right: 0; height: 50.5%; background: #060D07; animation: 1.2s var(--ease) .7s backwards; }
.rideau::before { top: 0; transform: translateY(-101%); animation-name: rideau-haut; }
.rideau::after { bottom: 0; transform: translateY(101%); animation-name: rideau-bas; }
@keyframes rideau-haut { from { transform: none; } }
@keyframes rideau-bas { from { transform: none; } }
.rideau .ligne { position: absolute; left: 50%; top: 50%; z-index: 1; width: min(60vw, 560px); height: 1px; background: var(--or); opacity: 0; transform: translate(-50%, 2.6em); animation: rideau-ligne 1s var(--ease) backwards; }
@keyframes rideau-ligne { 0% { opacity: 1; transform: translate(-50%, 2.6em) scaleX(0); } 60% { opacity: 1; transform: translate(-50%, 2.6em) scaleX(1); } 75% { opacity: 1; } }
.rideau .marque { position: relative; z-index: 1; width: min(76vw, 620px); opacity: 0; animation: rideau-marque 1s var(--ease) backwards; }
.rideau .marque svg { display: block; width: 100%; height: auto; }
@keyframes rideau-marque { 0% { opacity: 0; transform: translateY(14px); } 30%, 72% { opacity: 1; transform: none; } }
.volet { position: fixed; inset: 0; z-index: 90; background: var(--or); transform: scaleY(0); pointer-events: none; }
.volet.part { animation: volet .9s var(--ease) forwards; }
@keyframes volet { 0%{transform:scaleY(0);transform-origin:bottom} 45%{transform:scaleY(1);transform-origin:bottom} 55%{transform:scaleY(1);transform-origin:top} 100%{transform:scaleY(0);transform-origin:top} }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gd) 16px var(--g); transition: background .4s ease, padding .4s ease, transform .5s var(--ease); }
.nav.plein { background: rgba(11, 23, 13, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 10px; box-shadow: 0 1px 0 var(--filet); }
.logo img, .logo svg { display: block; height: 26px; width: auto; }
@media (min-width: 900px) { .logo img, .logo svg { height: 30px; } }
.liens { display: none; gap: 30px; font-size: 14.5px; letter-spacing: .02em; }
.liens a { position: relative; padding: 8px 0; }
.liens a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.liens a:hover::after, .liens a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; background: var(--or); color: var(--nuit); transition: transform .2s var(--ease), background-color .3s ease, box-shadow .3s ease; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--creme); transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn.ligne { background: transparent; color: var(--ivoire); box-shadow: inset 0 0 0 1px rgba(232, 220, 190, .38); }
@media (hover: hover) and (pointer: fine) { .btn.ligne:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--or); color: var(--creme); } }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.menu-btn { display: inline-flex; flex: none; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(232, 220, 190, .34); cursor: pointer; transition: border-color .3s ease, transform .16s var(--ease); }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { border-color: var(--or); } }
.menu-btn:active { transform: scale(.94); }
.nav .btn.haut { display: none; }
@media (min-width: 960px) { .liens { display: flex; } .nav .menu-btn { display: none; } .nav .btn.haut { display: inline-flex; } }

.voile { position: fixed; inset: 0; z-index: 70; background: var(--nuit); display: grid; align-content: center; gap: 28px; padding: 0 var(--gd) 0 var(--g); clip-path: inset(0 0 100% 0); transition: clip-path .34s cubic-bezier(.32, .72, 0, 1); }
.voile[hidden] { display: grid; visibility: hidden; }
.voile.ouvert { clip-path: inset(0); visibility: visible; transition-duration: .55s; }
.voile nav a, .voile .voile-infos { transform: translateY(14px); opacity: 0; transition: transform .45s var(--ease), opacity .3s ease; }
.voile.ouvert nav a, .voile.ouvert .voile-infos { transform: none; opacity: 1; }
.voile.ouvert nav a:nth-child(1) { transition-delay: .12s; } .voile.ouvert nav a:nth-child(2) { transition-delay: .16s; } .voile.ouvert nav a:nth-child(3) { transition-delay: .2s; } .voile.ouvert nav a:nth-child(4) { transition-delay: .24s; } .voile.ouvert nav a:nth-child(5) { transition-delay: .28s; } .voile.ouvert .voile-infos { transition-delay: .32s; }
.voile nav { display: grid; }
.voile nav a { font: italic 500 clamp(40px, 11vw, 68px)/1.15 var(--serif); color: var(--creme); }
.voile nav a:last-child { color: var(--or); }
.voile .voile-infos { margin: 0; color: var(--gris); font-size: 15px; }
.voile .fermer { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: var(--gd); }

.barre { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 12px var(--gd) calc(12px + env(safe-area-inset-bottom, 0px)) var(--g); background: linear-gradient(to top, rgba(11, 23, 13, .96), rgba(11, 23, 13, .8)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.barre.barre-trois { grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.barre .btn { padding-inline: 10px; }
@media (min-width: 960px) { .barre { display: none; } }
/* Clavier du téléphone ouvert : la barre fixe du bas disparaît pour ne pas masquer le champ en cours de saisie,
   et le champ actif garde de la marge quand le navigateur le fait défiler. */
body:has(:is(input:not([type=radio]):not([type=checkbox]), textarea, select):focus) .barre, html.saisie .barre { display: none; }
:is(input, textarea, select) { scroll-margin-block: 96px 120px; }

/* Statut ouvert / fermé */
.statut { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.statut:empty { display: none; }
.statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--or); animation: pouls 2.4s infinite; flex: none; }
.statut.ferme::before { background: #9a8f78; animation: none; }
@keyframes pouls { 0%{box-shadow:0 0 0 0 rgba(200,169,81,.55)} 70%{box-shadow:0 0 0 12px rgba(200,169,81,0)} 100%{box-shadow:0 0 0 0 rgba(200,169,81,0)} }

/* Formulaire */
.formulaire .champs { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
@media (min-width: 640px) { .formulaire .champs { grid-template-columns: 1fr 1fr; } .formulaire .large { grid-column: span 2; } }
.champ { margin: 0; display: grid; gap: 6px; }
.champ label { font-size: 13px; letter-spacing: .04em; color: var(--gris); }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 50px; font-size: max(16px, 1rem);   /* 16 px minimum : pas de zoom automatique sur iPhone */ padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(232, 220, 190, .24); background: rgba(232, 220, 190, .05); transition: border-color .25s ease, background-color .25s ease; }
.champ textarea { min-height: 130px; resize: vertical; }
.champ select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--or) 50%), linear-gradient(135deg, var(--or) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.champ select option { background: var(--nuit); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--or); background-color: rgba(232, 220, 190, .08); }
.champ [aria-invalid="true"] { border-color: #d98b6c; }
.erreur { min-height: 0; font-size: 13px; color: #e7a184; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.retour { margin: 0; font-size: 15px; }
.retour.ok { color: var(--or); }
.retour.ko { color: #e7a184; }

/* Pied de page */
.pied { padding: 56px var(--gd) calc(104px + env(safe-area-inset-bottom, 0px)) var(--g); border-top: 1px solid var(--filet); background: var(--nuit); display: grid; gap: 28px; }
@media (min-width: 960px) { .pied { padding-bottom: 32px; } }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.logo-pied img { height: 34px; width: auto; }
.reseaux { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.reseaux a, .reseaux-ligne a { color: var(--ivoire); background: linear-gradient(var(--or), var(--or)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s ease; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .reseaux a:hover, .reseaux-ligne a:hover { color: var(--creme); background-size: 100% 1px; } }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 13.5px; color: var(--gris); }
.pied-bas a { color: var(--ivoire); text-decoration: underline; text-decoration-color: var(--filet); text-underline-offset: 3px; }

/* Pages simples (CGU, 404, secours) */
.page-simple { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 64px) var(--gd) 96px var(--g); }
.page-simple h1 { font: 500 clamp(40px, 6vw, 80px)/1 var(--serif); color: var(--creme); margin: 0 0 28px; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
/* Zones tactiles d'au moins 44 × 44 px (logo, navigation, liens fléchés, réseaux, pied de page), sans changer l'aspect. */
.logo, .logo-pied, .liens a, .lien-fleche, .reseaux a, .reseaux-ligne a, .pied-bas a, .pied-bas .lien-pied, .sources a, .lien-tel, .cgu-retour a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-bas a, .pied-bas .lien-pied { min-width: 44px; justify-content: center; }
/* Bandeau de consentement (désactivé par défaut, voir inc/consentement.php) */
.consentement { position: fixed; z-index: 75; left: var(--g); right: var(--gd); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: 560px; display: grid; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--nuit-2); border: 1px solid var(--filet); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
@media (min-width: 960px) { .consentement { bottom: 24px; } }
.consentement[hidden] { display: none; }
.consentement p { margin: 0; font-size: 15px; }
.consentement a { color: var(--creme); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 4px; }
.consentement-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mention-rgpd { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--gris); max-width: 70ch; }
.mention-rgpd a { color: var(--ivoire); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }
.lien-pied { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* Surfaces du navigateur aux couleurs de la maison */
::selection { background: rgba(200, 169, 81, .85); color: var(--nuit); }
html { scrollbar-color: rgba(200, 169, 81, .45) var(--nuit); accent-color: var(--or); -webkit-tap-highlight-color: transparent; }
input, textarea, select { caret-color: var(--or); }
a, button, select, label { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-delay: 0s !important; }
  .voile nav a, .voile .voile-infos { transform: none; }
  .rideau, .grain { display: none; }
}

/* Correctifs iPhone du 17 nov. 2026 : le champ date debordait dans Safari ; la barre du bas est retiree des pages reservation et annulation. */
@media (max-width: 979.98px) { .resa-grille { grid-template-columns: minmax(0, 1fr); } }
.champ, .resa-form, .resa-ligne > * { min-width: 0; }
.champ input, .champ select, .champ textarea { box-sizing: border-box; max-width: 100%; min-width: 0; }
.champ input[type="date"] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.champ input[type="date"]::-webkit-date-and-time-value { text-align: left; }
body:has(.resa-form) .barre, body:has(.resa-ref) .barre { display: none; }
/* iPhone : le grain plein ecran depassait la largeur et permettait de faire defiler la page sur le cote. */
html { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 959.98px) { .grain { inset: 0; animation: none; } }
/* Menu deplie : boutons Appeler et Instagram avec icone. */
.voile .voile-liens { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transition: opacity .3s ease .3s; }
.voile.ouvert .voile-liens { opacity: 1; }
.voile .voile-lien { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--filet); border-radius: 999px; color: var(--creme); font-size: 15px; }
.voile .voile-lien svg { color: var(--or); flex: none; }
/* Statut : pastille verte quand le restaurant est ouvert. */
.statut:not(.ferme)::before { background: #4fc07a; box-shadow: 0 0 0 0 rgba(79, 192, 122, .55); animation: pouls-vert 2.4s infinite; }
@keyframes pouls-vert { 0% { box-shadow: 0 0 0 0 rgba(79, 192, 122, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(79, 192, 122, 0); } }
