/* ============================================================
   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(14778 * 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__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);
  white-space:nowrap;
  z-index:6;
}
.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);
  white-space:nowrap;
  z-index:6;
}

/* ============================================================
   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); }

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

/* ============================================================
   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; }
}
