/* OLYA St Azzura - feuille de style
   Charte : Studio Bonregard (Hugo Villemin), mai 2026.
   Palette officielle : #16181f bleu nuit, #e8ddd2 beige, #796e64 taupe, #d0e6fd bleu ciel.
   Typographies : Nouvelle Vague (titres, licence à acquérir), Source Serif (OFL, auto-hébergée), Helvetica (système). */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-opsz.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-opsz-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
/* Nouvelle Vague : typographie principale de la charte, sous licence.
   Une fois la licence web achetée, déposer le fichier dans assets/fonts/
   et ajouter : url("../fonts/nouvelle-vague.woff2") format("woff2") dans src. */
@font-face {
  font-family: "Nouvelle Vague";
  src: local("Nouvelle Vague"), local("NouvelleVague-Medium");
  font-display: swap;
}

:root {
  --ink: #16181f;
  --cream: #e8ddd2;
  --taupe: #796e64;
  --sky: #d0e6fd;
  --paper: #f5f0ea;           /* éclaircissement du beige de charte, fond principal */
  --taupe-text: #6a6057;      /* taupe assombri pour le texte courant (contraste AA) */
  --line: rgba(22, 24, 31, .14);

  --f-script: "Nouvelle Vague", "Source Serif 4", Georgia, serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.05vw + 10px, 19px);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--sky); color: var(--ink); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font: 500 12px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* Typographie utilitaire */
.kicker {
  font: 500 11px/1.4 var(--f-sans);
  letter-spacing: .28em;
  text-transform: uppercase;
}
.script { font-family: var(--f-script); font-style: italic; font-weight: 400; }
.lead { font-size: clamp(20px, 1.2vw + 12px, 26px); line-height: 1.5; font-weight: 300; }

.logo { color: currentColor; }
.logo svg { width: 100%; height: auto; fill: currentColor; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  color: var(--cream);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.is-solid {
  background: rgba(245, 240, 234, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 76px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto;
}
.header-inner .logo { width: 104px; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav--right { justify-content: flex-end; }
.nav a {
  font: 500 11px/1 var(--f-sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 44px 1fr 44px; height: 64px; }
  .header-inner .logo { width: 92px; justify-self: center; grid-column: 2; grid-row: 1; }
  .nav { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; grid-column: 3; grid-row: 1;
  }
  .menu-toggle span, .menu-toggle span::before {
    display: block; width: 22px; height: 1px; background: currentColor; position: relative;
    transition: transform .3s var(--ease);
  }
  .menu-toggle span::before { content: ""; position: absolute; top: 7px; left: 0; }
  .menu-toggle span { transform: translateY(-4px); }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
  .menu-open .menu-toggle span { transform: rotate(45deg); }
  .menu-open .menu-toggle span::before { transform: translateY(-7px) rotate(-90deg); }
  .mobile-menu {
    position: fixed; inset: 64px 0 0 0; background: var(--paper); color: var(--ink);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    padding: 40px var(--gutter);
  }
  .mobile-menu a { font: 300 34px/1.1 var(--f-serif); text-decoration: none; }
  .mobile-menu[hidden] { display: none; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ---------- Hero vidéo ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--ink); color: var(--cream); overflow: hidden;
}
.hero video, .hero .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,24,31,.45) 0%, rgba(22,24,31,0) 22%),
    linear-gradient(0deg, rgba(22,24,31,.55) 0%, rgba(22,24,31,0) 38%);
}
.hero-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(88px, 12vh, 128px);
  text-align: center; padding: 0 var(--gutter);
}
.hero-caption .script { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.15; display: block; }
.hero-caption .kicker { display: block; margin-top: 14px; opacity: .9; }

.video-controls {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 28px;
  display: flex; gap: 8px;
}
.vbtn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px;
  border: 1px solid rgba(232, 221, 210, .5); border-radius: 40px;
  font: 500 10px/1 var(--f-sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); background: rgba(22, 24, 31, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .3s, border-color .3s;
}
.vbtn:hover { background: rgba(22, 24, 31, .5); border-color: var(--cream); }
.vbtn svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.vbtn .i-play, .vbtn.is-paused .i-pause { display: none; }
.vbtn.is-paused .i-play { display: block; }
.vbtn .i-sound-on, .vbtn.is-unmuted .i-sound-off { display: none; }
.vbtn.is-unmuted .i-sound-on { display: block; }

.scroll-cue {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 12px; text-decoration: none; height: 40px;
}
.scroll-cue i { display: block; width: 1px; height: 40px; background: rgba(232,221,210,.35); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cream);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (max-width: 600px) { .scroll-cue span { display: none; } .vbtn .lbl { display: none; } .vbtn { padding: 0 12px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 190px) var(--gutter); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }

