/* ===== Couche d'animations modernes (ajoutée au site d'origine) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root){ animation: .35s ease both mFadeOut; }
::view-transition-new(root){ animation: .5s ease both mFadeIn; }
@keyframes mFadeOut{ to{ opacity:0; transform:translateY(-6px);} }
@keyframes mFadeIn{ from{ opacity:0; transform:translateY(8px);} }

/* Barre de progression de lecture */
.m-progress{ position:fixed; inset:0 0 auto 0; height:3px; z-index:100; transform:scaleX(0); transform-origin:left;
  background:linear-gradient(90deg,var(--color-primary),var(--color-gold),var(--color-garnet)); }

/* Révélations variées (remplacent le simple fondu) */
.reveal{ transition: opacity .9s cubic-bezier(.16,1,.3,1) var(--m-d,0s), transform .9s cubic-bezier(.16,1,.3,1) var(--m-d,0s), filter .9s ease var(--m-d,0s), clip-path 1.2s cubic-bezier(.16,1,.3,1) var(--m-d,0s); }
.reveal{ filter:blur(6px); transform:translateY(28px); }
.reveal.is-visible{ filter:none; transform:none; }
.hero__figure.reveal img, .feature__media.reveal img{ clip-path:inset(0 0 100% 0 round 24px); transform:scale(1.06); transition:clip-path 1.3s cubic-bezier(.16,1,.3,1) .15s, transform 1.3s cubic-bezier(.16,1,.3,1) .15s; }
.hero__figure.reveal.is-visible img, .feature__media.reveal.is-visible img{ clip-path:inset(0 0 0 0 round 24px); transform:none; }
.hero__figure img, .motif-row__figure img, .feature__media img{ will-change:transform; transition:transform .8s cubic-bezier(.16,1,.3,1); }
.hero__figure:hover img, .motif-row__figure:hover img{ transform:scale(1.04); }

/* Titre mot à mot */
.m-word{ display:inline-block; overflow:hidden; vertical-align:bottom; padding-bottom:.12em; }
.m-word > span{ display:inline-block; transform:translateY(110%) rotate(4deg); opacity:0; transition:transform 1s cubic-bezier(.16,1,.3,1) var(--m-w,0s), opacity .8s ease var(--m-w,0s); }
.is-visible .m-word > span, .m-in .m-word > span{ transform:none; opacity:1; }
.hero__title.reveal, h2.reveal{ filter:none; }

/* Ligne dessinée sous les surtitres */
.eyebrow{ position:relative; }
.eyebrow::after{ content:""; display:block; height:1px; width:56px; margin-top:.6rem; background:var(--color-gold); transform:scaleX(0); transform-origin:left; transition:transform 1.1s cubic-bezier(.16,1,.3,1) .3s; }
.is-visible.eyebrow::after, .is-visible .eyebrow::after{ transform:scaleX(1); }

/* Cartes : relief + halo qui suit la souris */
.motif, .step, .tarif-row, .post-card, .info-strip__item{ position:relative; transition:transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease; }
.motif:hover, .post-card:hover, .tarif-row:hover{ transform:translateY(-5px); box-shadow:0 18px 40px -18px oklch(from var(--color-primary) l c h / .45); }
.m-glow::before{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; transition:opacity .4s;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%), oklch(from var(--color-gold) l c h / .22), transparent 70%); }
.m-glow:hover::before{ opacity:1; }

/* Boutons magnétiques + reflet */
.btn{ position:relative; overflow:hidden; transition:transform .25s ease, box-shadow .35s ease, background-color .3s; will-change:transform; }
.btn::after{ content:""; position:absolute; top:0; left:-60%; width:40%; height:100%; transform:skewX(-20deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent); transition:left .7s ease; }
.btn:hover::after{ left:130%; }
.btn--primary:hover{ box-shadow:0 12px 28px -10px oklch(from var(--color-garnet) l c h / .6); }

