/* =========================================================
   Mattia v4 · version « fine », inspirée de Douze
   Serif fin et contrasté (Fraunces 300, romain + italique),
   petites capitales espacées, filets d'1 px, photos plein cadre.
   Tokens sur :root -> transposables dans theme.json
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-roman-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-var.woff2") format("woff2");
  font-style: italic;
  font-weight: 200 500;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* couleurs de la marque */
  /* palette 100 % logo (fichiers du graphiste, LOGO/) */
  --c-ink: #054B44;           /* vert des lettres AIRSTREAM : texte, panneaux sombres */
  --c-cream: #F7D795;         /* jaune du panneau */
  --c-rose: #F8BAC6;          /* rose du script « Mattia » */
  --c-rose-2: #EDB8C8;        /* rose des pastilles */
  --c-orchid: #D973AD;        /* ombre du script, contour du panneau */
  --c-orchid-ink: #A6336E;    /* même rose, assombri pour du texte lisible (contraste 5,4:1 sur le jaune clair) */
  --c-mauve: #BF6B93;         /* poteau du panneau, ombre des pastilles */
  --c-paper: #FDF6E8;         /* fond : jaune du panneau très éclairci */
  --c-cream-pale: #FBECCB;    /* panneaux clairs : jaune du panneau adouci */
  --c-sky: #6AAFDB;           /* bleu Mattia (analyse de marque : piscine, blocs turquoise des photos) */
  --line: rgb(5 75 68 / .18);
  --line-light: rgb(253 246 232 / .28);

  /* typo */
  --f-display: "Fraunces", "Georgia", serif;
  --f-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --fs-label: .72rem;
  --fs-small: .875rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.9rem, 1.45rem + 1.6vw, 2.75rem);
  --fs-title: clamp(2.35rem, 1.55rem + 3.2vw, 4.4rem);
  --fs-hero: clamp(2.9rem, 1.5rem + 5.6vw, 7rem);

  /* espace */
  --frame: clamp(.5rem, .25rem + 1vw, 1rem);
  --pad: clamp(1.4rem, .7rem + 3vw, 4.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1440px;

  /* formes : panneaux arrondis, arches, boutons pilule */
  --r-panel: clamp(1.25rem, .9rem + 1.4vw, 2rem);
  --r-arch: 999px 999px var(--r-panel) var(--r-panel);
  --r-pill: 999px;

  /* mouvement */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* défilement doux : Lenis */
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-orchid); outline-offset: 4px; }
:where(:focus-visible) { border-radius: 4px; } /* priorité nulle : les boutons gardent leur forme pilule au clic */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.25rem; background: var(--c-ink); color: var(--c-paper); border-radius: var(--r-pill); }
.skip:focus { top: 1rem; }
/* mobile : clic immédiat, pas de sélection au appui long sur les contrôles */
a, button { touch-action: manipulation; }
.btn, .social-btn, .menu-btn { -webkit-user-select: none; user-select: none; }

