/* ============================================================
   LÉRA CONCEPT — Design system
   Grammaire : typo display massive en capitales, surlignages
   colorés dans le texte, cartes inclinées, blocs pleine couleur.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root{
  /* surfaces */
  /* Fond général : un lilas, variante du violet de marque, à la place de
     l'ancien gris chaud #f4f2ee. Même luminance (0,892 contre 0,889) :
     tous les contrastes du site restent ceux qui ont été mesurés. */
  --paper:#f4f1fd;
  --paper-fade:rgba(244,241,253,0);
  --white:#ffffff;
  --ink:#111112;
  --ink-2:#1b1b1d;
  --ink-soft:#2a2a2e;

  /* texte */
  --fg:#111112;
  --fg-soft:#5b5b62;
  --fg-mute:#6e6b79;      /* 5,20:1 sur blanc, 4,65:1 sur papier — AA sur petit texte */
  --fg-inv:#ffffff;

  /* traits */
  --line:rgba(17,17,18,.10);
  --line-2:rgba(17,17,18,.18);
  --line-inv:rgba(255,255,255,.14);

  /* palette — le violet Léra et ses variations, plus le noir encre.
     Les noms historiques sont conservés pour ne rien casser : ils
     désignent désormais les degrés d'une même famille violette.
     L'anthracite est le neutre qui l'accompagne — une seule teinte
     colorée sur tout le site, c'est ce qui la rend reconnaissable.

     Contrastes mesurés (WCAG 2.1), ne pas les dégrader :
       principal  texte blanc dessus 7,14:1 · lu sur le papier 6,38:1
       profond    texte blanc dessus 12,35:1
       lavande    texte encre dessus 6,80:1
       lilas      texte encre dessus 12,52:1 */
  --terracotta:#6435ce;     /* violet principal — la couleur de marque */
  --majorelle:#2a2a2f;      /* anthracite — le neutre qui l'accompagne */
  --zellige:#3c1f80;        /* violet profond */
  --safran:#a78bee;         /* lavande */
  --rose:#d9ccf7;           /* lilas pâle */
  /* La lavande est claire : elle porte du texte encre, mais ne peut pas
     être lue comme texte sur fond clair (2,48:1). Les deux seuils
     s'excluent, aucune teinte ne peut tenir les deux rôles — d'où ce
     ton médian, réservé au texte et aux filets. 4,80:1 sur papier. */
  --safran-text:#7a4fd6;

  --brand:#6435ce;
  --brand-deep:#3c1f80;
  --brand-dark:#4e2aa6;

  --terracotta-soft:#ede6fb;
  --majorelle-soft:#e8e8ea;
  --zellige-soft:#e5dbf8;
  --safran-soft:#f3eefd;
  --rose-soft:#f8f5fe;

  --accent:var(--terracotta);

  /* typographie */
  --font-display:"Boldonse","Archivo Black","Arial Black",-apple-system,system-ui,sans-serif;
  --font-body:"Satoshi",-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,"JetBrains Mono","Roboto Mono",Menlo,monospace;

  /* échelle — Boldonse est très large, on reste prudent */
  --t-hero:clamp(1.85rem,4.4vw,4.4rem);
  --t-h1:clamp(1.8rem,5.2vw,4.4rem);
  --t-h2:clamp(1.5rem,3.9vw,3.2rem);
  --t-h3:clamp(1.05rem,1.9vw,1.55rem);
  --t-lead:clamp(.98rem,1.15vw,1.12rem);
  --t-body:1rem;
  --t-sm:.875rem;
  --t-xs:.76rem;

  /* rythme */
  --gut:clamp(1.1rem,4vw,2.6rem);
  --maxw:1240px;
  --maxw-narrow:820px;
  --sec:clamp(4rem,8vw,8rem);

  /* formes — tout est très arrondi chez ce type de design */
  --r-sm:12px; --r-md:18px; --r-lg:26px; --r-xl:34px; --r-2xl:44px; --r-pill:999px;

  /* ombres */
  --sh-1:0 2px 10px rgba(17,17,18,.05);
  --sh-2:0 8px 30px rgba(17,17,18,.09);
  --sh-3:0 24px 70px rgba(17,17,18,.16);
  --sh-card:0 18px 46px rgba(17,17,18,.14);

  /* mouvement */
  --e-out:cubic-bezier(.22,1,.36,1);
  --e-spring:cubic-bezier(.34,1.4,.64,1);
}