/* Navigation : soulignement animé */
.nav__link{ position:relative; }
.nav__link::after{ content:""; position:absolute; left:0; right:0; bottom:2px; height:1.5px; background:var(--color-garnet); transform:scaleX(0); transform-origin:right; transition:transform .45s cubic-bezier(.16,1,.3,1); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after{ transform:scaleX(1); transform-origin:left; }
.header{ transition:transform .45s cubic-bezier(.16,1,.3,1), box-shadow .3s, padding .3s; }

/* Lierre qui se dessine avec le défilement + flottement des oiseaux */
.ivy-sprig, .ivy-vine, .motif-row__bird{ will-change:transform; }
.motif-row__bird{ animation:mFloat 7s ease-in-out infinite; }
@keyframes mFloat{ 0%,100%{ translate:0 0; rotate:0deg } 50%{ translate:0 -10px; rotate:2deg } }

/* Citations : guillemet qui apparaît */
.pull-quote{ background:linear-gradient(90deg,var(--color-gold-highlight),transparent) no-repeat; background-size:0% 100%; transition:background-size 1.4s cubic-bezier(.16,1,.3,1); }
.pull-quote.is-visible{ background-size:100% 100%; }

/* Défilement lié (navigateurs compatibles) */
@supports (animation-timeline: view()) {
  .m-parallax{ animation:mPar linear both; animation-timeline:view(); animation-range:cover 0% cover 100%; }
  @keyframes mPar{ from{ translate:0 -28px } to{ translate:0 28px } }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .reveal{ filter:none; clip-path:none; transform:none; opacity:1; }
  .m-word > span{ transform:none; opacity:1; }
}

/* ===== Page Spécialités : images plus petites, apparition progressive ===== */
.motif-rows{ gap:clamp(3rem,7vw,6rem); }
.motif-row{ grid-template-columns:minmax(0,.6fr) minmax(0,1fr); }
.motif-row:nth-child(even){ grid-template-columns:minmax(0,1fr) minmax(0,.6fr); }
.motif-row__figure{ max-width:340px; width:100%; justify-self:center; }
.motif-row__media img{ translate:none !important; animation:none !important; transform:none; }
.motif-rows .motif-row.reveal{ opacity:1; filter:none; transform:none; }
@media (max-width:860px){
  .motif-row,.motif-row:nth-child(even){ grid-template-columns:1fr; }
  .motif-row__figure{ max-width:280px; }
}
@media (prefers-reduced-motion:no-preference){
  /* Texte : entrée en cascade */
  .motif-row__text > *{ opacity:0; transform:translateY(22px); transition:opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
  .motif-row.is-visible .motif-row__text > *{ opacity:1; transform:none; }
  .motif-row.is-visible .motif-row__text > :nth-child(2){ transition-delay:.12s; }
  .motif-row.is-visible .motif-row__text > :nth-child(3){ transition-delay:.24s; }
  .motif-row.is-visible .motif-row__text > :nth-child(4){ transition-delay:.36s; }
  .motif-row.is-visible .motif-row__text > :nth-child(5){ transition-delay:.48s; }
  /* Image : se dévoile au fil du défilement */
  @supports (animation-timeline:view()){
    .motif-row__media{ animation:mImg linear both; animation-timeline:view(); animation-range:entry 8% entry 95%; }
  }
  @supports not (animation-timeline:view()){
    .motif-row__media{ clip-path:inset(100% 0 0 0 round 20px); transform:translateY(36px) scale(.94); opacity:.2; transition:clip-path 1.3s cubic-bezier(.16,1,.3,1), transform 1.3s cubic-bezier(.16,1,.3,1), opacity 1s ease; }
    .motif-row.is-visible .motif-row__media{ clip-path:inset(0 round 20px); transform:none; opacity:1; }
  }
}
@keyframes mImg{
  from{ clip-path:inset(100% 0 0 0 round 20px); opacity:.15; transform:translateY(48px) scale(.92); }
  to{ clip-path:inset(0 0 0 0 round 20px); opacity:1; transform:none; }
}

/* ===== Reste du site : images plus petites + apparition progressive ===== */
.hero__figure{ max-width:88%; justify-self:center; }
.feature__media{ max-width:400px; width:100%; justify-self:center; }
.intro-cabinet{ max-width:480px; }
.quote-band{ grid-template-columns:minmax(0,.5fr) minmax(0,1.5fr); }
.quote-band__media{ max-width:300px; width:100%; justify-self:center; }
.post-card__media{ max-width:300px; width:100%; justify-self:center; }
.video-frame{ max-width:560px; margin-inline:auto; }
.hero__figure img, .feature__media img, .intro-cabinet img, .post-card__media img, .quote-band__media img{ translate:none !important; animation:none !important; }
.feature__media.reveal, .intro-cabinet.reveal{ filter:none; }
@media (max-width:860px){
  .hero__figure{ max-width:420px; }
  .feature__media{ max-width:300px; }
  .quote-band{ grid-template-columns:1fr; }
  .quote-band__media{ max-width:260px; }
  .post-card__media{ max-width:240px; }
}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .feature__media, .intro-cabinet, .quote-band__media, .post-card__media, .video-frame{
      animation:mImg linear both; animation-timeline:view(); animation-range:entry 8% entry 95%; }
    /* Hero : l'illustration s'estompe doucement quand on quitte le haut de page */
    .hero__figure{ animation:mHeroOut linear forwards; animation-timeline:view(); animation-range:exit 10% exit 90%; }
  }
  @supports not (animation-timeline:view()){
    .feature__media img, .intro-cabinet img, .quote-band__media img, .post-card__media img, .video-frame img{
      clip-path:inset(100% 0 0 0 round 20px); transform:translateY(36px) scale(.94); opacity:.2;
      transition:clip-path 1.3s cubic-bezier(.16,1,.3,1), transform 1.3s cubic-bezier(.16,1,.3,1), opacity 1s ease; }
    .feature__media.is-visible img, .intro-cabinet.is-visible img, .quote-band.is-visible .quote-band__media img,
    .post-card.is-visible .post-card__media img, .video-frame.is-visible img{ clip-path:inset(0 round 20px); transform:none; opacity:1; }
  }
}
@keyframes mHeroOut{ to{ opacity:.25; transform:translateY(-36px) scale(.94); } }

