/* ============================================================
   COUCHE PREMIUM — La Suite 52 / Roman Formation
   Additive : ne modifie ni la D.A. ni le contenu.
   Chargée après styles.css. Tout est désactivable en retirant
   premium.css + premium.js des pages.
   ============================================================ */

:root{
  --pr-ease:   cubic-bezier(.22,.61,.36,1);
  --pr-ease-io:cubic-bezier(.76,0,.24,1);
  --pr-ease-out:cubic-bezier(.16,1,.3,1);
}

/* ------------------------------------------------------------
   0. Fondations : sélection, tap, scroll
   ------------------------------------------------------------ */
::selection{ background:var(--cream); color:var(--ink); text-shadow:none; }
.invert ::selection{ background:var(--ink); color:var(--cream); }
html{ scroll-padding-top:72px; -webkit-tap-highlight-color:transparent; scrollbar-gutter:stable; }
img{ -webkit-user-drag:none; user-select:none; }

/* ------------------------------------------------------------
   1. Barre de défilement personnalisée
   ------------------------------------------------------------ */
@supports not selector(::-webkit-scrollbar){
  html{ scrollbar-width:thin; scrollbar-color:rgba(255,229,197,.30) var(--ink-deep); }
}
::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background:var(--ink-deep); }
::-webkit-scrollbar-thumb{
  background:rgba(255,229,197,.22);
  border-radius:9px; border:2px solid var(--ink-deep);
  transition:background .3s ease;
}
::-webkit-scrollbar-thumb:hover{ background:rgba(255,229,197,.55); }
::-webkit-scrollbar-corner{ background:var(--ink-deep); }

/* ------------------------------------------------------------
   3. Texture (grain)
   ------------------------------------------------------------ */
.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.045;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size:220px 220px;
}

/* ------------------------------------------------------------
   4. Transitions de page (voile)
   ------------------------------------------------------------ */
