/* ==========================================================================
   M Céramique — mise en page et composants
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: var(--t-texte);
  line-height: 1.65;
  color: var(--encre);
  background: var(--porcelaine);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-titre); font-weight: 350; line-height: 1.05; font-variation-settings: "SOFT" 100, "opsz" 120; letter-spacing: -.01em; }
em { font-style: italic; font-variation-settings: "SOFT" 100; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--vert-eau-profond); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--encre); color: #fff; border-radius: 8px; transition: transform var(--micro) var(--courbe); }
.evitement:focus { transform: translateY(72px); }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; position: relative; }

.label {
  font-size: var(--t-label); font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--vert-eau-profond); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .8em;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.titre-section { font-size: var(--t-h2); margin-bottom: 1.4rem; max-width: 16ch; }
.titre-section em { color: var(--vert-eau-profond); }
.chapeau { font-size: var(--t-chapeau); line-height: 1.55; color: var(--encre-douce); max-width: 38ch; }


/* ---------- Texture céramique : grès moucheté + grain ---------- */
.texture { position: relative; background-color: var(--fond, var(--porcelaine)); isolation: isolate; }
.texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("../assets/img/texture-gres.png"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 512px 512px, 220px 220px;
}
.texture::after {
  /* reflet d'émail, très doux */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 15% 0%, rgba(255,255,255,.55), transparent 60%);
}

.fond-motif { position: absolute; z-index: -1; pointer-events: none; color: var(--encre); opacity: .09; }
.fond-motif--montagnes { width: min(70vw, 820px); aspect-ratio: 520 / 270; right: -6%; bottom: 4%; }
.fond-motif--pin { width: min(80vw, 900px); aspect-ratio: 580 / 330; left: -12%; top: 6%; opacity: .1; }
.fond-motif--nuee { width: min(60vw, 700px); aspect-ratio: 620 / 380; right: -4%; top: 4%; opacity: .08; }
.fond-motif--roseaux { width: 130%; aspect-ratio: 800 / 300; left: -15%; bottom: -2px; color: #23414A; opacity: .12; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.5em; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--encre);
  transition: transform var(--micro) var(--courbe), background-color var(--micro) var(--courbe), color var(--micro) var(--courbe);
}
.bouton svg { width: 18px; height: 18px; fill: currentColor; }
.bouton--plein { background: var(--encre); color: var(--porcelaine); }
.bouton--plein:hover { background: var(--vert-eau-profond); border-color: var(--vert-eau-profond); }
.bouton--trait { background: transparent; color: var(--encre); }
.bouton--trait:hover { background: var(--encre); color: var(--porcelaine); }
.bouton:active { transform: scale(.97); }

.rond {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--encre); background: rgba(255,255,255,.5);
  display: grid; place-items: center; transition: background-color var(--micro) var(--courbe), transform var(--micro) var(--courbe);
}
.rond svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rond:hover { background: var(--encre); color: var(--porcelaine); }
.rond:active { transform: scale(.94); }

.lien-fleche { display: inline-flex; gap: .5em; font-weight: 500; text-decoration: none; color: var(--vert-eau-profond); }
.lien-fleche span { transition: transform var(--micro) var(--courbe); }
.lien-fleche:hover span { transform: translateX(5px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gouttiere);
  transition: background-color 400ms var(--courbe), box-shadow 400ms var(--courbe);
}
.nav.est-defile { background: rgba(251,251,248,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(31,43,46,.08); }
.nav__logo { display: block; width: 118px; flex: none; }
.logo { width: 100%; height: auto; }

.nav__liens { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav__liens > a { font-size: .92rem; text-decoration: none; position: relative; padding-block: .4em; }
.nav__liens > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--courbe); }
.nav__liens > a:hover::after { transform: scaleX(1); }
.nav__reseaux-mobile { display: none; }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.icone-reseau { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color var(--micro) var(--courbe); }
.icone-reseau:hover { background: var(--vert-eau); }
.icone-reseau svg, .pastille svg, .reseau-grand svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icone-reseau svg path, .pastille svg path, .reseau-grand svg path { fill: currentColor; stroke: none; }
.icone-reseau .plein, .reseau-grand .plein { fill: currentColor; }
.bouton--appel { min-height: 44px; padding: .5em 1.1em; background: var(--vert-eau); border-color: transparent; margin-left: .3rem; }
.bouton--appel:hover { background: var(--encre); color: var(--porcelaine); }

