

:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.10);
  --card2: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.16);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  /* Figma-ish "YOU" blue */
  --brand: #2f80ff;
  --brand2: #62a0ff;

  --ok: #28d17c;
  --warn: #ffcc66;

  --shadow: 0 16px 50px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 26px;
  --max: 1150px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button, input, textarea{ font: inherit; }

/* Page background system (dynamic images set by JS) */
.bg-stage{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 800px at 70% 10%, rgba(47,128,255,0.25), transparent 60%),
    radial-gradient(900px 700px at 10% 30%, rgba(98,160,255,0.16), transparent 55%),
    linear-gradient(180deg, rgba(11,18,32,0.92), rgba(11,18,32,0.86));
}

.bg-image{
  position: fixed;
  inset: 0;
  z-index: -4;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 900ms ease;
}
.bg-image.is-visible{ opacity: 0.55; }

.noise{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

/* ==========================
   Header / Nav
   ========================== */
.header{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,18,32,0.78), rgba(11,18,32,0.58));
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.logo {
    width: 70px; 
    height: auto; 
    display: block;
}
.brand-title{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title strong{
  font-size: 16px;
  letter-spacing: 0.6px;
}
.brand-title span{
  font-size: 12px;
  color: var(--muted);
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-links a{
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,0.80);
  border: 1px solid transparent;
  transition: 220ms ease;
}
.nav-links a:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.nav-links a.active{
  background: rgba(47,128,255,0.16);
  border-color: rgba(47,128,255,0.28);
  color: rgba(255,255,255,0.94);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: 220ms ease;
}
.icon-btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.20); }
.burger{ display:none; }

.btn{
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor:pointer;
  transition: 220ms ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.22); }
.btn.primary{
  background: linear-gradient(135deg, var(--brand), #1b3cff);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 16px 35px rgba(47,128,255,0.24);
}
.btn.primary:hover{ filter: brightness(1.04); }
.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,0.14);
}

