/* Bandeau « maquette » : il reste collé tout en haut de l'écran, au-dessus de la navigation.
   --demo-h est sa hauteur : la navigation, l'assiette du midi et la terrasse se calent dessous.
   Sans le bandeau dans la page, --demo-h n'existe plus et tout revient à zéro. */
:root:has(.demo) { --demo-h: 34px; }
.demo { position: sticky; top: 0; z-index: 55; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 34px; padding: 4px var(--gutter); background: var(--sable); color: var(--nuit); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.demo strong { padding: 5px 8px 4px; border-radius: var(--r); background: var(--nuit); color: var(--sable); font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 720px) { .demo span { display: none; } }

/* Bandeau d'annonce */
.banner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; background: var(--bg); color: var(--fg); padding: 8px var(--gutter); font-size: 14px; line-height: 1.4; letter-spacing: 0; overflow: hidden; max-height: 140px; transition: max-height .6s var(--ease), padding .6s var(--ease), opacity .4s; }
.banner p { text-align: center; }
.banner .link, .banner .link:hover { color: inherit; text-decoration-color: currentColor; }
.banner.is-closed { max-height: 0; padding-block: 0; opacity: 0; }
.banner__close { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r); cursor: pointer; }
.banner__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: transform .5s var(--ease); }
.banner__close:hover svg { transform: rotate(90deg); }

/* Navigation */
.nav { position: sticky; top: var(--demo-h, 0px); z-index: 50; background: var(--bg); transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-101%); }
.nav__in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: 72px; }

.logo { display: grid; gap: 6px; text-decoration: none; line-height: 1; flex: none; }
.logo__word { font: 700 17px/1 var(--mono); letter-spacing: .14em; white-space: nowrap; transition: letter-spacing .6s var(--ease); }
.logo__tag { display: flex; align-items: center; gap: 6px; font: italic 400 10px/1 var(--mono); letter-spacing: .12em; color: var(--fg-2); }
.logo:hover .logo__word { letter-spacing: .22em; }
.logo:hover .heart { animation: beat .7s var(--ease) 2; }
@keyframes beat { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.45); } 60% { transform: scale(.92); } }

.nav__links { display: flex; gap: 2px; margin-right: auto; }
.nav__links a { position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav__side { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.status { display: flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); flex: none; }
.status.is-open .status__dot { background: var(--accent); }
.status.is-open .status__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.nav__burger { display: none; height: 44px; padding: 0 12px; border: 1px solid var(--fg); border-radius: var(--r); background: none; font-size: 14px; cursor: pointer; overflow: hidden; }

/* Menu mobile */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); padding: calc(128px + var(--demo-h, 0px)) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease); }
.menu nav { display: grid; }
.menu nav a { font: 400 clamp(36px, 10vw, 54px)/1.15 var(--display); letter-spacing: -.02em; text-decoration: none; padding: 4px 0; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.menu.is-open nav a { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--i, 0) * 60ms + .2s), transform .7s var(--ease) calc(var(--i, 0) * 60ms + .2s); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 32px; align-items: center; padding-top: clamp(24px, 5vw, 64px); padding-bottom: var(--gap); }
.hero__lede { margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 32px; }
.hero__meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); }
.hero__meta dd { margin-top: 6px; font: 400 21px/1.25 var(--display); letter-spacing: -.01em; }