/* ===== Spécialités : image et texte reliés visuellement ===== */
.motif-row{ --g:clamp(2.2rem,4.5vw,3.8rem); column-gap:var(--g); }
.motif-row .motif-row__figure{ justify-self:end; }
.motif-row .motif-row__text{ justify-self:start; }
.motif-row:nth-child(even) .motif-row__figure{ justify-self:start; }
.motif-row:nth-child(even) .motif-row__text{ justify-self:end; }

.motif-row__figure{ position:relative; isolation:isolate; }
/* Fond décalé, côté texte : donne de la profondeur et "tend" l'image vers le texte */
.motif-row__figure::before{ content:""; position:absolute; z-index:-1; inset:8px -8px -8px 8px;
  border-radius:var(--radius-lg,20px); background:linear-gradient(135deg,var(--color-gold-highlight),var(--color-primary-highlight)); opacity:.9; }
.motif-row:nth-child(even) .motif-row__figure::before{ inset:8px 8px -8px -8px; }
/* Fil doré avec point : relie le bord de l'image au texte */
.motif-row__figure::after{ content:""; position:absolute; top:calc(50% - 5px); left:100%; width:var(--g); height:10px; pointer-events:none;
  background:linear-gradient(var(--color-gold),var(--color-gold)) left center/calc(100% - 5px) 1.5px no-repeat,
             radial-gradient(circle,var(--color-gold) 3.5px,transparent 4.5px) right center/10px 10px no-repeat;
  transform-origin:left center; }