.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--encre); transition: transform 300ms var(--courbe); }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__liens {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 360px);
    flex-direction: column; gap: 0; padding: 96px 32px 32px;
    background: var(--porcelaine); box-shadow: -20px 0 60px rgba(31,43,46,.12);
    transform: translateX(105%); transition: transform 500ms var(--courbe); visibility: hidden;
  }
  .nav__liens.est-ouvert { transform: none; visibility: visible; }
  .nav__liens > a { font-family: var(--font-titre); font-size: 1.7rem; padding-block: .45em; border-bottom: 1px solid rgba(31,43,46,.08); }
  .nav__liens > a::after { display: none; }
  .nav__reseaux-mobile { display: flex; gap: .6rem; margin-top: 1.6rem; }
  .reseau { padding: .5em 1em; border: 1px solid var(--encre); border-radius: 999px; text-decoration: none; font-size: .9rem; }
  .nav__burger { display: block; z-index: 2; }
  .nav .icone-reseau { display: none; }
}
@media (max-width: 560px) {
  .bouton--appel span { display: none; }
  .bouton--appel { width: 44px; padding: 0; }
  .nav__logo { width: 96px; }
}
body.menu-ouvert { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  z-index: 2; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 110px var(--gouttiere) 90px;
}

.hero__logo { width: clamp(220px, 30vw, 420px); height: auto; margin-bottom: clamp(24px, 4vw, 56px); }
.hero__dessin { margin: 0; position: relative; width: min(100%, 980px); }
.hero__dessin > svg { width: 100%; height: auto; overflow: visible; }
.hero__dessin .piece path, .hero__dessin .piece ellipse { stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; }
.hero__dessin .motif { fill: none; stroke: #6F7C7A !important; stroke-width: 1.2 !important; stroke-linecap: round; }
.hero__dessin .motif-plein { fill: var(--encre); }
.hero__dessin .etagere { stroke: var(--encre); stroke-width: 1.6; stroke-linecap: round; }
.hero__dessin .etagere--2 { stroke-width: 1; opacity: .5; }

/* Entrée du hero : titre ligne à ligne, puis les pièces posées une à une */
.js .hero__logo, .js .hero__dessin .piece, .js .hero__dessin .etagere { opacity: 0; }
.js .hero__logo { transform: translateY(16px); }
.js .est-pret .hero__logo { animation: entree 1100ms var(--courbe) forwards; }
.js .hero__dessin .piece { transform: translateY(14px); }
.js .est-pret .hero__dessin .etagere { animation: entree 900ms var(--courbe) 350ms forwards; }
.js .est-pret .hero__dessin .piece { animation: entree 1000ms var(--courbe) forwards; animation-delay: calc(480ms + var(--i) * 75ms); }
@keyframes entree { to { opacity: 1; transform: none; } }

.hero__suite { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.hero__suite span { width: 1px; height: 34px; background: var(--encre); transform-origin: top; animation: goutte 2.4s var(--courbe) infinite; }
@keyframes goutte { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Signature : l'envol */
.envol { position: absolute; inset: 0; pointer-events: none; z-index: 3; --p: 0; }
.envol__oiseau {
  position: absolute; left: var(--x); top: var(--y); width: 22px; height: 14px; overflow: visible;
  fill: var(--encre);
  transform: translate(calc(var(--dx) * var(--p)), calc(var(--dy) * var(--p))) rotate(calc(var(--r) * var(--p))) scale(calc(.5 + (var(--s) - .5) * var(--p)));
  opacity: calc(1 - var(--p) * var(--p));
  will-change: transform;
}
.envol__oiseau use { transform-box: fill-box; transform-origin: 50% 70%; }
.envol.en-vol .envol__oiseau use { animation: aile 700ms ease-in-out infinite alternate; animation-delay: calc(var(--b) * -63ms); }
@keyframes aile { to { transform: scaleY(.55); } }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero__suite { display: none; }
}

/* ---------- Histoire ---------- */
.histoire { padding-block: var(--section); overflow: hidden; }
.gestes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(64px, 9vw, 120px); }
.geste { margin: 0; }
.geste picture, .geste img { display: block; }
.geste img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); }
.geste figcaption { margin-top: .8rem; font-family: var(--font-titre); font-style: italic; font-size: var(--t-h3); }
@media (max-width: 700px) { .gestes { grid-template-columns: 1fr; } .geste img { aspect-ratio: 4 / 3; } }
.histoire__grille { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.histoire__visuel { position: relative; padding-bottom: 12%; }
.arche { border-radius: 999px 999px var(--rayon) var(--rayon); overflow: hidden; background: var(--vert-eau); }
.arche img { width: 100%; height: 100%; object-fit: cover; }
.histoire__visuel > .arche:first-child { aspect-ratio: 4 / 5; }
.histoire__vignette { position: absolute !important; width: 42%; aspect-ratio: 3 / 4; right: -8%; bottom: 0; border: 6px solid var(--biscuit); }
.arche--petite { border-radius: 999px 999px 10px 10px; }
.histoire__texte { padding-top: clamp(0px, 4vw, 60px); }

.chiffre { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 2.6rem; }
.chiffre__valeur { font-family: var(--font-titre); font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem); line-height: .9; font-weight: 300; color: var(--vert-eau-profond); font-variant-numeric: tabular-nums; }
.chiffre__legende { font-size: .95rem; line-height: 1.35; color: var(--encre-douce); }

