/* =========================================================================
   Si0x – couche « Apple » (18/11/2026) : boutons unifiés + fond animé
   Chargée après style.css. Supprimer ce fichier = retour exact à l'ancien rendu.
   Animations : transform / opacity uniquement, coupées si prefers-reduced-motion.
   ========================================================================= */
:root{
  --btn-h:48px;--btn-h-sm:38px;
  --btn-ease:cubic-bezier(.16,1,.3,1);
  --btn-primary:#f7931a;--btn-primary-hi:#ffa133;
  --btn-ghost-bg:rgba(255,255,255,.07);--btn-ghost-bg-hi:rgba(255,255,255,.12);
  --btn-ghost-line:rgba(255,255,255,.16);--btn-ghost-line-hi:rgba(255,255,255,.3);
}

/* ---------- 1. Système de boutons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45em;
  min-height:var(--btn-h);padding:.7rem 1.45rem;
  border-radius:999px;border:1px solid transparent;
  background:var(--btn-primary);color:var(--ink);
  font:inherit;font-size:1rem;font-weight:600;letter-spacing:-.006em;line-height:1.2;
  text-align:center;text-decoration:none;white-space:normal;text-wrap:balance;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 1px 2px rgba(0,0,0,.4);
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .45s var(--btn-ease),background-color .25s,border-color .25s,color .25s,box-shadow .45s var(--btn-ease)
}
/* plus de reflet balayant : le pseudo-élément devient une flèche discrète */
.btn::after{content:none;transform:none;transition:none}
.btn:hover{
  transform:translateY(-1px);
  background:var(--btn-primary-hi);color:var(--ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 10px 28px -10px rgba(247,147,26,.75),0 0 0 1px rgba(255,179,71,.35)
}
.btn:active{transform:translateY(0) scale(.98);transition-duration:.12s}
.btn:focus-visible{outline:2px solid var(--orange-hi);outline-offset:3px;border-radius:999px}
.btn:disabled,.btn[aria-disabled=true]{opacity:.55;cursor:progress;transform:none}

/* Flèche « › » sur les liens principaux (pas dans la nav ni le formulaire) */
a.btn:not(.btn-small):not(.btn-ghost):not(.btn-invert-ghost)::after{
  content:"";position:static;display:inline-block;flex:none;inset:auto;
  width:.62em;height:.62em;margin-left:.1em;background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M3 1.2 6.8 5 3 8.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M3 1.2 6.8 5 3 8.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  transition:transform .45s var(--btn-ease)
}
a.btn:not(.btn-small):not(.btn-ghost):not(.btn-invert-ghost):hover::after{transform:translateX(3px)}

/* Secondaire : « verre » neutre, sans orange pour garder la hiérarchie */
.btn-ghost,.btn-invert-ghost{
  background:var(--btn-ghost-bg);color:var(--fg);border-color:var(--btn-ghost-line);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%)
}
.btn-ghost:hover,.btn-invert-ghost:hover{
  background:var(--btn-ghost-bg-hi);color:#fff;border-color:var(--btn-ghost-line-hi);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 10px 26px -14px rgba(0,0,0,.9)
}

/* Petit bouton (nav) + lien Si0x Pay + langues : même hauteur, même forme */
.btn-small,.nav .btn-small{min-height:var(--btn-h-sm);padding:.4rem 1.05rem;font-size:.88rem}
.nav .btn:hover{color:var(--ink)}
.nav a.nav-pay{padding:.4rem .95rem}
.nav-pay{min-height:var(--btn-h-sm);border-color:rgba(247,147,26,.45);background:rgba(247,147,26,.08);
  transition:transform .45s var(--btn-ease),background-color .25s,border-color .25s,color .25s,box-shadow .45s var(--btn-ease)}