html::after{
  content:""; position:fixed; inset:0; z-index:150; pointer-events:none;
  background:var(--ink);
  animation:veil-out 1s var(--pr-ease-io) .06s both;
}
@keyframes veil-out{ from{ clip-path:inset(0 0 0 0); } to{ clip-path:inset(0 0 100% 0); } }
@keyframes veil-in { from{ clip-path:inset(100% 0 0 0); } to{ clip-path:inset(0 0 0 0); } }
html:has(#seuil)::after, html.seuil-fini::after{ animation:none; visibility:hidden; }
html.is-leaving::after{ visibility:visible !important; animation:veil-in .55s var(--pr-ease-io) both !important; }
main{ animation:page-in 1.1s var(--pr-ease-out) .25s both; }
@keyframes page-in{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
html:has(#seuil) main, html.seuil-fini main{ animation:none; }
html.is-leaving body{ pointer-events:none; }

/* ------------------------------------------------------------
   5. Seuil (écran d'ouverture) : halo + invitation à défiler
   ------------------------------------------------------------ */
.seuil{ position:relative; }
.seuil::before{
  content:""; position:absolute; left:50%; top:50%; width:110vmin; height:110vmin; margin:-55vmin 0 0 -55vmin;
  pointer-events:none; border-radius:50%;
  background:radial-gradient(closest-side, rgba(255,229,197,.075), transparent 70%);
  opacity:1; will-change:transform, opacity; transition:opacity .3s ease;
  animation:breathe 7s ease-in-out infinite alternate;
}
/* dès que l'ouverture démarre, le halo se fige puis s'efface : rien ne doit traîner derrière */
.seuil.is-coupe::before, .seuil.is-balaye::before{ animation:none; }
.seuil.is-fendu::before{ opacity:0; }
@keyframes breathe{ from{ transform:scale(.92); } to{ transform:scale(1.08); } }
.seuil__hint{
  position:absolute; left:50%; bottom:clamp(1.5rem,4vh,3rem); transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.9rem;
  font-size:.6rem; font-weight:700; letter-spacing:.3em; text-transform:uppercase;
  color:var(--cream-faint);
  opacity:calc(1 - var(--p,0) * 4);
  animation:rise 1.2s var(--pr-ease) 1.2s backwards;
}
.seuil__hint i{
  display:block; width:1px; height:44px; overflow:hidden; position:relative;
  background:var(--hairline);
}
.seuil__hint i::after{
  content:""; position:absolute; left:0; top:0; width:100%; height:50%;
  background:var(--cream); animation:hint-run 1.8s var(--pr-ease-io) infinite;
}
@keyframes hint-run{ from{ transform:translateY(-100%); } to{ transform:translateY(220%); } }

/* ------------------------------------------------------------
   6. Navigation : masquage au défilement, lien actif, menu mobile
   ------------------------------------------------------------ */
.nav{
  transition:background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
/* Top bar stable : plus de rétrécissement au défilement, logo un peu plus grand */
.nav__in, .nav.is-scrolled .nav__in{ min-height:68px; }
.mark52--nav, .nav.is-scrolled .mark52--nav{ height:54px; transition:none; }
.logo--nav, .nav.is-scrolled .logo--nav{ height:36px; transition:none; }
@media (max-width:980px){
  .mark52--nav, .nav.is-scrolled .mark52--nav{ height:44px; }
  .logo--nav, .nav.is-scrolled .logo--nav{ height:30px; }
}
.nav__mark img{ transform-origin:50% 50%; will-change:transform, opacity; }
/* soulignage des liens : seulement quand le menu est en ligne ; en mode burger (≤ 1140 px) le trait du lien suffit */
@media (max-width:1140px){
  .nav__links a:not(.btn):not(.nav__sister)::after{ display:none !important; }
}
@media (min-width:1141px){
  .nav__links a:not(.btn):not(.nav__sister)::after{ transition:transform .4s var(--pr-ease), opacity .3s ease; }
  .nav__links a:not(.btn):not(.nav__sister).is-active::after{ transform:scaleX(1); opacity:.55; }
  .nav__links a:not(.btn):not(.nav__sister).is-active:hover::after{ opacity:1; }
}

/* ------------------------------------------------------------
   6b. Ouverture : écran d'accueil figé, ciseaux (52) ou pinceau
       (Roman) au premier geste de scroll
   ------------------------------------------------------------ */
body.seuil-verrou{ overflow:hidden; }
html.seuil-attente .hero .rise{ animation-play-state:paused !important; }
.mot-reset > i{ transition:none !important; }
.seuil{ position:fixed; inset:0; z-index:80; height:auto; display:grid; padding:0; }
.seuil::before{ z-index:1; }
.seuil__logo{ opacity:1; transform:none; }
.seuil__hint{ z-index:2; }

/* --- ciseaux --- */
.seuil--ciseaux{ place-items:center; padding:2rem; background:var(--ink); }
.seuil--ciseaux.is-fendu{ background:transparent; }   /* seules les deux moitiés restent, et elles s'écartent */
.seuil--ciseaux > picture{ position:relative; z-index:3; }
.seuil--ciseaux.is-fendu > picture{ display:none; }
.seuil--ciseaux .seuil__part{ visibility:hidden; }
.seuil--ciseaux.is-fendu .seuil__part{ visibility:visible; }
.seuil--ciseaux .seuil__part .seuil__hint{ visibility:visible; }
.seuil__part{
  position:absolute; inset:0; display:grid; place-items:center; padding:2rem;
  background:var(--ink); z-index:2;
  transition:transform 1.05s var(--pr-ease-io), opacity .9s ease .15s;
}
.seuil__part--haut{ clip-path:polygon(0 0, 100% 0, 100% 48.5%, 0 51.5%); }
.seuil__part--bas{  clip-path:polygon(0 51.5%, 100% 48.5%, 100% 100%, 0 100%); }
.seuil.is-fendu .seuil__part--haut{ transform:translateY(-112%) rotate(-1.2deg); opacity:.6; }
.seuil.is-fendu .seuil__part--bas{  transform:translateY(112%) rotate(1.2deg); opacity:.6; }
/* le trait de coupe : semi-transparent et lumineux, il se dessine dans le sillage des ciseaux */
.seuil__coupe{
  position:absolute; left:-200px; top:51.5%; height:2px; width:0; z-index:3;   /* part hors cadre : les ciseaux aussi */
  transform-origin:0 50%;
  background:rgba(255,229,197,.5);
  box-shadow:0 0 8px rgba(255,229,197,.55), 0 0 22px rgba(255,229,197,.3), 0 0 48px rgba(255,229,197,.12);
  transition:width 1.55s cubic-bezier(.65,.02,.3,1);
}
.seuil.is-coupe .seuil__coupe{ width:calc(100% + 200px + 240px); }   /* …et finit hors cadre */
.seuil.is-fendu .seuil__coupe{ opacity:0; transition:opacity .4s ease; }
/* ciseaux minimalistes : deux traits qui se croisent au pivot, deux anneaux — en filet */
.seuil__ciseaux{
  position:absolute; top:50%; width:360px; right:calc(-360px * .435); height:auto; overflow:visible;   /* pivot (96/170) posé sur le bout du trait */
  transform:translateY(-50%);
  fill:none; stroke:var(--cream); stroke-width:4.4; stroke-linecap:round; stroke-linejoin:round;
  filter:drop-shadow(0 0 8px rgba(255,229,197,.35));
  opacity:0; transition:opacity .3s ease;
}
.seuil.is-coupe .seuil__ciseaux{ opacity:1; }
.seuil__ciseaux .pivot{ fill:var(--cream); stroke:none; }
.seuil__ciseaux .lame{ transform-box:view-box; transform-origin:96px 40px; }
.seuil__ciseaux .lame--a{ transform:rotate(-12deg); }
.seuil__ciseaux .lame--b{ transform:rotate(12deg); }
.seuil.is-coupe .lame--a{ animation:coup-a .36s cubic-bezier(.5,0,.3,1) .1s 4; }
.seuil.is-coupe .lame--b{ animation:coup-b .36s cubic-bezier(.5,0,.3,1) .1s 4; }
@keyframes coup-a{ 0%,100%{ transform:rotate(-12deg); } 42%{ transform:rotate(-1deg); } }
@keyframes coup-b{ 0%,100%{ transform:rotate(12deg); }  42%{ transform:rotate(1deg); } }
@media (max-width:700px){ .seuil__ciseaux{ width:230px; right:calc(-230px * .435); } }

/* --- pinceau : quatre bandes (deux vers la droite, deux vers la gauche) soustraites du voile --- */
.seuil--pinceau{ place-items:center; padding:2rem; background:var(--ink);
  -webkit-mask-image:linear-gradient(#000,#000), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='4'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='0,26 1540,18 1600,160 1535,300 0,292' fill='%23000'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='9'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='1600,26 60,18 0,160 65,300 1600,292' fill='%23000'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='4'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='0,26 1540,18 1600,160 1535,300 0,292' fill='%23000'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='9'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='1600,26 60,18 0,160 65,300 1600,292' fill='%23000'/></svg>");
          mask-image:linear-gradient(#000,#000), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='4'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='0,26 1540,18 1600,160 1535,300 0,292' fill='%23000'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='9'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='1600,26 60,18 0,160 65,300 1600,292' fill='%23000'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='4'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='0,26 1540,18 1600,160 1535,300 0,292' fill='%23000'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 320' preserveAspectRatio='none'><filter id='r' x='-5%' y='-15%' width='110%' height='130%'><feTurbulence type='fractalNoise' baseFrequency='.012 .11' numOctaves='3' seed='9'/><feDisplacementMap in='SourceGraphic' scale='22' xChannelSelector='R' yChannelSelector='G'/></filter><polygon filter='url(%23r)' points='1600,26 60,18 0,160 65,300 1600,292' fill='%23000'/></svg>");
  -webkit-mask-size:100% 100%, 160vw 34vh, 160vw 34vh, 160vw 34vh, 160vw 34vh;
          mask-size:100% 100%, 160vw 34vh, 160vw 34vh, 160vw 34vh, 160vw 34vh;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:0 0, -170vw -6vh, 110vw 20vh, -170vw 46vh, 110vw 72vh;
          mask-position:0 0, -170vw -6vh, 110vw 20vh, -170vw 46vh, 110vw 72vh;
  -webkit-mask-composite:xor, source-over, source-over, source-over, source-over;
          mask-composite:exclude, add, add, add, add;
}
.seuil__pinceau{
  position:fixed; top:0; left:0; width:30vh; height:auto; z-index:81; pointer-events:none;
  transform:translate(-200vw, 0);
  filter:drop-shadow(0 0 14px rgba(255,229,197,.3));
  opacity:0;
}
.seuil__pinceau.is-on{ opacity:1; }
.seuil__pinceau .manche{ fill:var(--cream-dim); }
.seuil__pinceau .virole{ fill:var(--cream-faint); }
.seuil__pinceau .poils{ fill:var(--cream); }
.seuil__pinceau .meches{ fill:none; stroke:rgba(24,24,24,.22); stroke-width:6; stroke-linecap:round; }
@media (prefers-reduced-motion:reduce){ .seuil{ display:none; } body.seuil-verrou{ overflow:auto; } }

/* ------------------------------------------------------------
   7. Boutons : remplissage balayé, magnétisme, flèches
   ------------------------------------------------------------ */
.btn{
  position:relative; overflow:hidden; isolation:isolate; will-change:transform;
  transition:color .35s ease, border-color .35s ease, box-shadow .45s ease;
}
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:var(--ink);
  transform:scaleY(0); transform-origin:50% 100%;
  transition:transform .5s var(--pr-ease-io);
}
.btn:hover::before{ transform:scaleY(1); }
.btn:hover{ background:var(--cream); }
.btn--ghost::before, .btn--inv::before{ background:var(--cream); }
.btn--ghost:hover{ background:transparent; }
.btn--inv:hover{ background:var(--ink); }
.invert .btn--ghost::before{ background:var(--ink); }
.invert .btn--ghost:hover{ color:var(--cream) !important; }
.btn:active{ transform:none; }
.btn .btn__arrow, .tlink > span, .house .tlink > span{ display:inline-block; transition:transform .4s var(--pr-ease); }
.btn:hover .btn__arrow, .tlink:hover > span, .house:hover .tlink > span{ transform:translateX(4px); }
.tlink{ transition:border-color .35s ease, gap .35s var(--pr-ease), color .3s ease; }
.cbtn{ transition:background .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--pr-ease), opacity .4s ease; }
.cbtn:active{ transform:scale(.94); }
.cbtn[disabled]{ opacity:.32; pointer-events:none; }

/* ------------------------------------------------------------
   8. Images : zoom lent, parallaxe, équipe, carrousel
   ------------------------------------------------------------ */
.js-anim .cadre{ isolation:isolate; }
.js-anim .cadre.is-in > img{ transition:transform 1.4s var(--pr-ease), filter .6s ease, border-color .4s ease; }
.js-anim .cadre.is-in:hover > img{ transform:scale(1.045); }
.js-anim .cadre.px > img{ translate:0 var(--py,0px); will-change:transform, translate; }
.js-anim .cadre.px.is-in > img{ transform:scale(1.1); }
.js-anim .cadre.px.is-in:hover > img{ transform:scale(1.15); }
.cadre::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,229,197,0);
  background:linear-gradient(180deg, transparent 60%, rgba(16,16,16,.25));
  opacity:0; transition:opacity .6s ease;
}
.cadre:hover::after{ opacity:1; }

@media (pointer:fine){
  .team .member{ transition:opacity .55s ease, filter .55s ease; }
  .team:has(.member:hover) .member:not(:hover){ opacity:.42; filter:saturate(.55); }
  .member .member__name{ transition:letter-spacing .4s var(--pr-ease); }
  .member:hover .member__name{ letter-spacing:.06em; }
}

.carou{ cursor:grab; scroll-behavior:auto; }
.carou.is-drag{ cursor:grabbing; scroll-snap-type:none; }
.carou.is-drag .slide{ pointer-events:none; }
.carou .slide{ transition:border-color .4s ease, transform .9s var(--pr-ease), filter .6s ease; }
.carou:not(.is-drag) .slide:hover{ transform:translateY(-6px); filter:brightness(1.06); }
.carou__prog{
  position:relative; height:1px; background:var(--hairline);
  margin-top:1.4rem; overflow:hidden;
}
.carou__prog i{
  position:absolute; left:0; top:0; height:100%; width:100%;
  background:var(--cream); transform-origin:0 50%;
  transform:scaleX(var(--cp,.2)); transition:transform .5s var(--pr-ease);
}
.js-anim .carou.ar .slide{ opacity:0; transform:translateX(40px);
  transition:opacity .9s var(--pr-ease), transform .9s var(--pr-ease); }
.js-anim .carou.ar .slide:nth-child(1){ transition-delay:.05s; }
.js-anim .carou.ar .slide:nth-child(2){ transition-delay:.13s; }
.js-anim .carou.ar .slide:nth-child(3){ transition-delay:.21s; }
.js-anim .carou.ar .slide:nth-child(4){ transition-delay:.29s; }
.js-anim .carou.ar .slide:nth-child(n+5){ transition-delay:.37s; }
.js-anim .carou.ar.is-in .slide{ opacity:1; transform:none; }

/* ------------------------------------------------------------
   9. Micro-révélations supplémentaires
   ------------------------------------------------------------ */
.js-anim .hours.ar li{ opacity:0; transform:translateY(8px);
  transition:opacity .7s var(--pr-ease), transform .7s var(--pr-ease); }
.js-anim .hours.ar li:nth-child(1){ transition-delay:calc(var(--d,0s) + .10s); }
.js-anim .hours.ar li:nth-child(2){ transition-delay:calc(var(--d,0s) + .18s); }
.js-anim .hours.ar li:nth-child(3){ transition-delay:calc(var(--d,0s) + .26s); }
.js-anim .hours.ar li:nth-child(4){ transition-delay:calc(var(--d,0s) + .34s); }
.js-anim .hours.ar li:nth-child(5){ transition-delay:calc(var(--d,0s) + .42s); }
.js-anim .hours.ar.is-in li{ opacity:1; transform:none; }

.js-anim .note__bloc.ar .star{ opacity:0; transform:scale(.5) rotate(-25deg);
  transition:opacity .5s var(--pr-ease), transform .7s var(--pr-ease-out); }
.js-anim .note__bloc.ar .star:nth-child(1){ transition-delay:.15s; }
.js-anim .note__bloc.ar .star:nth-child(2){ transition-delay:.25s; }
.js-anim .note__bloc.ar .star:nth-child(3){ transition-delay:.35s; }
.js-anim .note__bloc.ar .star:nth-child(4){ transition-delay:.45s; }
.js-anim .note__bloc.ar .star:nth-child(5){ transition-delay:.55s; }
.js-anim .note__bloc.ar.is-in .star{ opacity:1; transform:none; }

.serv .d-s{ display:inline-block; transition:transform .6s var(--pr-ease), color .4s ease; }
.serv:hover .d-s{ transform:translateX(8px); }
.serv{ position:relative; }
.serv::before{
  content:""; position:absolute; left:0; top:-1px; height:1px; width:0;
  background:var(--cream); transition:width .7s var(--pr-ease);
}
.serv:hover::before{ width:100%; }

.brands li{ transition:border-color .35s ease, color .35s ease, transform .4s var(--pr-ease), background .35s ease; }
.brands li:hover{ transform:translateY(-3px); background:rgba(255,229,197,.04); }

.pcard{ transition:border-color .4s ease; }
.pcard:hover{ border-top-color:var(--hairline-hi); }

.house{ position:relative; overflow:hidden; transform-style:preserve-3d;
  transition:background .4s var(--pr-ease), transform .7s var(--pr-ease); }
.house.is-tilt{ transition:background .4s var(--pr-ease); }
.house::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background:radial-gradient(420px circle at var(--gx,50%) var(--gy,50%), rgba(255,229,197,.10), transparent 60%);
  transition:opacity .5s ease;
}
.house:hover::after{ opacity:1; }

.foot__links a{ position:relative; transition:color .3s ease; }
.foot__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-5px; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .4s var(--pr-ease);
}
.foot__links a:hover::after{ transform:scaleX(1); }
.info a{ transition:color .3s ease; }
.qualiopi{ transition:transform .6s var(--pr-ease), box-shadow .6s ease; }
.qualiopi:hover{ transform:translateY(-3px); box-shadow:0 24px 40px -24px rgba(255,255,255,.25); }

