/* ==========================================================================
   Lemma Agency — feuille de style
   Palette de la charte : brun mauve #92736c, rose pâle #fdf1f5, blanc, noir.
   Titres : Fraunces (éditorial, axes SOFT/WONK). Texte : Jost (géométrique).
   ========================================================================== */

/* ------------------------------------------------------------ polices
   Auto-hébergées : aucun appel à Google Fonts (RGPD, CSP font-src 'self'). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/fraunces-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/fraunces-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/jost-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/jost-italic.woff2) format("woff2");
}

/* ------------------------------------------------------------ jetons */
:root {
  --rose: #fdf1f5;
  --rose-2: #f8e6ec;
  --rose-3: #f0d6de;
  --brun: #92736c;
  --brun-2: #6f554f;
  --brun-3: #3f2f2c;
  --encre: #1a1416;
  --encre-2: #4d4245;
  --blanc: #ffffff;
  --sable: #ece3dd;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --marge: clamp(20px, 5vw, 72px);
  --colonne: 1240px;
  --rayon: 28px;
  --rayon-s: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duree: 0.9s;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--rose);
  color: var(--encre);
  font: 400 17px/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--brun); color: var(--rose); }

:focus-visible { outline: 2px solid var(--brun); outline-offset: 4px; border-radius: 4px; }

.saut {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 16px; background: var(--encre); color: var(--rose);
}
.saut:focus { left: 8px; }

/* ------------------------------------------------------------ typographie */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
/* .h3 : l'apparence d'un h3 sur un titre qui doit rester h2 dans le plan du document. */
h3, .h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 72; }
h4 { font-size: 1.2rem; font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 48; }

em, .ital { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--brun); font-weight: 300; }

.oeil {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font: 500 12px/1 var(--sans);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brun);
}
.oeil::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}

/* Les éléments d'une grille ou d'un flex ont une largeur minimale égale à leur
   contenu : sans `min-width: 0`, un paragraphe large repousse sa colonne et
   déborde de l'écran sur mobile. */
.dedans > *, .hero__texte, .hero__visuel { min-width: 0; }

.chapo {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--encre-2);
  max-width: min(60ch, 100%);
  text-wrap: pretty;
}
.texte { max-width: min(62ch, 100%); text-wrap: pretty; }
.texte p + p { margin-top: 0.2em; }

/* ------------------------------------------------------------ marque
   Le logo est un SVG monochrome appliqué en masque : il prend la couleur du
   texte (currentColor), ce qui permet un logo brun, noir, rose ou blanc sans
   multiplier les fichiers. */
.marque {
  display: inline-block;
  aspect-ratio: 1012 / 432;
  width: 120px;
  background: currentColor;
  -webkit-mask: url(/assets/logo/lemma-agency.svg) no-repeat center / contain;
          mask: url(/assets/logo/lemma-agency.svg) no-repeat center / contain;
}