/* Mobile nav drawer */
.drawer{
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: 240ms ease;
}
.drawer.is-open{ pointer-events: auto; opacity: 1; }
.drawer .backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,0.55);
}
.drawer .panel{
  position:absolute;
  right: 14px;
  top: 14px;
  width: min(420px, calc(100% - 28px));
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(13,22,40,0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 14px;
  transform: translateY(-8px);
}
.drawer .panel .row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.drawer-links{
  display:flex;
  flex-direction: column;
  padding: 10px 0;
  gap: 6px;
}
.drawer-links a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* ==========================
   Layout blocks
   ========================== */
.hero{
  padding: 54px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.kicker{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(40,209,124,0.12);
}
h1{
  margin: 14px 0 10px;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}
.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 58ch;
}
.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.07));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card.pad{ padding: 18px; }

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.stat{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.stat strong{ font-size: 18px; }
.stat span{ display:block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.section{
  padding: 26px 0;
}
.section-title{
  display:flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.2px;
}
.section-title p{
  margin: 0;
  color: var(--muted);
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature{
  padding: 16px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(47,128,255,0.12);
  color: rgba(255,255,255,0.90);
}
.feature h3{ margin: 12px 0 8px; font-size: 16px; }
.feature p{ margin: 0; color: var(--muted); line-height: 1.55; }

.list{
  margin: 0; padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.split{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  align-items: start;
}

/* Steps */
.steps{
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.step{
  display:flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.step .n{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(47,128,255,0.18);
  border: 1px solid rgba(47,128,255,0.26);
}
.step h4{ margin: 0 0 4px; }
.step p{ margin: 0; color: var(--muted); line-height: 1.55; }

/* Testimonials */
.slider{
  position: relative;
}
.slider-track{
  display:flex;
  gap: 14px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.quote{
  min-width: calc((100% - 28px) / 3);
  padding: 16px;
}
.quote p{ margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.person{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
}
.avatar{
  width: 42px; height: 42px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}
.person strong{ display:block; font-size: 14px; }
.person span{ display:block; color: var(--muted); font-size: 12px; }

.slider-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

/* Blog */
.filters{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.86);
  cursor:pointer;
}
.pill.active{
  background: rgba(47,128,255,0.16);
  border-color: rgba(47,128,255,0.30);
}
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.blog-card{ padding: 16px; }
.meta{ color: var(--muted); font-size: 12px; }
.blog-card h3{ margin: 10px 0 8px; }
.blog-card p{ margin: 0; color: var(--muted); line-height: 1.55; }
.blog-card .row{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
}

/* FAQ */
.accordion{
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.acc-item{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  overflow:hidden;
}
.acc-btn{
  width: 100%;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  padding: 14px 14px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor:pointer;
  text-align: left;
}
.acc-btn span{ color: var(--muted); font-size: 12px; }
.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: 240ms ease;
  padding: 0 14px;
}
.acc-panel p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Forms */
.form{
  display:grid;
  gap: 10px;
}
.field{
  display:grid;
  gap: 6px;
}
label{ color: rgba(255,255,255,0.82); font-size: 13px; }
input, textarea{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(47,128,255,0.45);
  box-shadow: 0 0 0 4px rgba(47,128,255,0.16);
}
textarea{ min-height: 120px; resize: vertical; }

/* Footer */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 18px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: start;
}
.small{ color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}
.footer-links a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 90;
  display:none;
}
.modal.is-open{ display:block; }
.modal .backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.62);
}
.modal .dialog{
  position: relative;
  width: min(740px, calc(100% - 28px));
  margin: 70px auto;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(13,22,40,0.90);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 16px;
}
.modal .dialog .top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.modal .dialog h3{ margin: 0; }
.modal .dialog .content{ color: var(--muted); line-height: 1.7; }

/* Toast */
.toast{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display:grid;
  gap: 10px;
}
.toast .t{
  width: min(380px, calc(100vw - 32px));
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(13,22,40,0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.toast .t .mark{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ok);
  margin-top: 4px;
}
.toast .t.warn .mark{ background: var(--warn); }
.toast .t strong{ display:block; font-size: 13px; }
.toast .t span{ display:block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Utility */
.m0{ margin:0; }
.mt10{ margin-top:10px; }
.mt14{ margin-top:14px; }
.mt18{ margin-top:18px; }
.hr{
  height:1px;
  background: rgba(255,255,255,0.10);
  margin: 14px 0;
}
/* =========================
   Team / Creators
   ========================= */
.team .section-title { margin-bottom: 18px; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(120,170,255,0.14);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.team-card:hover{
  transform: translateY(-4px);
  border-color: rgba(120,170,255,0.28);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.team-media{
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.team-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: filter 260ms ease, transform 360ms ease;
}

/* Overlay */
.team-overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
  background: linear-gradient(
    180deg,
    rgba(10,16,30,0.08) 0%,
    rgba(10,16,30,0.72) 60%,
    rgba(10,16,30,0.86) 100%
  );
  pointer-events: none;
}

.team-role{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(235,245,255,0.98);
  border: 1px solid rgba(110,170,255,0.35);
  background: rgba(35,85,180,0.22);
  box-shadow: 0 0 22px rgba(70,130,255,0.20);
}

/* Hover + keyboard focus support */
.team-card:hover .team-media img,
.team-card:focus-within .team-media img{
  filter: blur(2px) brightness(0.92);
  transform: scale(1.06);
}

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay{
  opacity: 1;
  transform: translateY(0);
}

.team-meta{
  padding: 14px 14px 16px;
}

.team-name{
  margin: 0;
  font-size: 1.02rem;
  color: rgba(245,250,255,0.95);
}

.team-role-static{
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: rgba(220,235,255,0.68);
}

/* Responsiveness */
@media (max-width: 980px){
  .team-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .team-grid{ grid-template-columns: 1fr; }
  /* On touch/small screens, keep role visible (no hover needed) */
  .team-overlay{ opacity: 1; transform: none; }
  .team-media img{ filter: blur(1px) brightness(0.92); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .team-card, .team-media img, .team-overlay{
    transition: none !important;
  }
}
/* ===== PRELOADER ANIMATION ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo qui bat (pulse) au-dessus de la barre */
.logo-pulse {
    width: 120px;
    height: 120px;
    margin-bottom: 40px;
    animation: pulse 2s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo-text {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Barre de chargement */
.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: white;
    border-radius: 2px;
    animation: loading 1.8s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
        width: 30%;
    }
    50% {
        width: 60%;
    }
    100% {
        transform: translateX(330%);
        width: 30%;
    }
}

/* Texte de chargement */
.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Pour cacher le contenu pendant le chargement */
body.preload #content {
    opacity: 0;
}

body.loaded #content {
    opacity: 1;
    transition: opacity 0.8s ease;
}