/* ---------- 2. RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:110px;
  scrollbar-gutter:stable}
html.is-locked{overflow:hidden}
body{
  font-family:var(--font-body);
  font-size:var(--t-body);
  line-height:1.6;
  color:var(--fg);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;
}
img,svg,video,canvas{display:block;max-width:100%;height:auto}
img{background:rgba(17,17,18,.06)}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}
button{cursor:pointer}
ul,ol{list-style:none}
::selection{background:var(--ink);color:#fff}
:focus-visible{outline:2px solid var(--terracotta);outline-offset:3px;border-radius:6px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ---------- 3. TYPOGRAPHIE ---------- */
.display,h1,h2,.h2,h3.display{
  font-family:var(--font-display);
  font-weight:400;
  text-transform:uppercase;
  line-height:1.16;
  letter-spacing:-.018em;
  text-wrap:balance;
}
h1{font-size:var(--t-h1)}
h2,.h2{font-size:var(--t-h2)}
h3,h4,h5{font-family:var(--font-body);font-weight:700;letter-spacing:-.025em;line-height:1.2}
h3{font-size:var(--t-h3)}
h4{font-size:1.05rem}
.hero-type{font-size:var(--t-hero);line-height:1.5}
.lead{font-size:var(--t-lead);line-height:1.62;color:var(--fg-soft);max-width:60ch;text-wrap:pretty}
.muted{color:var(--fg-mute)}
.soft{color:var(--fg-soft)}
.tabular{font-variant-numeric:tabular-nums}
.u-center{text-align:center}
.u-mt{margin-top:clamp(1.4rem,2.6vw,2.2rem)}
.u-mt-s{margin-top:.9rem}
.u-mb{margin-bottom:clamp(1.6rem,3vw,2.6rem)}
.num{font-family:var(--font-display);font-weight:400;letter-spacing:-.03em;line-height:.94}

