/* =========================================================
   Youkonseil — style.css (clean + prêt prod)
   - Nettoyé / dédoublonné
   - Nav desktop stable : logo gauche / liens centre / actions (menu + langues) droite
   - Mobile : bouton Menu + drapeaux à droite, menu en panneau
   ========================================================= */

/* =========================
   1) Fonts
   ========================= */
@font-face{
  font-family:"BrandonYouk";
  src:url("../fonts/Brandon-Bold.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"BrandonYouk";
  src:url("../fonts/Brandon-Medium.woff2") format("woff2");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}

/* =========================
   2) Variables / thème
   ========================= */
:root{
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#516074;
  --line:rgba(16,24,40,.12);
  --soft:rgba(16,24,40,.06);
  --shadow: 0 14px 40px rgba(16,24,40,.10);
  --shadow2: 0 10px 30px rgba(16,24,40,.08);

  --brand:#0b5fff;
  --brand2:#19b46a;

  --radius:16px;
  --radius2:22px;
  --max:1180px;

  --font-body: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-title:"BrandonYouk", system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  /* header */
  --headerH: 96px;

  /* sections */
  --sectionPadY: 64px;
  --sectionPadY-m: 60px;

  /* hero */
  --heroVh: 76vh;
  --heroVh-m: 66vh;
  --heroInnerPad: 78px;
  --heroInnerPad-m: 64px;

  /* boutons */
  --btn-base: #faf3d7b9;
  --btn-hover: #fffaced2;
  --btn-active: #fff898;
  --btn-text: #4d4d4d;
  --btn-text-hover: #000000;

  /* steps */
  --step-accent: rgba(11,95,255,.35);
  --step-bg: rgba(11,95,255,.05);
}

/* =========================
   3) Reset / base
   ========================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
}
a{ color:inherit; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

/* =========================
   4) Typographie
   ========================= */
h1{
  font-family:var(--font-title);
  font-weight:700;
  margin:0 0 14px;
  font-size:clamp(3rem, 2.6vw + 1rem, 3.2rem);
  line-height:1.08;
  letter-spacing:-.02em;
}
h2{
  font-family:var(--font-title);
  font-weight:500;
  letter-spacing:-.01em;
  font-size:clamp(2rem, 1.1vw + 1rem, 2rem);
  line-height:1.2;
}
h3,h4{
  font-family:var(--font-title);
  font-weight:500;
  letter-spacing:-.01em;
}
h3{ font-size:1.3rem; }

/* =========================
   5) Accessibilité
   ========================= */
.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
  pointer-events:none;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:var(--shadow2);
  z-index:9999;
  pointer-events:auto;
}

/* =========================
   6) Header / Nav (verre)
   ========================= */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--soft);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:flex-start; /* IMPORTANT: pas space-between */
  gap:16px;
  padding:16px 0;
  position:relative; /* utile pour menu mobile absolute */
}

/* LOGO */
.brand{
  flex:0 0 auto;
  flex-shrink:0;
  display:flex;
  align-items:center;
  text-decoration:none;
}
.brand-logo{
  display:block;
  width:auto;
  height:auto;
  max-width:none;
  flex-shrink:0;
  object-fit:contain;
}
.brand-logo-full{ height:72px; width:auto; }
.brand-logo-compact{ display:none; height:52px; width:auto; }

@media (max-width:1100px){
  .brand-logo-full{ display:none; }
  .brand-logo-compact{ display:block; }
}
@media (max-width:900px){
  .brand{ padding:5px 8px; border-radius:14px; }
}

/* Liens nav (DESKTOP) */
.menu{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1 1 auto;   /* le centre prend l'espace */
  min-width:0;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}

.nav-links a{
  text-decoration:none;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:800;
  font-size:.95rem;
  color:rgba(11,18,32,.92);
}
.nav-links a:hover{
  background:rgba(255,210,11,.11);
  border-color:rgba(255,198,11,.219);
}
.nav-links a[aria-current="page"]{
  background:rgba(11, 255, 255, 0.1);
  border-color:rgba(10, 78, 133, 0.24);
}

/* Actions à droite (Menu mobile + Lang switch) */
.nav-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto; /* pousse à droite en desktop ET mobile */
}