/* ------------------------------------------------------------
   10. Retour en haut (anneau de progression)
   ------------------------------------------------------------ */
.totop{
  position:fixed; right:clamp(1rem,3vw,2rem); bottom:clamp(1rem,3vw,2rem); z-index:65;
  width:50px; height:50px; border-radius:50%; border:0; padding:0; cursor:pointer;
  background:rgba(24,24,24,.65); color:var(--cream);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  display:grid; place-items:center;
  opacity:0; transform:translateY(14px) scale(.9); pointer-events:none;
  transition:opacity .5s ease, transform .6s var(--pr-ease), background .3s ease;
}
.totop.is-on{ opacity:1; transform:none; pointer-events:auto; }
.totop:hover{ background:rgba(38,35,32,.9); }
.totop svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.totop circle{ fill:none; stroke-width:1.2; }
.totop .totop__bg{ stroke:var(--hairline); }
.totop .totop__fg{ stroke:var(--cream); stroke-dasharray:144.5; stroke-dashoffset:calc(144.5 * (1 - var(--sp,0))); transition:stroke-dashoffset .15s linear; }
.totop .totop__arr{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
  transition:transform .4s var(--pr-ease); position:relative; transform:none; }
.totop:hover .totop__arr{ transform:translateY(-3px); }

