/* ==========================================================
   Baptistine Notte : fotografia & vídeo
   Fond beige, touches de couleur, aucun dégradé.
   Règle absolue : les photos ne sont jamais recadrées ni déformées
   (pas d'object-fit: cover, toujours width/height naturels).
   ========================================================== */

:root {
  /* Mise en page : header fixe, hero qui tient dans l'écran, puis une section calme par catégorie */
  --bg: #eee5d6;
  --paper: #f6f0e5;
  --ink: #1f2a28;
  --mut: #6d6556;
  --line: rgba(31, 42, 40, .16);
  /* touches de couleur, une par catégorie */
  --c-hospedagem: #1f6b66;
  --c-restaurante: #c9762a;
  --c-evento: #b8283e;
  --c-produto: #8a7a2e;
  --c-turismo: #2f62a0;
  --acc: #b8283e;
  --display: "Gasoek One", "Arial Black", Impact, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --gut: max(16px, 4vw);
  --ease: cubic-bezier(.2, .7, .15, 1);
  /* hauteur du header : grande avant le premier scroll, réduite ensuite */
  --hh: 100px;
  --hh-s: 66px;
  color-scheme: light;
}
@media (max-width: 900px) { :root { --hh: 76px; --hh-s: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh-s) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.eyebrow { margin: 0 0 1rem; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }

/* ---------- En-tête : fixe, entier à tout moment, plus grand avant le premier scroll ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hh);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--gut);
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), border-color .3s;
}
.top.is-scrolled { height: var(--hh-s); border-bottom-color: var(--line); }
main { padding-top: var(--hh); }
.brand { font: 1.5rem/1 var(--display); letter-spacing: .01em; text-transform: uppercase; transition: font-size .4s var(--ease); }
.brand small { display: block; margin-top: 6px; font: 500 .72rem/1 var(--sans); letter-spacing: .32em; color: var(--mut); transition: font-size .4s var(--ease), margin .4s; }
.top.is-scrolled .brand { font-size: 1.15rem; }
.top.is-scrolled .brand small { font-size: .62rem; margin-top: 4px; }
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: .5rem; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
  font-size: 1.02rem; font-weight: 700; transition: border-color .3s, font-size .4s var(--ease);
}
.top.is-scrolled .nav a { font-size: .92rem; font-weight: 600; }
.nav a i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.nav a:hover, .nav a.is-active { border-bottom-color: var(--c); }
.top__end { display: flex; align-items: center; gap: 14px; }
.top__cta { font-size: .92rem; font-weight: 600; padding: 10px 18px; background: var(--ink); color: var(--paper); transition: background .3s; }
.top__cta:hover { background: var(--acc); }
/* Sélecteur de langue : un seul drapeau, celui de l'autre langue */
.lang { display: grid; place-items: center; padding: 4px; border: 0; background: none; cursor: pointer; transition: transform .3s var(--ease); }
.lang svg { width: 30px; height: 21px; display: block; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.lang:hover { transform: scale(1.08); }
@media (max-width: 900px) {
  .nav { position: fixed; inset: auto 0 0 0; margin: 0; justify-content: space-around; gap: 0;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--paper);
    border-top: 1px solid var(--line); }
  .nav a, .top.is-scrolled .nav a { font-size: .74rem; font-weight: 600; }
  .nav a i { display: none; }
  .nav .lg { display: none; }
  .top__end { margin-left: auto; }
  .brand { font-size: 1.12rem; white-space: nowrap; }
  .top.is-scrolled .brand { font-size: 1rem; }
  .top__cta { padding: 9px 13px; font-size: .85rem; }
}

/* ---------- Choix de la hero ---------- */

/* ---------- Hero 1 : grande photo, texte blanc par-dessus, tient dans l'écran avec le header ---------- */
/* Toutes les photos du diaporama sont en 3:2 : le cadre garde ce format et sa hauteur ne dépasse jamais 100vh moins le header */
/* Pleine largeur : la photo nette reste entière au centre, les côtés sont remplis par la même photo floutée */
.slides {
  position: relative; width: 100%; overflow: hidden; background: var(--ink);
  height: min(66.667vw, calc(100svh - var(--hh)));
}
.slide { position: absolute; inset: 0; display: block; opacity: 0; overflow: hidden; transition: opacity 1s ease; }
.slide.on { opacity: 1; z-index: 1; }
/* Exception demandée pour la hero 1 : la photo remplit toute la largeur (un peu rognée en haut et en bas sur écran large) */
.slide img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.slide__tag {
  position: absolute; z-index: 2; right: clamp(12px, 2vw, 28px); top: clamp(12px, 2vw, 28px); display: inline-flex; align-items: center; gap: .5rem;
  padding: 9px 13px; background: var(--paper); font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.slide__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.slide__tag span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mut); margin-left: .3rem; }