/* Bouton Menu (visible seulement en mobile) */
.menu-btn{
  display:none;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

/* =========================
   Language switch (flags)
   ========================= */
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:none;
}
.lang-btn{
  width:38px;
  height:34px;
  border:0;
  border-radius:999px;
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.lang-btn:hover{
  background:rgba(16,24,40,.06);
  transform:translateY(-1px);
}
.lang-btn:active{ transform:translateY(0); }
.lang-btn.is-active{
  background:rgba(0, 217, 255, 0.28);
  box-shadow:inset 0 0 0 1px rgba(255, 215, 0, .35);
}
.flag-img{
  display:block;
  width:22px;
  height:16px;
  border-radius:0;
  object-fit:cover;
}

/* =========================
   7) Layout sections
   ========================= */
.screen{
  padding:var(--sectionPadY) 0;
  display:block;
  scroll-margin-top:var(--headerH);
}
.section{ padding:var(--sectionPadY) 0; }
@media (max-width:980px){
  .section{ padding:var(--sectionPadY-m) 0; }
}

/* =========================
   8) Fonds alternés
   ========================= */
main > .screen:not(.hero){ background:#fff; }
main > .screen:not(.hero):nth-child(even){
  background:
    radial-gradient(900px 420px at 15% 20%, rgba(11,95,255,.06), transparent 60%),
    radial-gradient(900px 420px at 80% 65%, rgba(25,180,106,.06), transparent 60%),
    linear-gradient(180deg, rgba(16,24,40,.031), rgba(243,237,194,.031));
}

/* glass */
.glass{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(16,24,40,.10);
  border-radius:var(--radius2);
  box-shadow:0 18px 40px rgba(16,24,40,.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.glass-dark{
  background:rgba(119,119,255,.048);
  border:1px solid rgba(255,255,255,.671);
  box-shadow:0 20px 60px rgba(80,76,41,.22);
  backdrop-filter:blur(55px);
  -webkit-backdrop-filter:blur(50px);
  color:rgba(41,39,32,.88);
}
.glass-dark h3, .glass-dark h4{ color:#4b4747; }
.glass-dark .sub, .glass-dark p{ color:rgba(48,42,32,.78); }

/* =========================
   9) HERO
   ========================= */
.hero{
  position:relative;
  overflow:hidden;
  min-height:calc(var(--heroVh) - var(--headerH));
  padding:0 !important;
  display:flex;
  align-items:center;
  isolation:isolate;
}

.hero .container{
  position:relative;
  z-index:1;
}

.hero .reveal{
  opacity:1 !important;
  transform:none !important;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(96deg, rgba(10,18,34,.80) 0%, rgba(10,18,34,.48) 42%, rgba(10,18,34,.20) 100%),
    url("/assets/img/hero-2.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:scale(1.035);
}



.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(760px 360px at 16% 18%, rgba(25,180,106,.18), transparent 58%),
    radial-gradient(860px 420px at 82% 70%, rgba(233,207,131,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0) 72%, rgba(255,255,255,.06) 100%);
  pointer-events:none;
}

/* Base commune */
.hero-inner{
  color:#fff;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
  color:rgba(255,255,255,.82);
  margin:0 0 18px;
}
.kicker::before{
  content:"";
  width:38px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(255,255,255,.66), rgba(255,255,255,.24));
}

.hero h1{
  margin:0 0 16px;
  width:100%;
  max-width:none;
  color:#fff;
  text-shadow:0 8px 30px rgba(0,0,0,.16);
  font-size:clamp(3.2rem, 3vw + 1rem, 4.7rem);
  line-height:1.02;
  letter-spacing:-.03em;
  text-wrap:balance;
}

.hero-text{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  width:min(100%, 760px);
  max-width:760px;
}

.lead{
  margin:0;
  width:100%;
  max-width:none;
  color:rgba(255,255,255,.90);
  font-size:1.045rem;
  line-height:1.82;
}

.hero-text .lead{
  position:relative;
  width:100%;
  padding:18px 20px 18px 22px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.hero-text .lead::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(233,207,131,.95), rgba(25,180,106,.75));
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-self:start;
  margin-top: 32px;
}

.hero-panel{
  justify-self:end;
  align-self:start;
  width:min(100%, 420px);
  margin-top:0;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.14);
  border-radius:26px;
  padding:24px;
  box-shadow:0 24px 60px rgba(0,0,0,.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.hero-panel h2{
  margin:0 0 8px;
  font-size:1.1rem;
  color:#fff;
}
.hero-panel > p{
  margin:0;
  color:rgba(255,255,255,.76);
  line-height:1.68;
}
.hero-panel .mini{
  margin-top:16px;
  display:grid;
  gap:10px;
}

.mini-row{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-decoration:none;
  color:inherit;
}
.mini-row:visited{ color:inherit; }
.mini-row:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.075);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 14px 32px rgba(0,0,0,.14);
}
.mini-row:active{ transform:translateY(0); }

.mini-ico{
  width:38px;
  height:38px;
  border-radius:14px;
  background:rgba(255, 255, 255, 0);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.mini-row b{
  display:block;
  margin-bottom:4px;
  color:#fff;
}
.mini-row span{
  display:block;
  color:rgba(255,255,255,.72);
  font-size:.95rem;
  line-height:1.6;
}

/* HOME : structure bannière + colonne gauche + sidebox */
.page-home .hero-inner{
  display:grid;
  grid-template-columns:minmax(0, 1.18fr) minmax(320px, .68fr);
  grid-template-areas:
    "top top"
    "copy panel"
    "actions panel";
  gap:28px 52px;
  align-items:start;
  padding:96px 0 88px;
}

.page-home .hero-top{
  grid-area:top;
  max-width:1100px;
}
.page-home .hero-copy{
  grid-area:copy;
  max-width:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.page-home .hero-actions{
  grid-area:actions;
}
.page-home .hero-panel{
  grid-area:panel;
}

/* AUTRES PAGES : bloc texte à gauche + sidebox à droite */
body:not(.page-home) .hero-inner{
  display:grid;
  grid-template-columns:minmax(0, 1.18fr) minmax(320px, .68fr);
  gap:28px 52px;
  align-items:start;
  padding:96px 0 88px;
}

body:not(.page-home) .hero-inner > :not(.hero-panel){
  grid-column:1;
  min-width:0;
}

body:not(.page-home) .hero-panel{
  grid-column:2;
  grid-row:1 / span 10;
}

/* Responsive commun */
@media (max-width:980px){
  .hero{
    min-height:calc(var(--heroVh-m) - var(--headerH));
  }

  .page-home .hero-inner,
  body:not(.page-home) .hero-inner{
    grid-template-columns:1fr;
    grid-template-areas:none;
    gap:20px;
    align-items:start;
    padding:72px 0 64px;
  }

  .page-home .hero-top,
  .page-home .hero-copy,
  .page-home .hero-actions,
  .page-home .hero-panel,
  body:not(.page-home) .hero-inner > *{
    grid-column:1 !important;
    grid-row:auto !important;
    width:100%;
    max-width:none;
  }

  .hero-panel{
    justify-self:stretch;
    align-self:start;
    width:100%;
    max-width:none;
    padding:22px;
  }

  .hero h1{
    font-size:clamp(2.5rem, 6vw, 3.6rem);
    line-height:1.04;
  }

  .hero-text{
    width:100%;
    max-width:none;
    gap:12px;
  }

  .hero-text .lead{
    padding:16px 18px 16px 20px;
  }

  .hero-actions{
    margin-top:12px;
  }
}

@media (max-width:560px){
  .hero-inner{
    padding:58px 0 54px !important;
  }

  .hero h1{
    font-size:clamp(2.2rem, 7.5vw, 3rem);
    max-width:none;
  }

  .hero-text{
    width:100%;
    max-width:none;
  }

  .hero-text .lead{
    padding:15px 16px 15px 18px;
    border-radius:18px;
  }

  .hero-actions .btn{
    width:100%;
  }
}


/* =========================
   10) Sections / blocs
   ========================= */
.title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.title h2{ margin:0; letter-spacing:-.02em; }
.title p{ margin:0; color:var(--muted); font-weight:800; }

.sub{
  margin:0 0 14px;
  color:var(--muted);
  max-width:90ch;
  line-height:1.75;
}

/* grids/boxes */
.grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:22px; }
.grid-3{ grid-template-columns:repeat(3, 1fr); }
.grid-2{ grid-template-columns:repeat(2, 1fr); }

.box{
  background:rgba(255,255,255,.82);
  border:1px solid rgba(16,24,40,.10);
  border-radius:var(--radius2);
  padding:22px;
  box-shadow:0 18px 40px rgba(16,24,40,.06);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:transform .18s ease, box-shadow .18s ease;
}
.box:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 52px rgba(16,24,40,.12);
}

.ico{
  width:42px;
  height:42px;
  border-radius:16px;
  background:rgba(11,95,255,.10);
  display:grid;
  place-items:center;
  margin-bottom:10px;
}
.ico.green{ background:rgba(25,180,106,.12); }
.ico.dark{ background:rgba(16,24,40,.06); }

.box h3{ margin:0 0 8px; }
.box p{ margin:0; color:var(--muted); line-height:1.75; }
.box a{ color:var(--brand); text-decoration:none; font-weight:900; }
.box a:hover{ text-decoration:underline; }

/* row/panel */
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
  margin-top:16px;
}
.panel{
  border-radius:var(--radius2);
  border:1px solid rgba(16,24,40,.10);
  background:rgba(16,24,40,.02);
  box-shadow:0 18px 40px rgba(16,24,40,.06);
  padding:26px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:box-shadow .18s ease, transform .18s ease;
}
.panel:hover{
  box-shadow:0 22px 52px rgba(16,24,40,.12);
  transform:translateY(-1px);
}
.panel p{ line-height:1.75; }

/* listes */
.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}
.list li{ margin:6px 0; }
ol::marker{ color: var(--brand); font-weight:900; }
ul::marker{ color: rgba(11,18,32,.55); }
.list li::marker{ color: var(--brand2); font-weight:900; }