.intro { position: relative; }
.intro .mono { width: 26px; margin: 0 auto 40px; color: var(--ink); }
.intro h1 {
  font-weight: 300; font-size: clamp(38px, 5.2vw, 84px); line-height: 1.04; letter-spacing: -.012em;
  max-width: 15ch; margin: 22px auto 0;
}
.intro h1 em { font-family: var(--f-script); font-style: italic; }
.intro .lead { max-width: 36ch; margin: 40px auto 0; color: var(--taupe-text); }

.split {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
}
.split figure { grid-column: 1 / span 6; }
.split .text { grid-column: 8 / span 5; }
.split--rev figure { grid-column: 7 / span 6; grid-row: 1; }
.split--rev .text { grid-column: 1 / span 5; grid-row: 1; }
@media (max-width: 860px) {
  .split figure, .split .text, .split--rev figure, .split--rev .text { grid-column: 1 / -1; grid-row: auto; }
}

.photo { position: relative; overflow: hidden; background: var(--cream); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { margin-top: 14px; font: 400 12px/1.5 var(--f-sans); letter-spacing: .04em; color: var(--taupe-text); }

.text h2 {
  font-weight: 300; font-size: clamp(34px, 3.4vw, 56px); line-height: 1.08; letter-spacing: -.01em; margin: 18px 0 28px;
}
.text p + p { margin-top: 1.1em; }
.text .def { font-weight: 500; }
#la-bulle .text .def { font-weight: 400; font-size: clamp(20px, .9vw + 13px, 25px); line-height: 1.5; margin-block: 8px 32px; }
#la-bulle .text h2 { margin-bottom: 36px; }
.more { margin-top: 28px; font: 500 11px/1.6 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; }
.more a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s; }
.more a::after { content: " \2192"; }
.more a:hover { border-color: var(--ink); }

.facts { margin-top: 40px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1.9 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-text); }
.facts dd { font-size: 17px; }

/* Bande plein cadre */
.band { position: relative; }
.band .photo img { aspect-ratio: auto; height: min(92vh, 1100px); width: 100%; object-position: 50% 58%; }
@media (max-width: 860px) { .band .photo img { height: auto; aspect-ratio: 4 / 5; } }