.hero__over {
  position: absolute; left: clamp(14px, 3vw, 44px); bottom: clamp(14px, 3vw, 44px); z-index: 3; max-width: min(36rem, 80%);
  color: #fff; animation: rise 1s .2s var(--ease) both;
  /* pas de fond : une ombre douce derrière les lettres garde le texte lisible sur les photos claires */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .45), 0 6px 34px rgba(0, 0, 0, .5);
}
.hero__over .btn { text-shadow: none; }
/* voile sombre uniforme et léger sur la photo (pas un dégradé) pour que le texte blanc reste lisible */
.hero1 .slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(12, 18, 17, .2); pointer-events: none; }
.btn.btn--outline { background: transparent; border-color: #fff; color: #fff; }
.btn.btn--outline:hover { background: #fff; color: var(--ink); }
.hero__name { font: clamp(2rem, 5vw, 4.6rem)/.9 var(--display); text-transform: uppercase; color: #fff; }
.hero__line { margin: .9rem 0 .5rem; font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero__txt { margin: 0 0 1.3rem; color: #fff; font-weight: 500; font-size: clamp(.95rem, 1.15vw, 1.06rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@media (max-width: 700px) {
  .slides { width: 100%; }
  .slide__tag span { display: none; }
  /* Sur téléphone la photo est trop petite : le texte passe dessous, sur un bloc sombre */
  .hero1 .slides { height: auto; aspect-ratio: auto; display: flex; flex-direction: column; }
  .hero1 .slides::before { content: ""; display: block; aspect-ratio: 3 / 2; }
  .hero1 .slide { bottom: auto; aspect-ratio: 3 / 2; }
  .hero1 .slide::after { display: none; }
  .hero__over { position: static; max-width: none; padding: 22px var(--gut) 26px; background: var(--ink); text-shadow: none; }
}

/* ---------- Hero 2 : grand titre + mosaïque (première proposition), photos 3:2 jamais recadrées ---------- */
.hero2 {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - var(--hh)); max-height: calc(100svh - var(--hh)); padding: clamp(16px, 2vw, 28px) var(--gut);
}
.hero2__text { container-type: inline-size; min-width: 0; }
.hero2__title { margin: 0 0 1.2rem; display: grid; font: min(15cqi, 8.6rem)/.88 var(--display); text-transform: uppercase; }
.hero2__title em { font-style: normal; color: var(--acc); padding-left: .4em; }
.hero2__lead { margin: 0 0 .6rem; font-weight: 600; font-size: 1.1rem; }
.hero2__txt { margin: 0 0 1.4rem; color: var(--mut); max-width: 30rem; }
.mosaic { position: relative; aspect-ratio: 1 / .86; width: min(100%, calc((100svh - var(--hh) - 56px) / .86)); justify-self: center; }
.tile { position: absolute; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); animation: tileIn 1.1s var(--ease) both; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile img.in { animation: wipe 1.1s var(--ease) both; }
.tile__tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--paper); padding: 6px 9px; font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.tile__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tile:nth-child(1) { left: 0; top: 4%; width: 56%; animation-delay: .1s; }
.tile:nth-child(2) { left: 60%; top: 0; width: 40%; animation-delay: .25s; }
.tile:nth-child(3) { left: 60%; top: 35%; width: 40%; animation-delay: .4s; }
.tile:nth-child(4) { left: 0; top: 52%; width: 36%; animation-delay: .55s; }
.tile:nth-child(5) { left: 39%; top: 70%; width: 32%; animation-delay: .7s; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes tileIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr; max-height: none; min-height: 0; }
  .mosaic { order: -1; width: 100%; }
}

/* ---------- Présentation : portrait détouré + texte ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: 14px clamp(20px, 3.5vw, 56px); padding: clamp(40px, 6vw, 80px) var(--gut) clamp(20px, 3vw, 40px);
}
.hero__me { width: 100%; max-width: 560px; height: auto; justify-self: center; }
/* Portrait : monte du bas au scroll, petit balancement façon sticker au survol */
.hero__me {
  transform-origin: 50% 85%; cursor: pointer;
  transition: translate 1.3s var(--ease), clip-path 1.3s var(--ease), opacity .8s ease, scale .5s cubic-bezier(.34, 1.56, .64, 1);
  clip-path: inset(0 0 0 0);
}
/* Au scroll vers le bas : la photo monte et se dévoile de bas en haut */
.js .hero__me:not(.in) { opacity: 0; translate: 0 30%; clip-path: inset(100% 0 0 0); }
.hero__me:hover { scale: 1.05; animation: wiggle .9s ease; }
@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -5deg; }
  45% { rotate: 4deg; }
  70% { rotate: -2deg; }
  85% { rotate: 1deg; }
}
.hero__bio { min-width: 0; align-self: center; }
.hero__title { font: clamp(1.8rem, 4.2vw, 4.2rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hero__role { margin: .7rem 0 .8rem; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.hero__about { margin: 0; max-width: 34rem; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.55; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .hero__me { width: min(78vw, 380px); }
}

/* ---------- Logos clients (défilement continu) ---------- */
.logos { padding: clamp(24px, 4vw, 56px) 0 clamp(10px, 2vw, 24px); }
.logos__title { text-align: center; margin-bottom: clamp(18px, 2.4vw, 30px); color: var(--mut); }
.logos__view {
  --logo: clamp(58px, 6.4vw, 92px);
  display: flex; overflow: hidden;
  padding-bottom: 40px; margin-bottom: -30px; /* place pour l'étiquette */
}
.logos__track {
  display: flex; align-items: center; flex: none; gap: clamp(44px, 6vw, 96px);
  margin: 0; padding: 0 clamp(22px, 3vw, 48px); list-style: none;
  animation: logos 38s linear infinite;
}
.logos__view:hover .logos__track { animation-play-state: paused; }
.logos__track li { position: relative; flex: none; display: grid; place-items: center; height: var(--logo); }
/* Bulle au survol : activité de la marque */
.logos__tip {
  position: absolute; top: calc(50% + var(--logo) * var(--k) / 2 + 8px); left: 50%;
  padding: 5px 9px; border-radius: 4px; background: #3a3532; color: #f6f0e5;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  font: 500 .8rem/1.2 var(--sans); white-space: nowrap; pointer-events: none;
  opacity: 0; translate: -50% -3px; transition: opacity .2s ease, translate .25s ease;
}
.logos__track li:hover .logos__tip { opacity: 1; translate: -50% 0; }
.logos__track img {
  height: calc(var(--logo) * var(--k)); width: auto; max-width: none;
  opacity: .88; transition: opacity .3s ease, scale .4s var(--ease);
}
.logos__track li:hover img { opacity: 1; scale: 1.06; }
.logos__track img[src*="potions"] { border-radius: 12px; }
.logos__track img[src*="francart"] { opacity: 1; }
@keyframes logos { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .logos__view { overflow-x: auto; } }

/* ---------- Sections catégorie ---------- */
.cat { padding: clamp(60px, 9vw, 130px) var(--gut) 0; }
/* Première catégorie : moins d'espace après la présentation */
#portfolio > .cat:first-child { padding-top: clamp(16px, 2.5vw, 36px); }
/* Clic dans le menu : on arrive directement sur le titre de la section, sans le grand blanc au-dessus */
.cat { scroll-margin-top: calc(-1 * clamp(60px, 9vw, 130px) + 18px); }
#portfolio > .cat:first-child { scroll-margin-top: calc(-1 * clamp(16px, 2.5vw, 36px) + 18px); }
.cat__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1.2rem 2rem;
  padding-bottom: 1.4rem; margin-bottom: clamp(24px, 4vw, 48px); border-bottom: 2px solid var(--ink);
}
.cat__num {
  display: grid; place-items: center; width: clamp(44px, 5vw, 64px); aspect-ratio: 1; border-radius: 50%;
  background: var(--c); color: #fff; font: 600 clamp(.9rem, 1.3vw, 1.1rem)/1 var(--sans);
}
.cat__num svg { width: 52%; height: 52%; }
.cat__title { font: clamp(2.2rem, 6.4vw, 5.6rem)/.9 var(--display); text-transform: uppercase; }
.cat__meta { margin: 0; text-align: right; font-size: .88rem; color: var(--mut); }
.cat__meta b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .cat__head { grid-template-columns: auto 1fr; }
  .cat__meta { grid-column: 1 / -1; text-align: left; }
}

/* Grande photo plus large, liste des clients plus étroite */
.cat__body { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 56px); align-items: center; }
.cat:nth-of-type(even) .cat__body { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); }
.cat:nth-of-type(even) .cat__media { order: 2; }
@media (max-width: 860px) {
  .cat__body, .cat:nth-of-type(even) .cat__body { grid-template-columns: 1fr; }
  .cat:nth-of-type(even) .cat__media { order: 0; }
}