/* ------------------------------------------------------------ boutons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--encre);
  background: var(--encre); color: var(--rose);
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.04em;
  transition: transform 0.5s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn .fleche {
  width: 18px; height: 18px; flex: none;
  transition: transform 0.45s var(--ease);
}
.btn:hover { background: var(--brun); border-color: var(--brun); color: var(--rose); }
.btn:hover .fleche { transform: translateX(4px); }
.btn--clair { background: transparent; color: var(--encre); border-color: rgba(26, 20, 22, 0.35); }
.btn--clair:hover { background: var(--encre); border-color: var(--encre); color: var(--rose); }
.btn--rose { background: var(--rose); border-color: var(--rose); color: var(--brun-3); }
.btn--rose:hover { background: var(--blanc); border-color: var(--blanc); color: var(--brun-3); }
.btn--contour-rose { background: transparent; color: var(--rose); border-color: rgba(253, 241, 245, 0.5); }
.btn--contour-rose:hover { background: var(--rose); color: var(--brun-3); border-color: var(--rose); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: gap 0.35s var(--ease), color 0.3s;
}
.lien-fleche svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.lien-fleche:hover { color: var(--brun); }
.lien-fleche:hover svg { transform: translateX(5px); }

/* ------------------------------------------------------------ en-tête */
/* L'en-tête passe au-dessus du menu plein écran : sinon le bouton de
   fermeture, enfermé dans son contexte d'empilement, disparaît sous le menu. */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 18px var(--marge);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.entete.defile {
  padding: 12px var(--marge);
  background: rgba(253, 241, 245, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(146, 115, 108, 0.16);
}
.entete__logo { color: var(--brun-3); display: inline-flex; }
.entete__logo .marque { width: 112px; transition: width 0.4s var(--ease); }
.entete.defile .entete__logo .marque { width: 96px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__liens { display: flex; gap: 30px; }
.nav__liens a {
  position: relative;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 0;
  color: var(--encre);
}
.nav__liens a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--brun);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__liens a:hover::after, .nav__liens a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.nav__liens a[aria-current="page"] { color: var(--brun); }
.nav .btn { padding: 12px 22px; font-size: 13px; }

.burger {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: transparent;
  position: relative; z-index: 60;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s, top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
body.menu-ouvert .burger { color: var(--rose); }
/* Le logo de l'en-tête s'efface pendant que le menu est ouvert : le menu
   porte déjà la marque, et le brun foncé sur brun foncé serait illisible. */
body.menu-ouvert .entete { background: transparent; box-shadow: none; }
body.menu-ouvert .entete__logo { color: var(--rose); }
body.menu-ouvert .burger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
body.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
body.menu-ouvert .burger span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* Menu plein écran sur mobile */
.menu-mobile {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto;
  background: var(--brun-3); color: var(--rose);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--marge) 48px;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}
body.menu-ouvert .menu-mobile { clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; }
.menu-mobile a {
  display: block;
  font: 400 clamp(2.4rem, 9vw, 4rem)/1.1 var(--serif);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  padding: 8px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.menu-mobile a[aria-current="page"] { color: var(--rose-3); font-style: italic; }
body.menu-ouvert .menu-mobile a { opacity: 1; transform: none; }
body.menu-ouvert .menu-mobile a:nth-child(1) { transition-delay: 0.25s; }
body.menu-ouvert .menu-mobile a:nth-child(2) { transition-delay: 0.32s; }
body.menu-ouvert .menu-mobile a:nth-child(3) { transition-delay: 0.39s; }
body.menu-ouvert .menu-mobile a:nth-child(4) { transition-delay: 0.46s; }
.menu-mobile__pied {
  margin-top: auto; padding-top: 32px;
  border-top: 1px solid rgba(253, 241, 245, 0.2);
  font-size: 14px; letter-spacing: 0.06em; color: var(--rose-3);
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.menu-mobile__pied a { font: inherit; padding: 0; opacity: 1; transform: none; }
body.menu-ouvert { overflow: hidden; }

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* ------------------------------------------------------------ ossature */
.bande { position: relative; padding: clamp(72px, 10vw, 140px) var(--marge); }
.bande--serree { padding-block: clamp(48px, 7vw, 96px); }
.dedans { max-width: var(--colonne); margin: 0 auto; }
.bande--brun { background: var(--brun); color: var(--rose); overflow: hidden; }
.bande--brun .oeil { color: var(--rose-3); }
.bande--brun h1 em, .bande--brun h2 em, .bande--brun h3 em { color: var(--rose-3); }
.bande--brun .chapo { color: rgba(253, 241, 245, 0.85); }
.bande--sombre { background: var(--brun-3); color: var(--rose); overflow: hidden; }
.bande--sombre .oeil { color: var(--rose-3); }
.bande--sombre h2 em { color: var(--rose-3); }
/* Sans cette règle, le chapeau garde sa couleur d'encre sombre et disparaît
   dans le fond brun foncé. */
.bande--sombre .chapo, .bande--sombre .texte { color: rgba(253, 241, 245, 0.85); }
.bande--blanc { background: var(--blanc); }

.entete-section {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .entete-section { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 60px; }
  .entete-section .chapo { margin-bottom: 0.4em; }
}

/* ------------------------------------------------------------ décor : halos */
.halo {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); opacity: 0.85; z-index: 0;
  will-change: transform;
}
.halo--rose { background: var(--rose-3); }
.halo--brun { background: rgba(146, 115, 108, 0.35); }
.halo--blanc { background: rgba(255, 255, 255, 0.9); }

/* ------------------------------------------------------------ hero (accueil) */
/* Le hero tient dans un écran, y compris sur un portable de 800 px de haut :
   les tailles sont bornées à la fois par la largeur (vw) et par la hauteur (vh). */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: clamp(104px, 15vh, 150px) var(--marge) clamp(40px, 7vh, 70px);
  display: grid; align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, min(7vw, 9vh), 6.2rem); }