.motif-row:nth-child(even) .motif-row__figure::after{ left:auto; right:100%; transform-origin:right center;
  background:linear-gradient(var(--color-gold),var(--color-gold)) right center/calc(100% - 5px) 1.5px no-repeat,
             radial-gradient(circle,var(--color-gold) 3.5px,transparent 4.5px) left center/10px 10px no-repeat; }
@media (max-width:860px){
  .motif-row .motif-row__figure, .motif-row:nth-child(even) .motif-row__figure,
  .motif-row .motif-row__text, .motif-row:nth-child(even) .motif-row__text{ justify-self:center; }
  .motif-row__figure::after{ display:none; }
  .motif-row__figure::before, .motif-row:nth-child(even) .motif-row__figure::before{ inset:6px -6px -6px 6px; }
}
@media (prefers-reduced-motion:no-preference){
  /* le fil se dessine, puis le fond glisse en place */
  .motif-row__figure::after{ transform:scaleX(0); transition:transform 1s cubic-bezier(.16,1,.3,1) .5s; }
  .motif-row.is-visible .motif-row__figure::after{ transform:scaleX(1); }
  .motif-row__figure::before{ transform:translate(-8px,-8px); opacity:0; transition:transform 1.1s cubic-bezier(.16,1,.3,1) .25s, opacity .9s ease .25s; }
  .motif-row:nth-child(even) .motif-row__figure::before{ transform:translate(8px,-8px); }
  .motif-row.is-visible .motif-row__figure::before{ transform:none; opacity:.9; }
}

/* ===== Accueil : spécialités imbriquées + panneau de détail ===== */
.spec-explorer{ align-items:start; }
.spec-hint{ font-size:var(--text-sm); margin-top:var(--space-3); }
.spec-chips{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:var(--space-5); }
.spec-chip{ font:inherit; font-size:var(--text-sm); line-height:1; color:var(--color-text); cursor:pointer;
  padding:.6rem 1.05rem; border-radius:999px; border:1px solid var(--color-border); background:var(--color-surface);
  transition:background-color .25s, border-color .25s, color .25s, transform .25s; }
.spec-chip:hover, .spec-chip:focus-visible{ border-color:var(--color-primary); background:var(--color-primary-highlight); transform:translateY(-1px); }
.spec-chip[aria-selected="true"]{ background:var(--color-primary); border-color:var(--color-primary); color:var(--color-text-inverse); }