/* Grande photo de la section : taille naturelle, jamais recadrée */
.cat__media { min-width: 0; }
.feature { display: block; }
.feature img { max-height: 84vh; width: auto; transition: transform .8s var(--ease); }
.feature:hover img { transform: scale(.985); }
.feature figcaption { margin-top: .7rem; font-size: .82rem; color: var(--mut); display: flex; gap: .6rem; align-items: center; }
.feature figcaption i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* Petites photos : carrousel qui défile, s'arrête au survol, se tire à la souris */
.extras { position: relative; margin-top: 14px; }
.extras__view { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.extras__view.is-drag { cursor: grabbing; }
.extras__track { display: flex; width: max-content; will-change: transform; }
.extra { flex: none; margin-right: 8px; display: block; }
.extra img { height: clamp(110px, 11vw, 160px); width: auto; max-width: none; transition: opacity .3s; -webkit-user-drag: none; }
.extra:hover img { opacity: .85; }
.extras__btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer; font: 600 1rem/1 var(--sans);
  box-shadow: 0 8px 20px -10px rgba(31, 42, 40, .5); opacity: 0; transition: opacity .3s, background .3s, color .3s;
}
.extras__btn--prev { left: 8px; }
.extras__btn--next { right: 8px; }
.extras:hover .extras__btn, .extras__btn:focus-visible { opacity: 1; }
.extras__btn:hover { background: var(--c); color: #fff; }
@media (hover: none) { .extras__btn { opacity: 1; } }

/* Liste des clients */
.clients { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.client {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem;
  padding: 17px 4px; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), background .3s;
}
.client h3 { font: 600 clamp(1.15rem, 1.75vw, 1.6rem)/1.18 var(--sans); letter-spacing: -.015em; }
.client p { grid-column: 1; margin: 0; font-size: .88rem; color: var(--mut); }
.client__go {
  grid-row: 1 / span 2; grid-column: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 1rem; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.client:hover { padding-left: 12px; background: var(--paper); }
.client:hover h3 { color: var(--c); }
.client:hover .client__go { background: var(--c); border-color: var(--c); color: #fff; transform: translateX(-4px); }

/* Aperçu flottant (souris uniquement), toujours entièrement dans l'écran */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; width: 240px;
  opacity: 0; scale: .92; transition: opacity .3s, scale .4s var(--ease);
}
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: auto; box-shadow: 0 20px 40px -20px rgba(31, 42, 40, .5); }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

.reveal { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(30px); }

/* ---------- Instagram ---------- */
.insta { padding: clamp(80px, 11vw, 160px) var(--gut) 0; }
.insta__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 1rem 3rem; margin-bottom: clamp(24px, 3vw, 40px); }
.insta__title { font: clamp(2rem, 5vw, 4.4rem)/.9 var(--display); }
.insta__lead { margin: 0; color: var(--mut); max-width: 26rem; }
.insta__grid { columns: 6 160px; column-gap: 10px; }
.insta__grid a { display: block; margin-bottom: 10px; break-inside: avoid; }
.insta__grid img { width: 100%; height: auto; transition: opacity .3s; }
.insta__grid a:hover img { opacity: .8; }
@media (max-width: 760px) { .insta__head { grid-template-columns: 1fr; } .insta__grid { columns: 3; } }