.nav-pay:hover{transform:translateY(-1px);background:rgba(247,147,26,.16);border-color:rgba(255,179,71,.8);box-shadow:0 8px 22px -12px rgba(247,147,26,.7)}
.nav-pay:focus-visible{outline:2px solid var(--orange-hi);outline-offset:3px;border-radius:999px}
.lang-menu summary{min-height:var(--btn-h-sm);padding:.4rem .8rem;border-color:var(--btn-ghost-line);background:var(--btn-ghost-bg)}
.lang-menu summary:hover,.lang-menu[open] summary{border-color:var(--btn-ghost-line-hi);background:var(--btn-ghost-bg-hi);color:#fff}
.nav-toggle{border-radius:999px;background:var(--btn-ghost-bg);border-color:var(--btn-ghost-line)}

/* Cartes de formules : boutons pleine largeur, alignés en bas, sur une ligne si possible */
.plan{padding-inline:1.25rem}
.plan .btn{width:100%;margin-top:auto;padding-inline:.8rem;font-size:.9rem;letter-spacing:-.01em}
.plan a.btn::after{content:none!important}

/* Lien « En savoir plus » des cartes : petite flèche qui glisse */
.card .more{transition:color .25s}
.card .more:hover{color:var(--orange-hi)}

@media (max-width:1200px) and (min-width:721px){.nav .btn-small{padding:.4rem .9rem;font-size:.84rem}}
@media (max-width:980px) and (min-width:721px){.nav a.nav-pay{padding:.3rem .6rem}.lang-menu summary{padding:.38rem .55rem}}
@media (max-width:720px){
  :root{--btn-h:50px}
  .nav .btn,.nav-pay{min-height:46px}
  .nav a.nav-pay{padding:.75rem 1rem}
  /* menu mobile : fond plein (le texte du héros transparaissait dessous) */
  .lang-row a{border-radius:999px;min-height:40px;display:flex;align-items:center;justify-content:center}
  .nav{background:#0b0b0c;min-height:calc(100dvh - 72px);align-content:start}
}

/* ---------- 2. Fond animé (aurore façon Apple) ---------- */
/* Le JS ajoute html.ui-apple + .ambient ; sans JS, l'ancienne aurore reste. */
html.ui-apple body::before{content:none}
/* body devient un contexte d'empilement : le fond z-index:-1 passe au-dessus du fond de body mais sous le contenu */
html.ui-apple body{isolation:isolate}
.ambient{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;contain:strict}
.ambient-inner{position:absolute;inset:-10% -10%;will-change:transform}
.ambient i{
  position:absolute;display:block;border-radius:50%;
  width:var(--s);height:var(--s);left:var(--x);top:var(--y);
  background:radial-gradient(closest-side,var(--c),transparent);
  opacity:var(--o,1);will-change:transform;
  animation:ambient-drift var(--t,46s) ease-in-out var(--dl,0s) infinite alternate
}
.ambient .a1{--s:62vmax;--x:52%;--y:-18%;--c:rgba(247,147,26,.34);--t:52s}
.ambient .a2{--s:54vmax;--x:-14%;--y:28%;--c:rgba(224,123,0,.24);--t:61s;--dl:-18s;animation-name:ambient-drift-b}
.ambient .a3{--s:48vmax;--x:40%;--y:62%;--c:rgba(255,179,71,.16);--t:57s;--dl:-31s}
.ambient .a4{--s:36vmax;--x:8%;--y:-8%;--c:rgba(255,236,210,.05);--t:68s;--dl:-9s;animation-name:ambient-drift-b}
.ambient .a5{--s:40vmax;--x:72%;--y:38%;--c:rgba(170,70,0,.28);--t:73s;--dl:-44s}
/* vignette pour garder le texte lisible au centre */
.ambient::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 40%,transparent 40%,rgba(10,10,11,.55) 100%)}
@keyframes ambient-drift{
  0%{transform:translate3d(0,0,0) scale(1)}
  33%{transform:translate3d(6vw,4vh,0) scale(1.12)}
  66%{transform:translate3d(-4vw,8vh,0) scale(.94)}
  100%{transform:translate3d(3vw,-5vh,0) scale(1.06)}
}
@keyframes ambient-drift-b{
  0%{transform:translate3d(0,0,0) scale(1.05)}
  40%{transform:translate3d(-7vw,-3vh,0) scale(.92)}
  100%{transform:translate3d(5vw,6vh,0) scale(1.14)}
}
/* Les sections sombres laissent passer l'aurore */
html.ui-apple .section-dark{background:radial-gradient(60% 90% at 88% 0%,rgba(247,147,26,.14),transparent 62%),radial-gradient(50% 70% at 0% 100%,rgba(247,147,26,.06),transparent 65%),rgba(7,7,8,.55)}
html.ui-apple .hero::after{opacity:.75}

@media (max-width:720px){
  .ambient .a4,.ambient .a5{display:none}
  .ambient .a1{--s:90vmax;--x:20%;--y:-20%}
  .ambient .a2{--s:80vmax;--x:-40%;--y:40%}
  .ambient .a3{--s:70vmax;--x:30%;--y:70%}
}

/* ---------- 3. Mouvement au scroll ---------- */
/* Révélation : plus douce, courbe « Apple » */
.reveal{transform:translateY(36px) scale(.985);transition:opacity 1.1s var(--btn-ease) var(--d,0ms),transform 1.1s var(--btn-ease) var(--d,0ms)}
.reveal.in{transform:none}

@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    /* Les grands panneaux « se posent » en entrant à l'écran */
    .pay-panel,.conseil-panel,.approche-panel,.formules-panel,.cta-box{
      animation:panel-settle linear both;animation-timeline:view();animation-range:entry 5% entry 60%
    }
    @keyframes panel-settle{from{opacity:.5;scale:.96;translate:0 32px}to{opacity:1;scale:1;translate:0 0}}
    /* Héros : léger parallaxe en quittant l'écran */
    .hero-grid>div:first-child{animation:hero-out linear both;animation-timeline:scroll(root);animation-range:0 90vh}
    @keyframes hero-out{to{translate:0 -60px;opacity:.15}}
    .hero-art{animation:hero-art-out linear both;animation-timeline:scroll(root);animation-range:0 90vh}
    @keyframes hero-art-out{to{translate:0 70px;scale:.92}}
    /* L'aurore glisse lentement avec la page */
    .ambient-inner{animation:ambient-scroll linear both;animation-timeline:scroll(root)}
    @keyframes ambient-scroll{to{translate:0 -12vh}}
  }
}
@media (prefers-reduced-motion:reduce){
  .ambient i{animation:none!important}
  .btn,.btn:hover,.nav-pay:hover{transform:none}
  .reveal{transform:none}
}
