html{
  --bg:#fff!important;        
  --card:#ececec !important;          
  --muted:#444 !important;      
  --text:#333 !important;      
  --input: #f0f0f3 !important;      
  --brand1:#7c5cff !important;      
  --brand2:#4ea3ff !important;   
  --ring: rgba(124, 92, 255, .35) !important;
  --radius: 16px !important;

  --bg-gradient: radial-gradient(900px 600px at 5% -10%, rgba(124,92,255,.25), transparent 60%),
  radial-gradient(900px 600px at 120% 10%, rgba(78,163,255,.25), transparent 55%),
  var(--bg) !important;
}

html.dark{
    --bg:#0b0d10!important;        
    --card:#0f1115 !important;          
    --muted:#9aa4b2 !important;      
    --text:#e8ecf1 !important ;
    --input: #0b0e13 !important;      
    --brand1:#7c5cff !important;      
    --brand2:#4ea3ff !important;   
    --ring: rgba(124, 92, 255, .35) !important;
    --radius: 16px !important;

    --bg--gradient: radial-gradient(900px 600px at 5% -10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 600px at 120% 10%, rgba(78,163,255,.25), transparent 55%),
    var(--bg) !important  ;
  }

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background: var(--bg-gradient);
  letter-spacing:.2px;
}

.wrap{max-width:1280px;margin:0 auto;padding:3rem 1.25rem;}
.hero{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin-bottom:2rem}
.brand{display:flex;align-items:center;gap:.9rem}
.brand img{height:48px}
.brand h1{margin:0;font-size:1.6rem;font-weight:800;letter-spacing:.5px}

.nav{display:flex;align-items:center;gap:.6rem}
.nav .theme-btn{margin-left:.2rem}
/* Mobile: masquer les icônes de réseaux, garder uniquement le bouton de thème */
@media (max-width: 640px){
  .nav a.icon-btn{display:none !important}
}
/* Icône du bouton thème en blanc (light & dark) */
.nav .theme-btn i{color:#fff !important}
.nav .btn{padding:.6rem .9rem;border-radius:12px;text-decoration:none;color:#fff;font-weight:800;border:1px solid rgba(255,255,255,.18)}
.btn-login{
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(135deg,var(--brand1),var(--brand2));
}
.btn-login:hover{filter:brightness(1.05)}
.badge{
  background:linear-gradient(135deg, var(--brand1), var(--brand2));padding:.4rem .8rem;border-radius:999px;font-size:.8rem;font-weight:700;
  color:#fff;
}

.icon-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:var(--input);text-decoration:none;
  transition:transform .12s ease, background .2s ease, border-color .2s ease;
}
.icon{width:18px;height:18px;fill:var(--text);flex-shrink:0}
.icon-btn:hover{background:linear-gradient(135deg,var(--brand1),var(--brand2));border-color:transparent;transform:translateY(-1px)}
.icon-btn:hover .icon{fill:#fff}

.hero-block{
  display:grid;grid-template-columns:1.2fr .8fr;gap:1.25rem;margin-bottom:2rem;
}
@media (max-width: 980px){ .hero-block{grid-template-columns:1fr} }

.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding:1.5rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  position:relative; overflow:hidden;
}
.panel::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(78,163,255,.18));
  mask: linear-gradient(#000 0 0) exclude, radial-gradient(480px 260px at -5% -30%, #000 98%, transparent 100%);
}
.huge{font-size:clamp(2rem, 4vw + .5rem, 3rem);font-weight:900;margin:.25rem 0 .5rem;line-height:1.1}
.lead{color:var(--muted);line-height:1.7;margin:0 0 1.25rem}

.cta{display:flex;gap:.6rem;flex-wrap:wrap}
.btn{
  padding:.9rem 1.1rem;border:none;border-radius:12px;font-weight:800;color:white;cursor:pointer;white-space:nowrap;
  text-decoration:none;display:inline-flex;align-items:center;gap:.5rem
}
.btn-primary{ background: linear-gradient(135deg, var(--brand1), var(--brand2)); border:1px solid rgba(255,255,255,.18); }
.btn-ghost{ background: transparent; border:1px solid rgba(255,255,255,.18); color:var(--text) }
.btn-ghost:hover{background:rgba(255,255,255,.06)}