/* ---------- Contact ---------- */
.contact { margin: clamp(80px, 12vw, 180px) var(--gut) 0; padding: clamp(50px, 8vw, 110px) var(--gut); background: var(--ink); color: var(--paper); text-align: center; }
.contact .eyebrow { color: #f0b15c; }
.contact__title { font: clamp(2.4rem, 8vw, 7rem)/.92 var(--display); text-transform: uppercase; }
.contact__lead { max-width: 34rem; margin: 1.4rem auto 1rem; color: #c9c1b2; font-size: 1.08rem; }
.contact__mail { margin: 0 0 2rem; font-size: 1.2rem; font-weight: 600; user-select: all; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-block; padding: 15px 24px; background: var(--acc); color: #fff; font: 600 .9rem/1 var(--sans); border: 1px solid var(--acc); transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; margin: -4px 8px -4px 0; vertical-align: middle; }
.btn--wa { background: #1f9e57; border-color: #1f9e57; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--paper); color: var(--paper); }

.foot { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: baseline; padding: 24px var(--gut) calc(32px + env(safe-area-inset-bottom)); font-size: .88rem; color: var(--mut); }
.foot strong { font: .95rem var(--display); text-transform: uppercase; color: var(--ink); }
.foot a:last-child { margin-left: auto; }
@media (max-width: 900px) { .foot { padding-bottom: 90px; } }

/* ---------- Galerie : masonry en colonnes, photos entières ---------- */
dialog { border: 0; padding: 0; max-width: none; max-height: none; color: var(--ink); }
.gal { width: 100%; height: 100%; margin: 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.gal::backdrop { background: var(--bg); }
.gal[open] { animation: galIn .5s var(--ease) backwards; } /* pas de transform résiduel : le bouton « haut » reste fixe */
@keyframes galIn { from { opacity: 0; transform: translateY(24px); } }
.gal__bar {
  position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem;
  padding: 16px var(--gut); background: var(--bg); border-bottom: 1px solid var(--line);
}
.gal__back {
  font: 600 .8rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  padding: 12px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); transition: background .3s, color .3s;
}
.gal__back:hover { background: var(--ink); color: var(--paper); }
.gal__kicker { margin: 0 0 .35rem; display: flex; align-items: center; gap: .5rem; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.gal__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gal__title { font: clamp(1.6rem, 4vw, 3.4rem)/.95 var(--display); text-transform: uppercase; }
/* Description du projet, sous la barre */
.gal__desc { margin: clamp(20px, 3vw, 36px) var(--gut) 0; max-width: 46rem; font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; padding-left: 16px; border-left: 3px solid var(--c); }
.gal__desc:empty { display: none; }
@media (max-width: 640px) {
  .gal__bar { grid-template-columns: 1fr; gap: .9rem; }
  .gal__back { justify-self: start; }
}
/* ---------- Feuilleteur du guide ---------- */
.book { margin: clamp(24px, 3.5vw, 44px) var(--gut) 0; padding: clamp(18px, 2.6vw, 36px); background: var(--paper); border-radius: 18px; }
.book[hidden], .book__jump[hidden] { display: none; }
.book__jump { display: block; width: fit-content; margin: 22px auto 0; background: var(--c); border-color: var(--c); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.book { scroll-margin-top: 140px; margin-bottom: clamp(30px, 4vw, 56px); }
.book__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 2vw, 24px); }
.book__head .eyebrow { margin-bottom: .5rem; color: var(--c); }
.book__title { margin: 0; font: clamp(1.4rem, 2.6vw, 2.2rem)/.95 var(--display); text-transform: uppercase; }
.book__count { margin: 0; font: 600 .85rem/1 var(--sans); letter-spacing: .08em; color: var(--mut); font-variant-numeric: tabular-nums; }
.book__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.book__spread {
  position: relative; justify-self: center; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, calc(72vh * var(--ratio) * 2)); aspect-ratio: calc(var(--ratio) * 2);
  perspective: 2600px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.book__spread.is-single { grid-template-columns: 1fr; width: min(100%, calc(64vh * var(--ratio))); aspect-ratio: var(--ratio); }
.book__page { display: block; width: 100%; height: 100%; object-fit: cover; background: #fff; box-shadow: 0 10px 30px rgba(31, 42, 40, .16); }
.book__page--l { border-radius: 6px 0 0 6px; }
.book__page--r { border-radius: 0 6px 6px 0; box-shadow: 0 10px 30px rgba(31, 42, 40, .16), inset 1px 0 0 rgba(31, 42, 40, .12); }
.is-single .book__page--l { border-radius: 6px; }
.book__page.is-blank { visibility: hidden; }
.book__leaf {
  position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.45, .05, .25, 1); pointer-events: none;
}
.book__leaf.is-right { left: 50%; transform-origin: 0 50%; }
.book__leaf.is-left { left: 0; transform-origin: 100% 50%; }
.book__leaf.is-right.go { transform: rotateY(-180deg); }
.book__leaf.is-left.go { transform: rotateY(180deg); }
.book__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 30px rgba(31, 42, 40, .2); }
.book__face--back { transform: rotateY(180deg); }
.book__face:not([src]) { visibility: hidden; }
/* mobile : la page part vers la gauche (suivante) ou revient (précédente) */
.book__leaf--one { left: 0; width: 100%; transform-origin: 0 50%; transition: transform .6s cubic-bezier(.45, .05, .25, 1), opacity .6s ease; }
.book__leaf--one img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.book__leaf--one.go { transform: rotateY(-100deg); opacity: 0; }
.book__leaf--one.is-back { transform: rotateY(-100deg); opacity: 0; }
.book__leaf--one.is-back.go { transform: none; opacity: 1; }
.book__btn {
  width: 48px; height: 48px; border: 1px solid var(--line, rgba(31, 42, 40, .18)); border-radius: 50%; background: var(--bg);
  font-size: 1.15rem; color: var(--ink); cursor: pointer; transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.book__btn:hover:not(:disabled) { background: var(--c); color: #fff; border-color: var(--c); }
.book__btn:disabled { opacity: .3; cursor: default; }
.book__range { display: block; width: min(100%, 520px); margin: clamp(16px, 2vw, 24px) auto 0; accent-color: var(--c); }
@media (max-width: 760px) {
  .book__stage { grid-template-columns: 1fr; }
  .book__btn { display: none; }
}
.gal__top {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: rgba(31, 42, 40, .32); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .3s ease, translate .4s var(--ease), background .25s ease;
}
.gal__top svg { width: 20px; height: 20px; }
.gal__top.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.gal__top:hover { background: rgba(31, 42, 40, .6); }
/* Sur la page : au-dessus du bouton WhatsApp */
.page-top { z-index: 44; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 900px) { .page-top { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); } }
.gal__grid { columns: 4 300px; column-gap: clamp(12px, 1.6vw, 22px); padding: clamp(20px, 3vw, 40px) var(--gut); }
@media (max-width: 700px) { .gal__grid { columns: 2; } }
.m {
  display: block; width: 100%; margin: 0 0 clamp(12px, 1.6vw, 22px); padding: 0; border: 0; background: none;
  cursor: zoom-in; break-inside: avoid; position: relative;
}
.m img { width: 100%; height: auto; background: var(--paper); transition: opacity .3s; }
.m:hover img { opacity: .88; }
.gal__next {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: 20px var(--gut) 60px; padding-top: 24px; border-top: 2px solid var(--ink);
}
.gal__next small { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-bottom: .6rem; }
.gal__next strong { font: clamp(1.6rem, 4.5vw, 3.6rem)/1 var(--display); text-transform: uppercase; transition: color .3s; }
.gal__next span { font-size: 2.2rem; transition: transform .5s var(--ease); }
.gal__next:hover strong { color: var(--c); }
.gal__next:hover span { transform: translateX(10px); }

/* ---------- Visionneuse : photo entière, jamais agrandie au-delà de sa taille ---------- */
.view { width: 100%; height: 100%; margin: 0; background: #1b2120; color: #efe6d8; }
.view::backdrop { background: #1b2120; }
.view[open] { display: grid; place-items: center; }
.view img { width: auto; height: auto; max-width: min(92vw, 100%); max-height: 86vh; user-select: none; }
.view img.swap { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } }
.view__btn, .view__close { position: absolute; border: 0; background: none; color: #efe6d8; cursor: pointer; font: 500 1.6rem/1 var(--sans); padding: 18px; }
.view__prev { left: 6px; top: 50%; translate: 0 -50%; }
.view__next { right: 6px; top: 50%; translate: 0 -50%; }
.view__close { top: 8px; right: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.view__btn:hover, .view__close:hover { color: #f0b15c; }
.view__count { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: .8rem; letter-spacing: .14em; color: #b9b0a0; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: .55rem; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #1f9e57; color: #fff; font: 600 .9rem/1 var(--sans);
  box-shadow: 0 12px 28px -12px rgba(31, 42, 40, .55); transition: transform .4s var(--ease);
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { transform: translateY(-3px); }
@media (max-width: 900px) {
  .wa-float { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); padding: 13px; }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}
