/* Nostalgia Messenger — site vitrine. Ambiance bureau Windows XP / messagerie des années 2000. */
:root{
  --blue:#1f5fd0;--blue-d:#0b3f9e;--blue-l:#6db8f5;--sky1:#1c64d4;--sky2:#6fb2f2;--sky3:#c8e6ff;
  --green:#3c9b28;--green-l:#7fd16a;--ink:#14213d;--muted:#51607a;--paper:#ffffff;--soft:#eef5ff;
  --orange:#f39a1e;--pink:#e2508a;--radius:14px;
  --font:"Trebuchet MS","Segoe UI",Tahoma,Verdana,system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{margin:0;font:16px/1.6 var(--font);color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto}
a{color:var(--blue)}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.narrow{max-width:820px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:8px 14px;border-radius:8px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:3px solid #ffb400;outline-offset:2px;border-radius:4px}

/* ---------- barre du haut ---------- */
.top{position:sticky;top:0;z-index:50;background:linear-gradient(#2a6fe0,#1752c4 55%,#1048b3);border-bottom:1px solid #0a3a94;box-shadow:0 2px 10px rgba(0,30,90,.25)}
.top-in{display:flex;align-items:center;gap:18px;height:62px}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-size:19px;text-shadow:0 1px 2px rgba(0,0,0,.35);white-space:nowrap}
.brand img{filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
.nav{display:flex;gap:4px;margin-left:12px}
.nav a{color:#eaf3ff;text-decoration:none;font-size:15px;padding:7px 12px;border-radius:8px}
.nav a:hover{background:rgba(255,255,255,.14);color:#fff}
.top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.lang{display:flex;align-items:center;gap:6px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:0 4px 0 8px}
.lang select{background:transparent;color:#fff;border:0;font:14px var(--font);padding:7px 4px;max-width:150px;cursor:pointer}
.lang select option{color:#000}

/* ---------- boutons ---------- */
.btn{display:inline-flex;align-items:center;gap:10px;border-radius:12px;text-decoration:none;font:600 16px var(--font);cursor:pointer;border:0;transition:transform .12s, box-shadow .12s, filter .12s}
.btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.btn:active{transform:translateY(0)}
.btn-sm{background:linear-gradient(#5ed34a,#2f9a1f);color:#fff;padding:8px 16px;border:1px solid #1f7a12;box-shadow:inset 0 1px 0 rgba(255,255,255,.45);text-shadow:0 1px 1px rgba(0,0,0,.3);font-size:14px}
.btn-go{background:linear-gradient(#69dc54 0%,#3ab42a 48%,#2a9a1b 52%,#2f9f1f 100%);color:#fff;padding:14px 26px 14px 20px;border:1px solid #1d7410;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 8px 22px rgba(20,100,10,.35);text-shadow:0 1px 1px rgba(0,0,0,.35)}
.btn-go span{display:flex;flex-direction:column;line-height:1.2;text-align:left}
.btn-go b{font-size:18px}
.btn-go small{font-weight:400;font-size:13px;opacity:.92;min-height:1em}
.btn-ghost{background:rgba(255,255,255,.92);color:var(--blue-d);padding:13px 20px;border:1px solid rgba(255,255,255,.9);box-shadow:0 6px 18px rgba(0,40,120,.18)}

/* ---------- accueil ---------- */
.hero{position:relative;background:linear-gradient(180deg,var(--sky1) 0%,#3d86e6 38%,var(--sky2) 70%,var(--sky3) 100%);color:#fff;padding:70px 0 150px;overflow:hidden}
.sky{position:absolute;inset:0;pointer-events:none}
.cloud{position:absolute;display:block;width:260px;height:70px;border-radius:60px;background:rgba(255,255,255,.85);filter:blur(6px);opacity:.75;animation:drift 70s linear infinite}
.cloud::before,.cloud::after{content:"";position:absolute;background:inherit;border-radius:50%}
.cloud::before{width:120px;height:110px;left:40px;top:-55px}
.cloud::after{width:150px;height:130px;left:110px;top:-70px}
.c1{top:110px;left:-280px;transform:scale(.8)}
.c2{top:260px;left:-280px;animation-duration:95s;animation-delay:-40s;opacity:.55}
.c3{top:60px;left:-280px;animation-duration:120s;animation-delay:-80s;transform:scale(.6);opacity:.6}
@keyframes drift{to{left:110%}}
.hero-in{position:relative;display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center}
.badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);padding:6px 14px;border-radius:999px;font-size:14px;margin:0 0 18px;backdrop-filter:blur(4px)}
.badge .dot{width:10px;height:10px;border-radius:50%;background:#5ef23f;box-shadow:0 0 0 3px rgba(94,242,63,.3);animation:pulse 2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(94,242,63,0)}}
h1{font-size:clamp(44px,6.4vw,82px);line-height:1.02;margin:0 0 18px;letter-spacing:-1.5px;text-shadow:0 3px 0 rgba(0,40,120,.25),0 10px 30px rgba(0,30,90,.35)}
.lead{font-size:clamp(17px,1.7vw,20px);max-width:560px;margin:0 0 28px;color:#f2f8ff}
.cta-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.meta{font-size:14px;color:#e5f1ff;margin:16px 0 0}
.hero-shots{position:relative;height:520px}
.shot{position:absolute;border-radius:8px;box-shadow:0 22px 50px rgba(0,25,80,.45),0 0 0 1px rgba(0,30,90,.25)}
.shot-list{width:230px;left:0;top:10px;transform:rotate(-4deg);z-index:2;animation:float 7s ease-in-out infinite}
.shot-chat{width:430px;right:0;top:90px;transform:rotate(2deg);animation:float 8s ease-in-out infinite reverse}
@keyframes float{50%{translate:0 -10px}}
.toast{position:absolute;right:10px;bottom:-10px;width:230px;background:linear-gradient(#fff,#e6efff);border:1px solid #6c8ec9;border-radius:6px;box-shadow:0 12px 30px rgba(0,30,90,.4);z-index:3;color:var(--ink);font:12px Tahoma,var(--font);
  transform:translateY(40px);opacity:0;transition:transform .5s cubic-bezier(.2,1.4,.4,1),opacity .4s}
.toast.on{transform:none;opacity:1}
.toast-bar{display:flex;gap:6px;align-items:center;background:linear-gradient(#3a7fe4,#1d5cc8);color:#fff;padding:3px 8px;border-radius:5px 5px 0 0;font-weight:bold}
.toast-body{padding:12px 10px 14px;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.toast .st{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#b8f59c,#2c9a14);border:1px solid #1d6f0b}
.hill{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:150px}
/* le wizz : toute la page tremble */
body.wizzing{animation:shake .55s linear}
@keyframes shake{0%,100%{transform:none}10%{transform:translate(-9px,3px)}20%{transform:translate(8px,-4px)}30%{transform:translate(-7px,-3px)}40%{transform:translate(9px,4px)}50%{transform:translate(-6px,2px)}60%{transform:translate(7px,-2px)}70%{transform:translate(-4px,3px)}80%{transform:translate(4px,-3px)}90%{transform:translate(-2px,1px)}}

/* ---------- sections ---------- */
.sec{padding:90px 0}
h2{font-size:clamp(32px,4vw,48px);line-height:1.1;margin:0 0 10px;letter-spacing:-.5px;color:var(--blue-d)}
.sub{font-size:19px;color:var(--muted);margin:0 0 44px;max-width:640px}

/* histoire : frise chronologique */
.hist{background:linear-gradient(#f4f9ff,#fff)}
.timeline{list-style:none;margin:0;padding:0 0 0 34px;position:relative;max-width:820px}
.timeline::before{content:"";position:absolute;left:11px;top:6px;bottom:6px;width:4px;border-radius:4px;background:linear-gradient(var(--blue-l),var(--blue) 70%,var(--green))}
.timeline li{position:relative;padding:0 0 30px 22px}
.timeline li::before{content:"";position:absolute;left:-30px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid var(--blue)}
.timeline time{display:block;font-weight:700;color:var(--blue);font-size:15px;letter-spacing:.3px;text-transform:uppercase}
.timeline p{margin:4px 0 0;font-size:19px}
.timeline s{color:#8d96a8;text-decoration-thickness:3px;text-decoration-color:#e2508a}
.timeline li.end::before{border-color:#8d96a8}
.timeline li.end p{color:#5a6577}
.timeline li.now{padding-bottom:0}
.timeline li.now::before{border-color:var(--green);background:var(--green-l);box-shadow:0 0 0 6px rgba(127,209,106,.3)}
.timeline li.now time{color:var(--green)}
.timeline li.now p{font-size:22px;background:linear-gradient(90deg,#eaffdf,#f3fbff);border:1px solid #bfe6b0;border-radius:var(--radius);padding:14px 18px;margin-top:8px}
.note{font-size:13px;color:#7a8396;margin:36px 0 0;max-width:820px}

/* fonctions */
.feat{background:#fff}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:linear-gradient(#fff,#f3f8ff);border:1px solid #d6e4fb;border-radius:var(--radius);padding:22px 20px;box-shadow:0 4px 14px rgba(20,60,140,.06);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(20,60,140,.13)}
.card h3{margin:12px 0 6px;font-size:19px;color:var(--blue-d)}
.card p{margin:0;color:var(--muted);font-size:15.5px}
.ic{width:52px;height:52px;border-radius:14px;background:#e8f1ff center/30px no-repeat;border:1px solid #cfe0fb}
.ic-wizz{background-color:#fff5cc;border-color:#f1dc85;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23ffd83a' stroke='%23b58900'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Ccircle cx='15' cy='10' r='1.5'/%3E%3Cellipse cx='12' cy='15.5' rx='2' ry='2.5'/%3E%3Cpath d='M1 8l2 1M1 16l2-1M23 8l-2 1M23 16l-2-1' stroke='%23b58900' stroke-width='1.4'/%3E%3C/svg%3E")}
.ic-emo{background-color:#ffe9f1;border-color:#f7c3d6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z' fill='%23e2508a' stroke='%23a3245a'/%3E%3C/svg%3E")}
.ic-status{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='%2349c22f'/%3E%3Ccircle cx='17' cy='7' r='4.5' fill='%23e33'/%3E%3Ccircle cx='7' cy='17' r='4.5' fill='%23f3a01e'/%3E%3Ccircle cx='17' cy='17' r='4.5' fill='%23aab'/%3E%3C/svg%3E")}
.ic-profile{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='3' fill='%23fff' stroke='%231f5fd0' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='10' r='3.5' fill='%23f39a1e'/%3E%3Cpath d='M5.5 19c1-3.5 3.5-5 6.5-5s5.5 1.5 6.5 5' fill='%23f39a1e'/%3E%3C/svg%3E")}
.ic-games{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd0' stroke-width='1.8'%3E%3Cpath d='M9 3v18M15 3v18M3 9h18M3 15h18'/%3E%3Cpath d='M4.5 4.5l3 3M7.5 4.5l-3 3' stroke='%23e2508a'/%3E%3Ccircle cx='18' cy='18' r='1.8' stroke='%2349c22f'/%3E%3C/svg%3E")}
.ic-lang{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fd0' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E")}
.ic-groups{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='8' r='3.3' fill='%23f39a1e'/%3E%3Cpath d='M2 20c0-4 2.6-6 6-6s6 2 6 6z' fill='%23f39a1e'/%3E%3Ccircle cx='16.5' cy='8' r='3.3' fill='%23e2508a'/%3E%3Cpath d='M10.5 20c0-4 2.6-6 6-6s6 2 6 6z' fill='%23e2508a'/%3E%3C/svg%3E")}
.ic-update{background-color:#e9f9e3;border-color:#bfe6b0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8f1d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 4v4h-4'/%3E%3C/svg%3E")}

/* sécurité */
.safe{background:linear-gradient(135deg,#0b3f9e,#1f5fd0 60%,#2a78e4);color:#fff}
.safe h2{color:#fff}
.safe .sub{color:#d7e7ff}
.safe-in{display:grid;grid-template-columns:.85fr 1.15fr;gap:50px;align-items:start}
.shield{margin-top:10px;filter:drop-shadow(0 12px 24px rgba(0,0,0,.3))}
.checks{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.checks li{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);padding:14px 16px 14px 50px;position:relative;font-size:16px;color:#eef5ff}
.checks li::before{content:"";position:absolute;left:14px;top:15px;width:24px;height:24px;border-radius:50%;background:#5ed34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat}
.checks b{color:#fff}

/* FAQ */
.faq{background:var(--soft)}
details{background:#fff;border:1px solid #d6e4fb;border-radius:var(--radius);margin:0 0 12px;box-shadow:0 2px 8px rgba(20,60,140,.05)}
summary{cursor:pointer;list-style:none;padding:18px 52px 18px 20px;font-weight:700;font-size:17px;color:var(--blue-d);position:relative}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";position:absolute;right:20px;top:50%;translate:0 -50%;font-size:26px;color:var(--blue);transition:rotate .2s}
details[open] summary::after{rotate:45deg}
details p{margin:0;padding:0 20px 18px;color:var(--muted)}

/* appel final */
.final{text-align:center;background:linear-gradient(180deg,#fff,#eaf4ff)}
.final-in{display:flex;flex-direction:column;align-items:center}
.final .sub{margin-bottom:28px}

/* pied de page */
.foot{background:#0d2b66;color:#c6d6f2;padding:40px 0 30px;font-size:14px}
.foot-in{display:grid;gap:12px}
.foot-brand{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700;font-size:16px}
.foot-links{display:flex;flex-wrap:wrap;gap:6px 20px}
.foot-links a{color:#e3ecff}
.foot-note{margin:0;color:#94a8cf;font-size:13px}

/* écriture de droite à gauche */
[dir="rtl"] .timeline{padding:0 34px 0 0}
[dir="rtl"] .timeline::before{left:auto;right:11px}
[dir="rtl"] .timeline li{padding:0 22px 30px 0}
[dir="rtl"] .timeline li::before{left:auto;right:-30px}
[dir="rtl"] .checks li{padding:14px 50px 14px 16px}
[dir="rtl"] .checks li::before{left:auto;right:14px}
[dir="rtl"] summary{padding:18px 20px 18px 52px}
[dir="rtl"] summary::after{right:auto;left:20px}
[dir="rtl"] .btn-go span{text-align:right}
[dir="rtl"] .nav{margin-left:0;margin-right:12px}
[dir="rtl"] .top-right{margin-left:0;margin-right:auto}

/* ---------- mobile ---------- */
@media (max-width:980px){
  .nav{display:none}
  .hero-in,.safe-in{grid-template-columns:1fr}
  .hero{padding:44px 0 130px}
  .hero-shots{height:440px;max-width:520px;width:100%;margin:0 auto}
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .wrap{padding:0 16px}
  .brand span{display:none}
  .lang select{max-width:110px}
  .cards{grid-template-columns:1fr}
  .hero-shots{height:360px}
  .shot-list{width:150px}
  .shot-chat{width:280px;top:70px}
  .toast{width:200px}
  .sec{padding:64px 0}
  .btn-go{width:100%;justify-content:center}
  .btn-ghost{width:100%;justify-content:center}
}

/* ---------- avant l'ouverture : bandeau + compte à rebours ---------- */
.build-bar{background:repeating-linear-gradient(-45deg,#ffcc00 0 22px,#1d1d1d 22px 44px);color:#111;text-align:center;font-weight:800;font-size:15px;padding:0}
.build-bar>span{background:#ffcc00;padding:6px 10px;display:inline-block;margin:6px 0}
.countdown{margin:0 0 6px}
.cd-label{margin:0 0 8px;font-weight:700;font-size:15px;letter-spacing:.5px;text-transform:uppercase;color:#e5f1ff}
.cd{display:flex;gap:10px;flex-wrap:wrap}
.cd>div{min-width:84px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);border-radius:14px;padding:10px 12px;text-align:center;backdrop-filter:blur(4px)}
.cd b{display:block;font-size:40px;line-height:1.05;font-variant-numeric:tabular-nums}
.cd span{font-size:13px;opacity:.9}
.cd-note{margin:12px 0 0;font-size:14px;color:#e5f1ff;max-width:520px}
.countdown-light{display:flex;flex-direction:column;align-items:center}
.countdown-light .cd-label{color:var(--blue-d)}
.countdown-light .cd>div{background:#fff;border-color:#cfe0fb;color:var(--blue-d);box-shadow:0 6px 18px rgba(20,60,140,.1)}
.timeline li.team::before{border-color:var(--orange)}
.timeline li.team time{color:#d97a00}
body.is-soon [data-open]{display:none!important}
body:not(.is-soon) [data-soon]{display:none!important}
@media (max-width:560px){.cd>div{min-width:68px;padding:8px}.cd b{font-size:30px}}

/* compteur de wizz */
.wizz-count{display:inline-flex;align-items:center;gap:6px;background:rgba(255,216,58,.18);border:1px solid rgba(255,216,58,.6);color:#fff;border-radius:999px;padding:8px 14px;font-size:15px;white-space:nowrap}
.wizz-count b{font-size:18px;font-variant-numeric:tabular-nums;color:#ffe23b}
.wizz-count.bump b{animation:bump .35s ease-out}
@keyframes bump{40%{transform:scale(1.35)}}
@media (max-width:560px){.wizz-count{width:100%;justify-content:center}}

/* petit mot : le wizz devient le bizz */
.rename-note{margin:6px 0 2px;font-size:.9em;opacity:.95}
.old-name{opacity:.6;text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:#d4202a;font-weight:400;margin-right:2px}
.rename-badge{margin:10px 0 0;font-size:22px;font-weight:700;color:#fff;letter-spacing:.5px}
.rename-badge s{opacity:.75;text-decoration-thickness:3px;text-decoration-color:#ff3b45}
.rename-badge span{opacity:.8;margin:0 4px}
.rename-badge b{color:#ffe23b}
#histoire s,.hist s,li p s{opacity:.7;text-decoration:line-through;text-decoration-thickness:2px;text-decoration-color:#d4202a}