.hero .dedans {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
  width: 100%;
}
@media (min-width: 960px) {
  .hero .dedans { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
}
.hero__texte { position: relative; z-index: 2; }
.hero__marque { color: var(--brun-3); margin-bottom: clamp(14px, 2.4vh, 28px); }
.hero__marque .marque { width: clamp(150px, min(20vw, 22vh), 250px); }
.hero h1 { margin-bottom: clamp(0.22em, 2.6vh, 0.45em); max-width: 12ch; }
.hero h1 em { display: inline-block; }
.hero .chapo { margin-bottom: clamp(20px, 3.6vh, 36px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__lieu {
  margin-top: clamp(24px, 4.4vh, 46px);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brun);
}
.hero__lieu::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brun); }

/* Pile de « réels » à droite : deux cartes 9:16 et une carte paysage */
.hero__visuel { position: relative; z-index: 1; height: clamp(380px, min(56vw, 62vh), 620px); }
.carte-reel {
  position: absolute;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(63, 47, 44, 0.35), 0 0 0 1px rgba(146, 115, 108, 0.15);
  background: var(--sable);
  will-change: transform;
}
.carte-reel img { width: 100%; height: 100%; object-fit: cover; }
.carte-reel--a { width: 52%; aspect-ratio: 9 / 16; left: 4%; top: 6%; transform: rotate(-6deg); z-index: 2; }
.carte-reel--b { width: 46%; aspect-ratio: 9 / 16; right: 2%; top: 0; transform: rotate(5deg); z-index: 1; }
.carte-reel--c { width: 62%; aspect-ratio: 4 / 3; right: 8%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.carte-reel__etiquette {
  position: absolute; left: 14px; bottom: 14px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(253, 241, 245, 0.85); color: var(--brun-3);
  font: 500 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* L'étiquette de la carte du fond passe en haut : en bas, la carte paysage
   la recouvrait à moitié. */
.carte-reel--b .carte-reel__etiquette { top: 14px; bottom: auto; }
.carte-reel__lecture {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(253, 241, 245, 0.9);
  display: grid; place-items: center;
  color: var(--brun-3);
  box-shadow: 0 10px 30px rgba(63, 47, 44, 0.25);
}
.carte-reel__lecture::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 16px solid currentColor;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.hero__defiler {
  position: absolute; left: var(--marge); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brun);
}
.hero__defiler span { display: block; width: 1px; height: 44px; background: var(--brun); overflow: hidden; position: relative; }
.hero__defiler span::after {
  content: ""; position: absolute; inset: 0; background: var(--rose);
  animation: descend 2.2s var(--ease) infinite;
}
@keyframes descend { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ------------------------------------------------------------ bandeau défilant */
.bandeau {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(146, 115, 108, 0.22);
  padding: 18px 0;
  background: var(--rose);
}
.bandeau__piste { display: inline-flex; animation: defile 40s linear infinite; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau__piste span {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font: 400 clamp(1.1rem, 1.8vw, 1.5rem)/1 var(--serif);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 72;
  color: var(--brun-3);
}
.bandeau__piste span i { font-style: normal; color: var(--brun); }
.bandeau--brun { background: var(--brun); border-color: rgba(253, 241, 245, 0.25); }
.bandeau--brun .bandeau__piste span { color: var(--rose); }
.bandeau--brun .bandeau__piste span i { color: var(--rose-3); }
@keyframes defile { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ intro (portrait + texte) */
.intro .dedans {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 900px) {
  .intro .dedans { grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 7vw, 110px); }
}
.cadre-arche {
  position: relative;
  border-radius: 999px 999px var(--rayon) var(--rayon);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sable);
  box-shadow: 0 40px 80px -30px rgba(63, 47, 44, 0.4);
}
.cadre-arche img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.cadre-arche:hover img { transform: scale(1); }
.cadre-arche__note {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(253, 241, 245, 0.88); color: var(--brun-3);
  font: 500 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.figure-liste {
  margin: 30px 0 0; padding: 0;
  display: grid; gap: 10px;
}
.figure-liste li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid rgba(146, 115, 108, 0.22);
  font-size: 1.05rem;
}
.figure-liste li:last-child { border-bottom: 1px solid rgba(146, 115, 108, 0.22); }
.figure-liste li b { font-weight: 500; }
.figure-liste li small { color: var(--brun); font: 500 11px/1 var(--sans); letter-spacing: 0.18em; min-width: 32px; }

/* ------------------------------------------------------------ cartes services */
.grille-services {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 760px) { .grille-services { grid-template-columns: repeat(3, 1fr); } }
.carte-service {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 420px;
  padding: 34px 30px 30px;
  border-radius: var(--rayon);
  background: var(--blanc); color: var(--encre);
  border: 1px solid rgba(146, 115, 108, 0.16);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), color 0.4s;
}
.carte-service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brun-3);
  clip-path: circle(0% at 85% 12%);
  transition: clip-path 0.8s var(--ease);
}
.carte-service:hover { transform: translateY(-6px); color: var(--rose); box-shadow: 0 40px 70px -30px rgba(63, 47, 44, 0.45); }
.carte-service:hover::before { clip-path: circle(160% at 85% 12%); }
.carte-service__num {
  font: 400 13px/1 var(--sans); letter-spacing: 0.2em; color: var(--brun);
  margin-bottom: 40px;
  transition: color 0.4s;
}
.carte-service:hover .carte-service__num { color: var(--rose-3); }
.carte-service h3 { margin-bottom: 18px; }
.carte-service ul { display: grid; gap: 8px; color: var(--encre-2); transition: color 0.4s; }
.carte-service:hover ul { color: rgba(253, 241, 245, 0.85); }
.carte-service ul li { padding-left: 18px; position: relative; }
.carte-service ul li::before { content: "—"; position: absolute; left: 0; color: var(--brun); }
.carte-service:hover ul li::before { color: var(--rose-3); }
.carte-service .lien-fleche { margin-top: auto; padding-top: 28px; }
.carte-service:hover .lien-fleche { color: var(--rose); }