/* ---------- typographie ---------- */
.title, .hero__title, .statement__line, .card__title, .site-footer__hello, .menu__list a {
  font-family: var(--f-display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.025em;
  line-height: 1.04;
  padding-bottom: .06em;
}
.title { font-size: var(--fs-title); }
em { font-style: italic; }
.label {
  font-family: var(--f-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ---------- briques ---------- */
body > .frame:first-of-type { padding-top: var(--frame); }
.frame { padding: 0 var(--frame) var(--frame); max-width: calc(var(--max) + 2 * var(--frame)); margin-inline: auto; }
.panel { position: relative; border-radius: var(--r-panel); overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font: 500 var(--fs-label) / 1 var(--f-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--light { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-ink); }
.btn--ghost-light { background: transparent; border-color: var(--c-paper); color: var(--c-paper); }
@media (hover: hover) and (pointer: fine) {
  /* survol : le bouton plein s'inverse, le bouton contour se remplit ; visible sur fond rose comme sur fond crème */
  .btn:hover { background: var(--c-paper); border-color: var(--c-ink); color: var(--c-ink); }
  .btn--ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
  .btn--light:hover { background: var(--c-rose); border-color: var(--c-rose); color: var(--c-ink); }
}

/* filets : listes à puces fines, comme Douze */
.hair { width: 100%; max-width: 30rem; }
.hair li { display: flex; gap: .9rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.hair li::before { content: ""; flex: none; width: .45rem; height: .45rem; border: 1px solid var(--c-orchid); border-radius: 50%; translate: 0 -.1em; }

.hours li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .15rem 0; }
.hours--big li { font-size: var(--fs-lead); }

/* ---------- logo officiel (SVG du graphiste) ---------- */
.logo { display: block; width: 100%; height: auto; }
.menu__logo { width: min(13rem, 60vw); height: auto; margin-inline: auto; }

/* ---------- hero : photo plein cadre, header posé dessus ---------- */
.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: min(56rem, 92svh);
  padding: 0 var(--pad) var(--pad);
  background: #1E1618; /* sous la photo, le temps qu'elle charge */
  color: var(--c-paper);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* voile neutre et chaud : léger partout, plus dense en bas à gauche où se pose le titre */
  background:
    linear-gradient(180deg, rgb(30 22 24 / .45) 0%, rgb(30 22 24 / 0) 25%),
    linear-gradient(15deg, rgb(30 22 24 / .88) 0%, rgb(30 22 24 / .6) 38%, rgb(30 22 24 / .1) 75%),
    rgb(30 22 24 / .2);
}
.hero__text { align-self: end; padding-top: 3rem; }
.hero__title { font-size: var(--fs-hero); font-weight: 350; max-width: 14ch; letter-spacing: -0.03em; line-height: 1; text-shadow: 0 2px 30px rgb(30 22 24 / .45); }
.hero__lead { max-width: 34ch; margin-top: 1.25rem; font-size: var(--fs-lead); font-weight: 450; text-shadow: 0 1px 16px rgb(30 22 24 / .6); }
.hero .actions { margin-top: 2rem; }
.hero__where { margin-top: 2rem; align-self: end; justify-self: start; text-decoration: none; border-bottom: 1px solid var(--line-light); padding-bottom: .2rem; }
.hero--page { min-height: min(40rem, 72svh); }
.hero--page .hero__text { align-self: end; }
.hero--page .hero__title { max-width: 16ch; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-light);
}
.site-header__logo { display: block; width: clamp(6.5rem, 5rem + 4vw, 8.75rem); }
.site-header__nav, .site-header__end { display: none; }
.site-header__nav a, .site-header__end > a {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header a[aria-current="page"] { text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .site-header__nav a:hover, .site-header__end > a:hover { text-decoration: underline; text-underline-offset: .5em; text-decoration-thickness: 1px; }
}
.menu-btn {
  position: relative;
  z-index: 60;
  min-height: 2.75rem;
  padding: .5rem 1.2rem;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  font: 500 var(--fs-label) var(--f-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn[aria-expanded="true"] { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }

/* ---------- menu mobile ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-y: auto;
  padding: var(--frame) calc(var(--frame) + 1rem) 2.5rem;
  background: var(--c-cream); /* jaune du panneau : le rose du logo ressort */
  color: var(--c-ink);
  clip-path: circle(0 at calc(100% - 3.5rem) 3.5rem);
  transition: clip-path .45s var(--ease-out);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 3.5rem) 3.5rem); }
/* haut du menu : logo (retour à l'accueil) et bouton Fermer, toujours visibles */
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.menu__home { display: block; width: 6.5rem; }
.menu__close {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .5rem 1.2rem;
  border: 0; border-radius: var(--r-pill);
  background: var(--c-ink); color: var(--c-paper);
  font: 500 var(--fs-label) var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
}
.menu__close span { font-size: 1rem; letter-spacing: 0; line-height: 1; }
.menu__list { align-self: center; display: grid; gap: .4rem; justify-items: center; padding-block: 2rem; text-align: center; }
.menu__list a { display: inline-block; padding: .05em .55em .12em; border-radius: var(--r-pill); font-size: clamp(2.2rem, 1.6rem + 4vw, 3.2rem); text-decoration: none; transition: background-color .15s, transform .15s var(--ease-out); }
/* toucher : le lien choisi s'allume tout de suite (pastille rose) et le reste jusqu'au changement de page */
.menu__list a:active, .menu__list a.is-pressed { background: var(--c-rose); transform: scale(.96); }
.menu__list a.is-pressed { font-style: italic; }
.menu__list:has(a.is-pressed) a[aria-current="page"]:not(.is-pressed) { background: none; }
/* page en cours : pastille rose bien visible */
.menu__list a[aria-current="page"] { background: var(--c-rose); font-style: italic; }
.menu__list li, .socials--menu { opacity: 0; transform: translateY(1rem); transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
.menu.is-open .menu__list li, .menu.is-open .socials--menu { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: .06s; }
.menu.is-open .menu__list li:nth-child(2) { transition-delay: .09s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: .18s; }
.menu.is-open .menu__list li:nth-child(6) { transition-delay: .21s; }
.menu.is-open .socials--menu { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .menu, .menu__list li, .socials--menu, .mbar { transition-duration: 0s; transition-delay: 0s; } }

/* barre mobile : logo, nom de la page en cours, bouton Menu ; glisse en haut quand l'en-tête est passé */
.mbar {
  position: fixed;
  top: var(--frame); left: var(--frame); right: var(--frame);
  z-index: 60;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  padding: .45rem .45rem .45rem 1rem;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 8px 28px rgb(191 107 147 / .22);
  transform: translateY(calc(-100% - 2 * var(--frame)));
  transition: transform .5s var(--ease-out);
}
.mbar.is-shown { transform: none; }
.mbar__logo { display: block; width: 4.6rem; }
.mbar__page { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .menu-btn { min-height: 2.5rem; }

/* ---------- réseaux sociaux ---------- */
.icon { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }
.socials { display: flex; gap: .5rem; }
.social-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform .4s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.social-btn:active { transform: scale(.92); }
.socials--header .social-btn { width: 2.25rem; }
.socials--header .icon { width: .9rem; height: .9rem; }
.socials--menu { justify-content: center; }
.socials--footer .social-btn, .socials--insta .social-btn { width: 3.25rem; }
.socials--footer .icon, .socials--insta .icon { width: 1.25rem; height: 1.25rem; }
.socials--insta { justify-content: center; }
@media (hover: hover) and (pointer: fine) {
  /* survol identique partout (en-tête, menu, bandeau Instagram, pied de page) : fond vert, icône claire */
  .social-btn:hover { transform: rotate(-8deg); background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
}

/* ---------- statement (bandeau phrase) ---------- */
.statement {
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: clamp(13rem, 9rem + 12vw, 22rem);
  padding: var(--pad);
  background: var(--c-ink) url("../img/palmiers-640.webp") center / cover;
  background-blend-mode: soft-light;
  color: var(--c-paper);
  text-align: center;
}
.statement--cream { background: var(--c-cream); color: var(--c-ink); }
.statement--rose { background: var(--c-rose); color: var(--c-ink); }
.statement__line { font-size: var(--fs-title); max-width: 22ch; }

/* ---------- titres de section centrés ---------- */
.head { display: grid; justify-items: center; gap: .75rem; text-align: center; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.title--rule { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- duo : deux cartes (façon fiches produit Douze) ---------- */
.duo { padding: var(--section) var(--frame) calc(var(--section) * .6); max-width: var(--max); margin-inline: auto; }
.duo--bare { padding-top: calc(var(--section) * .35); } /* sans titre : les cartes suivent la section précédente */
.duo__list { display: grid; gap: 1rem; padding-inline: var(--frame); }
.card {
  display: grid;
  justify-items: center;
  gap: .6rem;
  padding: clamp(2rem, 1.5rem + 2vw, 3rem) 1.5rem 0;
  border-radius: var(--r-panel);
  text-align: center;
  overflow: hidden;
}
.card--rose { background: var(--c-rose); }
.card--cream { background: var(--c-cream); }
.card--rose2 { background: var(--c-rose-2); }
.card__title { font-size: var(--fs-h3); }
.card .label { opacity: .8; }
/* cartes midi / soir de l'accueil : titre plus présent, horaires surlignés d'un trait de marqueur */
.card--hours .card__title { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.3rem); font-weight: 400; }
.card--hours .label { opacity: 1; font-size: .9rem; font-weight: 600; line-height: 2; }
.card--hours .label > span { --hl: var(--c-cream); padding: .1em .35em; background: linear-gradient(transparent 45%, var(--hl) 45%, var(--hl) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; }
.card--hours.card--cream .label > span { --hl: var(--c-rose); }
/* avec le mouvement : le surlignage se dessine ligne après ligne quand la carte arrive (classe posée par motion.js) */
.motion .card--hours .label > span { background-size: 0% 100%; transition: background-size 1s var(--ease-out) .15s; }
.motion .card--hours .label > span ~ span { transition-delay: .45s; }
.motion .card--hours.is-in .label > span { background-size: 100% 100%; }
.nw { white-space: nowrap; }
.card { position: relative; }
.card > :not(.card__media) { position: relative; z-index: 1; }
/* la photo occupe tout le bas de la carte et se fond dans sa couleur : pas d'image « posée dans un cadre » */
.card__media {
  width: calc(100% + 3rem);
  margin: -2.5rem -1.5rem 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
}
.card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* coupe au piment (carte « Le soir ») : un peu d'air au-dessus du verre */
.card__media img[src*="cocktail-coupe"] { object-position: 50% 30%; }
.card .btn { position: absolute; left: 50%; bottom: 1.75rem; translate: -50% 0; z-index: 2; }

/* ---------- split : photo / texte ---------- */
.split { display: grid; }
.split__media { overflow: hidden; }
.split__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* flyer Quartier Libre (accueil) : cadré sur la feuille rose, le texte du flyer reste entier */
#evenements .split__media img { object-position: 50% 62%; }
.split__body {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.5rem;
  padding: calc(var(--pad) * 1.1) var(--pad);
  text-align: center;
}
.split__body > p { max-width: 40ch; }
.split__body .actions { justify-content: center; }
.split__body .hair, .split__body .infos { text-align: left; }
.split__body--paper { background: var(--c-cream-pale); }
.split__body--rose { background: var(--c-rose); }
.split__body--cream { background: var(--c-cream); }
.split__body--rose .infos dt { color: var(--c-ink); }

.infos { display: grid; gap: 0; width: 100%; max-width: 30rem; }
.infos > div { display: grid; gap: .25rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.infos dt { color: var(--c-ink); opacity: .8; }
.infos a { text-underline-offset: .25em; }

/* ---------- cover : photo plein cadre + texte posé ---------- */
.cover {
  display: grid;
  min-height: clamp(30rem, 24rem + 22vw, 46rem);
  padding: var(--pad);
  color: var(--c-paper);
  isolation: isolate;
}
.cover__media { position: absolute; inset: 0; z-index: -1; }
.cover__media img { width: 100%; height: 100%; object-fit: cover; }
.cover__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(30 22 24 / .78), rgb(30 22 24 / .12) 70%); }
.cover__text { display: grid; justify-items: start; align-content: end; gap: 1.1rem; max-width: 32rem; }
.cover__text p:not(.label) { max-width: 34ch; }
.cover--center { place-items: center; text-align: center; min-height: clamp(34rem, 26rem + 26vw, 52rem); }
.cover--center .cover__media::after { background: rgb(30 22 24 / .5); }
.cover--center .title { text-shadow: 0 2px 30px rgb(30 22 24 / .5); }
.cover--center .cover__text { justify-items: center; align-content: center; max-width: 40rem; }
.cover--center .title { font-size: var(--fs-title); }

/* ---------- Instagram ---------- */
.insta { display: grid; justify-items: center; gap: .75rem; padding: calc(var(--pad) * 1.2) var(--pad); background: var(--c-cream); text-align: center; }
/* bandeau : sans script (ou mouvement réduit), on fait défiler au doigt ;
   avec motion.js il défile tout seul en boucle et se manipule au glisser */
.marquee {
  width: calc(100% + 2 * var(--pad));
  margin: 1.5rem calc(var(--pad) * -1) 1rem;
  padding-inline: var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-marquee { overflow: hidden; padding-inline: 0; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee__list { display: flex; gap: .6rem; width: max-content; }
.marquee__list > * { flex: none; }
.insta .marquee__list > * { width: clamp(11rem, 8rem + 14vw, 17rem); }
.insta .marquee__list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--r-panel) * .55); transition: transform .6s var(--ease-out); -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) { .marquee__list a:hover img { transform: scale(.96); } }

/* ---------- accès et Wi-Fi ---------- */
.access { display: grid; gap: 2.5rem; padding: calc(var(--pad) * 1.1) var(--pad); background: var(--c-rose); text-align: center; }
.access__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
.access__list > * { display: grid; justify-items: center; align-content: start; gap: .5rem; }
.access__num { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 1.8rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.access__num em { margin-left: .15em; font-size: .38em; font-style: italic; letter-spacing: 0; }
.access .label { max-width: 20ch; }

/* ---------- Nos événements : affiches de la semaine qui défilent (même mécanique que le bandeau Instagram) ---------- */
.reel { display: grid; justify-items: center; gap: .75rem; padding: calc(var(--pad) * 1.2) 0; background: var(--c-rose); text-align: center; }
.reel .title, .reel .label { padding-inline: var(--pad); }
.reel .marquee { width: 100%; margin: 1rem 0 0; }
.reel .marquee__list { gap: .8rem; }
.reel .actions { justify-content: center; margin-top: 1.2rem; padding-inline: var(--pad); }
.reel .marquee__list img { height: clamp(15rem, 11rem + 14vw, 24rem); width: auto; border-radius: calc(var(--r-panel) * .55); -webkit-user-drag: none; }

/* ---------- accueil : les rendez-vous (matchs + Quartier Libre) dans un seul bloc ---------- */
.events { width: 100%; max-width: 30rem; text-align: left; }
.events > * { display: grid; gap: .35rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.events > *:last-child { border-bottom: 1px solid var(--line); }
.events__name { font-family: var(--f-display); font-weight: 300; font-size: var(--fs-h3); line-height: 1.1; }
.events a { color: inherit; text-underline-offset: .25em; }

/* ---------- la carte en un coup d'œil (familles de la vraie carte, sans prix) ---------- */
.offer { padding: calc(var(--section) * .6) calc(var(--frame) * 2) var(--section); max-width: 72rem; margin-inline: auto; }
.offer__list { display: grid; padding-inline: var(--frame); border-top: 1px solid var(--line); }
.offer__list > * { display: grid; gap: .3rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.offer__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; }
/* chaque famille surlignée d'un trait de marqueur rose ; avec le mouvement, il se dessine à l'arrivée de la ligne */
.offer__name { justify-self: start; padding-inline: .15em; margin-inline: -.15em; background: linear-gradient(transparent 52%, var(--c-rose) 52%, var(--c-rose) 94%, transparent 94%) no-repeat 0 0 / 100% 100%; }
.motion .offer__name { background-size: 0% 100%; transition: background-size .9s var(--ease-out) .2s; }
.motion .offer__list .is-in .offer__name { background-size: 100% 100%; }
.offer__list p { font-size: var(--fs-small); max-width: 42ch; }
.offer__actions { justify-content: center; margin-top: 2.5rem; }
@media (min-width: 900px) {
  .offer__list { grid-template-columns: 1fr 1fr; column-gap: 4rem; border-top: 0; }
  .offer__list > *:nth-child(-n+2) { border-top: 1px solid var(--line); }
}

/* ---------- panorama : une seule photo de cocktails alignés ---------- */
.pano { display: grid; background: var(--c-cream-pale); }
.pano__media { overflow: hidden; }
.pano__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 60%; }
.pano__text { display: grid; justify-items: center; gap: .9rem; padding: calc(var(--pad) * .9) var(--pad) calc(var(--pad) * 1.1); text-align: center; }
.pano__text p:not(.label) { max-width: 44ch; }
@media (min-width: 900px) { .pano__media img { aspect-ratio: 3 / 1; object-position: center; } }

/* ---------- contact ---------- */
/* accueil : où nous trouver, version courte avec carte */
.find__map { aspect-ratio: 4 / 3; background: var(--c-cream-pale); }
.find__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.find .split__body { gap: .8rem; }
.find__title { font-family: var(--f-display); font-weight: 450; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; } /* en gras léger : le repère « où on est » se remarque */
.find .split__body > p:not(.label) { max-width: 36ch; font-size: var(--fs-small); }
.find__where { opacity: .85; }
@media (min-width: 900px) { .find { min-height: 24rem; } .find__map { aspect-ratio: auto; } }
/* cartes Google : un fond aux couleurs de la marque avec un repère, visible tout de suite ;
   la vraie carte apparaît en fondu dès qu'elle est chargée (classe posée par main.js) */
.find__map, .map { position: relative; background:
  radial-gradient(circle at 50% 46%, var(--c-orchid) 0 .55rem, transparent .6rem),
  radial-gradient(circle at 50% 46%, var(--c-paper) 0 1.1rem, transparent 1.15rem),
  repeating-linear-gradient(35deg, transparent 0 46px, rgb(5 75 68 / .06) 46px 48px),
  repeating-linear-gradient(-55deg, transparent 0 70px, rgb(5 75 68 / .05) 70px 72px),
  var(--c-cream-pale); }
.find__map iframe, .map iframe { opacity: 0; transition: opacity .5s ease; }
.find__map iframe.is-loaded, .map iframe.is-loaded, html:not(.js-map) .find__map iframe, html:not(.js-map) .map iframe { opacity: 1; }
.map { min-height: 22rem; background: var(--c-cream-pale); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 22rem; border: 0; }
.contact { display: grid; justify-items: center; gap: 1.4rem; padding: calc(var(--pad) * 1.1) var(--pad); background: var(--c-cream-pale); text-align: center; }
/* formulaire discret : titre plus petit, une seule colonne étroite, champs plus fins */
.contact__intro .title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.contact__intro p { max-width: 38ch; margin: .6rem auto 0; font-size: var(--fs-small); }
.contact .form { width: 100%; max-width: 34rem; gap: .8rem; text-align: left; }
.contact .field input, .contact .field select, .contact .field textarea { min-height: 2.5rem; padding: .5rem 0; font-size: max(.95rem, 16px); }
.contact .form__note, .contact .field--full:has(.btn) { text-align: center; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem 0;
  border: 0;
  border-bottom: 1px solid var(--c-ink);
  border-radius: 0;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: max(1rem, 16px);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--c-orchid); box-shadow: 0 1px 0 var(--c-orchid); }
.form__status:empty { display: none; }
.form__status { font-weight: 500; }
.form__note { font-size: var(--fs-small); opacity: .85; }
.form__note a { text-decoration: underline; text-underline-offset: .2em; }
.field-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* piège à robots, invisible pour les visiteurs */

/* ---------- footer ---------- */
.site-footer {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding: calc(var(--pad) * 1.1) var(--pad) 0;
  background: var(--c-cream-pale);
  color: var(--c-ink);
}
.site-footer__grid { display: grid; gap: 1.6rem; }
.site-footer__center { display: grid; justify-items: center; gap: 1rem; text-align: center; order: -1; }
.site-footer .logo--footer { width: min(15rem, 62vw); margin-bottom: .25rem; }
.site-footer__hello { font-size: var(--fs-h3); }
.site-footer__center .label { opacity: .75; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.2rem; }
.site-footer__nav a { font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.site-footer__hours { display: grid; justify-items: center; align-content: start; gap: .1rem; width: min(100%, 22rem); justify-self: center; order: -1; /* mobile : juste sous le logo, avant les liens */
  text-align: center; }
/* les horaires sont l'info la plus utile du pied de page : le jour en petites capitales, l'heure en très grand juste dessous */
.site-footer__hours .label { margin-top: 1rem; color: var(--c-orchid-ink); font-weight: 600; opacity: 1; }
.site-footer__hours .label:first-child { margin-top: 0; }
.site-footer__hours .hours { display: grid; gap: .5rem; }
.site-footer__hours .hours li { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; justify-items: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }
.site-footer__hours .hours li > span:last-child { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1;
  letter-spacing: 0; text-transform: none; white-space: nowrap; }
.site-footer__bar {
  display: grid;
  gap: .4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  justify-items: center; /* mobile : tout centré */
  text-align: center;
}
.site-footer__bar a { text-underline-offset: .25em; }
.site-footer__bar > :not(.site-footer__credit) { opacity: .8; } /* la signature Koda garde sa couleur pleine */
.site-footer__bar a[href^="mailto"] { white-space: nowrap; } /* l'adresse e-mail ne se coupe pas en deux */
@media (hover: hover) and (pointer: fine) { .site-footer__nav a:hover { color: var(--c-mauve); } }
.site-footer__mark { padding: 0 2% 1.5rem; overflow: clip; }
.site-footer__mark .logo { width: 100%; }

/* ---------- stickers d'univers ---------- */
.sticker { display: block; height: auto; }
.sticker--plate { width: min(12rem, 56%); margin-top: .75rem; rotate: -3deg; filter: drop-shadow(0 6px 14px rgb(5 75 68 / .12)); }
.plate__bg { fill: var(--c-paper); }
.plate__rim { fill: none; stroke: var(--c-ink); stroke-width: 2; }
.plate__state { fill: var(--c-orchid); font: italic 400 30px var(--f-display); text-anchor: middle; }
.plate__num { fill: var(--c-ink); font: 600 46px var(--f-body); letter-spacing: 4px; text-anchor: middle; }
.plate__foot { fill: var(--c-ink); font: 500 11px var(--f-body); letter-spacing: 3px; text-anchor: middle; opacity: .7; }

/* ---------- hero d'accueil : le logo officiel en grand, un seul message ---------- */
.hero--home {
  grid-template-rows: auto 1fr auto;
  min-height: min(58rem, calc(100svh - 2 * var(--frame)));
  background: var(--c-rose);
  color: var(--c-ink);
  text-align: center;
}
.hero--home .site-header { border-bottom-color: var(--line); }
.hero--home .site-header__logo { visibility: hidden; } /* le grand logo suffit */
.hero__brand { align-self: center; justify-self: center; padding-block: clamp(2rem, 1rem + 4vw, 4rem) 1.5rem; }
.hero__logo { width: min(48rem, 88vw); height: auto; filter: drop-shadow(0 22px 36px rgb(191 107 147 / .35)); }
.hero--home .hero__text { justify-self: center; align-self: end; padding-top: 0; }
.hero--home .hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); max-width: none; text-shadow: none; }
.hero--home .hero__lead { margin-inline: auto; font-weight: 400; text-shadow: none; }
.hero--home .actions { justify-content: center; }

/* animations : assets/js/motion.js (GSAP). Le hero reste caché jusqu'à son entrée,
   avec un filet de sécurité si le script ne se charge pas. */
.motion .hero__text, .motion .hero__where { visibility: hidden; animation: motion-fallback 0s 2.5s forwards; }
@keyframes motion-fallback { to { visibility: visible; } }
/* intro de l'accueil : le texte du hero est déjà peint sous l'écran jaune (affichage plus rapide), motion.js le reprend ensuite */
html.motion[data-intro-play] .hero__text, html.motion[data-intro-play] .hero__where { visibility: visible; }
.motion .split__media img, .motion .cover__media img, .motion .hero__media img { will-change: transform; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; padding-block: 1.1rem; }
  .site-header__nav { display: flex; gap: 2rem; }
  .site-header__end { display: flex; align-items: center; gap: 2rem; justify-self: end; }
  .menu-btn, .menu, .mbar { display: none; }

  /* pages intérieures : photos verticales -> texte à gauche sur fond vert, photo entière à droite */
  .hero--page { grid-template-columns: 1fr 1fr; column-gap: var(--pad); min-height: min(44rem, 82svh); }
  .hero--page .site-header { grid-column: 1 / -1; }
  .hero--page .hero__text { grid-column: 1; }
  .hero--page { color: var(--c-ink); }
  .hero--rose { background: var(--c-rose); }
  .hero--cream { background: var(--c-cream); }
  .hero--page .site-header { border-bottom-color: var(--line); }
  .hero--page .hero__media { inset: 6.75rem var(--pad) var(--pad) 50%; border-radius: calc(var(--r-panel) * .75); overflow: hidden; }
  .hero--page .hero__media::after { content: none; }
  .hero--page .hero__title, .hero--page .hero__lead { text-shadow: none; }
  .duo__list { grid-template-columns: 1fr 1fr; gap: var(--frame); padding-inline: 0; }
  .card__media img { aspect-ratio: 1; } /* cartes moins hautes sur grand écran */

  .split { grid-template-columns: 1fr 1fr; min-height: 40rem; }
  .split--reverse .split__media { order: 2; }
  .split__media img { aspect-ratio: auto; }




  .access__list { grid-template-columns: repeat(4, 1fr); }
  .form { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .field--full { grid-column: 1 / -1; }

  .site-footer__grid { grid-template-columns: 1fr 1.6fr 1fr; align-items: start; }
  .site-footer__center { order: 0; }
  .site-footer__nav { display: grid; justify-content: start; gap: .5rem; align-content: start; }
  .site-footer__hours { justify-self: end; min-width: 15rem; order: 0; }
  .site-footer__bar { grid-template-columns: 1fr auto; justify-items: stretch; text-align: left; }
  .site-footer__bar > :nth-child(even) { text-align: right; }
}

/* ---------- intro d'ouverture de l'accueil (motion.js) ---------- */
/* avant le script : écran jaune d'attente, levé par motion.js (sécurité : disparaît seul après 4 s) */
html[data-intro-play]::after {
  content: ""; position: fixed; inset: 0; z-index: 100;
  background: var(--c-cream); animation: intro-safe 0s 4s forwards;
}
@keyframes intro-safe { to { visibility: hidden; } }
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 1.4rem; pointer-events: none; background: var(--c-cream); }
.intro svg { width: min(34rem, 78vw); height: auto; overflow: visible; }
.intro__sub { font-family: var(--f-body); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-ink); }

/* ---------- réactivité : chaque toucher a un retour visible immédiat ---------- */
a, button { touch-action: manipulation; } /* pas d'attente de double-tap sur mobile */
.menu-btn:active, .menu__close:active, .social-btn:active, .mbar__logo:active { transform: scale(.94); }
.menu-btn, .menu__close { transition: transform .15s var(--ease-out), background-color .2s, color .2s; }
.site-header__nav a:active, .site-header__end > a:active, .site-footer__nav a:active, .events a:active, .find a:active { opacity: .55; }

/* ---------- changement de page en fondu (navigateurs récents ; les autres changent de page normalement) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Le midi : les plats, surlignés en jaune, bleu et rose Mattia ----------
   la couleur suit l'ordre de la liste (un plat ajouté prend la suivante) ; avec le mouvement,
   le trait se dessine ligne après ligne quand la liste arrive à l'écran (classe posée par motion.js) */
.dishes { display: grid; justify-items: center; gap: .3rem; }
.dishes li { --hl: var(--c-cream); width: fit-content; padding-inline: .2em; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.3; text-align: center;
  background: linear-gradient(transparent 50%, var(--hl) 50%, var(--hl) 94%, transparent 94%) no-repeat 0 0 / 100% 100%; }
.dishes li:nth-child(3n+2) { --hl: rgb(106 175 219 / .6); }
.dishes li:nth-child(3n) { --hl: var(--c-rose); }
.dishes li:nth-child(even) { font-style: italic; }
.motion .dishes li { background-size: 0% 100%; transition: background-size .8s var(--ease-out); }
.motion .dishes.is-in li { background-size: 100% 100%; }
.motion .dishes li:nth-child(1) { transition-delay: .1s; }
.motion .dishes li:nth-child(2) { transition-delay: .28s; }
.motion .dishes li:nth-child(3) { transition-delay: .46s; }
.motion .dishes li:nth-child(4) { transition-delay: .64s; }
.motion .dishes li:nth-child(5) { transition-delay: .82s; }
.motion .dishes li:nth-child(6) { transition-delay: 1s; }
.motion .dishes li:nth-child(n+7) { transition-delay: 1.18s; }

/* ---------- Le soir : la carte dans le panneau jaune, à côté des bouteilles ---------- */
.split__body .offer__list { width: 100%; max-width: 30rem; margin-top: .4rem; padding-inline: 0; border-top: 1px solid var(--line); text-align: left; }
.split__body .offer__list > * { padding: .85rem 0; }
.split__body .offer__name { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
@media (min-width: 900px) {
  .split__body .offer__list { grid-template-columns: 1fr; }
  .split__body .offer__list > *:nth-child(2) { border-top: 0; }
}

/* ---------- bannière cocktails (page Le soir) : 1:1 sur mobile, 3:1 dès 700 px ---------- */
.banner { padding: 0; overflow: hidden; }
.banner__media { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--c-rose-2); }
.banner__media picture { display: block; height: 100%; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (min-width: 700px) { .banner__media { aspect-ratio: 3 / 1; } }

/* ---------- la Halle Nova : les infos clés en 4 tuiles (chiffre en grand, légende dessous) ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; max-width: 30rem; }
.facts li { display: grid; align-content: start; gap: .3rem; padding: 1.1rem .9rem; border-radius: calc(var(--r-panel) * .55); background: var(--c-paper); text-align: left; }
.facts li:nth-child(2) { background: var(--c-rose); }
.facts li:nth-child(3) { background: rgb(106 175 219 / .75); }
.facts strong { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); line-height: 1; }
.facts li:nth-child(n+3) strong { font-style: italic; }
.facts span { font-size: var(--fs-small); line-height: 1.4; }

/* ---------- mentions légales et politique de confidentialité ---------- */
.legal { background: var(--c-paper); padding: 0 var(--pad) calc(var(--pad) * 1.4); }
.legal__head { display: grid; justify-items: center; gap: .8rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; text-align: center; }
.legal__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); line-height: 1.05; }
.legal__body { display: grid; gap: .9rem; max-width: 42rem; margin-inline: auto; }
.legal__body h2 { margin-top: 1.4rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); line-height: 1.2; }
.legal__body p, .legal__body li { line-height: 1.7; }
.legal__body ul { display: grid; gap: .45rem; padding-left: 1.2rem; list-style: disc; }
.legal__body a { text-decoration: underline; text-underline-offset: .2em; }
.legal__body strong { font-weight: 600; }
.todo { padding: 0 .25em; border-radius: .25em; background: var(--c-cream); outline: 1px dashed var(--c-orchid); color: inherit; }
.site-footer__legal a { text-decoration: underline; text-underline-offset: .2em; }
/* signature Koda Web Studio : en gras */
.site-footer__credit { font-size: .8rem; }
.site-footer__credit a { font-weight: 600; text-decoration: none; }