/* ------------------------------------------------------------
   11. Visionneuse d'images (lightbox)
   ------------------------------------------------------------ */
img.shot{ cursor:zoom-in; }
.lb{
  position:fixed; inset:0; z-index:100;
  display:grid; place-items:center;
  padding:clamp(1rem,4vw,3rem);
  background:rgba(16,16,16,.96);
  opacity:0; visibility:hidden;
  transition:opacity .55s ease, visibility .55s;
}
.lb.is-on{ opacity:1; visibility:visible; }
.lb__fig{ position:relative; display:flex; flex-direction:column; align-items:center; gap:1rem; max-width:min(92vw,1240px); }
.lb__img{
  display:block; max-width:min(92vw,1240px); max-height:76vh; width:auto; height:auto;
  border:1px solid var(--hairline-hi); object-fit:contain;
  box-shadow:0 60px 120px -40px rgba(0,0,0,.9);
  transform-origin:0 0;
  transition:transform .75s var(--pr-ease-io), opacity .4s ease;
}
.lb__cap{
  display:flex; gap:1.5rem; align-items:baseline; justify-content:center; width:100%;
  max-width:min(92vw,1240px);
  font-size:.8rem; color:var(--cream-dim); line-height:1.5;
  opacity:0; transform:translateY(8px); transition:opacity .6s ease .25s, transform .6s var(--pr-ease) .25s;
}
.lb.is-on .lb__cap{ opacity:1; transform:none; }
.lb__cap b{ font-weight:600; letter-spacing:.2em; font-size:.66rem; color:var(--cream-faint); white-space:nowrap; font-variant-numeric:tabular-nums; }
.lb__cap span{ display:none; }
.lb__btn{ position:absolute; top:50%; transform:translateY(-50%); z-index:2; }
.lb__btn--prev{ left:clamp(.75rem,2.5vw,2rem); }
.lb__btn--next{ right:clamp(.75rem,2.5vw,2rem); }
.lb__close{ position:absolute; top:clamp(.75rem,2.5vw,2rem); right:clamp(.75rem,2.5vw,2rem); z-index:2; font-size:1.3rem; }
.lb .cbtn{ background:rgba(24,24,24,.7); }
.lb .cbtn:hover{ background:var(--cream); }
@media (max-width:700px){
  .lb{ padding:1rem; align-content:center; }
  .lb__img{ max-height:64vh; }
  .lb__btn{ top:auto; bottom:1rem; transform:none; }
  .lb__cap{ flex-direction:column; gap:.4rem; padding-bottom:3.5rem; }
}
body.lb-open{ overflow:hidden; }
body.lb-open .grain{ display:none; }

