/* =========================================================
   ACCUEIL — photo marocaine plein écran, titre centré,
   3 portes en verre cristal. Tout visible sans descendre.
   ========================================================= */
/* Même largeur utile que les autres pages (place de la barre de défilement gardée) :
   la barre du haut ne glisse plus quand on change d'espace. La bande de droite prend
   la couleur sombre de la photo. */
html:has(body.home){background:#15110C}
.home{overflow:hidden}
.home .nav-links{display:none!important}
.home .nav:not(.solid) .brand{opacity:0;pointer-events:none}

/* ---------- Écran d'accueil ---------- */
.hero{position:relative;height:100svh;overflow:hidden;isolation:isolate;container-type:inline-size;background:#E9DCC4;display:flex;flex-direction:column;align-items:center}
.hero-bg{position:absolute;inset:0;z-index:-2;animation:reveal 2.6s var(--ease) both}
.hero-bg picture{display:block;width:100%;height:100%}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:top center}
@keyframes reveal{from{filter:brightness(1.25) blur(6px);transform:scale(1.04)}to{filter:none;transform:none}}
.hero .a{animation:rise 1.1s var(--ease) both}
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* Bloc central (titre + bouton) */
.hero-mid{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;text-align:center;width:100%;margin:auto 0}
.hero-mid::before{content:"";position:absolute;left:50%;top:46%;width:120%;height:150%;translate:-50% -50%;z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(253,250,243,.9),rgba(253,250,243,.6) 52%,rgba(253,250,243,0))}
.hero-tx{display:flex;flex-direction:column;align-items:center;animation-delay:1s!important}