/* ------------------------------------------------------------ galerie « aperçu » */
.galerie {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .galerie { grid-template-columns: repeat(6, 1fr); } }
.galerie figure {
  margin: 0; position: relative;
  border-radius: 20px; overflow: hidden;
  background: var(--sable);
  grid-column: span 1;
}
@media (min-width: 760px) {
  .galerie figure.g-portrait { grid-column: span 2; aspect-ratio: 9 / 16; }
  .galerie figure.g-paysage { grid-column: span 3; aspect-ratio: 4 / 3; }
}
.galerie figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  color: var(--rose);
  font: 500 12px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(63, 47, 44, 0.5);
}
.galerie figcaption small { font-size: 10px; opacity: 0.85; letter-spacing: 0.14em; }
/* Sur une composition claire, la légende passe en brun : blanc sur rose ne se lit pas. */
.galerie figure:has(.visuel--rose, .visuel--sable) figcaption { color: var(--brun-3); text-shadow: none; }
.galerie figure.g-portrait { aspect-ratio: 9 / 16; }
.galerie figure.g-paysage { aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------ « pour qui » */
.deux-colonnes {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.bloc-pour-qui {
  padding: 40px 34px;
  border-radius: var(--rayon);
  border: 1px solid rgba(253, 241, 245, 0.22);
  background: rgba(253, 241, 245, 0.06);
  transition: background 0.4s, transform 0.6s var(--ease);
}
.bloc-pour-qui:hover { background: rgba(253, 241, 245, 0.12); transform: translateY(-4px); }
.bloc-pour-qui h3 { margin-bottom: 12px; }
.bloc-pour-qui p { color: rgba(253, 241, 245, 0.85); margin: 0; }

/* ------------------------------------------------------------ appel final */
.appel {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
}
.appel h2 { font-size: clamp(2.6rem, 7vw, 6rem); max-width: 14ch; margin: 0 auto 0.4em; }
.appel .btn { margin-top: 10px; }
.appel__contact {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  font-size: 15px; letter-spacing: 0.04em; color: var(--rose-3);
}
.appel__contact a { border-bottom: 1px solid rgba(253, 241, 245, 0.3); transition: border-color 0.3s, color 0.3s; }
.appel__contact a:hover { color: var(--blanc); border-color: var(--blanc); }

/* ------------------------------------------------------------ pied de page */
.pied {
  background: var(--brun-3); color: var(--rose);
  padding: clamp(56px, 8vw, 96px) var(--marge) 32px;
}
.pied .dedans {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .pied .dedans { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.pied__marque { color: var(--rose); }
.pied__marque .marque { width: 160px; margin-bottom: 18px; }
.pied__marque p { color: var(--rose-3); max-width: min(32ch, 100%); font-size: 15px; }
.pied h4 {
  font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose-3); margin-bottom: 18px;
}
.pied ul { display: grid; gap: 10px; }
.pied a { transition: color 0.3s; }
.pied a:hover { color: var(--rose-3); }
.pied__bas {
  max-width: var(--colonne); margin: 56px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(253, 241, 245, 0.16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 13px; letter-spacing: 0.04em; color: rgba(253, 241, 245, 0.7);
}
.pied__bas a:hover { color: var(--rose); }

/* ------------------------------------------------------------ hero de page intérieure */
.hero-page {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 160px var(--marge) clamp(48px, 7vw, 90px);
}
.hero-page h1 { max-width: 14ch; }
.hero-page .chapo { margin-top: 10px; }

/* ------------------------------------------------------------ page à propos */
.a-propos .dedans { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .a-propos .dedans { grid-template-columns: 0.8fr 1.2fr; gap: clamp(48px, 7vw, 110px); }
  .a-propos .colle { position: sticky; top: 110px; }
}
.citation {
  margin: 40px 0; padding-left: 28px;
  border-left: 2px solid var(--brun);
  font: italic 300 clamp(1.5rem, 2.8vw, 2.3rem)/1.25 var(--serif);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 96;
  color: var(--brun-2);
  text-wrap: pretty;
}
.pleine-image {
  position: relative; overflow: hidden;
  border-radius: var(--rayon);
  aspect-ratio: 16 / 9; max-height: 620px;
  background: var(--sable);
}
.pleine-image img { width: 100%; height: 100%; object-fit: cover; }
.pleine-image .cadre-arche__note { left: auto; right: 18px; transform: none; }

/* ------------------------------------------------------------ page services */
.service {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(146, 115, 108, 0.22);
  scroll-margin-top: 90px;
}
.service:last-of-type { border-bottom: 1px solid rgba(146, 115, 108, 0.22); }
@media (min-width: 900px) { .service { grid-template-columns: 0.9fr 1.1fr; gap: 60px; } }
.service__tete { position: relative; }
@media (min-width: 900px) { .service__tete { position: sticky; top: 110px; align-self: start; } }
.service__num { font: 400 13px/1 var(--sans); letter-spacing: 0.22em; color: var(--brun); margin-bottom: 18px; }
.service__tete p { color: var(--encre-2); max-width: min(40ch, 100%); }
.prestations { display: grid; gap: 0; }
.prestation {
  display: grid; grid-template-columns: 1fr; gap: 6px 24px;
  padding: 22px 0;
  border-top: 1px dashed rgba(146, 115, 108, 0.3);
  transition: padding-left 0.5s var(--ease);
}
.prestation:first-child { border-top: 0; }
@media (min-width: 640px) { .prestation { grid-template-columns: minmax(200px, 0.9fr) 1.1fr; } }
.prestation:hover { padding-left: 10px; }
.prestation b {
  font: 400 1.25rem/1.25 var(--serif);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 48;
}
.prestation span { color: var(--encre-2); }

/* ------------------------------------------------------------ page contact */
.contact .dedans { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .contact .dedans { grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 7vw, 100px); } }
.coordonnees { display: grid; gap: 18px; margin-top: 36px; }
.coordonnees li { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid rgba(146, 115, 108, 0.22); }
.coordonnees small { font: 500 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brun); }
.coordonnees a { font-size: 1.2rem; transition: color 0.3s; }
.coordonnees a:hover { color: var(--brun); }

.formulaire {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 80px -40px rgba(63, 47, 44, 0.35);
  border: 1px solid rgba(146, 115, 108, 0.14);
}
.champ { display: grid; gap: 8px; margin-bottom: 22px; }
.champ label { font: 500 12px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brun-2); }
.champ input, .champ select, .champ textarea {
  width: 100%;
  font: 400 17px/1.5 var(--sans);
  color: var(--encre);
  padding: 14px 16px;
  border: 1px solid rgba(146, 115, 108, 0.35);
  border-radius: var(--rayon-s);
  background: var(--rose);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  appearance: none; -webkit-appearance: none;
}
.champ select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f554f' stroke-width='1.6'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: 0; border-color: var(--brun); background: var(--blanc);
  box-shadow: 0 0 0 4px rgba(146, 115, 108, 0.14);
}
.champ--piege { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.formulaire__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.formulaire__bas small { color: var(--encre-2); font-size: 13px; max-width: min(40ch, 100%); }
.formulaire__bas small a { text-decoration: underline; text-underline-offset: 3px; }
.formulaire__etat {
  margin-top: 18px; padding: 16px 18px; border-radius: var(--rayon-s);
  background: var(--rose-2); color: var(--brun-3); font-size: 15px;
}
.formulaire__etat[hidden] { display: none; }
.formulaire.envoye form { display: none; }
.formulaire__merci { text-align: center; padding: 20px 0; }
.formulaire__merci h3 { margin-bottom: 8px; }
.formulaire__merci[hidden] { display: none; }

/* ------------------------------------------------------------ pages légales */
.prose { max-width: min(70ch, 100%); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.3em; }
.prose a { color: var(--brun-2); text-decoration: underline; text-underline-offset: 3px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
.prose dt { font-weight: 500; color: var(--brun-2); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 2px; } .prose dd { margin-bottom: 10px; } }

/* ------------------------------------------------------------ page 404 */
.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--marge) 60px; }
.page-404 h1 { font-size: clamp(5rem, 20vw, 14rem); line-height: 0.9; color: var(--brun); }

