/* =========================================================
   Effets : colonne sculpture, cartes flottantes, chiffres animés, avis,
   galerie en éventail, lignes de lumière, boutons aimantés et halo
   du curseur (validés par Jules le 30/10/2026).
   ========================================================= */

/* ---------- Colonne sculpture : studio clair, objet au centre ---------- */
.sculpt { position: relative; color: var(--ink);
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(251, 248, 243, .9) 0%, rgba(251, 248, 243, 0) 70%), linear-gradient(to bottom, #E8E2D7 0%, #E8E2D7 75%, var(--sand-50) 100%); }
.sculpt-stage { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(251, 248, 243, .75), rgba(251, 248, 243, 0) 70%); }
.sculpt-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sculpt-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s linear; }
/* ombre douce au sol, sous la colonne */
.sculpt-floor {
  position: absolute; left: 50%; bottom: 7%; width: min(46vw, 420px); height: 46px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 55, 35, .22), rgba(70, 55, 35, 0));
}
/* le contenu défile par-dessus la scène fixe */
.sculpt-flow { position: relative; margin-top: -100vh; margin-top: -100svh; padding-bottom: 12vh; }
.sculpt-intro { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.sculpt-intro h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.7rem); max-width: 14ch; }
.sculpt-intro .lead { max-width: 38ch; color: var(--ink); }
@media (min-width: 900px) { .sculpt-intro > * { max-width: 42%; } }

/* ---------- Cartes flottantes ---------- */
.fcards { display: grid; gap: 26vh; padding-block: 8vh 18vh; }
.fcard {
  width: min(100%, 380px); padding: 26px 28px; border-radius: 18px;
  background: rgba(255, 253, 249, .78); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 60px -32px rgba(60, 45, 25, .35), 0 2px 0 rgba(255, 255, 255, .8) inset;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  will-change: transform;
}
.fcard-right { justify-self: end; }
.fcard p { margin: 0 0 .6em; color: var(--muted); }
.fcard p:last-child { margin-bottom: 0; }
.fcard-label { font: italic 500 1rem/1.3 var(--font-display); color: var(--sage-700) !important; }
.fcard-big { font: 500 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1.1 var(--font-display); color: var(--ink) !important; letter-spacing: -.02em; }
.fcard blockquote { margin: 0; font: 500 clamp(1.35rem, 1.1rem + .8vw, 1.7rem)/1.35 var(--font-display); color: var(--ink); }
.fcard-dark { background: rgba(14, 28, 42, .9); border-color: rgba(159, 212, 188, .25); }
.fcard-dark p { color: var(--night-muted); }
.fcard-dark .fcard-label { color: var(--glow) !important; }
.fcard-dark .fcard-big { color: var(--night-text) !important; }
.fcard-dark .btn { margin-top: 10px; }
@media (max-width: 899px) {
  .fcards { gap: 34vh; }
  .fcard, .fcard-right { justify-self: center; }
}