/* ------------------------------------------------------------
   12. Curseur personnalisé (souris uniquement)
   ------------------------------------------------------------ */
@media (pointer:fine) and (hover:hover){
  html.has-cur, html.has-cur *{ cursor:none !important; }
  .cur{ position:static; pointer-events:none; }
  .cur__dot{
    position:fixed; left:0; top:0; z-index:200; width:6px; height:6px; border-radius:50%;
    background:var(--cream); mix-blend-mode:difference;
    transform:translate(-50%,-50%);
    transition:opacity .3s ease, width .3s var(--pr-ease), height .3s var(--pr-ease);
  }
  .cur__ring{
    position:fixed; left:0; top:0; z-index:200; width:36px; height:36px; border-radius:50%;
    border:1px solid rgba(255,229,197,.7); mix-blend-mode:difference;
    transform:translate(-50%,-50%);
    display:grid; place-items:center;
    transition:width .45s var(--pr-ease-out), height .45s var(--pr-ease-out),
               border-color .3s ease, background .35s ease, opacity .3s ease;
  }
  .cur__ring span{
    font-size:.56rem; font-weight:700; letter-spacing:.24em; text-transform:uppercase;
    color:var(--ink); white-space:nowrap; opacity:0; transform:scale(.7);
    transition:opacity .25s ease, transform .35s var(--pr-ease-out);
    font-family:var(--ff-body);
  }
  html.cur-hidden .cur__dot, html.cur-hidden .cur__ring{ opacity:0; }
  html.cur-hover .cur__ring{ width:54px; height:54px; border-color:var(--cream); background:rgba(255,229,197,.08); }
  html.cur-view .cur__ring, html.cur-drag .cur__ring{
    width:78px; height:78px; border-color:var(--cream); background:var(--cream); mix-blend-mode:normal;
  }
  html.cur-view .cur__ring span, html.cur-drag .cur__ring span{ opacity:1; transform:none; }
  html.cur-view .cur__dot, html.cur-drag .cur__dot{ opacity:0; }
  html.cur-down .cur__ring{ transform:translate(-50%,-50%) scale(.85); }
}