.ritual { background: var(--cream); }
.ritual .steps {
  list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px); counter-reset: s;
}
.ritual .steps li { border-top: 1px solid var(--line); padding-top: 22px; counter-increment: s; }
.ritual .steps li::before {
  content: "0" counter(s); display: block; font: 500 11px/1 var(--f-sans); letter-spacing: .24em; color: var(--taupe-text); margin-bottom: 16px;
}
.ritual .steps h3 { font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.ritual .steps p { color: var(--taupe-text); font-size: 17px; }
@media (max-width: 760px) { .ritual .steps { grid-template-columns: 1fr; } }

.ritual-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.ritual-head .illus { width: clamp(70px, 8vw, 110px); aspect-ratio: 166 / 226; }
@media (max-width: 600px) { .ritual-head .illus { display: none; } }

/* Illustrations Studio Bonregard, recolorées par masque */
.illus { background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.illus--parasol { --m: url("../brand/parasol.svg"); }
.illus--palmier { --m: url("../brand/palmier.svg"); }
.illus--vague { --m: url("../brand/vague.svg"); }
.illus--soleils { --m: url("../brand/soleils.svg"); }

/* Galerie */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.gallery-head h2 { font-weight: 300; font-size: clamp(30px, 3vw, 48px); line-height: 1.1; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.gallery figure:nth-child(2) { margin-top: clamp(48px, 10vw, 160px); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } .gallery figure:nth-child(2) { margin-top: 0; } }

/* Maison, bande bleu nuit */
.maison { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.maison .illus--palmier {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); bottom: 0;
  width: clamp(120px, 16vw, 240px); aspect-ratio: 152 / 290; color: var(--cream); opacity: .9;
}
.maison .text { max-width: 44rem; }
.maison .text p { color: rgba(232, 221, 210, .86); }
.maison .text strong { color: var(--cream); font-weight: 500; }
.maison .sig { margin-top: 44px; font-size: clamp(28px, 2.6vw, 40px); color: var(--cream); line-height: 1; }
@media (max-width: 860px) { .maison .illus--palmier { display: none; } }

/* Contact */
.contact h2 { font-weight: 300; font-size: clamp(40px, 5vw, 76px); line-height: 1.02; margin: 20px 0 24px; }
.contact p { color: var(--taupe-text); max-width: 34ch; margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  border: 1px solid var(--ink); border-radius: 52px; text-decoration: none;
  font: 500 11px/1 var(--f-sans); letter-spacing: .24em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: transparent; }
.btn--ghost:hover { background: transparent; color: var(--ink); text-decoration: underline; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.contact .illus--vague { width: min(190px, 46%); aspect-ratio: 330 / 106; margin: 0 auto 20px; color: var(--ink); opacity: .9; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 36px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.footer-grid .logo { width: 84px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font: 400 12px/1.6 var(--f-sans); letter-spacing: .06em; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links--right { justify-content: flex-end; }
.legal {
  max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 400 11px/1.6 var(--f-sans); letter-spacing: .04em; color: var(--taupe-text);
}
.legal .evin { color: var(--ink); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand { order: -1; }
  .footer-links, .footer-links--right { justify-content: center; }
  .legal { justify-content: center; text-align: center; }
}

/* ---------- Porte d'âge ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: var(--paper); color: var(--ink); text-align: center;
}
.gate[hidden] { display: none; }
.gate-box { max-width: 460px; }
.gate .logo { width: 132px; margin: 0 auto 48px; }
.gate h2 { font-weight: 300; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; }
.gate .actions { margin-top: 36px; }
.gate .note { margin-top: 36px; font: 400 12px/1.6 var(--f-sans); color: var(--taupe-text); }
.gate .refused { margin-top: 28px; font-size: 17px; }
.has-gate { overflow: hidden; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.6s var(--ease-soft), transform 1.8s var(--ease-soft); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Pages secondaires */
.page { padding: 160px var(--gutter) 120px; }
.page .wrap { max-width: 760px; }
.page h1 { font-weight: 300; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin: 18px 0 48px; }
.page h2 { font-weight: 400; font-size: 24px; margin: 48px 0 12px; }
.page p, .page li { color: var(--ink); }
.page .todo { background: var(--sky); padding: 0 .3em; }

/* Utilitaires */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section--flush { padding-top: 0; }
.lead--narrow { max-width: 40ch; }
.gallery-note { max-width: 34ch; color: var(--taupe-text); }
.page .updated { margin-top: 48px; color: var(--taupe-text); font-size: 15px; }
.page--404 { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-top: 80px; }
.page--404 .logo { display: block; width: 120px; margin: 0 auto 48px; }
.page--404 h1 { margin: 18px auto 24px; }

/* Immersion : légende de la vidéo qui apparaît après quelques secondes */
.hero-caption { animation: cap-in 2s var(--ease-soft) 2.6s both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Immersion : la grande photo se resserre lentement au défilement (navigateurs compatibles) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band .photo img { animation: band-zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; transform-origin: 50% 60%; }
    @keyframes band-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
    .gallery .photo img { animation: gal-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes gal-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
  }
}

/* Page Questions */
.crumbs { font: 400 12px/1.6 var(--f-sans); letter-spacing: .06em; color: var(--taupe-text); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.faq-intro { color: var(--taupe-text); margin-bottom: 56px; }
.faq .qa { padding-block: 40px; border-top: 1px solid var(--line); }
.faq .qa:last-of-type { border-bottom: 1px solid var(--line); }
.faq .qa h2 { font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; margin: 0 0 16px; }
.faq .qa .def { font-weight: 500; }
.faq .qa p + p { margin-top: .8em; color: var(--taupe-text); }

/* Note de dégustation */
.text .note { color: var(--taupe-text); }
.text .note .script { display: block; font-size: clamp(30px, 2.4vw, 38px); line-height: 1.1; color: var(--ink); margin-bottom: 6px; }
.intro .lead { line-height: 1.6; }

.section--gallery { padding-block: clamp(56px, 7vw, 110px) clamp(96px, 12vw, 170px); }

/* Réseaux sociaux */
.social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); opacity: .8; transition: opacity .3s var(--ease), background-color .3s var(--ease); }
.social a:hover { opacity: 1; background: rgba(22, 24, 31, .06); }
.social svg { width: 18px; height: 18px; }
.contact .social { margin-top: 28px; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer-brand .logo { width: 84px; }
.legal a { text-decoration: none; } .legal a:hover { text-decoration: underline; }

/* Pied de page bleu nuit */
.site-footer { background: var(--ink); color: var(--cream); border-top: 0; }
.site-footer .logo { color: var(--cream); }
.site-footer .footer-links a { color: var(--cream); opacity: .85; }
.site-footer .footer-links a:hover { opacity: 1; }
.site-footer .legal { border-top-color: rgba(232, 221, 210, .18); color: rgba(232, 221, 210, .72); }
.site-footer .legal .evin { color: var(--cream); }
.site-footer .legal a { color: var(--cream); }
.contact .illus--parasol { width: 46px; aspect-ratio: 166 / 226; margin: 0 auto 22px; color: var(--ink); }
