/* RWINA — feuille commune. Artboard 1600×780, unité --u. */
:root{
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --white:#fff;
  --t78:rgba(255,255,255,.78);
  --t60:rgba(255,255,255,.60);
  --t55:rgba(255,255,255,.55);
  --bg:#0a1626;
  --u:min(calc(100vw / 1600),calc(100vh / 780),1.6px);
  --fw:calc(1600 * var(--u));
  --hair:max(1px,calc(1 * var(--u)));
}
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0;overflow:hidden;background:var(--bg)}
body{font-family:var(--font);font-weight:400;color:var(--white);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,p,ul{margin:0}
ul{padding:0;list-style:none}
a{color:inherit}
:focus-visible{outline:2px solid #fff;outline-offset:3px}
button,input,select,textarea{font:inherit;color:inherit}

/* ---------- fond ---------- */
.viewport{position:fixed;inset:0;overflow:hidden}
.bg{position:absolute;inset:0;overflow:hidden;background:var(--bg)}
.bg::before{content:"";position:absolute;inset:0;
  background:radial-gradient(60% 45% at 50% 100%,rgba(255,236,190,.35),transparent 70%),
             linear-gradient(180deg,#07101c 0%,#0a1626 60%,#14202c 100%)}
.bg video,.bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;filter:saturate(.9)}
.scrim{position:absolute;left:0;right:0;top:0;height:calc(470 * var(--u));pointer-events:none;
  background:linear-gradient(180deg,rgba(4,20,32,.58),rgba(4,20,32,.31) 50%,rgba(4,20,32,0))}
.page-contact .scrim,.page-legal .scrim{height:100%;background:linear-gradient(180deg,rgba(4,14,26,.72),rgba(4,14,26,.62))}

/* ---------- artboard ---------- */
.stage{position:absolute;left:50%;top:0;width:var(--fw);height:100%;transform:translateX(-50%);pointer-events:none}
.stage>*{pointer-events:auto}
.abs{position:absolute}

.lang{right:calc(46.6 * var(--u));top:calc(40 * var(--u));display:flex;gap:calc(14 * var(--u));font-size:calc(12 * var(--u));font-weight:500}
.lang button{appearance:none;border:0;background:none;cursor:pointer;padding:calc(4 * var(--u)) 0;color:var(--t55);transition:color .2s}
.lang button[aria-pressed="true"]{color:#fff}
.lang span{color:var(--t55)}

.headline-mask{left:calc(46 * var(--u));top:calc(150 * var(--u))}
.headline{font-size:calc(52 * var(--u));font-weight:400;line-height:1.1;letter-spacing:-.02em;white-space:nowrap}
.lede{left:calc(46 * var(--u));top:calc(230 * var(--u));width:calc(400 * var(--u));font-size:calc(16 * var(--u));line-height:1.45;color:var(--t78)}
.cta{left:calc(46 * var(--u));top:calc(312 * var(--u));display:inline-flex;align-items:center;height:calc(40 * var(--u));padding:0 calc(28 * var(--u));border-radius:calc(4 * var(--u));background:#fff;color:#000;text-decoration:none;font-size:calc(14 * var(--u));font-weight:500;white-space:nowrap;transition:background .25s,transform .25s,box-shadow .25s}
.cta:hover{background:#eef2f3;transform:translateY(calc(-1.5 * var(--u)));box-shadow:0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(0,0,0,.2)}
.proof{left:calc(46 * var(--u));top:calc(374 * var(--u));width:calc(420 * var(--u));font-size:calc(12.5 * var(--u));line-height:1.5;color:var(--t55)}

/* ---------- footer verre ---------- */
.footer{position:absolute;left:0;right:0;bottom:0;height:calc(342 * var(--u));overflow:hidden;
  -webkit-backdrop-filter:blur(calc(50 * var(--u))) saturate(.85);backdrop-filter:blur(calc(50 * var(--u))) saturate(.85);
  background:linear-gradient(90deg,rgba(255,255,255,.022) 0,rgba(255,255,255,.072) calc(20 * var(--u)),rgba(255,255,255,0) calc(58 * var(--u))),
             linear-gradient(270deg,rgba(255,255,255,.02) 0,rgba(255,255,255,.05) calc(20 * var(--u)),rgba(255,255,255,0) calc(58 * var(--u))),
             linear-gradient(180deg,rgba(4,10,20,.30),rgba(10,18,30,.26) 52%,rgba(40,62,80,.58));
  box-shadow:inset var(--hair) 0 0 0 rgba(255,255,255,.145),inset calc(-1 * var(--hair)) 0 0 0 rgba(255,255,255,.125),inset 0 calc(-1 * var(--hair)) 0 0 rgba(255,255,255,.17),inset 0 var(--hair) 0 0 rgba(255,255,255,.03)}
.finner{position:absolute;left:50%;top:0;transform:translateX(-50%);width:var(--fw);height:100%}
.brandrow{left:calc(26.6 * var(--u));top:calc(36 * var(--u));display:flex;align-items:center;gap:calc(10 * var(--u))}
.wordmark{display:block;line-height:0;text-decoration:none}
.logo{height:calc(24 * var(--u));width:auto;display:block}
.tagline{left:calc(26.6 * var(--u));top:calc(73 * var(--u));width:calc(274 * var(--u));font-size:calc(12.5 * var(--u));line-height:1.4;color:var(--t60)}
.nav{left:0;top:calc(37 * var(--u));width:100%;height:0}
.col{position:absolute;top:0}
.c1{left:calc(938.4 * var(--u))}.c2{left:calc(1185 * var(--u))}.c3{left:calc(1450.6 * var(--u))}
.col h3{font-size:calc(13 * var(--u));font-weight:500;line-height:1;color:var(--t60);white-space:nowrap}
.col ul{position:absolute;top:calc(31 * var(--u));left:0}
.col li{line-height:calc(25.27 * var(--u));white-space:nowrap}
.col a{font-size:calc(14 * var(--u));text-decoration:none;transition:opacity .2s}
.col a:hover{opacity:.6}
.rule{left:calc(26.6 * var(--u));width:calc(1546.8 * var(--u));top:calc(207.5 * var(--u));height:var(--hair);background:rgba(255,255,255,.42)}
.footrow{left:0;top:0;width:100%;height:0}
.legal{position:absolute;left:calc(26.6 * var(--u));top:calc(271.2 * var(--u));font-size:calc(12.5 * var(--u));line-height:1;color:var(--t60);white-space:nowrap}
.legal a{text-decoration:none;margin-left:calc(14 * var(--u));border-bottom:var(--hair) solid rgba(255,255,255,.35)}
.socials{position:absolute;left:calc(1470 * var(--u));top:calc(262 * var(--u));display:flex;gap:calc(40 * var(--u))}
.socials a{display:block;width:calc(26 * var(--u));height:calc(26 * var(--u));transition:opacity .2s}
.socials a:hover{opacity:.68}
.socials svg{width:100%;height:100%;display:block}

/* ---------- page contact ---------- */
.formwrap{left:calc(46 * var(--u));top:calc(70 * var(--u));width:calc(460 * var(--u));height:calc(352 * var(--u));overflow:auto;padding-right:calc(20 * var(--u))}
.formwrap h1{font-size:calc(36 * var(--u));font-weight:400;letter-spacing:-.02em;line-height:1.1}
.formwrap .intro{margin-top:calc(14 * var(--u));font-size:calc(13.5 * var(--u));line-height:1.5;color:var(--t78)}
.form{margin-top:calc(22 * var(--u));display:grid;gap:calc(10 * var(--u))}
.form .row2{display:grid;grid-template-columns:1fr 1fr;gap:calc(10 * var(--u))}
.field label{display:block;font-size:calc(11.5 * var(--u));color:var(--t60);margin-bottom:calc(4 * var(--u))}
.field input,.field select,.field textarea{width:100%;height:calc(36 * var(--u));padding:0 calc(11 * var(--u));border:0;border-radius:calc(4 * var(--u));background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 var(--hair) rgba(255,255,255,.22);color:#fff;font-size:calc(13.5 * var(--u));outline:none;-webkit-backdrop-filter:blur(calc(10 * var(--u)));backdrop-filter:blur(calc(10 * var(--u)))}
.field textarea{height:calc(84 * var(--u));padding:calc(9 * var(--u)) calc(11 * var(--u));resize:none}
.field select option{color:#000}
.field input:focus,.field select:focus,.field textarea:focus{box-shadow:inset 0 0 0 var(--hair) rgba(255,255,255,.75)}
.field .err{display:none;font-size:calc(11 * var(--u));color:#ffb4a8;margin-top:calc(4 * var(--u))}
.field.invalid .err{display:block}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.submit{margin-top:calc(4 * var(--u));justify-self:start;display:inline-flex;align-items:center;height:calc(40 * var(--u));padding:0 calc(28 * var(--u));border:0;border-radius:calc(4 * var(--u));background:#fff;color:#000;font-size:calc(14 * var(--u));font-weight:500;cursor:pointer;transition:background .25s,transform .25s}
.submit:hover{background:#eef2f3;transform:translateY(calc(-1.5 * var(--u)))}
.submit[disabled]{opacity:.6;cursor:wait;transform:none}
.status{font-size:calc(13 * var(--u));color:var(--t78);min-height:1.4em}
.form.sent{display:none}
.done{display:none;margin-top:calc(22 * var(--u));font-size:calc(15 * var(--u));line-height:1.5}
.done.show{display:block}

/* ---------- page légale ---------- */
.legaltext{left:calc(46 * var(--u));top:calc(60 * var(--u));width:calc(760 * var(--u));height:calc(360 * var(--u));overflow:auto;padding-right:calc(20 * var(--u));font-size:calc(13 * var(--u));line-height:1.55;color:var(--t78)}
.legaltext h1{font-size:calc(32 * var(--u));font-weight:400;letter-spacing:-.02em;color:#fff;margin-bottom:calc(16 * var(--u))}
.legaltext h2{font-size:calc(15 * var(--u));font-weight:500;color:#fff;margin:calc(22 * var(--u)) 0 calc(6 * var(--u))}
.legaltext p{margin-bottom:calc(8 * var(--u))}
.todo{color:#ffd9a8}
/* barres de défilement des zones internes (formulaire, mentions) */
.formwrap,.legaltext{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.32) transparent}
.formwrap::-webkit-scrollbar,.legaltext::-webkit-scrollbar{width:calc(6 * var(--u))}
.formwrap::-webkit-scrollbar-track,.legaltext::-webkit-scrollbar-track{background:transparent}
.formwrap::-webkit-scrollbar-thumb,.legaltext::-webkit-scrollbar-thumb{background:rgba(255,255,255,.32);border-radius:calc(3 * var(--u))}

/* ---------- entrée ---------- */
html.js-enter .lede,html.js-enter .cta,html.js-enter .proof,html.js-enter .brandrow,html.js-enter .tagline,html.js-enter .col,html.js-enter .legal,html.js-enter .socials a,html.js-enter .lang,html.js-enter .formwrap,html.js-enter .legaltext{opacity:0}
html.js-enter .headline-mask{clip-path:inset(-45% -8% -6px -3%)}
html.js-enter .headline{transform:translate3d(0,118%,0)}
html.js-enter .rule{transform:scaleX(0);transform-origin:left center}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* ---------- portrait / mobile ---------- */
@media (max-aspect-ratio:5/4){
  :root{--u:calc(100vw / 780);--pad:clamp(20px,5.6vw,56px)}
  html,body{overflow:visible;height:auto;min-height:100%}
  .viewport{position:relative;display:flex;flex-direction:column;min-height:100dvh;overflow:visible}
  .bg,.scrim{position:fixed}
  .bg video,.bg img{object-position:70% 40%}
  .scrim{height:min(56vh,calc(560 * var(--u)));background:linear-gradient(180deg,rgba(6,22,34,.5),rgba(6,22,34,.3) 50%,rgba(6,22,34,0))}
  .page-contact .scrim,.page-legal .scrim{height:100%}
  .stage{position:relative;left:auto;top:auto;width:100%;height:auto;transform:none;display:flex;flex-direction:column;padding:0 var(--pad);pointer-events:auto}
  .abs{position:static}
  .lang{position:absolute;right:var(--pad);top:clamp(16px,3vh,28px);font-size:13px;gap:12px}
  .headline-mask{margin-top:clamp(70px,14vh,120px)}
  .headline{white-space:normal;font-size:clamp(30px,8.6vw,52px);text-wrap:balance}
  .lede{margin-top:clamp(14px,2.4vh,22px);width:auto;max-width:36ch;font-size:clamp(14.5px,3.9vw,17px)}
  .cta{margin-top:clamp(22px,3.6vh,36px);align-self:flex-start;height:clamp(42px,6vh,50px);padding:0 clamp(22px,6vw,32px);border-radius:4px;font-size:clamp(14px,3.8vw,15px)}
  .proof{margin-top:clamp(14px,2vh,22px);margin-bottom:clamp(40px,7vh,80px);width:auto;max-width:40ch;font-size:clamp(12px,3.2vw,13px)}
  .footer{position:relative;height:auto;margin-top:auto;padding:clamp(22px,3.4vh,40px) var(--pad) clamp(20px,3vh,34px);
    -webkit-backdrop-filter:blur(28px) saturate(.9);backdrop-filter:blur(28px) saturate(.9);
    background:linear-gradient(180deg,rgba(5,10,18,.62),rgba(10,18,30,.64) 55%,rgba(30,48,64,.7))}
  .finner{position:static;transform:none;width:100%;height:auto}
  .brandrow{gap:10px}
  .logo{height:22px}
  .tagline{margin-top:12px;width:auto;max-width:40ch;font-size:13px}
  .nav{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,3.4vw,30px);height:auto;margin-top:clamp(26px,4vh,40px)}
  .col{position:static}
  .col h3{font-size:12.5px;white-space:normal}
  .col ul{position:static;margin-top:10px}
  .col li{line-height:1.6;white-space:normal}
  .col a{font-size:14px}
  .rule{width:100%;margin-top:clamp(24px,4vh,40px)}
  .footrow{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;height:auto;margin-top:clamp(18px,3vh,28px)}
  .legal{position:static;font-size:12.5px;white-space:normal;line-height:1.5}
  .legal a{margin-left:0;display:inline-block;margin-top:4px}
  .socials{position:static;gap:22px}
  .socials a{width:24px;height:24px}
  .formwrap{width:auto;height:auto;overflow:visible;padding:0;margin-top:clamp(70px,12vh,110px);margin-bottom:clamp(40px,7vh,80px)}
  .formwrap h1{font-size:clamp(26px,7.2vw,36px)}
  .formwrap .intro{font-size:14px;margin-top:12px}
  .form{gap:12px;margin-top:20px}
  .form .row2{grid-template-columns:1fr;gap:12px}
  .field label{font-size:12px;margin-bottom:5px}
  .field input,.field select,.field textarea{height:44px;font-size:16px;padding:0 12px;border-radius:4px}
  .field textarea{height:110px;padding:10px 12px}
  .submit{height:46px;padding:0 26px;font-size:15px;border-radius:4px}
  .status,.done{font-size:14px}
  .legaltext{width:auto;height:auto;overflow:visible;padding:0;margin-top:clamp(70px,12vh,110px);margin-bottom:clamp(40px,7vh,80px);font-size:14px}
  .legaltext h1{font-size:clamp(24px,7vw,32px)}
  .legaltext h2{font-size:15px}
}
@media (max-aspect-ratio:5/4) and (max-width:648px){
  .nav{grid-template-columns:repeat(2,1fr)}
  .c3{grid-column:1 / -1}
  .col a{display:inline-block;padding-block:clamp(9px,1.1vh,11px)}
  .col ul{margin-top:2px}
}
