/* Djerba Hood : nuit bleu majorelle, chaux, paille et lumière tressée */
:root {
  --nuit: #0A1838;
  --nuit-2: #12265A;
  --majorelle: #1B3591;
  --majorelle-vif: #2F55D4;
  --chaux: #F6F1E8;
  --chaux-2: #ECE4D4;
  --paille: #E2BE74;
  --paille-fonce: #8A6420;
  --encre: #0F1730;
  --gris: #4B5470;
  --script: "Kaushan Script", cursive;
  --tete: "Syne", system-ui, sans-serif;
  --corps: "Hanken Grotesk", system-ui, sans-serif;
  --hh: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--nuit); color: var(--chaux);
  font: 400 17px/1.65 var(--corps); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h2 { font: 800 clamp(30px, 4.6vw, 62px)/1.02 var(--tete); letter-spacing: -.02em; text-wrap: balance; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--paille); color: var(--encre); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--paille); outline-offset: 3px; }
.sur { font: 700 13px/1 var(--tete); letter-spacing: .22em; text-transform: uppercase; color: var(--majorelle); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.sur::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.sur-clair { color: var(--paille); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; font: 700 15px/1 var(--tete); letter-spacing: .03em; text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-paille { background: var(--paille); color: var(--encre); }
.btn-paille:hover { background: #F0D08E; }
.btn-ligne { border: 2px solid var(--chaux); color: var(--chaux); }
.btn-ligne:hover { background: var(--chaux); color: var(--encre); }
.btn-bleu { background: var(--majorelle); color: #fff; }
.btn-bleu:hover { background: var(--nuit-2); }
.btn-ligne-bleu { border: 2px solid var(--majorelle); color: var(--majorelle); }
.btn-ligne-bleu:hover { background: var(--majorelle); color: #fff; }

/* En-tête */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hh);
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 4vw, 48px);
  transition: background .35s, box-shadow .35s;
}
.site-header.scrolled { background: rgba(10, 24, 56, .92); box-shadow: 0 1px 0 rgba(226, 190, 116, .25); }
.logo { font: 400 30px/1 var(--script); color: #fff; text-decoration: none; text-shadow: 0 0 18px rgba(170, 200, 255, .55); }
.site-header nav { margin-left: auto; }
.site-header ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { font: 600 14px/1 var(--tete); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--paille); }
.h-tel { font: 700 14px/1 var(--tete); text-decoration: none; padding: 12px 18px; border: 2px solid var(--paille); border-radius: 999px; color: var(--paille); }

/* 1. Entrée */
.entree { position: relative; }
.e-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #050c1f; }
.motion .e-stage::before { content: ""; position: absolute; inset: -40px; background: url(../images/entree-facade.webp) center 40% / cover; filter: blur(28px) brightness(.45) saturate(1.2); }
.e-facade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; will-change: transform; }
.e-salle { position: absolute; inset: 0; display: none; }
.e-salle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.e-nuit { position: absolute; inset: 0; background: #050c1f; opacity: 0; pointer-events: none; }
.e-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 31, .55) 0%, rgba(5, 12, 31, .15) 40%, rgba(5, 12, 31, .85) 100%); }
.e-titre { position: absolute; left: 0; right: 0; bottom: clamp(70px, 10vh, 120px); padding: 0 clamp(18px, 5vw, 64px); text-align: center; }
.e-sur { font: 700 14px/1.2 var(--tete); letter-spacing: .3em; text-transform: uppercase; color: var(--paille); margin: 0 0 10px; }
h1 { font: 400 clamp(64px, 12vw, 180px)/.95 var(--script); color: #fff; text-shadow: 0 0 30px rgba(140, 180, 255, .7), 0 0 80px rgba(60, 100, 220, .6); }
.e-adr { margin: 14px 0 22px; font-weight: 500; color: var(--chaux); }
.e-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
.e-hint { display: none; }
.motion .e-salle { display: block; clip-path: inset(50% 50% 50% 50%); }
.motion .e-titre > * { opacity: 0; }
.motion .e-voile { opacity: 0; }
.motion .e-hint {
  display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; left: 0; right: 0; bottom: 30px; margin: 0;
  font: 700 13px/1 var(--tete); letter-spacing: .25em; text-transform: uppercase; color: var(--chaux); text-shadow: 0 1px 8px #000;
}
.e-hint i { width: 2px; height: 42px; background: linear-gradient(var(--paille), transparent); animation: tombe 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes tombe { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 2. La maison */
.maison {
  background: var(--chaux); color: var(--encre);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center;
  padding: clamp(80px, 12vw, 160px) clamp(18px, 6vw, 90px);
}
.maison h2 { color: var(--majorelle); margin-bottom: 28px; }
.maison p { max-width: 58ch; color: #262E48; }
.maison-mots { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.maison-mots li { font: 700 15px/1 var(--tete); padding: 12px 18px; border-radius: 999px; background: var(--majorelle); color: #fff; }
.maison-neon { margin: 0; }
.neon-cadre { position: relative; border-radius: 220px 220px 18px 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(10, 24, 56, .25); }
.neon-cadre img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 30%; }
.neon-halo { position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 30%, rgba(255, 210, 130, .35), transparent 70%); mix-blend-mode: screen; pointer-events: none; }
.maison-neon figcaption { margin-top: 12px; font-size: 14px; color: var(--gris); }

/* split */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.w > span { display: inline-block; }

/* 3. La salle */
.salle { background: var(--nuit); padding: clamp(80px, 12vw, 150px) clamp(18px, 5vw, 70px); position: relative; overflow: hidden; }
.salle::before {
  content: ""; position: absolute; left: 50%; top: -30vw; width: 90vw; height: 90vw; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg, rgba(226, 190, 116, .07) 0 6deg, transparent 6deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 62%); mask: radial-gradient(circle, #000 0 30%, transparent 62%);
  pointer-events: none;
}
.salle-head { position: relative; max-width: 760px; margin: 0 auto clamp(48px, 7vw, 90px); text-align: center; }
.salle-head .sur { justify-content: center; }
.salle-head h2 { color: #fff; margin-bottom: 20px; }
.salle-head p { color: #D9DEEC; }
.arches { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 34px); max-width: 1240px; margin: 0 auto; align-items: end; }
.arche { margin: 0; border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--nuit-2); box-shadow: 0 0 0 6px rgba(226, 190, 116, .14), 0 0 60px rgba(226, 190, 116, .18); }
.arche img { width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; }
.a2 { transform: translateY(-40px); }

/* 4. La carte */
.carte { position: relative; color: var(--encre); padding: clamp(80px, 11vw, 140px) clamp(14px, 4vw, 60px); overflow: hidden; }
.carte-fond { position: absolute; inset: -10% 0; opacity: .85; }
.carte-fond svg { display: block; }
.carte-in { position: relative; max-width: 1080px; margin: 0 auto; background: var(--chaux); border-radius: 28px; padding: clamp(28px, 5vw, 64px); box-shadow: 0 0 0 10px #fff, 0 40px 80px rgba(10, 24, 56, .25); }
.carte-head h2 { color: var(--majorelle); margin-bottom: 18px; }
.carte-intro { color: var(--gris); max-width: 62ch; margin: 0 0 30px; }
.onglets { display: none; }
.cats { display: grid; gap: 44px; }
.cat h3 { font: 800 24px/1.1 var(--tete); color: var(--majorelle); padding-bottom: 12px; border-bottom: 2px dashed rgba(27, 53, 145, .3); margin-bottom: 8px; }
.cat-desc { color: var(--gris); font-size: 15px; margin: 4px 0 6px; }
.plats { list-style: none; margin: 0; padding: 0; }
.plat { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(15, 23, 48, .1); }
.p-nom { margin: 0; font: 700 17px/1.3 var(--tete); color: var(--encre); }
.p-desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--gris); }
.p-prix { margin: 0; font: 700 16px/1 var(--tete); color: var(--majorelle); white-space: nowrap; }
.p-add { display: none; }
.js .p-add {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--majorelle);
  background: #fff; color: var(--majorelle); font: 700 22px/1 var(--tete); cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.p-add:hover { background: var(--majorelle); color: #fff; transform: rotate(90deg); }
.p-add.ok { background: var(--paille); border-color: var(--paille-fonce); color: var(--encre); }
.carte-source { margin: 34px 0 0; font-size: 14px; color: var(--gris); padding: 16px 18px; background: var(--chaux-2); border-radius: 14px; }
.carte-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* Carte en onglets (avec JS) */
.js .onglets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.onglet {
  border: 2px solid var(--majorelle); background: transparent; color: var(--majorelle); border-radius: 999px;
  padding: 10px 16px; font: 700 14px/1 var(--tete); cursor: pointer; transition: background .2s, color .2s;
}
.onglet[aria-selected="true"], .onglet:hover { background: var(--majorelle); color: #fff; }
.js .cats { display: block; min-height: 360px; }
.js .cat[hidden] { display: none; }
.js .cat h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 5. Assiettes */
.assiettes { background: var(--nuit-2); padding: clamp(80px, 11vw, 140px) clamp(16px, 5vw, 70px); }
.ass-head { max-width: 720px; margin-bottom: 50px; }
.ass-head h2 { color: #fff; margin-bottom: 18px; }
.ass-head p { color: #D9DEEC; }
.table-dressee { list-style: none; margin: 0; padding: 0; columns: 5 180px; column-gap: 18px; }
.table-dressee li { break-inside: avoid; margin-bottom: 20px; }
.ass { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 18px; overflow: hidden; cursor: zoom-in; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.ass img { width: 100%; transition: transform .6s; }
.ass:hover img { transform: scale(1.05); }

/* 6. Terrasse */
.terrasse { background: var(--nuit); }
.ter-stage { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(70px, 9vw, 110px) clamp(16px, 5vw, 70px); }
.ter-head { margin-bottom: 30px; max-width: 820px; }
.ter-head h2 { color: #fff; }
.ter-vues { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 68vh; width: 100%; }
.ter-vues figure { margin: 0; position: absolute; inset: 0; }
.ter-vues img { width: 100%; height: 100%; object-fit: cover; }
.ter-nuit img { object-position: 50% 72%; }
.ter-nuit { clip-path: inset(0 0 0 50%); }
.ter-label { position: absolute; bottom: 18px; font: 700 13px/1 var(--tete); letter-spacing: .2em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; background: rgba(10, 24, 56, .85); color: #fff; }
.l-jour { left: 18px; }
.l-nuit { right: 18px; color: var(--paille); }

/* 7. Note */
.note { background: var(--chaux); color: var(--encre); display: flex; align-items: center; justify-content: center; gap: clamp(30px, 6vw, 90px); padding: clamp(80px, 10vw, 130px) clamp(18px, 5vw, 70px); overflow: hidden; flex-wrap: wrap; }
.note-assiette { width: clamp(220px, 30vw, 380px); aspect-ratio: 1; filter: drop-shadow(0 30px 40px rgba(10, 24, 56, .25)); }
.note-rond { width: 100%; height: 100%; }
.note-chiffre { margin: 0; font: 800 clamp(80px, 12vw, 160px)/.9 var(--tete); color: var(--majorelle); letter-spacing: -.04em; }
.sur5 { font-size: .3em; letter-spacing: 0; color: var(--gris); }
.note-sous { margin: 8px 0 10px; font: 700 22px/1.2 var(--tete); }
.note-source { margin: 0 0 24px; color: var(--gris); font-size: 15px; max-width: 42ch; }

/* 8. Infos */
.infos { background: var(--nuit); padding: clamp(80px, 10vw, 130px) clamp(18px, 5vw, 70px) clamp(90px, 10vw, 130px); }
.infos-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.infos h2 { color: #fff; margin-bottom: 26px; }
address { font-style: normal; font-size: 19px; line-height: 1.6; color: #E6E9F3; }
.infos-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.infos-reseaux { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.infos-reseaux a { color: var(--paille); font-weight: 600; }
.infos h3 { font: 800 26px/1 var(--tete); color: var(--paille); margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 13px 14px; border-bottom: 1px solid rgba(246, 241, 232, .14); font-weight: 500; }
.hours td { text-align: right; color: #D9DEEC; }
.hours tr.today { background: var(--paille); color: var(--encre); }
.hours tr.today td { color: var(--encre); font-weight: 700; }
.hours tr.today th::after { content: " · aujourd'hui"; font-weight: 600; font-size: 14px; }
.hours-src { font-size: 14px; color: #B9C0D6; margin-top: 14px; }

/* Pied de page */
.site-footer { background: #050c1f; color: #C9CFE0; padding: 50px clamp(18px, 5vw, 70px) 110px; text-align: center; font-size: 14.5px; }
.site-footer p { max-width: 80ch; margin: 0 auto 10px; }
.f-logo { font: 400 40px/1 var(--script); color: #fff; margin-bottom: 18px !important; }
.f-mention { color: var(--paille); }
.f-credits { font-size: 13px; color: #A9B1C8; }

/* Assiette flottante et note de commande */
.table-btn { display: none; }
.js .table-btn {
  display: block; position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 86px; height: 86px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); transition: transform .3s;
}
.table-btn:hover { transform: scale(1.06); }
.table-assiette { width: 100%; height: 100%; }
.table-compte { position: absolute; inset: 0; display: grid; place-items: center; font: 800 24px/1 var(--tete); color: var(--majorelle); }
.commande {
  position: fixed; right: 22px; bottom: 120px; z-index: 61; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 160px); overflow: auto;
  background: var(--chaux); color: var(--encre); border-radius: 22px; padding: 22px; box-shadow: 0 0 0 6px #fff, 0 30px 70px rgba(0, 0, 0, .45);
}
.commande[hidden] { display: none; }
.cmd-tete { display: flex; justify-content: space-between; align-items: center; }
.cmd-titre { margin: 0; font: 400 30px/1 var(--script); color: var(--majorelle); }
.cmd-fermer { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chaux-2); font-size: 24px; cursor: pointer; color: var(--encre); }
.cmd-liste { list-style: none; margin: 14px 0 0; padding: 0; }
.cmd-liste li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px dashed rgba(15, 23, 48, .2); font-size: 15px; }
.cmd-q { font: 800 14px/1 var(--tete); color: var(--majorelle); }
.cmd-moins { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gris); background: #fff; cursor: pointer; color: var(--encre); }
.cmd-vide { color: var(--gris); font-size: 15px; }
.cmd-total { display: flex; justify-content: space-between; font-family: var(--tete); margin: 16px 0 6px; }
.cmd-note { font-size: 13px; color: var(--gris); margin: 0 0 14px; }
.cmd-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.cmd-btns .btn { flex: 1; padding: 0 14px; }
.cmd-vider { border: 0; background: none; color: var(--gris); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 6px 0; }

.vol { position: fixed; z-index: 70; pointer-events: none; padding: 8px 14px; border-radius: 999px; background: var(--majorelle); color: #fff; font: 700 13px/1 var(--tete); white-space: nowrap; }

/* CTA mobile */
.cta-mobile { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 12, 31, .94); }
.lightbox img { width: auto; height: auto; max-width: 90vw; max-height: 84vh; margin: 8vh auto 0; border-radius: 18px; object-fit: contain; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paille); color: var(--encre); font: 700 28px/1 var(--tete); cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 900px) {
  .site-header nav { display: none; }
  .h-tel { margin-left: auto; padding: 10px 14px; font-size: 13px; }
  .maison { grid-template-columns: 1fr; }
  .arches { grid-template-columns: 1fr 1fr; }
  .a2 { transform: none; }
  .a3 { grid-column: 1 / -1; }
  .a3 img { aspect-ratio: 4 / 3; }
  .a3 { border-radius: 260px 260px 14px 14px; }
  .infos-in { grid-template-columns: 1fr; }
  .cta-mobile {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--nuit); border-top: 1px solid rgba(226, 190, 116, .35); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .cta-mobile a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; font: 700 15px/1 var(--tete); }
  .cta-mobile a:first-child { background: var(--paille); color: var(--encre); }
  .cta-mobile a:last-child { border: 2px solid var(--chaux); color: var(--chaux); }
  .js .table-btn { bottom: 84px; right: 14px; width: 70px; height: 70px; }
  .table-compte { font-size: 20px; }
  .commande { right: 16px; bottom: 164px; max-height: calc(100vh - 200px); }
  .site-footer { padding-bottom: 170px; }
  .plat { grid-template-columns: 1fr auto; row-gap: 8px; }
  .p-txt { grid-row: 1 / 3; }
  .p-prix { grid-column: 2; grid-row: 1; }
  .js .p-add { grid-column: 2; grid-row: 2; justify-self: end; }
  .ter-vues { aspect-ratio: 4 / 5; max-height: none; }
  .ter-nuit img { object-position: 30% 70%; }
}
@media (max-width: 480px) {
  .e-cta .btn { flex: 1 1 140px; }
  .e-sur { letter-spacing: .14em; font-size: 12px; }
  .table-dressee { columns: 2; column-gap: 12px; }
  .table-dressee li { margin-bottom: 12px; }
  .onglet { padding: 9px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .e-hint i { animation: none; }
  .btn:hover, .p-add:hover { transform: none; }
}