/* steps */
.steps{ display:grid; grid-template-columns:1fr; gap:10px; margin-top:14px; }
.step{
  border-left:4px solid var(--step-accent);
  background:var(--step-bg);
  border-radius:14px;
  padding:12px 14px;
}
.step b{ display:block; margin-bottom:4px; }
.steps.is-yellow{ --step-accent: rgba(233,207,131,.85); --step-bg: rgba(233,207,131,.14); }
.steps.is-green { --step-accent: rgba(25,180,106,.55);  --step-bg: rgba(124,190,158,.10); }
.steps.is-blue  { --step-accent: rgba(11,95,255,.45);   --step-bg: rgba(121,166,252,.08); }

.sectors-grid{
  grid-template-columns:repeat(2, 1fr);
}

.sector-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}

.sector-head .ico{
  margin:0;
  flex:0 0 auto;
}

.sector-head h3{
  margin:0;
  line-height:1.2;
}

.sector-list{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.sector-list li{
  position:relative;
  padding-left:16px;
  color:var(--muted);
  line-height:1.72;
}

.sector-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.78em;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(25, 118, 180, 0.75);
  transform:translateY(-50%);
}

.sector-list li span{
  color:var(--muted);
}

@media (max-width:980px){
  .sectors-grid{
    grid-template-columns:1fr;
  }
}
/* =========================
   11) Forms
   ========================= */
