/* ============================================================
   WAKAMÉ — pixel-perfect 1366 × 14778
   Système d'unité responsive :
     >= 1366px : 1 unit = 1px (taille exacte de la maquette XD)
     < 1366px  : 1 unit = 100vw / 1366 (mise à l'échelle proportionnelle)
   Toutes les positions et tailles sont exprimées en --u.
   ============================================================ */

:root{
  --u: 1px;
  --green:  #07CD92;
  --black:  #000000;
  --white:  #ffffff;
  --muted:  #b3b3b3;

  /* Polices Halyard via Adobe Fonts (Typekit projet lwe8lef) */
  --f-display: "halyard-display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text:    "halyard-text",    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-micro:   "halyard-micro",   "halyard-text", sans-serif;
}

@media (max-width: 1366px){
  :root{ --u: calc(100vw / 1366); }
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html,body{
  background:var(--black);
  color:var(--white);
  font-family:var(--f-text);
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
html{ scroll-behavior:smooth; }

img,video{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }

/* ============================================================
   SCÈNE (canvas 1366 × 14778)
   ============================================================ */
.stage{
  position:relative;
  width:   calc(1366  * var(--u));
  height:  calc(15688 * var(--u));
  margin:0 auto;
  background:var(--black);
  overflow:hidden;
}

/* helper position absolue à partir des CSS vars --x --y --w --h */
.stage > *{
  position:absolute;
}
.stage > [style*="--x"]{
  left: calc(var(--x, 0) * var(--u));
}
.stage > [style*="--y"]{
  top:  calc(var(--y, 0) * var(--u));
}
.stage > [style*="--w"]{
  width: calc(var(--w, 0) * var(--u));
}
.stage > [style*="--h"]{
  height: calc(var(--h, 0) * var(--u));
}

/* anchors invisibles pour scroll spy */
.anchor{
  display:block;
  width:1px; height:1px;
  visibility:hidden;
  pointer-events:none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-bg{
  object-fit:cover;
  opacity: 0.3;
  z-index:1;
}
.hero-veil{
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.35) 0%,
      rgba(0,0,0,.15) 30%,
      rgba(0,0,0,.85) 100%);
  z-index:2;
}

.hero__content{
  text-align: center;
  z-index: 6;
}
.hero__kicker{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: calc(13 * var(--u));
  letter-spacing: calc(2.4 * var(--u));
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 calc(24 * var(--u));
}
.hero__title{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: calc(72 * var(--u));
  line-height: 1;
  letter-spacing: calc(-0.5 * var(--u));
  color: var(--white);
  margin: 0 0 calc(22 * var(--u));
}
.hero__sub{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: calc(20 * var(--u));
  letter-spacing: calc(2.4 * var(--u));
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 calc(30 * var(--u));
}
.hero__intro{
  font-family: var(--f-text);
  font-weight: 300;
  font-size: calc(17 * var(--u));
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: calc(880 * var(--u));
  margin: 0 auto;
  padding: 0 calc(24 * var(--u));
  text-wrap: balance;
}

/* ============================================================
   NAV (pilule flottante, position: fixed sur le viewport)
   ============================================================ */
.nav{
  position: fixed;
  top: calc(40 * var(--u));
  left: 50%;
  transform: translateX(-50%);
  width: calc(1118 * var(--u));
  max-width: calc(100vw - 32px);
  height: calc(64  * var(--u));
  background: rgba(12,12,12,.55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: calc(40 * var(--u));
  padding: 0 calc(34 * var(--u));
  display:flex;
  align-items:center;
  justify-content:space-between;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  z-index: 100;
  transition: background .35s ease, border-color .35s ease;
  will-change: transform;
}
.nav.is-scrolled{
  background: rgba(8,8,8,.78);
  border-color: rgba(255,255,255,.12);
}
.nav__logo{
  display: inline-flex;
  align-items: center;
  color: var(--green);
  line-height: 0;
}
.nav__logo svg{
  /* Hauteur = ~32px à 1366 (proportionnel au design XD) ; ratio 4.31 → ~138px de large */
  height: calc(28 * var(--u));
  width: auto;
  display: block;
}
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
.nav__links{
  display:flex;
  gap: calc(40 * var(--u));
  font-family:var(--f-text);
  font-weight:400;
  font-size: calc(22 * var(--u));
  color:var(--white);
}
.nav__links a{
  position:relative;
  padding: calc(4 * var(--u)) 0;
  transition: color .2s ease;
}
.nav__links a::after{
  content:"";
  position:absolute;
  left:0; bottom: calc(-2 * var(--u));
  width:0; height: calc(1 * var(--u));
  background: var(--green);
  transition: width .25s ease;
}
.nav__links a:hover{ color: var(--green); }
.nav__links a:hover::after{ width:100%; }

/* ============================================================
   TUILES — chaque tuile a ses x,y,w,h en variables CSS
   ============================================================ */
.tile{
  z-index:5;
  overflow:hidden;
  background:#0d0d0d;
  border-radius: calc(6 * var(--u));
}
.tile img,
.tile video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius: inherit;
}

/* La 1ère tuile (Catalogue Villevert) chevauche le hero */
.tile[style*="--y:371"]{ z-index:10; }

/* placeholder visible si l'image n'est pas trouvée */
.tile.is-empty{
  background:
    repeating-linear-gradient(45deg, #101010 0 14px, #161616 14px 28px);
  border: 1px dashed rgba(255,255,255,.14);
}
.tile.is-empty img,
.tile.is-empty video{ display:none; }
.tile.is-empty::after{
  content: attr(data-file);
  position:absolute;
  inset:0;
  display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,.45);
  font-family:var(--f-text);
  font-weight:500;
  font-size: calc(14 * var(--u));
  letter-spacing: .03em;
  text-align:center;
  padding: 0 calc(16 * var(--u));
}

/* ============================================================
   LABELS (pastilles vertes) — enfants directs de .stage,
   positionnés via le même système --x / --y que les tuiles.
   ============================================================ */
.label{
  /* position absolute déjà héritée de .stage > * */
  background: var(--green);
  color: #04211a;
  font-family: var(--f-text);
  font-weight: 700;
  font-size: calc(11 * var(--u));
  letter-spacing: calc(.6 * var(--u));
  text-transform: uppercase;
  padding: calc(15 * var(--u)) calc(20 * var(--u));
  border-radius: calc(2 * var(--u));
  line-height: 1;
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(0,0,0,.25);
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions__title{
  font-family:var(--f-display);
  font-weight:300;
  font-size: calc(80 * var(--u));
  color: var(--green);
  letter-spacing: calc(-.5 * var(--u));
  line-height:1;
  z-index:5;
}

.solutions__intro{
  font-family:var(--f-text);
  font-weight:300;
  font-size: calc(18 * var(--u));
  line-height: calc(28 * var(--u));
  color: var(--muted);
  z-index:5;
}
.solutions__intro p{
  margin-bottom: calc(8 * var(--u));
}
.solutions__intro h3{
  font-family:var(--f-text);
  font-weight:700;
  color: var(--white);
  font-size: calc(18 * var(--u));
  margin-bottom: calc(6 * var(--u));
}

.solutions__verbs{
  list-style: none;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: calc(32 * var(--u));
  letter-spacing: calc(2 * var(--u));
  color: var(--green);
  text-transform: uppercase;
  line-height: calc(53 * var(--u));
  z-index:5;
}

.solutions__services{
  font-family: var(--f-text);
  font-weight: 300;
  font-size: calc(18 * var(--u));
  line-height: calc(24 * var(--u));
  color: var(--muted);
  z-index:5;
}
.solutions__services h4{
  font-family: var(--f-text);
  font-weight: 700;
  color: var(--white);
  font-size: calc(18 * var(--u));
  margin-bottom: calc(6 * var(--u));
}

/* ============================================================
   RÉFÉRENCES
   ============================================================ */
.refs__title{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: calc(32 * var(--u));
  color: var(--green);
  letter-spacing: calc(.5 * var(--u));
  z-index:5;
}
.refs__col{
  font-family: var(--f-text);
  font-weight: 300;
  font-size: calc(16 * var(--u));
  line-height: calc(24 * var(--u));
  color: var(--muted);
  z-index:5;
}
.refs__col h4{
  font-family: var(--f-text);
  font-weight: 700;
  color: var(--white);
  font-size: calc(16 * var(--u));
  letter-spacing: calc(.3 * var(--u));
  margin-bottom: calc(10 * var(--u));
}

/* ============================================================
   CTA CONTACT
   ============================================================ */
.rule{
  left:50%;
  transform: translateX(-50%);
  width: calc(1090 * var(--u));
  height: calc(1 * var(--u));
  border: none;
  background: rgba(255,255,255,.18);
  z-index:5;
}
.cta__title{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: calc(80 * var(--u));
  line-height: calc(90 * var(--u));
  letter-spacing: calc(-.5 * var(--u));
  color: var(--white);
  z-index:5;
}
.cta__button{
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--green);
  color: #04211a;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: calc(50 * var(--u));
  border-radius: calc(10 * var(--u));
  letter-spacing: calc(.3 * var(--u));
  transition: transform .25s ease, box-shadow .25s ease;
  z-index:5;
}
.cta__button:hover{
  transform: translateY( calc(-3 * var(--u)) );
  box-shadow: 0 calc(14 * var(--u)) calc(36 * var(--u)) rgba(0,200,144,.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer__logo{
  left:0; right:0;
  text-align:center;
  line-height: 0;
  color: var(--green);
  z-index:5;
}
.footer__logo svg{
  /* Hauteur ~82px à 1366 (correspond au logo de 80pt du PDF) */
  height: calc(82 * var(--u));
  width: auto;
  display: inline-block;
}
.footer__sub{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: calc(20 * var(--u));
  letter-spacing: calc(2.4 * var(--u));
  text-transform: uppercase;
  color: var(--white);
  z-index:5;
}

/* Liens légaux discrets sous le logo */
.footer__legal{
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(20 * var(--u));
  font-family: var(--f-text);
  font-weight: 400;
  font-size: calc(13 * var(--u));
  letter-spacing: calc(.3 * var(--u));
  color: rgba(255,255,255,.5);
  z-index: 5;
}
.footer__legal a{
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s ease;
}
.footer__legal a:hover{ color: var(--green); }
.footer__legal span{ color: rgba(255,255,255,.25); }

/* Lien LinkedIn — icône seule centrée entre sub et legal */
.footer__social{
  left: 0;
  right: 0;
  text-align: center;
  line-height: 0;
  color: rgba(255,255,255,.45);
  transition: color .2s ease;
  z-index: 5;
}
.footer__social:hover{ color: var(--green); }
.footer__social svg{
  height: calc(22 * var(--u));
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   PRÉFÉRENCE MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .stage video{ display:none; }
  *{ transition:none !important; scroll-behavior:auto; }
}

/* ============================================================
   MOBILE — layout empilé complet (< 720 px)
   Le hero conserve son positionnement absolu ; tout le reste
   (tuiles, labels, sections, footer) passe en flow naturel
   avec ratios préservés et pleine largeur.
   ============================================================ */
@media (max-width: 720px){

  /* Scène : hauteur libre, contenu empilé, place pour le hero fixe */
  .stage{
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 310px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  /* Label cliquable (ECT) : identique au label normal en mobile */
  .stage > .label--link{ text-decoration: none; }

  /* Hero garde son positionnement absolu par rapport à la stage,
     mais avec des dimensions adaptées mobile (pixels fixes) */
  .stage > .hero-bg,
  .stage > .hero-veil{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 310px;
  }
  .stage > .hero__content{
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .stage > .anchor{
    position: absolute;
  }

  /* Tailles hero en pixels fixes pour lisibilité mobile */
  .hero__kicker{
    font-size: 11px;
    letter-spacing: 1.6px;
    margin-bottom: 16px;
  }
  .hero__title{
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }
  .hero__sub{
    font-size: 11px;
    letter-spacing: 1.4px;
    margin-bottom: 16px;
  }
  .hero__intro{
    font-size: 13.5px;
    line-height: 1.55;
    max-width: 320px;
    padding: 0;
  }

  /* Tous les autres éléments : en flow naturel */
  .stage > .tile,
  .stage > .solutions__title,
  .stage > .solutions__intro,
  .stage > .solutions__verbs,
  .stage > .solutions__services,
  .stage > .refs__title,
  .stage > .refs__col,
  .stage > .rule,
  .stage > .cta__title,
  .stage > .cta__button,
  .stage > .footer__logo,
  .stage > .footer__sub,
  .stage > .footer__social,
  .stage > .footer__legal{
    position: static;
    left: auto;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: auto;
  }

  /* Labels : reste compacts (largeur auto selon texte) */
  .stage > .label{
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
  }

  /* Tuiles : ratio préservé via CSS var, aspect-ratio recalculé */
  .stage > .tile{
    aspect-ratio: var(--w) / var(--h);
    margin: 20px auto 0;
  }

  /* Label : overlay bas-gauche de la tuile qui précède */
  .stage > .tile + .label{
    align-self: flex-start;
    margin: calc(-56 * var(--u)) 0 0 20px;
    position: relative;
    z-index: 20;
  }
  /* Label seul (pas après une tuile) : marge normale */
  .stage > .label{
    align-self: flex-start;
    margin-left: 20px;
  }

  /* Solutions : titres et blocs de texte */
  .stage > .solutions__title{
    font-size: 42px;
    margin: 40px auto 20px;
    text-align: left;
    max-width: 500px;
  }
  .stage > .solutions__intro{
    max-width: 500px;
  }
  .stage > .solutions__intro p{
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .stage > .solutions__intro h3{
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 8px;
  }
  .stage > .solutions__verbs{
    max-width: 500px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .stage > .solutions__verbs li{
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: .06em;
  }
  .stage > .solutions__services{
    max-width: 500px;
    line-height: 1.6;
  }
  .stage > .solutions__services p{
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
  }
  .stage > .solutions__services h4{
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 6px;
    margin-top: 20px;
  }
  .stage > .solutions__services h4:first-child{
    margin-top: 0;
  }

  /* Références */
  .stage > .refs__title{
    font-size: 42px;
    margin: 40px auto 20px;
    text-align: left;
    max-width: 500px;
  }
  .stage > .refs__col{
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.6;
  }
  .stage > .refs__col h4{
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: .05em;
    margin-bottom: 8px;
  }
  .stage > .refs__col p{
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
  }

  /* CTA */
  .stage > .rule{
    max-width: 500px;
    height: 1px;
    margin: 30px auto 0;
  }
  .stage > .cta__title{
    font-size: 44px;
    line-height: 1.05;
    margin: 30px auto 25px;
    text-align: left;
    max-width: 500px;
  }
  .stage > .cta__button{
    max-width: 500px;
    padding: 22px 40px;
    font-size: 22px;
    text-align: center;
    margin-bottom: 30px;
  }

  /* Footer */
  .stage > .footer__logo{
    max-width: 500px;
    margin: 40px auto 10px;
    text-align: center;
  }
  .stage > .footer__logo svg{
    height: 44px;
  }
  .stage > .footer__sub{
    max-width: 500px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
  }
  .stage > .footer__social{
    max-width: 500px;
    text-align: center;
    margin: 0 auto 16px;
    line-height: 0;
  }
  .stage > .footer__social svg{
    height: 22px;
  }
  .stage > .footer__legal{
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
    font-size: 12px;
    gap: 16px;
    padding-bottom: 20px;
  }
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
:focus-visible{
  outline: calc(2 * var(--u)) solid var(--green);
  outline-offset: calc(2 * var(--u));
}

/* ============================================================
   PAGES LÉGALES (mentions, confidentialité, cookies)
   Pages standalone — pas de système .stage / --u absolute
   ============================================================ */
.legal-page{
  background: var(--black);
  color: var(--white);
  font-family: var(--f-text);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  /* Repasse --u en pixels fixes : on n'utilise plus le système de scène ici */
  --u: 1px;
}

/* La nav garde son style flottant (--u repassé à 1px → tailles px réelles) */
.legal-page .nav{ max-width: calc(100vw - 32px); }

.legal{
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  color: rgba(255,255,255,.78);
}
.legal__header{
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.legal__breadcrumb{
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.legal__breadcrumb a{
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s ease;
}
.legal__breadcrumb a:hover{ color: var(--green); }

.legal h1{
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 64px);
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.legal__meta{
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.legal__intro{
  font-size: 17px;
  color: rgba(255,255,255,.88);
  padding: 20px 24px;
  border-left: 2px solid var(--green);
  background: rgba(7,205,146,.04);
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
}

.legal section{
  margin-bottom: 44px;
}
.legal h2{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
  letter-spacing: .005em;
  margin-bottom: 16px;
  padding-bottom: 6px;
}
.legal p{
  font-size: 15.5px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.78);
}
.legal p strong{ color: var(--white); font-weight: 600; }
.legal em{
  color: rgba(7,205,146,.85);
  background: rgba(7,205,146,.08);
  padding: 1px 6px;
  border-radius: 3px;
  font-style: normal;
  font-size: 14px;
}
.legal a{
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(7,205,146,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.legal a:hover{
  text-decoration-color: var(--green);
}
.legal sup{ font-size: 10px; vertical-align: super; }

.legal__list{
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}
.legal__list li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15.5px;
  color: rgba(255,255,255,.78);
}
.legal__list li::before{
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--green);
}

.legal__related{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.legal__related a{
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}
.legal__related a:hover{
  color: var(--green);
  transform: translateX(4px);
}

/* Footer simplifié des pages légales */
.legal-footer{
  text-align: center;
  padding: 60px 24px 80px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.legal-footer__logo{
  color: var(--green);
  line-height: 0;
  margin-bottom: 10px;
}
.legal-footer__logo svg{
  height: 60px;
  width: auto;
  display: inline-block;
}
.legal-footer__sub{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 28px;
}
.legal-footer__links{
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: .04em;
}
.legal-footer__links a{
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}
.legal-footer__links a:hover{ color: var(--green); }

/* Responsive pages légales */
@media (max-width: 600px){
  .legal{ padding: 130px 20px 60px; }
  .legal__intro{ padding: 16px 18px; font-size: 15px; }
  .legal__header{ margin-bottom: 40px; }
  .legal section{ margin-bottom: 32px; }
}

/* ============================================================
   TOAST — confirmation de copie d'email
   ============================================================ */
.mail-toast{
  position: fixed;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  background: var(--green);
  color: #04211a;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 200;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mail-toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   BANDEAU COOKIES & MODAL DE PERSONNALISATION
   ============================================================ */
.cookie-banner{
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(12,12,12,.95);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 2px solid var(--green);
  border-radius: 12px;
  padding: 22px 26px;
  z-index: 500;
  font-family: var(--f-text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.cookie-banner.is-visible{ opacity: 1; transform: translateY(0); }
.cookie-banner__inner{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text{ flex: 1; min-width: 220px; }
.cookie-banner__title{
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: .02em;
}
.cookie-banner__body{
  margin: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.cookie-banner__body a{
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(7,205,146,.4);
}
.cookie-banner__body a:hover{ text-decoration-color: var(--green); }
.cookie-banner__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Boutons (utilisés bandeau + modal) */
.cookie-btn{
  font-family: var(--f-text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: .01em;
}
.cookie-btn--primary{
  background: var(--green);
  color: #04211a;
  border-color: var(--green);
}
.cookie-btn--primary:hover{ background: #04b57e; border-color: #04b57e; }
.cookie-btn--ghost{
  background: transparent;
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.2);
}
.cookie-btn--ghost:hover{
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

/* Modal */
.cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 600;
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.cookie-modal.is-visible{ opacity: 1; }
.cookie-modal__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-modal__panel{
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 34px 30px 28px;
  color: rgba(255,255,255,.85);
  font-family: var(--f-text);
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.cookie-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease;
}
.cookie-modal__close:hover{ color: var(--white); }
.cookie-modal__title{
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--green);
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: .01em;
}
.cookie-modal__intro{
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin: 0 0 22px;
  line-height: 1.55;
}
.cookie-category{
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-category:last-of-type{
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 22px;
}
.cookie-category__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}
.cookie-category h3{
  font-family: var(--f-text);
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
  margin: 0;
}
.cookie-category p{
  font-size: 13px;
  color: rgba(255,255,255,.62);
  margin: 0;
  line-height: 1.55;
}
.cookie-category code{
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: rgba(7,205,146,.85);
  background: rgba(7,205,146,.08);
  padding: 1px 6px;
  border-radius: 3px;
}
.cookie-category__always{
  color: rgba(7,205,146,.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Toggle switch */
.cookie-toggle{
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input{ opacity: 0; width: 0; height: 0; }
.cookie-toggle__slider{
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,.2);
  border-radius: 24px;
  transition: background .2s ease;
}
.cookie-toggle__slider::before{
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s ease;
}
.cookie-toggle input:checked + .cookie-toggle__slider{ background: var(--green); }
.cookie-toggle input:checked + .cookie-toggle__slider::before{ transform: translateX(18px); }

.cookie-modal__actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Bouton "Gérer mes cookies" dans le footer (style texte discret) */
.cookie-settings-link{
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cookie-settings-link:hover{ color: var(--green); }

/* Responsive mobile */
@media (max-width: 600px){
  .cookie-banner{
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    padding: 18px 20px;
  }
  .cookie-banner__inner{ gap: 14px; }
  .cookie-banner__actions{
    width: 100%;
    gap: 8px;
  }
  .cookie-banner__actions .cookie-btn{
    flex: 1;
    min-width: 0;
    padding: 12px 12px;
    font-size: 12.5px;
  }
  .cookie-modal{ padding: 20px 12px; }
  .cookie-modal__panel{ padding: 26px 22px; }
  .cookie-modal__title{ font-size: 20px; }
  .cookie-modal__actions{ flex-direction: column-reverse; }
  .cookie-modal__actions .cookie-btn{ width: 100%; }
}

/* ============================================================
   LIENS CLIQUABLES DANS LES RÉFÉRENCES (Vialux, SPL, UICCB)
   Discret : couleur normale, soulignement vert léger, hover vert
   ============================================================ */
.refs__link{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(7,205,146,.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.refs__link:hover{
  color: var(--green);
  text-decoration-color: var(--green);
}

/* ============================================================
   LABEL CLIQUABLE (ECT — Site corporate)
   Même aspect que les autres labels, mais cliquable + hover
   ============================================================ */
.label--link{
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.label--link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7,205,146,.35);
}