.parcours { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(31,43,46,.25); }
.parcours li { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0 .7rem 1.6rem; }
.parcours li::before { content: ""; position: absolute; left: -5px; top: 1.25rem; width: 9px; height: 9px; border-radius: 50%; background: var(--biscuit); border: 1px solid var(--encre); }
.parcours li:last-child::before { background: var(--vert-eau-profond); border-color: var(--vert-eau-profond); }
.parcours__lieu { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--vert-eau-profond); font-weight: 500; padding-top: .25em; }

@media (max-width: 900px) {
  .histoire__grille { grid-template-columns: 1fr; }
  .histoire__visuel { max-width: 520px; width: 88%; }
  .parcours li { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Collections (carrousel) ---------- */
.collections { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: var(--coll-coquelicot); overflow: hidden; }
.collections__entete { position: absolute; top: 96px; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.collections__entete .label { margin: 0; }
.collections__onglets { display: flex; gap: .3rem; background: rgba(255,255,255,.6); padding: 4px; border-radius: 999px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.collections__onglets button { border: 0; background: transparent; padding: .55em 1.1em; min-height: 44px; border-radius: 999px; font-size: .92rem; transition: background-color var(--micro) var(--courbe), color var(--micro) var(--courbe); }
.collections__onglets button:hover { background: rgba(31,43,46,.08); }
.collections__onglets button[aria-selected="true"] { background: var(--encre); color: var(--porcelaine); }

.collections__piste { position: relative; flex: 1; display: grid; }
.coll { grid-area: 1 / 1; min-height: 100svh; padding: 190px 0 140px; display: flex; align-items: center; overflow: hidden; }
.coll__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.coll__num { font-size: var(--t-label); letter-spacing: .22em; color: var(--vert-eau-profond); font-weight: 500; margin-bottom: .6rem; }
.coll__titre { font-size: var(--t-coll); font-style: italic; font-weight: 300; line-height: .95; margin-bottom: 1.4rem; }
.coll__desc { font-size: var(--t-chapeau); color: var(--encre-douce); max-width: 36ch; line-height: 1.55; margin-bottom: 2rem; }
.coll__visuel { aspect-ratio: 4 / 5; max-height: 64svh; width: 100%; box-shadow: 0 30px 60px -30px rgba(31,43,46,.35); }
.coll__peinture { position: absolute; z-index: -1; pointer-events: none; }
.coll__peinture--coquelicots { width: min(40vw, 520px); aspect-ratio: 400 / 560; right: 30%; bottom: -14%; }
.coll__peinture--nuee { width: min(56vw, 760px); aspect-ratio: 620 / 380; right: -4%; top: 4%; color: var(--encre); opacity: .14; }
.coll__peinture--roseaux { width: 120%; aspect-ratio: 800 / 300; left: -10%; bottom: -2px; color: #23414A; opacity: .3; }
.coll__peinture--pin { width: min(80vw, 980px); aspect-ratio: 580 / 330; left: 18%; top: 2%; color: var(--encre); opacity: .2; }
.coll__peinture--coquelicots { opacity: .55; }

/* Transitions entre collections (seulement avec JS) */
.js .coll { visibility: hidden; opacity: 0; transition: opacity 700ms var(--courbe), visibility 0s linear 700ms; }
.js .coll.est-active { visibility: visible; opacity: 1; transition: opacity 700ms var(--courbe), visibility 0s; z-index: 1; }
.js .coll .coll__peinture { transform: translateX(var(--dep, 8%)); transition: transform 1400ms var(--courbe); }
.js .coll .coll__texte > * { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--courbe), transform 900ms var(--courbe); }
.js .coll .coll__visuel { opacity: 0; transform: scale(.94) translateY(20px); transition: opacity 800ms var(--courbe), transform 1200ms var(--courbe); }
.js .coll.est-active .coll__peinture { transform: none; }
.js .coll.est-active .coll__texte > *, .js .coll.est-active .coll__visuel { opacity: 1; transform: none; }
.js .coll.est-active .coll__texte > :nth-child(2) { transition-delay: 70ms; }
.js .coll.est-active .coll__texte > :nth-child(3) { transition-delay: 140ms; }
.js .coll.est-active .coll__texte > :nth-child(4) { transition-delay: 210ms; }
.js .coll.est-active .coll__texte > :nth-child(5) { transition-delay: 280ms; }
.js .coll.est-active .coll__visuel { transition-delay: 120ms; }

.collections__controles { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 4; display: flex; align-items: center; gap: 1.2rem; }
.collections__jauge { flex: 1; height: 1px; background: rgba(31,43,46,.2); position: relative; overflow: hidden; }
.collections__jauge span { position: absolute; inset: 0; background: var(--encre); transform-origin: left; transform: scaleX(.25); transition: transform 800ms var(--courbe); }
.no-js .collections__controles, .no-js .collections__onglets { display: none; }
.no-js .coll { min-height: auto; }

@media (max-width: 900px) {
  .collections__entete { top: 88px; }
  .collections__onglets { width: 100%; justify-content: space-between; }
  .collections__onglets button { padding: .5em .7em; flex: 1; }
  .coll { padding: 180px 0 120px; align-items: flex-start; }
  .coll__grille { grid-template-columns: 1fr; gap: 28px; }
  .coll__visuel { order: -1; aspect-ratio: 5 / 4; max-height: 34svh; border-radius: 999px 999px var(--rayon) var(--rayon); }
  .coll__desc { margin-bottom: 1.4rem; }
  .coll__peinture--coquelicots { right: -10%; width: 60vw; }
}

/* ---------- Fiche collection ---------- */
.fiche { border: 0; padding: 0; margin: auto; width: min(100% - 24px, 920px); max-height: min(92svh, 1000px); border-radius: 22px; background: transparent; color: var(--encre); overflow: hidden; }
.fiche::backdrop { background: rgba(31,43,46,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fiche[open] { animation: fiche-entree 600ms var(--courbe); }
@keyframes fiche-entree { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.fiche__corps { --fond: var(--porcelaine); position: relative; max-height: min(92svh, 1000px); overflow-y: auto; padding: clamp(28px, 5vw, 60px); overscroll-behavior: contain; }
.fiche__fermer { position: sticky; top: 0; float: right; margin: -8px -8px 0 0; z-index: 2; background: var(--porcelaine); }
.fiche__peinture { position: absolute; right: -40px; top: -20px; width: 60%; aspect-ratio: 1; z-index: -1; opacity: .16; color: var(--encre); }
.fiche__titre { font-size: clamp(3rem, 2rem + 4vw, 5rem); font-style: italic; font-weight: 300; margin-bottom: 1rem; }
.fiche__desc { font-size: var(--t-chapeau); color: var(--encre-douce); max-width: 46ch; }
.galerie { columns: 3 180px; column-gap: 10px; margin-top: 2rem; }
.galerie figure { margin: 0 0 10px; break-inside: avoid; border-radius: 12px; overflow: hidden; background: #E4E4E2; }
.galerie img { width: 100%; height: auto; }
.fiche__sous-titre { font-family: var(--font-texte); font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--vert-eau-profond); margin: 2.4rem 0 1rem; }
.pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pieces li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: rgba(255,255,255,.7); border: 1px solid rgba(31,43,46,.1); border-radius: 12px; line-height: 1.25; font-size: .98rem; }
.pieces li span { display: block; }
.pieces li small { display: block; color: var(--encre-douce); font-size: .8rem; }
.pieces svg { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--encre); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fiche.est-ouverte .pieces li { animation: entree-piece 700ms var(--courbe) both; }
.pieces li:nth-child(n) { animation-delay: calc(var(--n, 0) * 45ms + 150ms); }
@keyframes entree-piece { from { opacity: 0; transform: translateY(12px); } }
.fiche__pied { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(31,43,46,.12); }
.fiche__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Sur mesure ---------- */
.mesure { padding-block: var(--section); overflow: hidden; }
.mesure__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.engagements { list-style: none; padding: 0; margin: 2rem 0 2.2rem; display: grid; gap: 1rem; }
.engagements li { display: grid; gap: .2rem; padding: 1rem 1.2rem; background: rgba(255,255,255,.55); border-radius: 14px; border-left: 3px solid var(--vert-eau-profond); }
.engagements span { color: var(--encre-douce); font-size: .98rem; }
.mesure__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.mesure__visuels { position: relative; padding-bottom: 18%; }
.mesure__photo { margin: 0; }
.mesure__photo--grande { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 2; position: relative; }
.mesure__photo--grande img { width: 100%; height: 100%; object-fit: cover; }
.mesure__photo figcaption { position: absolute; left: 12px; top: 12px; padding: .35em .8em; background: rgba(251,251,248,.9); border-radius: 999px; font-size: .82rem; }
.mesure__photo--petite { position: absolute; width: 46%; aspect-ratio: 4 / 3; left: -6%; bottom: 0; border: 6px solid var(--vert-eau); border-radius: calc(var(--rayon) + 6px); overflow: hidden; }
.mesure__photo--petite img, .mesure__photo--vase img { width: 100%; height: 100%; object-fit: cover; }
.mesure__photo--vase { position: absolute; width: 28%; aspect-ratio: 3 / 4; right: 4%; bottom: -4%; border: 6px solid var(--vert-eau); }
@media (max-width: 900px) {
  .mesure__grille { grid-template-columns: 1fr; }
  .mesure__visuels { padding-bottom: 30%; }
  .mesure__photo--petite { left: 0; width: 52%; }
  .mesure__photo--vase { right: 0; width: 32%; }
}

/* ---------- Joyeuse ---------- */
.joyeuse { padding-block: var(--section); }
.joyeuse__grille { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.arche--large { aspect-ratio: 4 / 5; }
.joyeuse__visuel { position: relative; }
.joyeuse__vignette { position: absolute; z-index: 2; width: 46%; right: -8%; bottom: 6%; border-radius: var(--rayon); overflow: hidden; border: 6px solid var(--porcelaine); box-shadow: 0 30px 50px -30px rgba(31,43,46,.4); }
.joyeuse__vignette img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.label-vma { display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; align-items: center; margin: 2.2rem 0; padding: 1.2rem; background: #fff; border-radius: var(--rayon); box-shadow: 0 1px 0 rgba(31,43,46,.06), 0 20px 40px -30px rgba(31,43,46,.3); }
.label-vma p { margin: 0; font-size: .98rem; }
.vma { width: 100%; height: auto; }
.polinno { padding-top: 1.6rem; border-top: 1px solid rgba(31,43,46,.12); }
.polinno h3 { font-size: var(--t-h3); margin-bottom: .7rem; }
.polinno p { color: var(--encre-douce); max-width: 50ch; }
@media (max-width: 900px) {
  .joyeuse__grille { grid-template-columns: 1fr; }
  .joyeuse__visuel { max-width: 460px; width: 86%; }
  .joyeuse__vignette { right: -12%; }
  .label-vma { grid-template-columns: 1fr; }
  .vma { max-width: 180px; }
}

/* ---------- Associées ---------- */
.associees { padding-block: var(--section); overflow: hidden; }
.associees__entete { margin-bottom: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.associees__boutique { aspect-ratio: 4 / 5; }
.associee { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.associee + .associee { margin-top: clamp(64px, 9vw, 130px); }
.associee--inverse .associee__texte { order: 2; }
.associee__marque { font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; color: var(--vert-eau-profond); font-weight: 500; margin-bottom: .4rem; }
.associee__nom { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-style: italic; margin-bottom: 1.2rem; }
.associee__texte > p { color: var(--encre-douce); max-width: 46ch; }
.produits { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.produits li { padding: .3em .85em; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(31,43,46,.12); font-size: .88rem; }
.associee__liens { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; margin-top: 1.4rem; }

/* Fenêtre de navigateur : aperçu du site partenaire */
.fenetre { display: block; text-decoration: none; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(31,43,46,.45), 0 0 0 1px rgba(31,43,46,.08); transition: transform 500ms var(--courbe); }
.fenetre:hover { transform: translateY(-6px); }
.fenetre__barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F4F3; border-bottom: 1px solid rgba(31,43,46,.08); }
.fenetre__barre i { width: 10px; height: 10px; border-radius: 50%; background: #D5DCDA; }
.fenetre__url { margin-left: 10px; flex: 1; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: .82rem; color: var(--encre-douce); }
.fenetre__url::after { content: "  ↗"; }
.fenetre__ecran { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; padding: 6px; aspect-ratio: 16 / 11; }
.fenetre__img { display: block; overflow: hidden; border-radius: 8px; }
.fenetre__img--a { grid-row: span 2; }
.fenetre__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--courbe); }
.fenetre:hover .fenetre__img img { transform: scale(1.04); }
@media (max-width: 900px) {
  .associee, .associees__entete { grid-template-columns: 1fr; }
  .associees__boutique { max-width: 420px; width: 80%; }
  .associee--inverse .associee__texte { order: 0; }
}

/* ---------- Contact ---------- */
.contact { padding-block: var(--section) calc(var(--section) + 60px); overflow: hidden; }
.contact__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.coordonnees { margin: 2rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.coordonnees dt { font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--vert-eau-profond); font-weight: 500; margin-bottom: .2rem; }
.coordonnees dd { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.lien-trace { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.suivre__titre { font-family: var(--font-titre); font-size: var(--t-h3); margin-bottom: .9rem; }
.suivre__liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.reseau-grand {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--encre); color: var(--porcelaine); text-decoration: none;
  transition: transform var(--micro) var(--courbe), background-color var(--micro) var(--courbe);
}
.reseau-grand:hover { background: var(--vert-eau-profond); transform: translateY(-3px); }
.reseau-grand svg { width: 30px; height: 30px; flex: none; }
.reseau-grand span { display: grid; line-height: 1.25; }
.reseau-grand small { opacity: .75; font-size: .82rem; }

.carte { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--eau-pale); margin-bottom: 1rem; }
.carte__apercu { position: absolute; inset: 0; }
.carte__apercu img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.carte__apercu::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,43,46,.55), transparent 55%); }
.carte__bouton { position: absolute; left: 20px; bottom: 44px; background: var(--porcelaine); color: var(--encre); border-color: transparent; }
.carte__note { position: absolute; left: 20px; right: 20px; bottom: 12px; margin: 0; font-size: .75rem; color: #fff; }
.carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6); transition: filter 500ms var(--courbe); }
.carte iframe:hover { filter: none; }
@media (max-width: 900px) {
  .contact__grille { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .coordonnees, .suivre__liens { grid-template-columns: 1fr; }
  .carte { aspect-ratio: 4 / 5; }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #DCE6E3; padding: 28px 0 32px; font-size: .9rem; }
.pied__grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.pied p { margin: 0; }
.pied a { color: inherit; }
.pied__liens { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }


/* ---------- Pages légales ---------- */
.legal { padding: 130px var(--gouttiere) var(--section); }
.legal__col { max-width: 720px; margin-inline: auto; }
.legal h1 { font-size: var(--t-h2); margin-bottom: 2rem; }
.legal h2 { font-size: var(--t-h3); margin: 2.2rem 0 .8rem; }

/* ---------- Overlay d'appel ---------- */
.appel {
  --fond: var(--vert-eau);
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: var(--gouttiere); border: 0; color: var(--encre);
  display: none; place-items: center; overflow-y: auto;
}
.appel[open] { display: grid; }
.appel::backdrop { background: transparent; }
.appel.est-ouvert { animation: appel-fond 500ms var(--courbe) both; }
@keyframes appel-fond { from { opacity: 0; } }
.appel__fermer { position: absolute; top: 16px; right: var(--gouttiere); }
.appel__contenu { text-align: center; display: grid; justify-items: center; }
.appel__label { justify-content: center; }
.appel__label::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.appel__numero {
  font-family: var(--font-titre); font-weight: 300; font-variation-settings: "SOFT" 100, "opsz" 144;
  font-size: clamp(3rem, 1rem + 10vw, 10rem); line-height: 1; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap; margin: .2em 0 .35em; font-variant-numeric: tabular-nums;
}
.appel__paire { display: inline-block; }
.appel.est-ouvert .appel__paire { animation: appel-chiffre 900ms var(--courbe) both; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes appel-chiffre { from { opacity: 0; transform: translateY(.35em); } }
.appel__numero:hover .appel__paire { color: var(--vert-eau-profond); }
.appel__texte { color: var(--encre-douce); font-size: var(--t-chapeau); line-height: 1.45; }
.appel__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1rem 0 1.6rem; }
.appel.est-ouvert .appel__label, .appel.est-ouvert .appel__texte, .appel.est-ouvert .appel__actions, .appel.est-ouvert .appel__alt { animation: appel-chiffre 900ms var(--courbe) 480ms both; }
.appel__alt { font-size: .95rem; color: var(--encre-douce); margin: 0; }
@media (max-width: 480px) {
  .appel__numero { font-size: 13.5vw; }
  .appel__actions { flex-direction: column; width: 100%; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js .hero__logo, .js .hero__dessin .piece, .js .hero__dessin .etagere { opacity: 1; transform: none; }
  .envol { --p: 0 !important; }
  .envol__oiseau use { animation: none !important; }
  .hero__suite span { animation: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