.hero-tag{display:flex;align-items:center;justify-content:center;gap:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#5A4518;white-space:nowrap}
.hero-tag i{display:block;width:34px;height:1px;background:linear-gradient(90deg,rgba(169,130,52,0),#A98234)}
.hero-tag i:last-child{transform:scaleX(-1)}
/* les lettres espacées laissent un vide à droite : on le compense pour un centrage parfait */
.hero-tag span{margin-right:-.2em}

.hero h1{display:flex;flex-direction:column;align-items:center;margin:0;font-weight:400;line-height:1}
.h-l1{display:block;font-family:var(--f-title);font-style:italic;font-weight:700;letter-spacing:-.01em;line-height:1.08;white-space:nowrap;padding:.02em .08em .06em;margin:0 -.08em;
  background:linear-gradient(172deg,#C9A458 0%,#9C7A33 38%,#6B4F1C 62%,#A88438 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#8B6A2B;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.95)) drop-shadow(0 8px 18px rgba(120,86,20,.18))}
.h-l2{display:block;font-family:var(--f-title);font-weight:500;letter-spacing:-.005em;line-height:1.15;white-space:nowrap;color:#16130F;text-shadow:0 1px 0 rgba(255,255,255,.85),0 0 22px rgba(255,252,244,.9)}
.h-orn{display:flex;align-items:center;justify-content:center;gap:10px}
.h-orn i{width:56px;height:1px;background:linear-gradient(90deg,transparent,#A98234)}
.h-orn i:last-child{background:linear-gradient(90deg,#A98234,transparent)}
.h-orn b{width:7px;height:7px;transform:rotate(45deg);background:linear-gradient(135deg,#E9D29C,#B8924A);box-shadow:0 0 0 3px rgba(184,146,74,.15),0 0 10px rgba(255,255,255,.9)}
.hero-sub{font-weight:500;color:#2E271B;text-shadow:0 1px 0 rgba(255,255,255,.85)}

/* Bouton « Installer l'application » */
.hero-cta{position:relative;display:inline-flex;align-items:center;gap:14px;overflow:hidden;isolation:isolate;border-radius:999px;color:var(--ink);font-weight:600;letter-spacing:.05em;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(250,240,215,.55));border:1px solid rgba(201,162,75,.85);
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 6px rgba(184,146,74,.18),0 2px 4px rgba(90,62,16,.12),0 16px 30px -14px rgba(120,86,20,.65);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .5s var(--ease),box-shadow .5s var(--ease);animation-delay:1.4s!important}
.hero-cta::after{content:"";position:absolute;top:0;left:-130%;width:55%;height:100%;z-index:-1;background:linear-gradient(115deg,rgba(255,255,255,0),rgba(255,255,255,.85) 50%,rgba(255,255,255,0));transform:skewX(-22deg);animation:sheen 5s 3.5s infinite}
@keyframes sheen{0%,70%{left:-130%}100%{left:160%}}
.hero-cta:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 #fff,inset 0 -2px 6px rgba(184,146,74,.18),0 3px 6px rgba(90,62,16,.14),0 22px 38px -16px rgba(120,86,20,.7)}
.hero-cta:active{transform:translateY(1px) scale(.97);transition-duration:.12s}
.cta-ic{display:grid;place-items:center;flex:none;border-radius:50%;color:#fff;background:radial-gradient(circle at 35% 30%,#EBCF86,#A97F2E 75%);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 4px 10px rgba(90,60,10,.4)}
.cta-ic svg{animation:bob 3s 3s infinite ease-in-out}
@keyframes bob{50%{transform:translateY(2px)}}
.is-app .hero-cta{display:none}

/* ---------- Les 3 portes en verre cristal ---------- */
@property --a{syntax:"<angle>";inherits:false;initial-value:200deg}
@keyframes spin{to{--a:560deg}}
@keyframes breathe{50%{opacity:.85}}
.doors{display:grid;width:100%}
.door{position:relative;display:flex;align-items:center;gap:calc(var(--u)*3);
  height:calc(var(--u)*13);padding:calc(var(--u)*1.4) calc(var(--u)*1.6);
  border-radius:calc(var(--u)*4.4);text-decoration:none;color:#17120A;isolation:isolate;-webkit-tap-highlight-color:transparent;
  transition:translate .6s var(--ease),scale .6s var(--ease);animation:rise 1.1s var(--ease) both}
.door:nth-child(1){animation-delay:1.8s}.door:nth-child(2){animation-delay:2s}.door:nth-child(3){animation-delay:2.2s}
.door>*{position:relative;z-index:1}
.door .hl,.door .gl{position:absolute;pointer-events:none;border-radius:inherit}
.door .hl{inset:calc(var(--u)*-1.8);z-index:-1;border-radius:calc(var(--u)*6.4);background:radial-gradient(ellipse at 50% 50%,rgba(255,255,255,.95),rgba(250,236,222,.55) 50%,rgba(255,255,255,0) 74%);filter:blur(calc(var(--u)*2.6));opacity:.55;transition:opacity .7s,scale .7s var(--ease);animation:breathe 2.6s ease-in-out infinite}
.door .gl{inset:0;z-index:0;overflow:hidden;
  background:radial-gradient(120% 80% at 50% -25%,rgba(255,255,255,.7),rgba(255,255,255,0) 55%),radial-gradient(60% 130% at 25% 60%,rgba(255,255,255,.16),rgba(255,255,255,0) 70%),radial-gradient(48% 110% at 96% 92%,rgba(60,52,44,.12),rgba(60,52,44,0) 70%),repeating-linear-gradient(112deg,rgba(255,255,255,0) 0 calc(var(--u)*5),rgba(255,255,255,.13) calc(var(--u)*5) calc(var(--u)*5.35),rgba(255,255,255,0) calc(var(--u)*5.35) calc(var(--u)*11)),linear-gradient(160deg,rgba(255,255,255,.18),rgba(250,246,240,.05) 48%,rgba(52,44,36,.11));
  backdrop-filter:blur(9px) saturate(.9) brightness(1.04);-webkit-backdrop-filter:blur(9px) saturate(.9) brightness(1.04);
  box-shadow:0 calc(var(--u)*.6) calc(var(--u)*1) rgba(40,32,24,.2),0 calc(var(--u)*3) calc(var(--u)*4.4) calc(var(--u)*-1.2) rgba(50,40,30,.36),0 calc(var(--u)*7.5) calc(var(--u)*8.5) calc(var(--u)*-3.6) rgba(30,24,16,.45),inset 0 calc(var(--u)*.35) calc(var(--u)*.4) rgba(255,255,255,.95),inset 0 calc(var(--u)*-.9) calc(var(--u)*1.6) rgba(60,52,44,.3),inset 0 0 0 calc(var(--u)*.4) rgba(255,255,255,.26),inset 0 0 calc(var(--u)*3.6) rgba(255,255,255,.4);
  transition:box-shadow .5s,backdrop-filter .5s}
.door .gl::before{content:"";position:absolute;inset:calc(var(--u)*.9);border-radius:calc(var(--u)*3.5);border:1px solid rgba(255,255,255,.5);background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,0) 45%,rgba(255,255,255,.04));box-shadow:inset 0 calc(var(--u)*.3) calc(var(--u)*.6) rgba(255,255,255,.6),inset 0 calc(var(--u)*-.4) calc(var(--u)*.8) rgba(60,52,44,.25)}
.door .gl::after{content:"";position:absolute;inset:0;border-radius:inherit;filter:saturate(.15);
  background:radial-gradient(circle at 8% 14%,#fff 0,rgba(255,255,255,.95) calc(var(--u)*.3),rgba(255,255,255,0) calc(var(--u)*1.6)),radial-gradient(circle at 94% 84%,rgba(255,255,255,.9) 0,rgba(255,255,255,0) calc(var(--u)*1.3)),linear-gradient(106deg,transparent 36%,rgba(255,255,255,.55) 46%,rgba(255,236,186,.45) 51%,transparent 62%);
  background-size:100% 100%,100% 100%,280% 100%;background-position:0 0,0 0,160% 0;background-repeat:no-repeat;transition:background-position 1.4s var(--ease)}
.door::before{content:"";position:absolute;inset:calc(var(--u)*-9) calc(var(--u)*-7);border-radius:50%;z-index:-2;pointer-events:none;background:radial-gradient(closest-side,rgba(255,246,236,.55),rgba(246,226,212,.16) 58%,rgba(255,255,255,0));opacity:.8;transition:opacity .7s,scale .7s var(--ease)}
.door::after{content:"";position:absolute;inset:0;border-radius:inherit;z-index:3;pointer-events:none;padding:calc(var(--u)*.34);
  background:conic-gradient(from var(--a),#fff,#EDE8DE 10%,#8E8576 22%,#F8F4EB 34%,#fff 38%,#CDB98A 50%,#5E564A 64%,#F1ECE0 78%,#fff 84%,#E4DCCB 92%,#fff);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  animation:spin 5s linear infinite;filter:drop-shadow(0 0 calc(var(--u)*.5) rgba(255,255,255,.95))}
.door img{flex:none;width:calc(var(--u)*24);height:calc(var(--u)*10.2);object-fit:cover;border-radius:calc(var(--u)*2.8);box-shadow:0 0 0 calc(var(--u)*.22) rgba(255,255,255,.75),0 calc(var(--u)*.9) calc(var(--u)*1.8) calc(var(--u)*-.6) rgba(50,35,8,.55);transition:scale .8s var(--ease)}
.door div{flex:1;min-width:0;display:grid;gap:calc(var(--u)*.2);line-height:1.15}
.door small{font-size:max(9px,calc(var(--u)*1.85));font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#7A5C22;text-shadow:0 1px 0 rgba(255,255,255,.8)}
.door b{display:block;font-weight:700;font-size:max(12px,calc(var(--u)*2.75));letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;text-shadow:0 1px 0 rgba(255,255,255,.85)}
.door .go{flex:none;width:calc(var(--u)*6);height:calc(var(--u)*6);border-radius:50%;display:grid;place-items:center;color:#7A5C22;border:1px solid rgba(124,92,31,.3);background:rgba(255,255,255,.5);box-shadow:inset 0 1px 0 #fff;transition:background-color .4s,transform .5s var(--ease)}
.door .go svg{width:calc(var(--u)*2.8);height:calc(var(--u)*2.8)}
.door .soon{position:absolute;top:calc(var(--u)*-1.6);right:calc(var(--u)*4);z-index:4;font-style:normal;font-size:max(9px,calc(var(--u)*1.7));font-weight:700;letter-spacing:.16em;text-transform:uppercase;padding:calc(var(--u)*.5) calc(var(--u)*1.6);border-radius:99px;background:#fff;color:var(--brass-deep);box-shadow:0 2px 8px rgba(60,40,10,.18)}
@media (hover:hover){
  .door:hover{translate:0 calc(var(--u)*-.9)}
  .door:hover .hl{opacity:1;scale:1.07}
  .door:hover::before{opacity:1;scale:1.08}
  .door:hover .gl::after{background-position:0 0,0 0,-70% 0}
  .door:hover::after{animation-duration:2.4s}
  .door:hover img{scale:1.05}
  .door:hover .go{background:#fff;transform:translateX(3px)}
}
.door:active{translate:0 calc(var(--u)*.45);scale:.985;transition-duration:.12s}
.door:active .gl{box-shadow:0 calc(var(--u)*.3) calc(var(--u)*.6) rgba(60,40,10,.3),inset 0 calc(var(--u)*.6) calc(var(--u)*1.4) rgba(110,80,25,.4),inset 0 calc(var(--u)*-.2) calc(var(--u)*.3) rgba(255,255,255,.6);transition-duration:.12s}

/* ---------- Téléphone (portrait) ---------- */
@media (max-aspect-ratio:4/5){
  .hero{--u:1cqw;justify-content:flex-end;padding:calc(var(--u)*96) 0 max(16px,2.6svh)}
  .hero-bg{bottom:auto;height:calc(var(--u)*177.7)}
  /* reflet du sol prolongé vers le bas (écrans très hauts) */
  .hero::after{content:"";position:absolute;left:0;right:0;top:calc(var(--u)*177.7);height:calc(var(--u)*177.7);z-index:-3;background:url(../img/hero-mobile.webp) top center/100% 100% no-repeat;transform:scaleY(-1)}
  .hero-tx{padding:0 4cqw;margin-bottom:min(4.4cqw,2.4svh)}
  .hero-tag{gap:2.2cqw;letter-spacing:.12em;font-size:max(8.5px,min(2.25cqw,1.25svh))}
  .hero-tag span{margin-right:-.12em}
  .hero-tag i{width:5cqw}
  .h-l1{font-size:min(10cqw,5.4svh)}
  .h-l2{font-size:min(6.6cqw,3.7svh);margin-top:min(.6cqw,.3svh)}
  .hero h1{margin:min(2.4cqw,1.3svh) 0 min(2.4cqw,1.3svh)}
  .h-orn{margin-bottom:min(2.6cqw,1.4svh)}
  .h-orn i{width:12cqw}
  .hero-sub{font-size:max(11.5px,min(3.3cqw,1.8svh))}
  .hero-cta{height:min(11cqw,6svh);padding:0 6cqw 0 1.2cqw;font-size:max(12px,min(3.4cqw,1.9svh));margin-bottom:max(14px,2.6svh)}
  .cta-ic{width:min(8.4cqw,4.6svh);height:min(8.4cqw,4.6svh)}
  .cta-ic svg{width:min(4.4cqw,2.4svh);height:min(4.4cqw,2.4svh)}
  .doors{padding:0 8cqw;gap:min(2.6cqw,1.3svh)}
  .door{height:min(14cqw,7.4svh)}
  .door img{width:24cqw;height:min(10.6cqw,5.8svh)}
}

/* ---------- Tablette et ordinateur ---------- */
@media (min-aspect-ratio:4/5){
  .hero{--u:clamp(4.4px,.36vw,6.4px);padding:calc(var(--nav-h) + 24vh) var(--gutter) 4.5vh}
  .hero-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(46% 34% at 50% 58%,rgba(251,248,242,.85),rgba(251,248,242,.5) 50%,rgba(251,248,242,0) 85%),linear-gradient(180deg,rgba(251,248,242,0) 70%,rgba(251,248,242,.35))}
  .hero-mid::before{width:80%;height:170%}
  .hero-tag{font-size:clamp(11.5px,.85vw,13.5px)}
  .h-l1{font-size:clamp(44px,5vw,84px)}
  .h-l2{font-size:clamp(28px,2.9vw,50px);margin-top:.12em}
  .hero h1{margin:clamp(12px,1.4vh,20px) 0 clamp(12px,1.6vh,20px)}
  .h-orn{margin-bottom:clamp(12px,1.6vh,18px)}
  .h-orn i{width:70px}
  .hero-sub{font-size:clamp(16px,1.2vw,20px)}
  .hero-cta{margin-top:clamp(20px,3vh,32px);height:clamp(56px,4.2vw,66px);padding:0 clamp(26px,2vw,34px) 0 7px;font-size:clamp(14.5px,1vw,16px)}
  .cta-ic{width:clamp(44px,3.3vw,52px);height:clamp(44px,3.3vw,52px)}
  .cta-ic svg{width:21px;height:21px}
  .doors{margin-top:clamp(24px,4vh,48px);grid-template-columns:repeat(3,minmax(0,calc(var(--u)*80)));gap:calc(var(--u)*6);justify-content:center}
}
/* Tablette en largeur : portes l'une sous l'autre */
@media (min-aspect-ratio:4/5) and (max-width:1100px){
  .hero{--u:4.8px;padding-top:calc(var(--nav-h) + 13vh)}
  .doors{grid-template-columns:minmax(0,calc(var(--u)*86));gap:calc(var(--u)*3)}
}
/* Écrans peu hauts (ordinateur portable) */
@media (min-aspect-ratio:4/5) and (max-height:760px){
  .hero{padding-top:calc(var(--nav-h) + 17vh)}
  .h-l1{font-size:clamp(40px,4.4vw,64px)}
  .h-l2{font-size:clamp(26px,2.5vw,38px)}
}

/* =========================================================
   ESSAI — ACCUEIL SOMBRE (même style que le bandeau
   « Menus & Gestion » : photo voilée de noir, titres blancs)
   Pour revenir à l'accueil clair : retirer la classe « dark »
   de la section .hero dans index.html.
   ========================================================= */
.hero.dark{background:#14110D}
/* voile noir dégradé : léger en haut (le logo de la photo reste lisible), profond en bas */
.hero.dark .hero-bg::after{content:"";position:absolute;inset:0;z-index:1;
  background:radial-gradient(70% 55% at 50% 62%,rgba(14,11,8,.35),rgba(14,11,8,0) 70%),
             linear-gradient(180deg,rgba(14,11,8,.28) 0%,rgba(14,11,8,.42) 32%,rgba(14,11,8,.72) 62%,rgba(14,11,8,.9) 100%)}
/* la photo couvre tout l'écran, jusqu'en bas (téléphone compris) */
.hero.dark::after{display:none}
@media (max-aspect-ratio:4/5){
  .hero.dark .hero-bg{bottom:0;height:auto}
  .hero.dark .hero-bg img{object-position:50% 0}
}

/* ---------- Accueil sombre : composition remontée et équilibrée ---------- */
/* la photo remonte un peu (le logo monte), le bas est rempli par la photo */
.hero.dark .hero-bg{top:-5%}
/* Téléphone */
@media (max-aspect-ratio:4/5){
  .hero.dark .hero-bg{top:-2.5%}
  .hero.dark{padding:calc(var(--u)*64) 0 max(26px,4.6svh);justify-content:space-between}
  .hero.dark .hero-mid{margin:auto 0}
  .hero.dark .hero-tx{margin-bottom:min(5cqw,2.8svh)}
  .hero.dark .hero-cta{margin-bottom:0}
  .hero.dark .doors{gap:min(3cqw,1.5svh);margin-top:min(6cqw,3.4svh)}
  .hero.dark .door{height:min(15.4cqw,8.2svh)}
  .hero.dark .door img{height:min(11.6cqw,6.3svh);width:25cqw}
  .hero.dark .door b{font-size:max(12.5px,min(3.9cqw,2.1svh))}
  .hero.dark .door small{font-size:max(9px,min(2.4cqw,1.3svh))}
}
/* Ordinateur et tablette */
@media (min-aspect-ratio:4/5){
  .hero.dark{padding:calc(var(--nav-h) + 17vh) var(--gutter) 5vh;justify-content:center}
  .hero.dark .hero-mid{margin:0}
  .hero.dark .doors{margin-top:clamp(36px,7vh,76px);padding-top:0}
  .hero.dark{--u:clamp(4.6px,.4vw,7px)}
  .hero.dark .door b{font-size:max(13px,calc(var(--u)*2.9))}
}
@media (min-aspect-ratio:4/5) and (max-height:760px){
  .hero.dark{padding-top:calc(var(--nav-h) + 14vh);padding-bottom:3vh}
  .hero.dark .doors{margin-top:clamp(24px,5vh,48px)}
}
/* téléphones à écran court */
@media (max-aspect-ratio:4/5) and (max-height:700px){
  .hero.dark{padding-top:calc(var(--u)*50);padding-bottom:18px}
  .hero.dark .doors{margin-top:min(4cqw,2.2svh)}
}
@media (min-aspect-ratio:4/5) and (max-width:1100px){
  .hero.dark{--u:5px;padding-top:calc(var(--nav-h) + 9vh)}
}
/* motif sous le titre : le losange respire, la lumière glisse sur les lignes */
.hero.dark .h-orn{position:relative}
/* le losange garde sa taille et s'allume, en même temps que les lignes */
.hero.dark .h-orn b{transform:rotate(45deg);animation:ornB 3.6s 2.4s ease-in-out infinite}
@keyframes ornB{0%,100%{background:linear-gradient(135deg,#E9D29C,#B8924A);box-shadow:0 0 0 3px rgba(227,199,138,.18),0 0 8px rgba(227,199,138,.35)}
  12%,30%{background:linear-gradient(135deg,#FFF6D8,#F0D48E);box-shadow:0 0 0 3px rgba(255,236,190,.35),0 0 16px rgba(255,230,170,1),0 0 30px rgba(227,199,138,.6)}
  55%{background:linear-gradient(135deg,#E9D29C,#B8924A);box-shadow:0 0 0 3px rgba(227,199,138,.18),0 0 8px rgba(227,199,138,.35)}}
.hero.dark .h-orn i{position:relative;overflow:hidden}
.hero.dark .h-orn i::after{content:"";position:absolute;top:0;bottom:0;width:40%;background:linear-gradient(90deg,transparent,#FFF1C8,transparent);animation:ornL 3.6s 2.4s ease-in-out infinite}
.hero.dark .h-orn i:first-child::after{animation-name:ornLr}
@keyframes ornL{0%{left:-40%}50%,100%{left:100%}}
@keyframes ornLr{0%{left:100%}50%,100%{left:-40%}}
.hero.dark .hero-mid::before{display:none}
/* textes : même écriture que le bandeau */
.hero.dark .hero-tag{color:#E3C78A;font-weight:600}
.hero.dark .hero-tag i{background:linear-gradient(90deg,rgba(227,199,138,0),#E3C78A)}
.hero.dark .h-l1,.hero.dark .h-l2{font-family:var(--f-text);font-style:normal;font-weight:700;letter-spacing:-.025em;color:#fff;-webkit-text-fill-color:#fff;background:none;filter:none;padding:0;margin:0;text-shadow:0 2px 24px rgba(0,0,0,.45)}
.hero.dark .h-l2{font-weight:300;letter-spacing:-.015em;color:rgba(255,255,255,.92);-webkit-text-fill-color:rgba(255,255,255,.92);margin-top:.1em}
.hero.dark .h-orn i{background:linear-gradient(90deg,transparent,#E3C78A)}
.hero.dark .h-orn i:last-child{background:linear-gradient(90deg,#E3C78A,transparent)}
.hero.dark .h-orn b{box-shadow:0 0 0 3px rgba(227,199,138,.18),0 0 12px rgba(227,199,138,.6)}
.hero.dark .hero-sub{font-weight:300;color:rgba(255,255,255,.86);text-shadow:0 1px 12px rgba(0,0,0,.4)}
/* bouton : verre sombre, contour champagne */
.hero.dark .hero-cta{color:#fff;background:rgba(255,255,255,.08);border-color:rgba(227,199,138,.6);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 18px 34px -16px rgba(0,0,0,.8)}
.hero.dark .hero-cta:hover{background:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 22px 40px -16px rgba(0,0,0,.85),0 0 0 4px rgba(227,199,138,.12)}
.hero.dark .hero-cta::after{background:linear-gradient(115deg,rgba(255,255,255,0),rgba(255,240,200,.35) 50%,rgba(255,255,255,0))}
.hero.dark .cta-ic{background:var(--metal);box-shadow:var(--gold-sh)}
.hero.dark .cta-ic svg{filter:drop-shadow(0 1px 0 rgba(110,76,18,.6))}
/* portes : verre fumé sombre, textes blancs */
.hero.dark .door{color:#fff}
.hero.dark .door .hl{background:radial-gradient(ellipse at 50% 50%,rgba(227,199,138,.28),rgba(227,199,138,.08) 50%,rgba(0,0,0,0) 74%);opacity:.5}
.hero.dark .door::before{background:radial-gradient(closest-side,rgba(227,199,138,.14),rgba(0,0,0,0));opacity:.6}
.hero.dark .door .gl{background:radial-gradient(120% 80% at 50% -25%,rgba(255,255,255,.16),rgba(255,255,255,0) 55%),linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.03) 48%,rgba(0,0,0,.18));
  backdrop-filter:blur(12px) saturate(1.1) brightness(.9);-webkit-backdrop-filter:blur(12px) saturate(1.1) brightness(.9);
  box-shadow:0 calc(var(--u)*.6) calc(var(--u)*1) rgba(0,0,0,.35),0 calc(var(--u)*4) calc(var(--u)*6) calc(var(--u)*-2) rgba(0,0,0,.6),inset 0 calc(var(--u)*.3) calc(var(--u)*.4) rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.08)}
.hero.dark .door .gl::before{border-color:rgba(227,199,138,.22);background:none;box-shadow:none}
.hero.dark .door .gl::after{filter:none;opacity:.5}
.hero.dark .door::after{background:conic-gradient(from var(--a),rgba(227,199,138,.15),#E3C78A 12%,rgba(227,199,138,.1) 30%,rgba(255,255,255,.6) 50%,rgba(227,199,138,.1) 70%,#C8A256 86%,rgba(227,199,138,.15));filter:drop-shadow(0 0 calc(var(--u)*.6) rgba(227,199,138,.6))}
.hero.dark .door img{box-shadow:0 0 0 calc(var(--u)*.22) rgba(227,199,138,.45),0 calc(var(--u)*.9) calc(var(--u)*1.8) calc(var(--u)*-.6) rgba(0,0,0,.7)}
.hero.dark .door small{color:#E3C78A;text-shadow:none}
.hero.dark .door b{color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.4)}
.hero.dark .door .go{color:#E3C78A;border-color:rgba(227,199,138,.45);background:rgba(255,255,255,.06);box-shadow:none}
@media (hover:hover){.hero.dark .door:hover .go{background:rgba(227,199,138,.2)}.hero.dark .door:hover .hl{opacity:.9}}
.hero.dark .door .soon{background:linear-gradient(135deg,#F0DCA8,#C8A256);color:#1A1510}
/* barre du haut transparente au-dessus de la photo sombre */
.home:has(.hero.dark) .nav:not(.solid) .pill{background:rgba(255,255,255,.1);border-color:rgba(227,199,138,.5);color:#fff;box-shadow:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.home:has(.hero.dark) .nav:not(.solid) .lang-btn svg:first-child{color:#E3C78A}
.home:has(.hero.dark) .nav:not(.solid) .pill.wa{background:var(--metal);border-color:rgba(227,199,138,.8);box-shadow:var(--gold-sh);color:#1A1510}
.home:has(.hero.dark) .nav:not(.solid) .burger{background:rgba(255,255,255,.1);border-color:rgba(227,199,138,.5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.home:has(.hero.dark) .nav:not(.solid) .burger i{background:#fff}

/* =========================================================
   L'UNIVERS CS SERVICE (2 déc.) : nouveaux textes du bloc principal
   et des 3 portes (3 lignes : univers · titre · description)
   ========================================================= */
.hero .h-l1,.hero .h-l2{white-space:normal;text-wrap:balance;text-align:center}
.hero-sub{text-wrap:pretty;margin-inline:auto}
.door div{gap:calc(var(--u)*.35)}
.door b{text-transform:none;letter-spacing:.005em;white-space:normal;line-height:1.12}
.door div p{margin:0;font-size:max(9.5px,calc(var(--u)*1.95));line-height:1.38;font-weight:400;color:rgba(23,18,10,.75)}
.hero.dark .door div p{color:rgba(255,255,255,.74);text-shadow:0 1px 8px rgba(0,0,0,.35)}
.door small{letter-spacing:.16em}
/* Ordinateur et tablette */
@media (min-aspect-ratio:4/5){
  .hero.dark .h-l1{font-size:clamp(32px,3.3vw,54px);max-width:18em;line-height:1.08}
  .hero.dark .h-l2{font-size:clamp(19px,1.75vw,28px);margin-top:.35em}
  .hero.dark .hero-sub{max-width:min(720px,92vw);font-size:clamp(13.5px,.98vw,16px);line-height:1.6}
  .hero.dark .hero-sub .hs-2{display:block;margin-top:.35em}
  .hero.dark .hero-cta{margin-top:clamp(16px,2.4vh,28px)}
  .hero.dark{padding-top:calc(var(--nav-h) + 11vh)}
  .hero.dark .doors{margin-top:clamp(26px,5vh,56px)}
  .hero.dark .door{height:auto;min-height:calc(var(--u)*15.5);padding-block:calc(var(--u)*1.8)}
  .hero.dark .door b{font-size:max(14px,calc(var(--u)*3.1))}
}
@media (min-aspect-ratio:4/5) and (max-height:820px){
  .hero.dark{padding-top:calc(var(--nav-h) + 6vh)}
  .hero.dark .h-l1{font-size:clamp(30px,2.9vw,44px)}
  .hero.dark .hero-sub{font-size:clamp(13px,.9vw,14.5px)}
  .hero.dark .doors{margin-top:clamp(18px,3.4vh,36px)}
}
@media (min-aspect-ratio:4/5) and (max-width:1100px){
  .hero.dark{padding-top:calc(var(--nav-h) + 5vh)}
}
/* Téléphone */
@media (max-aspect-ratio:4/5){
  .hero.dark{padding-top:calc(var(--nav-h) + min(8cqw,4svh))}
  .hero.dark .hero-tx{padding:0 6cqw;margin-bottom:min(4cqw,2.2svh)}
  .hero.dark .h-l1{font-size:min(7.4cqw,3.9svh);line-height:1.1}
  .hero.dark .h-l2{font-size:min(4.4cqw,2.4svh);margin-top:.4em}
  .hero.dark .hero h1,.hero.dark h1{margin:min(2.4cqw,1.2svh) 0}
  .hero.dark .hero-sub{font-size:max(11px,min(3.15cqw,1.7svh));line-height:1.5}
  .hero.dark .hero-sub .hs-2{display:block;margin-top:.3em}
  .hero.dark .doors{padding:0 5cqw;margin-top:min(5cqw,2.6svh)}
  .hero.dark .door{height:auto;min-height:min(17cqw,9.2svh);padding:min(2.2cqw,1.1svh) 2.4cqw}
  .hero.dark .door img{width:19cqw;height:min(13.5cqw,7.4svh)}
  .hero.dark .door b{font-size:max(13px,min(3.9cqw,2.1svh))}
  .hero.dark .door small{font-size:max(8.5px,min(2.3cqw,1.25svh));letter-spacing:.12em}
  .door div p{font-size:max(10px,min(2.75cqw,1.5svh));line-height:1.32}
  .hero.dark .door .go{width:7cqw;height:7cqw}
}
@media (max-aspect-ratio:4/5){
  .hero.dark{padding-top:calc(var(--u)*45);padding-bottom:max(18px,3svh)}
  .hero.dark .h-l1{font-size:min(6.5cqw,3.4svh)}
  .hero.dark .h-l2{font-size:min(4.1cqw,2.2svh);margin-top:.3em}
  .hero.dark .hero-sub{font-size:max(10.5px,min(2.95cqw,1.6svh));line-height:1.45}
  .hero.dark .hero-tx{margin-bottom:min(3cqw,1.6svh)}
  .hero.dark .hero-cta{height:min(10cqw,5.4svh)}
  .hero.dark .doors{gap:min(2.4cqw,1.2svh);margin-top:min(4cqw,2svh)}
  .hero.dark .door{min-height:min(16cqw,8.6svh);padding-block:min(1.8cqw,.9svh)}
  .door div p{font-size:max(9.5px,min(2.6cqw,1.4svh));line-height:1.3}
}
@media (max-aspect-ratio:4/5) and (max-height:700px){.hero.dark .hero-sub .hs-2{display:none}.hero.dark .doors{margin-top:min(3cqw,1.6svh)}}
@media (max-aspect-ratio:4/5) and (max-height:700px){.hero.dark{padding-top:calc(var(--u)*38);padding-bottom:14px}}
@media (min-aspect-ratio:4/5){.hero.dark .door img{width:calc(var(--u)*20);height:calc(var(--u)*11.5)}.hero.dark .door{gap:calc(var(--u)*2.4)}.hero.dark .door b{white-space:nowrap;font-size:max(14px,calc(var(--u)*2.9))}}
@media (min-aspect-ratio:4/5) and (max-width:1100px){.hero.dark{padding-top:calc(var(--nav-h) + 9vh)}}
@media (min-aspect-ratio:4/5) and (max-width:1100px){.hero.dark{padding-top:calc(var(--nav-h) + 15vh)}.hero.dark .doors{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:1000px;gap:12px}.hero.dark .door img{width:calc(var(--u)*13);height:calc(var(--u)*11)}.hero.dark .door b{font-size:14px}.hero.dark .door .go{display:none}}