/* ------------------------------------------------------------
   13. Mouvement réduit : tout s'éteint proprement
   ------------------------------------------------------------ */
@media (prefers-reduced-motion:reduce){
  html::after{ animation:none !important; visibility:hidden !important; }
  main{ animation:none !important; }
  .seuil::before, .seuil__hint{ animation:none; }
  .amb, .grain{ display:none; }
  .js-anim .cadre.px > img{ translate:none; }
  .carou:not(.is-drag) .slide:hover{ transform:none; }
}

/* ------------------------------------------------------------
   14. Pages CV des formateurs (Roman) : portrait qui vole au
       centre, fondu de l'accueil, apparition du CV autour
   ------------------------------------------------------------ */
.member__lien{ display:block; }
.member__cv{ align-self:flex-start; }
.cv{ padding-block:clamp(1.5rem,3vw,2.5rem) var(--sec-y); }
.cv__crumb{ margin:0; }
.cv .page-head{
  margin:0; min-height:calc(100svh - 68px - 5rem);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:.5rem; padding-block:2.5rem;
}
.cv__portrait{
  height:42vh; max-width:80vw; width:auto; aspect-ratio:3/4; object-fit:cover; display:block;
  border:1px solid var(--hairline-hi); margin-bottom:1.4rem;
}
.cv .page-head .d-l{ text-align:center; }
.cv__corps{ padding-top:clamp(1rem,3vw,2rem); }
.cv__travaux{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; margin-top:.4rem; }
@media (max-width:560px){ .cv__travaux{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.vol{ position:fixed; z-index:90; pointer-events:none; margin:0; }
.vol--img{ object-fit:cover; border:1px solid var(--hairline-hi); }
.vol--txt{ white-space:nowrap; color:var(--cream); }
#site-home, .subpage{ transition:opacity .55s ease; }
html.vol-sortie #site-home, html.vol-sortie .subpage{ opacity:0; }
.subpage.mesure .ar, .subpage.mesure .mot > i{ transform:none !important; transition:none !important; }
.vol-pose{ visibility:hidden !important; }
.prog__titre.vol-pose .mot > i{ transition:none !important; transform:none !important; }
.vol{ transition:opacity .2s ease; }
.serv__lien{ transition:color .3s ease; }
.serv__lien:hover{ color:var(--cream); }

/* ------------------------------------------------------------
   15. Formulaire « on vous rappelle » (section beige, Roman)
   ------------------------------------------------------------ */
.rappel{ display:grid; gap:1.1rem; }
.champ{ display:flex; flex-direction:column; gap:.4rem; }
.champ > label, .groupe > legend{ font-size:.7rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:rgba(24,24,24,.6); }
.champ input, .champ select, .champ textarea{
  font-family:inherit; font-size:1rem; color:var(--ink); background:transparent;
  border:1px solid rgba(24,24,24,.26); border-radius:2px; padding:.85rem .95rem; width:100%;
  transition:border-color .25s ease, background .25s ease;
}
.champ textarea{ resize:vertical; min-height:88px; line-height:1.6; }
.champ input:focus, .champ select:focus, .champ textarea:focus{ outline:none; border-color:var(--ink); background:rgba(24,24,24,.035); }
.champ input::placeholder, .champ textarea::placeholder{ color:rgba(24,24,24,.38); }
.champ select{ appearance:none; cursor:pointer; padding-right:2.4rem;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23181818' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right .95rem center; background-size:12px 8px; }
.deux-col{ display:grid; gap:1.1rem; grid-template-columns:1fr 1fr; }
@media (max-width:520px){ .deux-col{ grid-template-columns:1fr; } }
.groupe{ border:0; padding:0; margin:0; display:flex; flex-direction:column; gap:.55rem; }
.groupe legend{ padding:0; margin-bottom:.2rem; }
.coche{ display:flex; align-items:flex-start; gap:.65rem; font-size:.95rem; line-height:1.5; color:rgba(24,24,24,.86); cursor:pointer; }
.coche input{ appearance:none; flex:0 0 auto; width:18px; height:18px; margin-top:.22rem; border:1px solid rgba(24,24,24,.4); border-radius:2px; background:transparent; cursor:pointer; transition:background .2s ease, border-color .2s ease; }
.coche input:checked{ background:var(--ink); border-color:var(--ink);
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l3 3 6-6.3' fill='none' stroke='%23FFE5C5' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center; background-size:14px; }
.coche input:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.coche--rgpd{ font-size:.85rem; color:rgba(24,24,24,.66); margin-top:.2rem; }
.pot{ position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden; }
.etat{ font-size:.9rem; line-height:1.6; color:rgba(24,24,24,.7); min-height:1.2em; }
.etat--err{ color:#8f2f16; font-weight:700; }
.merci{ display:flex; flex-direction:column; gap:1rem; align-items:flex-start; }
.merci p{ color:rgba(24,24,24,.8); max-width:46ch; }
.merci .d-s{ color:var(--ink); }
.lien-inv{ font-size:.95rem; font-weight:700; color:var(--ink); border-bottom:1px solid rgba(24,24,24,.35); padding-bottom:1px; }
.lien-inv:hover{ border-color:var(--ink); }
.btn[disabled]{ opacity:.5; pointer-events:none; }
.rappel .btn--inv{ justify-self:start; }
#contact .sec-head{ max-width:none; }

/* ------------------------------------------------------------
   16. Mobile : les grilles à deux colonnes définies en ligne
       passent bien sur une colonne
   ------------------------------------------------------------ */
@media (max-width:900px){ .split{ grid-template-columns:1fr !important; } }