/* ------------------------------------------------------------ apparitions au défilement */
/* Le contenu n'est masqué que si le JavaScript est actif (classe posée par
   tete.js avant le premier rendu). Sans lui, tout reste lisible. */
.js .apparait {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--duree) var(--ease), transform var(--duree) var(--ease);
  transition-delay: var(--delai, 0s);
}
.js .apparait.visible { opacity: 1; transform: none; }

/* Les grands titres s'écrivent ligne par ligne */
.titre-anim .ligne { display: block; overflow: hidden; }
.js .titre-anim .ligne > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.js .titre-anim.visible .ligne:nth-child(1) > span { transform: none; transition-delay: 0.05s; }
.js .titre-anim.visible .ligne:nth-child(2) > span { transform: none; transition-delay: 0.16s; }
.js .titre-anim.visible .ligne:nth-child(3) > span { transform: none; transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  .js .apparait, .js .titre-anim .ligne > span { opacity: 1; transform: none; transition: none; }
  .bandeau__piste { animation: none; }
  .hero__defiler span::after { animation: none; }
  .carte-reel, .halo { transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ voile de chargement */
.voile { display: none; }
.js .voile {
  display: grid;
  position: fixed; inset: 0; z-index: 90;
  background: var(--brun-3); color: var(--rose);
  place-items: center;
  transition: clip-path 1s var(--ease), visibility 0s linear 1s;
  clip-path: inset(0 0 0 0);
}
.voile .marque { width: clamp(160px, 24vw, 280px); opacity: 0; transform: translateY(10px); transition: opacity 0.6s, transform 0.8s var(--ease); }
.voile.pret .marque { opacity: 1; transform: none; }
body.charge .voile { clip-path: inset(0 0 100% 0); visibility: hidden; }

/* ==========================================================================
   Compositions de marque
   Le site n'affiche encore aucune photo : chaque emplacement visuel est une
   composition dans la charte — dégradé, grain, motif tiré des courbes du
   logo. Les motifs sont des SVG appliqués en masque, comme le logo : ils
   prennent la couleur du texte. Le jour où les vraies images arrivent, on
   remplace le bloc .visuel par un <img> ; les conteneurs sont déjà prêts.
   ========================================================================== */
.visuel {
  --va: var(--brun);
  --vb: var(--brun-2);
  --halo: rgba(253, 241, 245, 0.28);
  position: absolute; inset: 0;
  overflow: hidden; isolation: isolate;
  container-type: size;
  color: var(--rose);
  background:
    radial-gradient(120% 90% at 20% 10%, var(--halo), transparent 60%),
    linear-gradient(160deg, var(--va), var(--vb));
}
/* Grain fin : une texture, pas du bruit. */
.visuel::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  background-size: 220px 220px;
}
/* Voile du bas, pour que les étiquettes restent lisibles. */
.visuel::after {
  content: ""; position: absolute; inset: 55% 0 0 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(63, 47, 44, 0.35));
}
.visuel--rose   { --va: var(--rose-2); --vb: var(--rose-3); --halo: rgba(255,255,255,0.9); color: var(--brun); }
.visuel--rose::after { background: linear-gradient(to bottom, transparent, rgba(146, 115, 108, 0.18)); }
.visuel--brun   { --va: var(--brun); --vb: var(--brun-2); }
.visuel--sombre { --va: var(--brun-2); --vb: var(--brun-3); --halo: rgba(146, 115, 108, 0.6); }
.visuel--sable  { --va: var(--sable); --vb: var(--rose-3); --halo: rgba(255,255,255,0.9); color: var(--brun-2); }
.visuel--sable::after { background: linear-gradient(to bottom, transparent, rgba(146, 115, 108, 0.18)); }