.notify-form{display:grid;grid-template-columns:1fr auto;gap:.6rem;align-items:center;max-width:560px;margin:1rem 0 0}
.form-input{
  width:100%; padding:1rem 1rem; background:var(--input); color:var(--text);
  border:1px solid rgba(255,255,255,.10); border-radius:12px; outline: none;
}
.form-input:focus{ box-shadow: 0 0 0 6px var(--ring); border-color: transparent; }
@media (max-width:560px){ .notify-form{ grid-template-columns:1fr; } .btn{ width:100% } }
.sr-only{ position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0 }

.progress-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(255,255,255,.06)}
.progress-title{font-size:1.2rem;margin:0;font-weight:800}
.item{margin:.9rem 0}
.label{display:flex;justify-content:space-between;gap:.5rem;color:var(--muted);font-size:.95rem;margin-bottom:.35rem}
.bar{height:.7rem;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden}
.fill{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--brand1),var(--brand2));position:relative;transition:width .8s ease}
.fill::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer 2s infinite}
.meta{display:grid;grid-template-columns:1fr auto;gap:.5rem;margin-top:.9rem;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.06)}
.eta{color:#5fd3a6}
@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

.features{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}
@media (max-width:980px){ .features{grid-template-columns:1fr 1fr} }
@media (max-width:640px){ .features{grid-template-columns:1fr} }

.feat{padding:1rem}
.feat h3{margin:.3rem 0 .3rem}
.feat p{color:var(--muted);margin:0}

.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem;margin-bottom:2rem}
.tile{border-radius:16px;overflow:hidden;position:relative;aspect-ratio:16/9;background:#111315;border:1px solid rgba(255,255,255,.06)}
.tile:before{content:"";position:absolute;inset:0;background-image:var(--img, none);background-size:cover;background-position:center;filter:contrast(.98) saturate(1.05)}
@media (max-width:900px){ .gallery{grid-template-columns:1fr 1fr} .tile:nth-child(1){grid-column:1/-1} }

footer{max-width:1280px;margin:1.75rem auto 2.5rem;padding:1.25rem 1.25rem;border-top:1px solid rgba(255,255,255,.08);color:#9aa4b2}
.f-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}
.f-col h4{margin:.2rem 0 .6rem;font-size:1rem}
.f-col p, .f-col a{color:#b9c3d0;font-size:.95rem;text-decoration:none}
.f-links{display:flex;gap:.75rem;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border-radius:999px;border:1px solid rgba(255,255,255,.16);text-decoration:none}
.chip:hover{background:rgba(255,255,255,.06);color:#fff}
.f-bottom{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1rem;color:var(--muted)}
.btn-outline{border:1px solid rgba(255,255,255,.18);padding:.55rem .9rem;border-radius:12px;text-decoration:none;color:#dfe6ee}
.btn-outline:hover{background:rgba(255,255,255,.06);color:#fff}
@media (max-width:900px){ .f-grid{grid-template-columns:1fr} .nav{gap:.6rem} }

/* Styles spécifiques à la page de connexion */
.login-page .hero .nav{margin-right:1rem}
.grid{display:grid;grid-template-columns:1fr .8fr;gap:1.25rem}
@media(max-width:980px){.grid{grid-template-columns:1fr}}

.title{font-size:clamp(1.6rem,2.6vw,2rem);font-weight:900;margin:.25rem 0 1rem}

.form{display:grid;gap:.8rem;max-width:480px}

.input{padding:1rem;border:1px solid rgba(255,255,255,.10);background:var(--input);color:var(--text);border-radius:12px;outline:none}
.input:focus{box-shadow:0 0 0 6px var(--ring);border-color:transparent}

.row{display:flex;justify-content:space-between;align-items:center}

/* Masquer le bouton de connexion dans la navigation sur mobile (page maintenance uniquement) */
@media (max-width: 768px) {
  .nav .btn-login {
    display: none !important;
  }
}
:root{
    --bg:#0b0d10;        
    --card:#0f1115;          
    --muted:#9aa4b2;      
    --text:#e8ecf1;      
    --brand1:#7c5cff;      
    --brand2:#4ea3ff;   
    --ring: rgba(124, 92, 255, .35);
    --radius: 16px;
  }
  *{box-sizing:border-box}
  html,body{height:100%}
  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color:var(--text);
    background:
      radial-gradient(900px 600px at 5% -10%, rgba(124,92,255,.25), transparent 60%),
      radial-gradient(900px 600px at 120% 10%, rgba(78,163,255,.25), transparent 55%),
      var(--bg);
    letter-spacing:.2px;
  }

  .wrap{max-width:1280px;margin:0 auto;padding:3rem 1.25rem;}
  .hero{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;margin-bottom:2rem}
  .brand{display:flex;align-items:center;gap:.9rem}
  .brand img{height:48px}
  .brand h1{margin:0;font-size:1.6rem;font-weight:800;letter-spacing:.5px}

  .nav{display:flex;align-items:center;gap:.6rem}
  .nav .theme-btn{margin-left:.2rem}
  @media (max-width: 640px){
    .nav a.icon-btn{display:none !important}
  }
  .nav .btn{padding:.6rem .9rem;border-radius:12px;text-decoration:none;color:#fff;font-weight:800;border:1px solid rgba(255,255,255,.18)}
  .btn-login{
    border:1px solid rgba(255,255,255,.18);
    background:linear-gradient(135deg,var(--brand1),var(--brand2));
  }
  .btn-login:hover{filter:brightness(1.05)}
  .badge{background:linear-gradient(135deg, var(--brand1), var(--brand2));padding:.4rem .8rem;border-radius:999px;font-size:.8rem;font-weight:700}

  .icon-btn{
    display:inline-flex;align-items:center;justify-content:center;
    width:42px;height:42px;border-radius:999px;
    border:1px solid rgba(255,255,255,.18);
    background:#0b0e13;text-decoration:none;
    transition:transform .12s ease, background .2s ease, border-color .2s ease;
  }
  .icon{width:18px;height:18px;fill:#dfe6ee;flex-shrink:0}
  .icon-btn:hover{background:linear-gradient(135deg,var(--brand1),var(--brand2));border-color:transparent;transform:translateY(-1px)}
  .icon-btn:hover .icon{fill:#fff}

  .hero-block{
    display:grid;grid-template-columns:1.2fr .8fr;gap:1.25rem;margin-bottom:2rem;
  }
  @media (max-width: 980px){ .hero-block{grid-template-columns:1fr} }

  .panel{
    background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding:1.5rem 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    position:relative; overflow:hidden;
  }
  .panel::before{
    content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
    background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(78,163,255,.18));
    mask: linear-gradient(#000 0 0) exclude, radial-gradient(480px 260px at -5% -30%, #000 98%, transparent 100%);
  }
  .huge{font-size:clamp(2rem, 4vw + .5rem, 3rem);font-weight:900;margin:.25rem 0 .5rem;line-height:1.1}
  .lead{color:var(--muted);line-height:1.7;margin:0 0 1.25rem}

  .cta{display:flex;gap:.6rem;flex-wrap:wrap}
  .btn{
    padding:.9rem 1.1rem;border:none;border-radius:12px;font-weight:800;color:white;cursor:pointer;white-space:nowrap;
    text-decoration:none;display:inline-flex;align-items:center;gap:.5rem
  }
  .btn-primary{ background: linear-gradient(135deg, var(--brand1), var(--brand2)); border:1px solid rgba(255,255,255,.18); }
  .btn-ghost{ background: transparent; border:1px solid rgba(255,255,255,.18); color:#e8ecf1 }
  .btn-ghost:hover{background:rgba(255,255,255,.06)}

  .notify-form{display:grid;grid-template-columns:1fr auto;gap:.6rem;align-items:center;max-width:560px;margin:1rem 0 0}
  .form-input{
    width:100%; padding:1rem 1rem; background:#0b0e13; color:var(--text);
    border:1px solid rgba(255,255,255,.10); border-radius:12px; outline: none;
  }
  .form-input:focus{ box-shadow: 0 0 0 6px var(--ring); border-color: transparent; }
  @media (max-width:560px){ .notify-form{ grid-template-columns:1fr; } .btn{ width:100% } }
  .sr-only{ position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0 }

  .progress-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid rgba(255,255,255,.06)}
  .progress-title{font-size:1.2rem;margin:0;font-weight:800}
  .item{margin:.9rem 0}
  .label{display:flex;justify-content:space-between;gap:.5rem;color:var(--muted);font-size:.95rem;margin-bottom:.35rem}
  .bar{height:.7rem;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden}
  .fill{height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--brand1),var(--brand2));position:relative;transition:width .8s ease}
  .fill::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer 2s infinite}
  .meta{display:grid;grid-template-columns:1fr auto;gap:.5rem;margin-top:.9rem;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.06)}
  .eta{color:#5fd3a6}
  @keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

  .features{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}
  @media (max-width:980px){ .features{grid-template-columns:1fr 1fr} }
  @media (max-width:640px){ .features{grid-template-columns:1fr} }

  .feat{padding:1rem}
  .feat h3{margin:.3rem 0 .3rem}
  .feat p{color:var(--muted);margin:0}

  .gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem;margin-bottom:2rem}
  .tile{border-radius:16px;overflow:hidden;position:relative;aspect-ratio:16/9;background:#111315;border:1px solid rgba(255,255,255,.06)}
  .tile:before{content:"";position:absolute;inset:0;background-image:var(--img, none);background-size:cover;background-position:center;filter:contrast(.98) saturate(1.05)}
  @media (max-width:900px){ .gallery{grid-template-columns:1fr 1fr} .tile:nth-child(1){grid-column:1/-1} }

  footer{max-width:1280px;margin:1.75rem auto 2.5rem;padding:1.25rem 1.25rem;border-top:1px solid rgba(255,255,255,.08);color:#9aa4b2}
  /* Désactiver la bordure du footer sur la page de login uniquement */
  .login-page footer{border-top:none}
  /* Tooltip CSS instantané (évite le délai du title natif) */
  .tooltip-inline{
    position: relative;
  }
  .tooltip-inline[data-tooltip]:hover::after,
  .tooltip-inline[data-tooltip]:focus::after{
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: .4rem .6rem;
    border-radius: 8px;
    font-size: .8rem;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
  }
  .tooltip-inline[data-tooltip]:hover::before,
  .tooltip-inline[data-tooltip]:focus::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0,0,0,.85);
    z-index: 9999;
    pointer-events: none;
  }
  /* Tooltip global (fixed) pour éviter tout rognage */
  .cm-tooltip{
    position: fixed;
    background: rgba(0,0,0,.9);
    color: #fff;
    padding: .5rem .7rem;
    border-radius: 8px;
    font-size: .85rem;
    line-height: 1.35;
    max-width: min(320px, 90vw);
    word-wrap: break-word;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    z-index: 2147483647;
  }
  .f-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}
  .f-col h4{margin:.2rem 0 .6rem;font-size:1rem}
  .f-col p, .f-col a{color:#b9c3d0;font-size:.95rem;text-decoration:none}
  .f-links{display:flex;gap:.75rem;flex-wrap:wrap}
  .chip{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border-radius:999px;border:1px solid rgba(255,255,255,.16);text-decoration:none}
  .chip:hover{background:rgba(255,255,255,.06);color:#fff}
  .f-bottom{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1rem;color:var(--muted)}
  .btn-outline{border:1px solid rgba(255,255,255,.18);padding:.55rem .9rem;border-radius:12px;text-decoration:none;color:#dfe6ee}
  .btn-outline:hover{background:rgba(255,255,255,.06);color:#fff}
  @media (max-width:900px){ .f-grid{grid-template-columns:1fr} .nav{gap:.6rem} }

  /* Styles spécifiques à la page de connexion */
  .grid{display:grid;grid-template-columns:1fr .8fr;gap:1.25rem}
  @media(max-width:980px){.grid{grid-template-columns:1fr}}
  
  .title{font-size:clamp(1.6rem,2.6vw,2rem);font-weight:900;margin:.25rem 0 1rem}
  
  .form{display:grid;gap:.8rem;max-width:480px}
  
  .input{padding:1rem;border:1px solid rgba(255,255,255,.10);background:#0b0e13;color:var(--text);border-radius:12px;outline:none}
  .input:focus{box-shadow:0 0 0 6px var(--ring);border-color:transparent}
  
  .row{display:flex;justify-content:space-between;align-items:center}

  /* Style personnalisé pour la checkbox "Se souvenir de moi" */
  .remember-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
  }

  .remember-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .remember-checkbox .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background: #0b0e13;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .remember-checkbox:hover .checkmark {
    border-color: rgba(124, 92, 255, .5);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .1);
  }

  .remember-checkbox input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
    border-color: transparent;
    box-shadow: 0 0 0 3px var(--ring);
  }

  .remember-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .remember-checkbox input[type="checkbox"]:checked + .checkmark:after {
    display: block;
  }

  .remember-checkbox .label-text {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .remember-checkbox:hover .label-text {
    color: var(--text);
  }

  /* Masquer le bouton de connexion dans la navigation sur mobile (page maintenance uniquement) */
  @media (max-width: 768px) {
    .nav .btn-login {
      display: none !important;
    }
  }