/* ---------- Chiffres animés ---------- */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 8vh 0; position: relative; }
.counters p { margin: 0; padding: 26px 20px 0; border-top: 1px solid rgba(30, 42, 48, .25); }
.counters strong { display: block; font: 400 clamp(3rem, 1.6rem + 4.6vw, 6rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.counters span { display: block; margin-top: 10px; color: #444A46; }
@media (max-width: 899px) { .counters { grid-template-columns: 1fr 1fr; row-gap: 28px; } .counters p { padding-inline: 0 12px; } }

/* ---------- Boutons aimantés ---------- */
.btn { translate: var(--mx, 0) var(--my, 0); transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .3s ease, transform .15s ease, translate .35s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Halo qui suit le curseur (ordinateur seulement) ---------- */
.cursor-halo {
  position: fixed; left: 0; top: 0; z-index: 80; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(closest-side, rgba(159, 212, 188, .28), rgba(159, 212, 188, 0));
  mix-blend-mode: soft-light; will-change: transform;
}
.cursor-halo.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fcard { will-change: auto; }
  .cursor-halo { display: none; }
}

/* ---------- Avis (style « Design Testimonial ») ---------- */
.testi-grid { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(16px, 4vw, 48px); }
.testi-side { margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; align-self: stretch; text-align: end;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); padding-left: 14px; }
.testi-stage { position: relative; min-height: 340px; padding: clamp(8px, 2vw, 24px) 0 0; overflow: hidden; }
.testi-num { position: absolute; right: -2%; top: -12%; font: 400 clamp(12rem, 8rem + 16vw, 24rem)/1 var(--font-display); letter-spacing: -.06em; color: rgba(47, 93, 78, .07); pointer-events: none; transition: opacity .4s; }
.testi-title { position: relative; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--sage-700); margin-bottom: 18px; }
.testi-flag { position: relative; display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: var(--radius-pill); background: #FEF3C7; color: #78350F; font-size: .85rem; }
.testi-list { position: relative; list-style: none; margin: 0; padding: 0; }
.testi-item blockquote { margin: 0 0 28px; max-width: 26ch; font: 500 clamp(1.7rem, 1.1rem + 2.4vw, 3.1rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.testi-item blockquote.is-long { max-width: 40ch; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); line-height: 1.3; }
.testi-score { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 22px; color: var(--muted); font-size: .95rem; }
.testi-score strong { color: var(--ink); }
.testi-stars { color: #C9A227; letter-spacing: 2px; font-size: 1.05rem; }
.testi-links { position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; }
.testi-who { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: 600; }
.testi-who span { width: 36px; height: 1px; background: var(--ink); }
.testi-who small { display: block; margin-left: 4px; font-weight: 400; color: var(--muted); }
.testi-nav { position: relative; display: flex; gap: 10px; margin-top: 32px; }
.testi-nav .icon-btn { background: transparent; border: 1px solid var(--line); font-size: 1.1rem; transition: background-color .2s, border-color .2s; }
.testi-nav .icon-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.testi-item.is-entering { animation: testi-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes testi-in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 640px) { .testi-grid { grid-template-columns: 1fr; } .testi-side { display: none; } }

/* ---------- Galerie en éventail (photos du cabinet) ---------- */
@media (min-width: 861px) {
  .gallery.fan { position: relative; display: flex; justify-content: center; padding-block: 24px; }
  .gallery.fan > * { width: 36%; flex: none; box-shadow: 0 30px 50px -30px rgba(60, 45, 25, .45); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
  .gallery.fan > :nth-child(1) { transform: translateX(28%) rotate(-7deg); }
  .gallery.fan > :nth-child(2) { position: relative; z-index: 2; transform: translateY(-14px); }
  .gallery.fan > :nth-child(3) { transform: translateX(-28%) rotate(7deg); }
  .gallery.fan:hover > :nth-child(1), .gallery.fan:focus-within > :nth-child(1) { transform: translateX(-4%) rotate(-3deg); }
  .gallery.fan:hover > :nth-child(2), .gallery.fan:focus-within > :nth-child(2) { transform: translateY(-22px) scale(1.03); }
  .gallery.fan:hover > :nth-child(3), .gallery.fan:focus-within > :nth-child(3) { transform: translateX(4%) rotate(3deg); }
}

/* ---------- Lignes de lumière derrière le bandeau rendez-vous ---------- */
.cta-section { position: relative; overflow: hidden; isolation: isolate; }
.cta-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }

/* ---------- Boutons contour qui se remplissent (style « Flow Button ») ---------- */
.btn-ghost { position: relative; overflow: hidden; isolation: isolate; --fill: var(--ink); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--fill);
  transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.btn-ghost:hover::before, .btn-ghost:focus-visible::before { transform: scaleX(1); }
.btn-ghost:hover, .night .btn-ghost:hover, .cta-section .btn-ghost:hover { background: transparent; }
.night .btn-ghost, body.home .mobile-bar .btn-ghost { --fill: var(--night-text); }
.cta-section .btn-ghost { --fill: var(--white); }
@media (prefers-reduced-motion: reduce) { .btn-ghost::before { transition: none; } }

/* ---------- Fondus entre les sections : une seule page continue ---------- */
.blend {
  --from: var(--sand-50); --to: var(--night-900); --h: clamp(120px, 24vh, 280px);
  --o: 0px; position: relative; z-index: 1; margin-top: calc(-1 * var(--o)); height: calc(var(--h) + var(--o)); pointer-events: none;
  /* après une section nuit, léger recouvrement (--o) pour adoucir les halos coupés au bas de la section */
  background: linear-gradient(to bottom, transparent, var(--from)) top / 100% var(--o) no-repeat,
    linear-gradient(to bottom, var(--from), var(--to)) bottom / 100% var(--h) no-repeat;
  background: linear-gradient(to bottom, transparent, var(--from)) top / 100% var(--o) no-repeat,
    linear-gradient(to bottom, var(--from) 0%, color-mix(in oklab, var(--from) 90%, var(--to)) 15%,
    color-mix(in oklab, var(--from) 50%, var(--to)) 50%, color-mix(in oklab, var(--from) 10%, var(--to)) 85%, var(--to) 100%) bottom / 100% var(--h) no-repeat;
}
.blend-night-studio { --from: var(--night-900); --to: #E8E2D7; --h: clamp(180px, 40vh, 420px); --o: 60px; }
.blend-sand-night { --from: var(--sand-50); --to: var(--night-900); }
.blend-night-sand { --from: var(--night-900); --to: var(--sand-50); --o: 60px; }
.blend-cta { --to: var(--night-800); }
/* les sections teintées se fondent dans le fond sable au lieu d'une ligne nette */
.section-tint { background: var(--sand-100) linear-gradient(to bottom, var(--sand-50), var(--sand-100) clamp(60px, 10vw, 140px), var(--sand-100) calc(100% - clamp(60px, 10vw, 140px)), var(--sand-50)); }
.facts { border-block: 0; background: transparent; }
.cta-section { background: var(--night-800) linear-gradient(to bottom, var(--night-800) 55%, var(--night-900)); }

/* ---------- Teinte de page pilotée par le défilement ----------
   Une seule couleur de fond, fixe, qui glisse doucement de la nuit au studio puis au sable
   (effets.js). Les sections nuit deviennent transparentes : plus aucune frontière visible.
   Sans JavaScript, les fonds et dégradés classiques restent en place. */
.page-tint { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--tint, var(--sand-50)); overflow: hidden; }
.page-tint i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: calc(var(--n, 0) * 1); will-change: transform; }
.page-tint i:first-child { width: 60vmax; height: 60vmax; left: -18vmax; top: 10%; background: rgba(94, 140, 119, .22); animation: drift-a 38s ease-in-out infinite alternate; }
.page-tint i:last-child { width: 52vmax; height: 52vmax; right: -14vmax; bottom: -6%; background: rgba(60, 98, 140, .26); animation: drift-b 46s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .page-tint i { animation: none; } }
.tinted body { background: transparent; }
.tinted .night, .tinted .cta-section, .tinted .sculpt, .tinted .site-footer { background: transparent; }
.tinted .ambient::before, .tinted .ambient::after { display: none; }
.tinted .blend { background: none; margin-top: 0; height: clamp(90px, 20vh, 220px); }
.tinted .blend-night-studio { height: clamp(140px, 30vh, 320px); }

/* ---------- Vraies photos ---------- */
.photo { position: relative; margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--sand-200); }
.photo picture, .photo img { display: block; width: 100%; height: 100%; }
.photo img { object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(251, 248, 243, .9); color: var(--ink); font-size: .85rem; }
.ed-body .photo { margin-bottom: 28px; }
.timeline li { grid-template-columns: 96px 1fr; }

/* ---------- Logo « AT » de Thibaut (vectorisé depuis son fichier, couleur par CSS) ---------- */
.brand-at { display: block; flex: none; width: 46px; height: 36px; background: #0E4A92;
  -webkit-mask: url(/img/logo-at.svg) center / contain no-repeat; mask: url(/img/logo-at.svg) center / contain no-repeat; }
body.home .brand-at { background: var(--night-text); }
.intro-mark .im-at { position: absolute; inset: 0; background: var(--night-text);
  -webkit-mask: url(/img/logo-at.svg) center / contain no-repeat; mask: url(/img/logo-at.svg) center / contain no-repeat;
  clip-path: inset(100% 0 0 0); }
.intro-on .intro-mark { width: 170px; height: 134px; }
.intro-play .intro-mark .im-at { animation: at-draw 1.2s cubic-bezier(.65, 0, .25, 1) forwards; }
@keyframes at-draw { to { clip-path: inset(0 0 0 0); } }

/* ---------- Horaires visibles dès l'ouverture de l'accueil ---------- */
.hero-hours { margin: 4px 0 22px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(159, 212, 188, .28); background: rgba(159, 212, 188, .07); }
.hero-hours .open-now { margin-bottom: 4px; color: var(--night-text); }
.hero-hours .open-now .dot { background: var(--night-muted); }
.hero-hours .open-now.is-open .dot { background: var(--glow); box-shadow: 0 0 0 4px rgba(159, 212, 188, .2); }
.hero-hours-text { margin: 0; color: var(--night-text) !important; font-size: .98rem; }
.intro-play .story-intro > :nth-child(6) { animation-delay: 3.25s; }

/* ---------- Accueil plus court ---------- */
.sculpt-intro { min-height: 70vh; }
.fcards { gap: 14vh; padding-block: 4vh 10vh; }
@media (max-width: 899px) { .fcards { gap: 20vh; } }
body.home { --section-y: clamp(52px, 7vw, 96px); }
.story-step[data-zone] { min-height: 72vh; }
@media (max-width: 860px) { .story-step[data-zone] { min-height: 74vh; } @supports (height: 100svh) { .story-step[data-zone] { min-height: 74svh; } } }