.visuel__motif {
  position: absolute; z-index: 1;
  background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
  opacity: 0.22;
  transition: transform 1.6s var(--ease), opacity 0.8s;
}
.motif-ondes   { -webkit-mask-image: url(/assets/motifs/ondes.svg);   mask-image: url(/assets/motifs/ondes.svg);   inset: -20% -30% -10% -30%; }
.motif-arcs    { -webkit-mask-image: url(/assets/motifs/arcs.svg);    mask-image: url(/assets/motifs/arcs.svg);    inset: 18% -8% -2% -8%; }
.motif-cercles { -webkit-mask-image: url(/assets/motifs/cercles.svg); mask-image: url(/assets/motifs/cercles.svg); inset: 8% -15% 8% -15%; }
:is(.carte-reel, .galerie figure, .cadre-arche, .pleine-image):hover .visuel__motif { transform: scale(1.06) rotate(-2deg); opacity: 0.32; }

/* Un grand mot en italique, posé comme une signature. */
.visuel__mot {
  position: absolute; z-index: 2; left: 8%; bottom: 14%;
  font: italic 300 clamp(1.6rem, 22cqmin, 6rem)/0.95 var(--serif);
  font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144;
  letter-spacing: -0.02em;
  max-width: 84%; text-wrap: balance;
}
.visuel__mot small {
  display: block; margin-bottom: 0.7em;
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.8;
}
/* Le ratio, gravé en haut à droite comme sur un chutier. */
.visuel__ratio {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid currentColor; opacity: 0.7;
  font: 500 10px/1 var(--sans); letter-spacing: 0.18em;
}