.form{ display:grid; gap:12px; }
.field{ display:grid; gap:6px; }
label{ font-weight:900; }
input, textarea, select{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  outline:none;
}
textarea{ min-height:140px; resize:vertical; }
input:focus, textarea:focus, select:focus{
  border-color:rgba(11,95,255,.5);
  box-shadow:0 0 0 4px rgba(11,95,255,.12);
}
.help{ color:var(--muted); font-size:.92rem; margin-top:-2px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* pill */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--soft);
  background:rgba(16,24,40,.02);
  padding:7px 10px;
  border-radius:999px;
  color:var(--muted);
  font-weight:900;
  font-size:.9rem;
}

/* =========================
   12) Footer
   ========================= */
.footer{
  background:#0b1220;
  color:rgba(255,255,255,.82);
  padding:42px 0 28px;
  margin-top:40px;
}
.footer a{ color:rgba(255,255,255,.78); text-decoration:none; }
.footer a:hover{ color:#fff; }
.footer-top{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
.footer h4{ margin:0 0 10px; color:#fff; }
.footer p{ margin:0; color:rgba(255,255,255,.72); }
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }

.footer-bar{
  border-top:1px solid rgba(255,255,255,.10);
  margin-top:18px;
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(255,255,255,.62);
  font-size:.92rem;
}
.footer-otter-img{
  width:22px;
  height:22px;
  margin:0 auto;
  display:block;
  opacity:.9;
  transform:translateY(2px);
}

/* séparateur optionnel */
hr.sep{
  border:0;
  height:1px;
  width:47%;
  margin:10px auto;
  background:currentColor;
  opacity:.35;
}

/* =========================
   13) Scroll reveal
   ========================= */
.reveal{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .6s ease, transform .6s ease;
  will-change:opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}
.no-js .reveal{ opacity:1 !important; transform:none !important; visibility:visible !important; }

/* =========================
   14) Boutons
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;

  background-color:var(--btn-base) !important;
  color:var(--btn-text) !important;
  border:1px solid rgba(0,0,0,.08) !important;
  box-shadow:0 10px 30px rgba(233,207,131,.18) !important;

  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}
.btn:hover,
.btn.primary:hover,
.btn.light:hover,
.btn.ghost:hover{
  background-color:var(--btn-hover) !important;
  color:var(--btn-text-hover) !important;
  border-color:rgba(0,0,0,.10) !important;
  filter:saturate(1.02);
}
.btn:active,
.btn.primary:active,
.btn.light:active,
.btn.ghost:active{
  background-color:var(--btn-active) !important;
  color:var(--btn-text-hover) !important;
  box-shadow:0 8px 22px rgba(25,180,106,.20) !important;
}
.btn:focus-visible{
  outline:3px solid rgba(242,201,76,.45);
  outline-offset:3px;
}
.btn.small{
  padding:9px 12px;
  font-size:.92rem;
}

/* =========================
   15) Hero buttons : micro-mouvement
   ========================= */
.hero .btn{ will-change:transform, box-shadow, filter; }
.hero .btn:hover{
  transform:translateY(-2px) !important;
  filter:brightness(1.02) !important;
  box-shadow:0 18px 46px rgba(251,255,11,.18), 0 18px 46px rgba(82,180,25,.12) !important;
}
.hero .btn:active{
  transform:translateY(0) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.16) !important;
}
@media (prefers-reduced-motion: reduce){
  .hero .btn{ transition:none !important; }
  .hero .btn:hover,
  .hero .btn:active{
    transform:none !important;
    filter:none !important;
    box-shadow:none !important;
  }
}

/* =========================
   16) Responsive
   ========================= */
@media (max-width:980px){
  :root{ --headerH:84px; }
  .screen{ padding:var(--sectionPadY-m) 0; }
  .grid{ grid-template-columns:repeat(2, 1fr); }
  .grid-3{ grid-template-columns:repeat(2, 1fr); }
  .row{ grid-template-columns:1fr; gap:18px; }
  .form-row{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .container{ width:min(var(--max), calc(100% - 24px)); }
  .grid{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .hero-actions .btn{ width:100%; }
}

/* =========================
   17) Menu mobile compact
   ========================= */
@media (max-width:900px){
  .menu-btn{ display:inline-flex; }
  header{ overflow:visible; }

  /* Le menu devient un panneau */
  .menu{
    display:none;
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    width:min(360px, calc(100vw - 24px));
    max-width:92vw;

    flex-direction:column;
    align-items:stretch;
    gap:10px;

    padding:12px;
    border:1px solid var(--line);
    border-radius:var(--radius2);
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:var(--shadow2);
    z-index:999;
  }
  .menu.is-open{ display:flex; }

  .nav-links{
    display:grid;
    gap:8px;
    max-height:min(50vh, 340px);
    overflow:auto;
    padding-right:4px;
  }
  .nav-links a{
    display:block;
    width:100%;
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(16,24,40,.08);
    background:rgba(16,24,40,.02);
  }

  /* Mobile: switch un peu plus compact */
  .lang-switch{ padding:5px; }
  .lang-btn{ width:34px; height:32px; }
}
@media (max-width:900px) and (min-width:420px){
  .nav-links{ grid-template-columns:1fr 1fr; }
}

/* =========================
   FAQ
   ========================= */
.faq{ margin:0; }
.faq + .faq{ margin-top:10px; }
.faq summary{
  cursor:pointer;
  font-weight:900;
  list-style:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(16,24,40,.10);
  background:rgba(255,255,255,.55);
}
.faq summary::-webkit-details-marker{ display:none; }
.faq[open] summary{ box-shadow:0 14px 32px rgba(16,24,40,.08); }
.faq p{ margin:10px 0 0; }

/* âÂÂ Une seule fois */
body.modal-open{ overflow:hidden; }

/* 404 */
.page-404{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.page-404 > main{ flex:1; }

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.modal.is-open{ display:flex; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(11,18,32,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.modal-card{
  position:relative;
  width:min(560px, 100%);
  border-radius:18px;
  border:1px solid rgba(16,24,40,.12);
  background:#fff;
  padding:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
}

/* Legacy modal markup from contact.html */
.yk-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.yk-modal.is-open{ display:flex; }
.yk-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(11,18,32,.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.yk-modal__dialog{
  position:relative;
  width:min(560px, 100%);
  border-radius:18px;
  border:1px solid rgba(16,24,40,.12);
  background:#fff;
  padding:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
}
.yk-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  border:1px solid rgba(16,24,40,.12);
  border-radius:999px;
  background:#fff;
  width:32px;
  height:32px;
  line-height:30px;
  cursor:pointer;
}
.yk-modal__kicker{ margin:0 0 6px; }
.yk-modal__title{ margin:0 0 8px; }
.yk-modal__text{ margin:0; }
.yk-modal__actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Contact — iPhone */
.page-contact .form,
.page-contact .form .field,
.page-contact .form input,
.page-contact .form select,
.page-contact .form textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.page-contact .form .form-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:stretch;
}
.page-contact .form .form-row .field{
  flex:1 1 260px;
  min-width:0;
}
@media (max-width:720px){
  .page-contact .form .form-row{
    flex-direction:column;
    gap:12px;
  }
  .page-contact .form .form-row .field{ flex:1 1 auto; }
}
.page-contact input,
.page-contact select,
.page-contact textarea{
  font-size:16px;
  line-height:1.2;
}
.page-contact .hero-note{
  margin:10px 0 0;
  color:rgba(255,255,255,.78);
}
.page-contact .contact-sub-note{ margin:14px 0 0; }
.page-contact .consent-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.page-contact .consent-row input[type="checkbox"]{
  width:auto;
  margin-top:4px;
}
.page-contact .consent-row .help{ margin:0; }
.page-contact .honeypot-field{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.page-contact .form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}

/* Footer-bar mobile */
@media (max-width:560px){
  .footer-bar{
    display:grid !important;
    grid-template-columns:1fr auto;
    grid-template-areas:
      "copy otter"
      "tagline tagline";
    align-items:center;
    gap:10px 12px;
    text-align:left;
  }
  .footer-bar > span:first-child{
    grid-area:copy;
    justify-self:start;
    text-align:left;
  }
  .footer-bar > img.footer-otter-img{
    grid-area:otter;
    justify-self:end;
    margin:0;
    transform:none;
  }
  .footer-bar > span:last-child{
    grid-area:tagline;
    justify-self:start;
    text-align:left;
  }
}

/* =========================
   Utilitaires
   ========================= */
.max-74ch{ max-width:74ch; }
.m-0{ margin:0 !important; }
.mt-0{ margin-top:0 !important; }
.mt-6{ margin-top:6px !important; }
.mt-8{ margin-top:8px !important; }
.mt-10{ margin-top:10px !important; }
.mt-14{ margin-top:14px !important; }
.mt-16{ margin-top:16px; }
.mt-18{ margin-top:18px !important; }
.mt-22{ margin-top:22px !important; }
.mb-0{ margin-bottom:0 !important; }

.actions{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.glass.pad-26{ padding:26px; }
.hr-hero{
  border:0;
  height:1px;
  background:rgba(255,255,255,.12);
  margin:14px 0;
}
.pill.is-hero{
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.78);
}

.hero-tip{
  margin:10px 0 0;
  color:rgba(255,255,255,.78);
  display:flex;
  align-items:center;
  gap:8px;
}

.hero-tip-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:23px;
  height:23px;
  flex:0 0 23px;
}

.hero-tip-ico img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