/* Surlignage coloré dans le texte — la signature du design */
.hl{
  display:inline-block;
  padding:.06em .34em .12em;
  border-radius:.38em;
  background:var(--safran);
  color:var(--ink);
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
.hl--majorelle{background:var(--majorelle);color:#fff}
.hl--terracotta{background:var(--terracotta);color:#fff}
.hl--zellige{background:var(--zellige);color:#fff}
.hl--rose{background:var(--rose);color:var(--ink)}
.hl--safran{background:var(--safran);color:var(--ink)}
.hl--ink{background:var(--ink);color:#fff}
.hl--out{background:transparent;box-shadow:inset 0 0 0 2px var(--majorelle);color:var(--majorelle)}
/* Variante « gros titre » : la référence utilise une vraie pastille
   (rayon 100px, padding 20px 30px pour un texte de 68px, soit .29em/.44em).
   L'interligne de 1.5 lui laisse la place sans empiéter sur la ligne suivante. */
.hero-type .hl,h1 .hl,h2 .hl{
  padding:.29em .44em;border-radius:100px;line-height:1.5}

/* Étiquette de section */
.tag{
  display:inline-flex;align-items:center;gap:.45em;
  padding:.45em .9em;border-radius:var(--r-pill);
  background:var(--white);border:1px solid var(--line);
  font-size:.78rem;font-weight:600;color:var(--fg-soft);
  box-shadow:var(--sh-1);
}
.tag svg{width:13px;height:13px;flex:none}
.tag--ink{background:var(--ink);color:#fff;border-color:var(--ink)}
.tag--inv{background:rgba(255,255,255,.08);border-color:var(--line-inv);color:rgba(255,255,255,.85)}

/* ---------- 4. LAYOUT ---------- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gut)}
.wrap--narrow{max-width:var(--maxw-narrow)}
.wrap--wide{max-width:1480px}
.section{padding-block:var(--sec);position:relative}
.section--tight{padding-block:clamp(2.6rem,5vw,5rem)}
.section--white{background:var(--white)}
.section--ink{background:var(--ink);color:var(--fg-inv)}
.section--ink .lead,.section--ink .soft{color:rgba(255,255,255,.6)}

/* Fond lilas — une teinte du violet de marque pour rythmer l'accueil.
   #f4f1fd n'est pas choisi à l'œil : il a la MÊME luminance que le papier
   qu'il remplace (0,892 contre 0,889). Tous les contrastes mesurés du site
   restent donc intacts — le gris des petits textes tient 4,66:1. Une teinte
   plus soutenue (#efe9fb) le faisait tomber à 4,38:1, sous le seuil AA.
   `--paper` est redéfini localement : tout composant qui s'appuie sur « la
   couleur du fond » (pastilles, dégradés de bord) s'y accorde tout seul. */
.section--lilas,.marquee--lilas{--paper:#f4f1fd;--paper-fade:rgba(244,241,253,0);background:var(--paper)}
/* Variante « halo » pour les sections d'ancrage : deux lueurs violettes
   dans les coins. Elles s'éteignent à 70 % de leur rayon, bien avant les
   zones de texte, qui restent sur le lilas uni. */
.section--halo{background:
  radial-gradient(44rem 28rem at 100% 0%,rgba(100,53,206,.09),transparent 70%),
  radial-gradient(38rem 24rem at 0% 100%,rgba(167,139,238,.17),transparent 70%),
  var(--paper)}
/* Variante « lueur » d'une section noire : deux halos violets dans les
   coins, la même grammaire que les halos lilas. Les cartes posées dessus
   sont blanches — le texte n'est jamais sur la lueur. */
.section--ink.section--glow{background:
  radial-gradient(46rem 30rem at 100% 0%,rgba(100,53,206,.30),transparent 70%),
  radial-gradient(40rem 26rem at 0% 100%,rgba(100,53,206,.22),transparent 70%),
  var(--ink)}
/* le bandeau défilant ouvre la section qui le suit : un seul fond continu */
.marquee--lilas{padding-top:clamp(1.6rem,3vw,2.6rem)}
.section--joint{padding-top:clamp(2.4rem,4.5vw,4rem)}
.grid{display:grid;gap:clamp(.9rem,1.8vw,1.4rem)}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.between{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap}
.rule{height:1px;background:var(--line);border:0}
.btns{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}

/* En-tête de section centré, comme sur la référence */
.shead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.1rem;
  margin-bottom:clamp(2.2rem,4.5vw,3.8rem)}
.shead .lead{text-align:center;margin-inline:auto}
.shead--left{align-items:flex-start;text-align:left}
.shead--left .lead{text-align:left;margin-inline:0}

@media(max-width:900px){.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:1fr}}
@media(max-width:600px){.g2,.g4{grid-template-columns:1fr}}

/* ---------- 5. BOUTONS ---------- */
.btn{
  --bg:var(--ink);--fg:#fff;
  position:relative;display:inline-flex;align-items:center;gap:.6em;
  padding:.52rem .52rem .52rem 1.15rem;border-radius:var(--r-pill);
  background:var(--bg);color:var(--fg);
  font-weight:700;font-size:.93rem;letter-spacing:-.015em;line-height:1;
  white-space:nowrap;border:1px solid transparent;
  transition:transform .4s var(--e-spring),box-shadow .4s var(--e-out),background-color .3s;
}
.btn__ic{width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.16);
  display:grid;place-items:center;flex:none;transition:transform .5s var(--e-spring),background-color .3s}
.btn__ic svg{width:14px;height:14px}
.btn:hover{transform:translateY(-3px);box-shadow:var(--sh-2)}
.btn:hover .btn__ic{transform:rotate(45deg)}
.btn:active{transform:translateY(-1px) scale(.98)}
.btn--terracotta{--bg:var(--terracotta)}
.btn--majorelle{--bg:var(--majorelle)}
.btn--safran{--bg:var(--safran);--fg:var(--ink)}
.btn--safran .btn__ic,.btn--light .btn__ic{background:rgba(17,17,18,.12)}
.btn--light{--bg:#fff;--fg:var(--ink);border-color:var(--line)}
.btn--ghost{--bg:transparent;--fg:var(--ink);border-color:var(--line-2)}
.btn--ghost .btn__ic{background:rgba(17,17,18,.08)}
.btn--outline-inv{--bg:transparent;--fg:#fff;border-color:var(--line-inv)}
.btn--lg{padding:.62rem .62rem .62rem 1.4rem;font-size:1rem}
.btn--lg .btn__ic{width:36px;height:36px}
.btn--sm{padding:.38rem .38rem .38rem .9rem;font-size:.84rem}
.btn--sm .btn__ic{width:24px;height:24px}
.btn--sm .btn__ic svg{width:11px;height:11px}
.btn--block{width:100%;justify-content:space-between}

/* Lien souligné */
.alink{display:inline-flex;align-items:center;gap:.45em;font-weight:700;font-size:.92rem;
  letter-spacing:-.015em;padding-bottom:.2em;position:relative}
.alink::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1.5px;background:currentColor;
  transform-origin:right;transform:scaleX(1);transition:transform .45s var(--e-out)}
.alink:hover::after{transform-origin:left;animation:sweep .6s var(--e-out)}
@keyframes sweep{0%,49%{transform:scaleX(1)}50%{transform:scaleX(0)}100%{transform:scaleX(1)}}
.alink svg{width:14px;height:14px;transition:transform .4s var(--e-out)}
.alink:hover svg{transform:translateX(3px)}

/* Puce de vérification blanche (dans les cartes colorées) */
.tick-pill{display:inline-flex;align-items:center;gap:.4em;padding:.36em .8em;border-radius:var(--r-pill);
  background:rgba(255,255,255,.92);color:var(--ink);font-size:.78rem;font-weight:600;white-space:nowrap}
.tick-pill svg{width:11px;height:11px;flex:none}
.tick-pills{display:flex;flex-wrap:wrap;gap:.42rem}

/* ---------- 6. CARTES & MÉDIAS ---------- */
.card{background:var(--white);border-radius:var(--r-xl);padding:clamp(1.3rem,2.2vw,2rem);
  border:1px solid var(--line);transition:transform .45s var(--e-out),box-shadow .45s var(--e-out)}
.card--hover:hover{transform:translateY(-4px);box-shadow:var(--sh-2)}
.media{position:relative;overflow:hidden;border-radius:var(--r-lg);background:rgba(17,17,18,.06)}
.media img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--e-out)}
.media--hover:hover img{transform:scale(1.05)}
.ar-1{aspect-ratio:1}.ar-43{aspect-ratio:4/3}.ar-34{aspect-ratio:3/4}
.ar-169{aspect-ratio:16/9}.ar-32{aspect-ratio:3/2}.ar-23{aspect-ratio:2/3}.ar-54{aspect-ratio:5/4}

/* ---------- 7. ANIMATIONS D'ENTRÉE ---------- */
[data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .8s var(--e-out),transform .8s var(--e-out);transition-delay:var(--d,0ms)}
[data-reveal].in{opacity:1;transform:none}
[data-reveal="fade"]{transform:none}
[data-reveal="pop"]{transform:scale(.92) rotate(var(--rot,0deg))}
[data-reveal="pop"].in{transform:rotate(var(--rot,0deg))}

/* Titres révélés ligne par ligne */
.rw{display:inline-block;overflow:hidden;vertical-align:top;
  padding:.22em .04em .14em;margin:-.22em -.04em -.14em}
.rw>i{display:inline-block;font-style:inherit;transform:translateY(110%);
  transition:transform .9s var(--e-out);transition-delay:var(--wd,0ms)}
.in .rw>i{transform:none}

.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:#fff;padding:.9rem 1.3rem;border-radius:0 0 12px 0;z-index:9999}
.skip:focus{left:0}
.progress{position:fixed;top:0;left:0;height:3px;width:100%;transform:scaleX(0);transform-origin:0 50%;
  background:var(--terracotta);z-index:9999}

/* ---------- Objectif « lentille » dans le titre ---------- */
.lens{display:inline-block;width:.74em;height:.74em;vertical-align:-.015em;
  color:var(--terracotta);margin:0 .015em;animation:lensPulse 4.5s var(--e-out) infinite}
@keyframes lensPulse{0%,100%{transform:rotate(0)}50%{transform:rotate(180deg)}}

/* ---------- Ajustements titres (typo Boldonse + accents français) ---------- */
.hero-type{line-height:1.5}
.hero__title{line-height:1.16}
/* Les titres de section restent plus petits que le hero pour ne jamais déborder */
.shead .hero-type,.phead .hero-type{font-size:clamp(1.55rem,4.3vw,3.3rem)}
.shead h2,.phead h1,.cta h2{max-width:100%}
.cta .hero-type{font-size:clamp(1.6rem,4.6vw,3.6rem)}

/* ---------- Révélation des mots : pas de découpe (Boldonse déborde
   largement de sa boîte, un overflow:hidden mangerait les glyphes) ---------- */
.rw{display:inline-block;overflow:visible;vertical-align:baseline;padding:0;margin:0}
.rw>i{display:inline-block;font-style:inherit;opacity:0;transform:translateY(.28em);
  transition:opacity .7s var(--e-out),transform .7s var(--e-out);transition-delay:var(--wd,0ms)}
.in .rw>i{opacity:1;transform:none}
h2,.h2{line-height:1.5}

/* Interligne du titre principal : laisse passer les accents */
.hero__title{line-height:1.5}
@media(max-width:700px){.hero__title,.hero-type{line-height:1.45}}