/* La scène : la table vue du ciel, la tasse au milieu, un parasol dans le coin */
.scene { position: relative; aspect-ratio: 1; }
.scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scene .cup { position: absolute; left: 9.6%; top: 33.8%; width: 52.4%; }
.sc-shadow circle { fill: #000; fill-opacity: .3; }
.t-top { fill: var(--nuit); }
.t-plate { fill: var(--sable); stroke: var(--nuit); stroke-width: 1.5; }
.t-plate + .t-plate { fill: none; stroke: var(--sable-ombre); }
.t-croissant { fill: var(--sable-ombre); stroke: var(--nuit); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.t-croissant + .t-croissant { fill: none; }

/* Parasols et oliviers, dessinés par le JS */
.p-trim { fill: var(--sable); stroke: var(--nuit); stroke-width: 1.5; stroke-linejoin: round; }
.p-panel { fill: var(--sable); }
.p-panel--b { fill: var(--pin); }
.p-rib { stroke: var(--nuit); stroke-width: 1; opacity: .28; }
.p-cap { fill: var(--nuit); }
.p-spin { transform-box: fill-box; transform-origin: center; will-change: transform; }
.tr-pot { fill: var(--sable-ombre); stroke: var(--nuit); stroke-width: 1.5; }
.tr-leaf { fill: var(--olive); }
.tr-leaf--b { fill: var(--pin); }
.tr-crown { transform-box: fill-box; transform-origin: center; }

.js .sc-parasol { transform-box: view-box; transform-origin: 424px 104px; transform: scale(.12) rotate(-140deg); opacity: 0; }
.js .sc-shadow, .js .t-top, .js .sc-plate { opacity: 0; }
.js .t-top { transform-box: fill-box; transform-origin: center; transform: scale(.92); }
.js .scene .cup { opacity: 0; transform: scale(.86) rotate(-24deg); }
.is-ready .t-top { opacity: 1; transform: none; transition: opacity .8s var(--ease) .1s, transform 1.4s var(--ease) .1s; }
.is-ready .scene .cup { opacity: 1; transform: none; transition: opacity .7s var(--ease) .35s, transform 1.6s var(--ease) .35s; }
.is-ready .scene .cup__swirl path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) .9s; }
.is-ready .sc-plate { opacity: 1; transition: opacity .9s var(--ease) .8s; }
.is-ready .sc-parasol { transform: none; opacity: 1; transition: transform 1.8s var(--ease) .6s, opacity .4s .6s; }
.is-ready .sc-shadow { opacity: 1; transition: opacity 1.2s var(--ease) 1.3s; }

/* Bande de tuiles : tout ce que recouvre « & More » */
.strip { padding-bottom: var(--gap); }
.strip__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; color: var(--nuit); border: 1px solid transparent; }
.tile--a { background: var(--bg-2); color: var(--fg); border-color: var(--line); }
.tile--c { background: var(--nuit); color: var(--sable); }
.tile--b, .tile--e { background: var(--sable); }
.tile--d { background: var(--pin); color: var(--sable); }
.tile svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.tile p { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: 10px 12px 12px; transform: translateY(101%); transition: transform .5s var(--ease); }
.tile b { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tile span { font-size: 13px; line-height: 1.3; letter-spacing: 0; opacity: .78; }
.tile:hover svg { transform: translateY(-26%) scale(.72); }
.tile:hover p { transform: none; }
.tile:hover svg > * { animation: draw 1.100s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
.tile svg > * { stroke-dasharray: 1 1.1; }

.js .tile { clip-path: inset(100% 0 0 0); }
.js .tile svg > * { stroke-dashoffset: 1.05; }
.js .strip.is-in .tile { clip-path: inset(0); transition: clip-path .9s var(--ease) calc(var(--i, 0) * 70ms); }
.js .strip.is-in .tile svg > * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.400s var(--ease) calc(var(--i, 0) * 70ms + .3s); }

/* Défilé : leurs propres mots, séparés par le cœur du logo */
.marquee { overflow: hidden; white-space: nowrap; margin-bottom: var(--gap); padding-block: 18px; background: var(--sable); }
.marquee__track { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font: 400 clamp(36px, 4.7vw, 54px)/1.25 var(--display); letter-spacing: -.02em; color: var(--nuit); will-change: transform; }
.marquee .heart { width: .38em; height: .38em; color: var(--pin); flex: none; }

@media (max-width: 1080px) {
  .status { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero { grid-template-columns: 1fr; }
  .scene { max-width: 460px; width: 100%; margin: 40px auto 0; }
  .hero__meta { grid-template-columns: 1fr; gap: 16px; }
  .strip { padding-inline: 0; }
  .strip__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scrollbar-width: none; }
  .strip__row::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 168px; scroll-snap-align: center; }
}
@media (hover: none) {
  .tile svg { transform: translateY(-26%) scale(.72); }
  .tile p { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .sc-parasol, .js .t-top, .js .scene .cup { transform: none; }
  .js .sc-parasol, .js .sc-shadow, .js .t-top, .js .sc-plate, .js .scene .cup { opacity: 1; }
  .js .scene .cup__swirl path { stroke-dashoffset: 0; }
  .js .tile { clip-path: none; }
  .js .tile svg > * { stroke-dashoffset: 0; }
}