/* ---------- carte Google : affichée seulement après accord (main.js) ---------- */
.map-consent { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1.5rem; text-align: center; }
.map-consent__note { max-width: 22rem; font-size: var(--fs-small); line-height: 1.5; opacity: .8; }
/* tant que la carte attend l'accord : le repère du fond disparaît (il passait derrière le bouton) */
.find__map:has(.map-consent), .map:has(.map-consent) { background:
  repeating-linear-gradient(35deg, transparent 0 46px, rgb(5 75 68 / .06) 46px 48px),
  repeating-linear-gradient(-55deg, transparent 0 70px, rgb(5 75 68 / .05) 70px 72px),
  var(--c-cream-pale); }

/* ---------- bandeau cookies (carte Google Maps) : main.js ---------- */
.cookie-banner { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 90; display: grid; gap: .9rem; max-width: 30rem; margin-inline: auto;
  padding: 1.1rem 1.2rem; border-radius: calc(var(--r-panel) * .7); background: var(--c-paper); box-shadow: 0 .8rem 2rem rgb(5 75 68 / .18);
  font-size: var(--fs-small); line-height: 1.5; animation: cookie-in .5s var(--ease-out); }
.cookie-banner a { text-decoration: underline; text-underline-offset: .2em; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(1rem); } }
@media (min-width: 900px) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ---------- Nous trouver : tout l'essentiel en une section (tuiles + carte) ---------- */
.trouver { display: grid; gap: 1.4rem; padding: calc(var(--pad) * 1.1) var(--pad); background: var(--c-cream); }
.trouver__intro { display: grid; justify-items: center; gap: .9rem; text-align: center; }
.trouver__intro p { max-width: 34rem; }
.trouver__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tile { display: grid; align-content: start; gap: .4rem; padding: 1.1rem 1rem; border-radius: calc(var(--r-panel) * .55); background: var(--c-paper); font-size: var(--fs-small); line-height: 1.5; }
.tile--rose { background: var(--c-rose); }
.tile--sky { background: rgb(106 175 219 / .75); }
.tile strong { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 1.25rem; }
.tile a { display: inline-block; padding-block: .3rem; text-decoration: underline; text-underline-offset: .2em; } /* zone de clic confortable au doigt */
.trouver .map { min-height: 18rem; border-radius: calc(var(--r-panel) * .55); overflow: hidden; }
.trouver .actions { justify-content: center; }
@media (min-width: 900px) {
  .trouver { padding: calc(var(--pad) * 1.4); }
  .trouver__tiles { grid-template-columns: repeat(4, 1fr); }
  .trouver .map { min-height: 24rem; }
}