.spec-stage{ background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-xl); padding:clamp(1rem,2.2vw,1.6rem); }
.spec-panel{ display:grid; gap:var(--space-4); }
.spec-panel[hidden]{ display:none; }
.spec-panel.spec-in{ animation:specIn .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes specIn{ from{ opacity:0; transform:translateX(24px) } to{ opacity:1; transform:none } }
.spec-panel__img{ width:100%; max-height:230px; object-fit:contain; background:#eaefe2; border:1px solid var(--color-border); border-radius:var(--radius-lg); }
.spec-panel__name{ font-family:var(--font-display); font-weight:500; font-size:var(--text-2xl); line-height:1.2; color:var(--color-primary); margin:0; }
.spec-panel__problem{ margin-top:var(--space-3); font-family:var(--font-display); font-style:italic; font-size:var(--text-lg); line-height:1.5; color:var(--color-text-muted); }
.spec-panel__solution{ margin-top:var(--space-3); line-height:1.7; }
.spec-panel__note{ margin-top:var(--space-3); padding-top:var(--space-3); border-top:1px solid var(--color-border); font-size:var(--text-sm); color:var(--color-text-muted); }
.spec-panel__link{ display:inline-block; margin-top:var(--space-4); color:var(--color-garnet); font-weight:500; text-decoration:none; border-bottom:1px solid currentColor; }

/* Bienvenue déplacé sous la section : texte + cabinet côte à côte */
.welcome-row{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(2rem,5vw,4rem); align-items:center; margin-top:clamp(var(--space-12),7vw,var(--space-20)); }
.welcome-row .intro-cabinet{ margin:0; max-width:none; }
@media (max-width:860px){ .welcome-row{ grid-template-columns:1fr; } .spec-panel__img{ max-height:190px; } }
.spec-explorer .intro-duo__cta{ margin-top:var(--space-6); }

/* Hero : illustration agrandie, rapprochée du titre et du texte */
@media (min-width:861px){
  .hero__figure{ max-width:none; width:125%; margin-left:-22%; margin-top:-70px; margin-right:-3%; justify-self:start; position:relative; z-index:0; }
  .hero__grid > div:first-child{ position:relative; z-index:1; }
}
@media (min-width:1440px){
  .hero__figure{ width:112%; margin-left:-12%; }
}
.spec-panel__back{ display:none; margin:var(--space-4) 0 0 var(--space-5); font:inherit; font-size:var(--text-sm); color:var(--color-primary); background:none; border:0; border-bottom:1px solid currentColor; padding:0; cursor:pointer; }
@media (max-width:980px){ .spec-panel__back{ display:inline-block; } .spec-stage{ scroll-margin-top:90px; } }

/* Mon approche : « ericksonienne » mis en avant */
h1 .script.script--xl{ font-size:1.32em; line-height:.95; }
.page-head--spiral .sr-only + .lede{ margin-top:var(--space-4); }

/* Hypnose au quotidien : spirale à la place de l'illustration */
.feature > .spiral-band{ width:min(440px,100%); padding-block:0; justify-self:center; }
.feature .spiral-band__text{ font-size:clamp(1.8rem,3.2vw,2.9rem); }
@media (max-width:860px){ .feature > .spiral-band{ width:min(380px,80vw); } .feature .spiral-band__text{ font-size:clamp(1.7rem,7vw,2.4rem); } }

/* Accueil : images des spécialités sans contour */
.spec-panel__img{ border:0; background:transparent; border-radius:0; }

/* Mon approche : portrait à droite du titre */
.page-head__grid--portrait{ grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); align-items:center; }
.portrait{ margin:0; justify-self:end; width:100%; max-width:430px; position:relative; isolation:isolate; }
.portrait img{ display:block; width:100%; height:auto; border-radius:var(--radius-xl,28px); box-shadow:0 24px 50px -28px oklch(from var(--color-primary) l c h / .55); }
.portrait::before{ content:""; position:absolute; z-index:-1; inset:10px -10px -10px 10px; border-radius:var(--radius-xl,28px); background:linear-gradient(135deg,var(--color-gold-highlight),var(--color-primary-highlight)); }
@media (max-width:860px){
  .page-head__grid--portrait{ grid-template-columns:1fr; }
  .portrait{ justify-self:center; max-width:340px; }
}

/* Mentions légales */
.legal{ padding-bottom:var(--space-16); }
.legal__block{ padding:var(--space-8) 0; border-top:1px solid var(--color-divider); }
.legal__block:first-child{ border-top:0; padding-top:0; }
.legal__block h2{ font-size:var(--text-xl); margin-bottom:var(--space-4); }
.legal__block p{ max-width:68ch; margin-top:var(--space-3); }
.legal__list{ display:grid; gap:var(--space-3); margin:var(--space-4) 0 0; }
.legal__list > div{ display:grid; grid-template-columns:minmax(150px,220px) 1fr; gap:var(--space-4); }
.legal__list dt{ font-size:var(--text-sm); letter-spacing:.06em; text-transform:uppercase; color:var(--color-text-muted); padding-top:.2em; }
.legal__list dd{ margin:0; }
.legal a{ color:var(--color-primary); border-bottom:1px solid currentColor; text-decoration:none; }
.footer__bottom a{ text-decoration:none; border-bottom:1px solid currentColor; }
@media (max-width:640px){ .legal__list > div{ grid-template-columns:1fr; gap:2px; } }