/* Monogramme : à la place du portrait, les initiales sous l'arche. */
.monogramme {
  position: absolute; inset: 0; z-index: 2;
  /* Flex, pas grid : en grille, le « L » et le « H » deviendraient deux
     cellules empilées l'une sur l'autre. */
  display: flex; align-items: center; justify-content: center;
  font: 400 clamp(4rem, 34cqmin, 12rem)/1 var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  letter-spacing: -0.06em;
  white-space: nowrap;
  padding-bottom: 8%;
}
.monogramme em { font-style: italic; font-weight: 300; margin-left: -0.08em; }
.monogramme small {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font: 500 11px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.85;
}

/* Lecteur : les cartes du hero jouent la vidéo qu'elles n'ont pas encore.
   Une barre de lecture qui avance suffit à dire « réel » sans image. */
.lecteur {
  position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 54px;
  display: grid; gap: 8px;
  color: var(--rose);
}
.lecteur__piste { height: 3px; border-radius: 3px; background: rgba(253, 241, 245, 0.28); overflow: hidden; }
.lecteur__piste i {
  display: block; height: 100%; width: 100%; background: var(--rose);
  transform-origin: left; transform: scaleX(0.35);
  animation: lecture 9s linear infinite;
}
.lecteur__temps { display: flex; justify-content: space-between; font: 500 10px/1 var(--sans); letter-spacing: 0.12em; opacity: 0.85; }
@keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carte-reel--b .lecteur { bottom: 16px; }
.carte-reel--b .lecteur__piste i { animation-duration: 14s; animation-delay: -5s; }
.carte-reel--c .lecteur { display: none; }
/* Sur la carte paysage, le mot remonte pour laisser l'étiquette seule en bas. */
.carte-reel--c .visuel__mot { bottom: 30%; left: 9%; }

/* Bandeau typographique pleine largeur (page à propos). */
.pleine-image .visuel__mot { left: 6%; bottom: 16%; font-size: clamp(2rem, 9cqw, 5.4rem); max-width: 70%; }
.pleine-image .visuel__ratio { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lecteur__piste i { animation: none; transform: scaleX(0.55); }
  .visuel__motif { transition: none; }
}
