@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

*{ box-sizing:border-box; }
body{ font-family:'Inter',sans-serif; background:#0f0f11; color:#e5e5e5; margin:0; }
input,button,select{ font-family:inherit; }

/* NAV */
.main-nav{
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 40px; background:rgba(255,255,255,.05);
  backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,255,255,.1);
  position:sticky; top:0; z-index:100;
}
.main-nav .logo{ font-size:23px; font-weight:700; color:#fff; text-decoration:none; }
.main-nav ul{ display:flex; gap:20px; list-style:none; margin:0; padding:0; }
.main-nav ul li a{ color:#ccc; text-decoration:none; font-weight:500; transition:color .2s; font-size: 17px; }
.main-nav ul li a:hover{ color:#fff; }
.main-nav a.active{ color:#fff; position:relative; }
.main-nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-8px; height:2px; border-radius:2px;
  background:linear-gradient(135deg,#5b42f3,#9f44d3); }

/* Layout */
.main-content{ padding:60px 20px; max-width:1100px; margin:auto; }
h1{ font-weight:500; font-size:32px; margin:0 0 30px; text-align:center; }

/* Search wrap */
.search-wrap{ max-width:760px; margin:0 auto; }
.search-bar{ display:flex; gap:12px; align-items:stretch; }
.search-bar input[type="text"], .search-bar .chip-btn, .search-bar .submit-btn{ height:44px; border-radius:10px; }
.search-bar input[type="text"]{ flex:1 1 auto; padding:12px 16px; border:none; background:#1a1a1d; color:#f0f0f0; transition:background .25s; }
.search-bar input[type="text"]::placeholder{ color:#aaa; }
.search-bar input[type="text"]:focus{ background:#29292d; outline:none; }

/* Bouton Filtrer */
.chip-btn{
  position:relative; overflow:hidden; min-width:96px; border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04); color:#ddd; padding:0 16px; cursor:pointer;
  transition:color .25s, border-color .25s, transform .06s;
}
.chip-btn:active{ transform:scale(.98); }
.chip-btn::after{
  content:""; position:absolute; inset:-1px; border-radius:inherit; z-index:0;
  background:linear-gradient(135deg,#5b42f3,#9f44d3);
  opacity:0; transform:scale(.98); transition:opacity .25s, transform .25s;
}
.chip-btn > span{ position:relative; z-index:1; }
.chip-btn:hover{ color:#fff; border-color:rgba(255,255,255,.18); }
.chip-btn:hover::after{ opacity:.12; transform:scale(1); }
.chip-btn.active{ color:#fff; border-color:rgba(255,255,255,.10); }
.chip-btn.active::after{ opacity:1; transform:scale(1); }

/* Rechercher */
.submit-btn{
  background:linear-gradient(135deg,#5b42f3,#9f44d3); color:#fff; border:none; padding:0 18px; font-weight:600; cursor:pointer;
  transition:filter .2s;
}
.submit-btn:hover{ filter:brightness(1.08); }

/* Panneau filtres */
.filter-panel{
  margin:10px 0 24px; background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08); border-radius:12px; backdrop-filter:blur(12px);
  overflow:hidden; max-height:0; opacity:0; transform:translateY(-8px);
  transition:max-height .3s ease, opacity .25s ease, transform .25s ease;
}
.filter-panel.open{ max-height:140px; opacity:1; transform:translateY(0); }
.filter-row{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:center; padding:14px; }

/* Switch */
.switch{ display:inline-flex; align-items:center; gap:10px; position:relative; cursor: pointer; }
.switch input{ appearance:none; position:absolute; opacity:0; }
.switch .track{
  width:42px; height:24px; border-radius:999px; background:#2a2a2e; border:1px solid rgba(255,255,255,.12);
  position:relative; transition:background .2s, border-color .2s;
}
.switch .track::after{
  content:""; position:absolute; top:1px; left:1px; width:20px; height:20px; border-radius:50%;
  background:#999; transition:left .2s, background .2s;
}
.switch input:checked + .track{ background:linear-gradient(135deg,#5b42f3,#9f44d3); border-color:rgba(255,255,255,.2); }
.switch input:checked + .track::after{ left:19px; background:#fff; }
.switch .label{ color:#cfcfcf; font-size:14px; display:inline-flex; align-items:center; line-height:1; }

/* Avis + étoiles (ancien système) */
.avis-group{ display:inline-flex; align-items:center; gap:14px; }
.stars-inline{ display:inline-flex; align-items:center; line-height:1; font-size:22px; max-width:0; opacity:0; overflow:hidden;
  transition:max-width .28s ease, opacity .22s ease; }
.stars-inline.open{ max-width:240px; opacity:1; }
/* .etoile styles conservés mais non utilisés */
.etoile{ color:#6b6b75; padding:4px; border-radius:6px; transition:color .18s, transform .08s, text-shadow .18s; }
.etoile:hover{ transform:translateY(-1px) scale(1.06); color:#ffd75a; text-shadow:0 0 6px rgba(250,204,21,.35); }
.etoile.active{ color:#ffd75a; text-shadow:0 0 6px rgba(250,204,21,.35), 0 0 14px rgba(250,204,21,.2); }

/* CSV bouton */
.download-csv{ text-align:center; margin:14px 0 22px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 14px; border-radius:10px; text-decoration:none;
  font-weight:600; border:1px solid transparent; transition:transform .06s, filter .2s, background .2s, border-color .2s; }
.btn:active{ transform:scale(.98); }
.btn-ghost{ color:#e9e9e9; background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.10); }
.btn-ghost:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.16); }
.btn-delete{ color:#e9e9e9; background:rgba(255,0,64,.65); border-color:rgba(255,0,64,.65); }
.btn-delete:hover{ background:rgba(255,0,64,.8); border-color:rgba(255,0,64,.8); }
.btn-primary{ color:#fff; background:linear-gradient(135deg,#5b42f3,#9f44d3); }
.btn-primary:hover{ filter:brightness(1.08); }

/* Fiches */
ul{ list-style:none; padding:0; margin:0 auto; }
.fiche{ background:rgba(255,255,255,.05); border-radius:16px; padding:27px 0; margin:20px auto;
  backdrop-filter:blur(15px); box-shadow:0 4px 20px rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.08); transition:transform .2s; max-width:900px; }
.fiche:hover{ transform:translateY(-5px); }
.fiche a{ color:#7db1ff; text-decoration:none; }
.fiche a:hover{ text-decoration:underline; }
.fiche-header-container{ display:flex; justify-content:space-between; align-items:flex-start; padding:0 30px; margin-bottom:10px; gap:12px; }
.fiche-header{ font-size:20px; font-weight:600; margin:0; color:#fff; flex:1 1 auto; min-width:0; overflow-wrap:anywhere; word-break:break-word; text-align:left; }
.fiche-header .fiche-secteur{ font-size:16px; font-weight:400; color:#888; margin-left:8px; }
.fiche-note{ font-size:18px; font-weight:700; color:#facc15; white-space:nowrap; flex:0 0 auto; }
.fiche-details{ display:flex; flex-wrap:wrap; justify-content:center; gap:40px; margin-top:10px; margin-bottom:15px; padding:0 20px; }
.fiche-col{ flex:1; min-width:300px; }
.fiche-col p{ margin:12px 11px; font-size:14px; }
.fiche-lien{ text-align:left; margin:0; font-size:14px; padding:0 30px; }
.email-extra{ color:#9aa0a6; margin-left:6px; font-weight:500; }

/* Pagination résultats */
.pager{ max-width:900px; margin:24px auto 32px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pager__label{ color:#cfcfcf; font-weight:500; }
.pager__right{ display:flex; gap:10px; }

/* Dashboard cards */
.dash-grid{ display:grid; grid-template-columns:1fr; gap:20px; max-width:900px; margin:0 auto; }
.card{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:18px; backdrop-filter:blur(12px); }
.card h2{ margin:4px 0 12px; font-size:18px; }
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }

.chip-group{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{
  display:inline-flex; align-items:center; height:34px; padding:0 12px; border-radius:999px;
  background:rgba(255,255,255,.06); color:#eaeaea; text-decoration:none; border:1px solid rgba(255,255,255,.1);
  transition:background .2s, color .2s, border-color .2s;
}
.chip:hover{ background:rgba(255,255,255,.10); }
.chip.active{ color:#fff; background:linear-gradient(135deg,#5b42f3,#9f44d3); border-color:transparent; }

.files-grid{ display:grid; grid-template-columns:1fr; gap:10px; }
.file-card{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px;
  padding:12px 14px; border-radius:12px; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08); text-decoration:none; color:#e5e5e5;
}
.file-card:hover{ background:rgba(255,255,255,.07); }
.file-icon{ font-size:20px; }
.file-name{ font-weight:600; }
.file-sub{ color:#b7b7b7; font-size:13px; }

/* Télécharger : même taille que .btn et pas de soulignement */
.file-cta{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 14px; border-radius:10px; font-weight:600;
  text-decoration:none; color:#fff;
  background:linear-gradient(135deg,#5b42f3,#9f44d3);
  border:1px solid transparent;
  transition:transform .06s, filter .2s, background .2s, border-color .2s;
}
.file-cta:hover{ filter:brightness(1.08); text-decoration:none; }

.exp-pager{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.muted{ color:#b7b7b7; font-style:italic; }

/* cache l'ancien .pagination s'il restait */
.pagination{ display:none; }

/* ====== Toast de téléchargement ====== */
.toast-wrap{
  position: fixed;
  /* ancrage bas-droite + safe-area iOS */
  right: max(16px, env(safe-area-inset-right)) !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  left: auto !important;

  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* le conteneur ne bloque jamais les taps */
  pointer-events: none;
}

/* la carte toast, elle, est cliquable */
.toast{
  pointer-events: auto;
  width: 320px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
}

.toast-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.toast-title{ font-weight:600; }
.toast-close{ appearance:none; border:none; background:transparent; color:#ddd; font-size:18px; cursor:pointer; }
.toast-sub{ color:#bdbdbd; font-size:12px; margin-top:4px; }

.progress{
  height:8px; background:rgba(255,255,255,.12); border-radius:999px; overflow:hidden;
}
.progress-bar{
  height:100%; width:0%;
  background:linear-gradient(135deg,#5b42f3,#9f44d3);
  transition:width .15s linear;
}

/* Mobile : pleine largeur utile en bas, entre safe-areas */
@media (max-width: 600px){
  .toast-wrap{
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    align-items: stretch;
  }
  .toast{ width: 100%; }
}

/* =========================================================
   Animated Stars (CodePen adapté, compact pour tes filtres)
   ========================================================= */
:root{
  --rating-yellow: hsl(45 100% 55%);
  --rating-yellow-t: hsla(45,100%,55%,0);
  --rating-stroke: hsl(0 0% 60%);
  --card-bg: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.10);
}
@media (prefers-color-scheme: dark){
  :root{ --rating-stroke: hsl(0 0% 35%); }
}

.rating{position:relative}

/* ==== Fix: prevent star replay on page load while keeping stars visible ==== */
.rating.no-anim .rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-ring,
.rating.no-anim .rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-ring,
.rating.no-anim .rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-ring,
.rating.no-anim .rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-ring,
.rating.no-anim .rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-ring,
.rating.no-anim .rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-stroke,
.rating.no-anim .rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-stroke,
.rating.no-anim .rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-stroke,
.rating.no-anim .rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-stroke,
.rating.no-anim .rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-stroke,
.rating.no-anim .rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-line,
.rating.no-anim .rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-line,
.rating.no-anim .rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-line,
.rating.no-anim .rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-line,
.rating.no-anim .rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-line,
.rating.no-anim .rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-fill,
.rating.no-anim .rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-fill,
.rating.no-anim .rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-fill,
.rating.no-anim .rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-fill,
.rating.no-anim .rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-fill {
  animation-name: none !important;  /* on supprime juste l’animation, pas le rendu */
}
/* assure que les étoiles cochées restent visuellement remplies (le fill part à scale(0)) */
.rating.no-anim .rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-fill,
.rating.no-anim .rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-fill,
.rating.no-anim .rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-fill,
.rating.no-anim .rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-fill,
.rating.no-anim .rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-fill {
  transform: scale(1) !important;
}

.rating--compact .rating__stars{
  display:flex; align-items:center; gap:.1rem;
}
.rating__star{display:block; overflow:visible; pointer-events:none; width:1.6rem; height:1.6rem}
.rating__label{cursor:pointer; padding:.15rem}
.rating__input{position:absolute; appearance:none}

.rating__star-ring,
.rating__star-fill,
.rating__star-line,
.rating__star-stroke{animation-duration:1s; animation-timing-function:ease-in-out; animation-fill-mode:forwards}

.rating__star-line,
.rating__star-fill,
.rating__star-ring{stroke:var(--rating-yellow)}
.rating__star-fill{ fill:var(--rating-yellow); transform:scale(0); transition:transform .3s }
.rating__star-line{ stroke-dasharray:12 13; stroke-dashoffset:-13 }
.rating__star-stroke{ stroke:var(--rating-stroke) }

/* Hover: étoiles <= ciblée */
.rating__input-1:hover ~ .rating__label:nth-of-type(1) .rating__star-stroke,
.rating__input-2:hover ~ .rating__label:nth-of-type(-n+2) .rating__star-stroke,
.rating__input-3:hover ~ .rating__label:nth-of-type(-n+3) .rating__star-stroke,
.rating__input-4:hover ~ .rating__label:nth-of-type(-n+4) .rating__star-stroke,
.rating__input-5:hover ~ .rating__label:nth-of-type(-n+5) .rating__star-stroke{ stroke:var(--rating-yellow) }

/* Checked: animations */
.rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-ring,
.rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-ring,
.rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-ring,
.rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-ring,
.rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-ring{ animation-name:starRing }

.rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-stroke,
.rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-stroke,
.rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-stroke,
.rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-stroke,
.rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-stroke{ animation-name:starStroke }

.rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-line,
.rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-line,
.rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-line,
.rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-line,
.rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-line{ animation-name:starLine }

.rating__input-1:checked ~ .rating__label:nth-of-type(1)  .rating__star-fill,
.rating__input-2:checked ~ .rating__label:nth-of-type(-n+2) .rating__star-fill,
.rating__input-3:checked ~ .rating__label:nth-of-type(-n+3) .rating__star-fill,
.rating__input-4:checked ~ .rating__label:nth-of-type(-n+4) .rating__star-fill,
.rating__input-5:checked ~ .rating__label:nth-of-type(-n+5) .rating__star-fill{ animation-name:starFill }

/* Hover d'une étoile non cochée -> remplissage transparent */
.rating__input-1:not(:checked):hover ~ .rating__label:nth-of-type(1)  .rating__star-fill,
.rating__input-2:not(:checked):hover ~ .rating__label:nth-of-type(2)  .rating__star-fill,
.rating__input-3:not(:checked):hover ~ .rating__label:nth-of-type(3)  .rating__star-fill,
.rating__input-4:not(:checked):hover ~ .rating__label:nth-of-type(4)  .rating__star-fill,
.rating__input-5:not(:checked):hover ~ .rating__label:nth-of-type(5)  .rating__star-fill{ fill:var(--rating-yellow-t) }

/* Keyframes */
@keyframes starRing{
  from,20%{animation-timing-function:ease-in;opacity:1;r:8px;stroke-width:16px;transform:scale(0)}
  35%{animation-timing-function:ease-out;opacity:.5;r:8px;stroke-width:16px;transform:scale(1)}
  50%,to{opacity:0;r:16px;stroke-width:0;transform:scale(1)}
}
@keyframes starFill{
  from,40%{animation-timing-function:ease-out;transform:scale(0)}
  60%{animation-timing-function:ease-in-out;transform:scale(1.2)}
  80%{transform:scale(.9)}
  to{transform:scale(1)}
}
@keyframes starStroke{
  from{transform:scale(1)}
  20%,to{transform:scale(0)}
}
@keyframes starLine{
  from,40%{animation-timing-function:ease-out;stroke-dasharray:1 23;stroke-dashoffset:1}
  60%,to{stroke-dasharray:12 13;stroke-dashoffset:-13}
}

.btn { cursor: pointer; }

/* ------- Input de recherche Exports (même style que index, hauteur 40px) ------- */
.input-search{
  height:40px; border-radius:10px; padding:12px 16px; border:none;
  background:#111113; color:#f0f0f0; transition:background .25s;
}
.input-search::placeholder{ color:#aaa; }
.input-search:focus{ background:#29292d; outline:none; }

/* Liens "S'inscrire" / "Se connecter" en dégradé + soulignés */
a.link-gradient,
a.link-gradient:visited {
  background: #ccc;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
  transition: color 0.2s ease, filter 0.2s ease;
}
a.link-gradient:hover {
  text-decoration-thickness: 1px;
  filter: brightness(1.5);
  transition: color 0.2s ease, filter 0.2s ease;
}

/* ===================== */
/* Compte — champs & icônes */
/* ===================== */

/* Icônes (✏️ / 👁️ / 🙈) harmonisées */
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:#e8e8e8; font-size:18px; line-height:1;
  cursor:pointer;
  transition:transform .06s, background .2s, border-color .2s, filter .2s;
}
.icon-btn:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.16); }
.icon-btn:active{ transform:scale(.98); }

/* --- Groupes mot de passe : input s'arrête avant l'icône --- */
.password-group{
  display:flex;
  align-items:center;
  gap:10px;            /* même gap que le crayon */
}

.password-group .input-search{
  flex:1 1 auto;       /* prend toute la place disponible */
  padding-right:16px;  /* padding normal, pas besoin de tricher */
  box-sizing:border-box;
}

.password-group .eye-btn{
  position:static;     /* plus d'absolu, donc pas de chevauchement */
  flex:0 0 40px;       /* même taille que les autres icônes */
}


/* Champ nom utilisateur en lecture seule (grisé) */
#usernameInput[readonly]{
  background:#111113;
  color:#c9c9c9;
}
/* Curseur 🚫 au survol si readonly (fallback not-allowed si SVG non supporté) */
#usernameInput[readonly]:hover{
  cursor: not-allowed;
}

/* Quand le champ repasse en édition (focus), on retrouve le style actif */
#usernameInput:not([readonly]):focus{
  background:#29292d;
  color:#f0f0f0;
  outline:none;
}

/* ------- Input pour authentification (connexion / création compte) ------- */
.input-auth {
  height: 40px;
  border-radius: 10px;
  padding: 12px 16px;
  border: none;
  background: #1a1a1d;
  color: #f0f0f0;
  transition: background .25s;
}

.input-auth::placeholder {
  color: #aaa;
}

.input-auth:focus {
  background: #29292d;
  outline: none;
}

/* ---------- Hero / Particules / Media ---------- */
.welcome-hero{ position: relative; margin-top:-10px; }

#particles{
  position: fixed;             /* <- était absolute */
  inset: 0;                    /* couvre tout l'écran */
  width: 100%;
  height: 100dvh;              /* hauteur viewport dynamique */
  z-index: 0;                  /* sous le contenu */
  opacity: .40;                /* un poil plus visible */
  filter: saturate(1.15);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding: 72px 16px 0;
  gap: 16px;
}
.hero-eyebrow{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.pill{
  font-size:18px; color:#d8ccff; background:rgba(165,120,255,.08);
  border:1px solid rgba(165,120,255,.25); padding:6px 10px; border-radius:999px;
}
.hero-inner h1{ font-size:70px; margin:6px 0 2px; font-weight:700; }
.grad{ background:linear-gradient(135deg,#a579ff,#7f5bff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-sub{ color:#cfcfcf; max-width:860px; line-height:1.6; margin-top:4px; }

.hero-cta{ display:flex; gap:10px; justify-content:center; margin-top:6px; }
.hero-tags{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }

.video-frame {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.video-frame video{
  width: 100%;
  display: block;
  background: #000;
}

/* ---------- Sections / Spacing ---------- */
.section{ max-width:1100px; margin:0 auto; padding: 24px 16px; }
.space-lg{ padding-top: 56px; padding-bottom: 34px; }
.space-xl{ padding-top: 64px; padding-bottom: 72px; }
.section-title{ text-align:center; font-size:45px; margin:0 0 8px; margin-bottom: 10px; }
.section-sub{ text-align:center; color:#bdbdbd; margin:0 auto 22px; max-width:800px; margin-bottom: 26px; font-size: 19px; }

/* ---------- Features ---------- */
.feature-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap:16px; margin-top: 16px;
}
@media (max-width: 1000px){ .feature-grid{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 600px){ .feature-grid{ grid-template-columns: 1fr; } }

.feature-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  display:flex; flex-direction:column; gap:8px;
  box-shadow: 0 10px 50px rgba(127,91,255,.12);
}
.feature-card h3{ margin:2px 0 2px; font-size:23px; }
.feature-card p{ margin:0; color:#cfcfcf; font-size: 16px; }
.feat-illu{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background: radial-gradient(120px 90px at -20% 140%, rgba(165,120,255,.22), rgba(127,91,255,.08));
  color:#cbb6ff;
  border:1px solid rgba(165,120,255,.28);
  box-shadow: 0 8px 30px rgba(127,91,255,.25);
}

/* ---------- FAQ ---------- */
.faq{ max-width:900px; margin: 6px auto 0; display:grid; gap:10px; }
.faq-item{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  overflow:hidden;
}
.faq-item > summary{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;
  display:flex; align-items:center; gap:10px;
  color:#e6e1ff;
}
.faq-item > summary::-webkit-details-marker{ display:none; }
.faq-item > summary span{
  position:relative; padding-left:26px; font-size: 19px;
}
.faq-item > summary span::before{
  content:"▸"; position:absolute; left:0; top:0; transform:translateY(1px);
  opacity:.75;
}
.faq-item[open] > summary span::before{ content:"▾"; }
.faq-body{ padding:0 16px 14px; color:#cfcfcf; line-height:1.6; }

/* ---------- CTA final ---------- */
.cta-final{
  text-align:center;
  border-top:1px solid rgba(255,255,255,.06);
}
.cta-final h3{ font-size:45px; margin:0 0 6px; }
.cta-final p{ color:#bdbdbd; margin:18px 0px 28px; font-size: 19px; }

/* ===== Hero – tailles & couleurs ===== */
.hero-title{ font-size:56px; line-height:1.08; margin:6px 0 8px; font-weight:800; letter-spacing:-0.02em; }
.grad-strong{ background:linear-gradient(135deg,#b991ff 0%, #7c5cff 60%, #a579ff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent; }

.hero-sub--lg{ font-size:23px; color:#d6d1ff; max-width:900px; }
.btn-lg{ height:46px; padding:0 18px; border-radius:12px; font-size:18px; }

/* Pills plus visibles mais moins nombreuses */
.pill--outline{
  color:#d8ccff; background:transparent; border:1px solid rgba(165,120,255,.35);
  box-shadow:0 0 0 3px rgba(165,120,255,.08) inset;
}

/* Vidéo : halo doux */
.video-frame--glow{ box-shadow:0 20px 60px rgba(127,91,255,.18), 0 0 0 1px rgba(255,255,255,.06) inset; }

/* Sections – titres plus grands */
.section-title--xl{ font-size:45px; }
.section-sub--lg{ font-size:19px; margin-top: 18px; margin-bottom: 46px; }

/* FAQ – style + focus */
.faq-item > summary{ font-weight:600; }
.faq-item > summary:hover{ background:rgba(255,255,255,.03); }
.faq-item > summary:focus-visible{ outline:2px solid rgba(165,120,255,.5); outline-offset:4px; }
.faq-body{ padding:10px 16px 16px; color:#cfc9ff; }

/* ===== Footer ===== */
.site-footer{
  margin-top:32px;
  background:linear-gradient(180deg, rgba(165,120,255,.08), rgba(0,0,0,0) 40%) no-repeat,
             rgba(255,255,255,.03);
}
.footer-inner{
  max-width:1100px; margin:0 auto; padding:32px 16px 18px;
  display:grid; grid-template-columns:1.2fr 2fr; gap:28px;
}
.footer-logo{ font-weight:800; font-size:22px; letter-spacing:.3px; }
.footer-tag{ color:#bfb7ff; margin-top:6px; }
.footer-cols{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.footer-col h4{ margin:0 0 10px; font-size:14px; color:#eae7ff; }
.footer-col a{ display:block; color:#cfcfcf; text-decoration:none; padding:6px 0; }
.footer-col a:hover{ color:#fff; }

.footer-newsletter{ display:flex; gap:8px; }
.footer-newsletter input{
  flex:1; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.10);
  background:#141416; color:#fff; padding:0 12px;
}
.footer-social{ margin-top:10px; display:flex; gap:10px; opacity:.9; }
.footer-social a{ filter:saturate(0.9); }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 16px; max-width:1100px; margin:0 auto;
  color:#bdb9d9;
}
.footer-legal{ display:flex; gap:14px; }
.footer-legal a{ color:#bdb9d9; text-decoration:none; cursor: pointer; }
.footer-legal a:hover{ color:#fff; }

@media (max-width:900px){
  .hero-title{ font-size:42px; }
  .footer-inner{ grid-template-columns:1fr; }
  .footer-cols{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .footer-cols{ grid-template-columns:1fr; }
}

/* ===================================================== */
/*              AJOUTS (footer + FAQ)                    */
/*  -> Ajouts uniquement, rien d'autre modifié           */
/* ===================================================== */

/* Footer : fond plus smooth (radial + linear + voile) */
.site-footer{
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(165,120,255,.10), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(165,120,255,.06), rgba(0,0,0,0) 46%),
    rgba(255,255,255,.0);
    border-radius: 14px;
}

/* Icônes réseaux : boutons “favicon white” même si <a> simple */
.footer-social{ opacity:1; }
.footer-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px;
  color:#fff;                      /* SVG en blanc via currentColor */
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 6px 22px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.03);
  transition:transform .08s, filter .2s, background .2s, border-color .2s, opacity .2s, box-shadow .2s;
  text-decoration:none;
  filter:none;                     /* neutralise l’ancien filter */
}
.footer-social a:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  filter:brightness(1.08);
  box-shadow:0 10px 30px rgba(127,91,255,.18), inset 0 0 0 1px rgba(255,255,255,.05);
}
.footer-social a:active{ transform:scale(.98); }
.footer-social a svg{ width:20px; height:20px; display:block; }

/* FAQ : même anim (JS) + hover off quand ouvert (CSS ici) */
.faq-item.is-open > summary:hover{ background:transparent; }
/* un petit hint perf pour l’anim de hauteur */
.faq-body{ will-change: height, padding-top, padding-bottom; }

html { scroll-behavior: smooth; }

/* évite que le titre soit caché sous le header sticky (~80px) */
#prospecter, #faq { scroll-margin-top: 80px; } /* ajuste si besoin */

.footer-brand--center {
  font-size: 3.1rem; /* texte plus gros */
  font-weight: 700;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px; /* ajuste selon hauteur du footer */
  background: linear-gradient(135deg,#b991ff 0%, #7c5cff 60%, #a579ff 100%);
  background-clip: text;
  color: transparent;
}

.password-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper .input-auth {
  flex: 1;
  border-radius: 6px 0 0 6px;
}

.password-wrapper .toggle-password {
  background: #1f1f1f;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-wrapper .toggle-password:hover {
  background: #2a2a2a;
}

.password-wrapper .eye-icon {
  font-size: 1.1rem;
}

/* ===========================
   NAV MOBILE + BURGER (FINAL • CLEAN + GAP FIX)
   =========================== */

/* Desktop: on cache le burger */
.burger { display: none; }

/* Mobile */
@media (max-width: 992px){

  /* Barre de nav en flex, burger à droite */
  .main-nav{
    position: sticky; top: 0; z-index: 100;
    display:flex; align-items:center; gap:12px;
    padding:12px 16px; min-height:56px;
    border-bottom:0 !important; box-shadow:none !important;
    transform: translateZ(0); /* anti hairline sur device/zoom */
  }
  .main-nav .logo{ margin-right:auto; line-height:1; }

  /* Bouton burger — reset total + style */
  .burger{
    all:unset; display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:12px;
    background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px); cursor:pointer; position: relative;
  }
  .burger::before, .burger::after, .burger *::before, .burger *::after{
    content:none !important; display:none !important; background:none !important; border:0 !important; box-shadow:none !important;
  }
  /* Barres compactes */
  .burger .burger-bar{
    position:absolute; left:50%;
    width:22px; height:2px; margin:0;
    border-radius:2px; background:#e9e9e9;
    transform: translateX(-50%); transition: transform .22s ease, opacity .18s ease;
  }
  .burger .burger-bar:nth-child(1){ top:14px; }
  .burger .burger-bar:nth-child(2){ top:21px; }
  .burger .burger-bar:nth-child(3){ top:28px; }
  /* Croix immédiate via aria-expanded */
  .burger[aria-expanded="true"] .burger-bar:nth-child(1){ transform: translate(-50%, 7px) rotate(45deg) !important; }
  .burger[aria-expanded="true"] .burger-bar:nth-child(2){ opacity:0 !important; }
  .burger[aria-expanded="true"] .burger-bar:nth-child(3){ transform: translate(-50%, -7px) rotate(-45deg) !important; }

  /* Panneau du menu — anim sans déformation (clip-path) + chevauchement 1px */
  .main-nav .nav-list{
    position:absolute; top: calc(100% - 1px); left:0; right:0; /* <- gap fix */
    padding:8px 12px; margin: 0 !important;                     /* aucun <ul> margin */
    background:rgba(15,15,17,.98);
    border-bottom:1px solid rgba(255,255,255,.10);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    max-height:70vh; overflow-y:auto; -webkit-overflow-scrolling:touch;

    display:flex; flex-direction:column; gap:6px;                /* items empilés */

    clip-path: inset(0 0 100% 0); -webkit-clip-path: inset(0 0 100% 0);
    opacity:0; pointer-events:none;
    will-change: clip-path, opacity;
    transition: clip-path .26s ease, opacity .26s ease;
  }
  .main-nav.nav-open .nav-list{
    clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0);
    opacity:1; pointer-events:auto;
  }

  /* Liens du menu */
  .main-nav .nav-list li{ margin:0 !important; list-style:none; }
  .main-nav .nav-list li a{
    width:100%;
    display:block; padding:12px 10px; border-radius:10px;
    color:#e5e5e5; text-decoration:none !important;
    text-align: center;
  }
  .main-nav .nav-list li a:hover{ background:rgba(255,255,255,.06); }

  /* Pas de soulignement animé en mobile + lien actif en violet */
  .main-nav .nav-list a::after,
  .main-nav .nav-list a.active::after{ display:none !important; content:none !important; }
  .main-nav .nav-list a.active,
  .main-nav .nav-list a[aria-current="page"]{
    color:#a578ff !important; font-weight:600;
    background:rgba(165,120,255,.10);
  }
}

/* ===========================
   CTA TEXT SHRINK (Mobile)
   =========================== */
@media (max-width: 992px){
  .btn, .btn-ghost{
    white-space: nowrap;
    font-size: clamp(12px, 3.4vw, 16px);
  }
}

/* ===========================
   FOOTER (Mobile)
   =========================== */
@media (max-width: 992px){
  .footer-social{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
  }
  .footer-social .footer-copyright{
    margin-left:auto; opacity:.9; font-size:14px; white-space:nowrap;
  }
  .footer-bottom{ text-align:center; }
  .footer-bottom > :first-child{ display:block; margin-bottom:8px; }
  .footer-bottom .footer-legal{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

  /* Newsletter pleine largeur : item sur 2 colonnes + input 1fr / bouton auto */
  .footer-cols > *:has(.footer-newsletter){ grid-column:1 / -1 !important; width:100%; }
  .footer-cols > *:has(.footer-newsletter) .footer-newsletter{
    display:grid !important; grid-template-columns:1fr auto; gap:10px; width:100%;
  }
  .footer-cols > *:has(.footer-newsletter) .footer-newsletter input[type="email"],
  .footer-cols > *:has(.footer-newsletter) .footer-newsletter input{
    width:100% !important; min-width:0; box-sizing:border-box; padding-right:12px !important;
  }
  .footer-cols > *:has(.footer-newsletter) .footer-newsletter .btn,
  .footer-cols > *:has(.footer-newsletter) .footer-newsletter button{
    height:40px; padding:0 14px; white-space:nowrap;
  }
}

/* === Responsive additions for index page === */

/* 1) Global spacing tweaks on smaller screens */
@media (max-width: 992px){
  .main-content { padding:32px 14px; }
  h1 { font-size:26px; margin-bottom:22px; }

  /* Search bar: stack fields & buttons */
  .search-wrap { max-width:100%; }
  .search-bar {
    display: contents; /* Permet de réordonner les enfants */
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .search-bar input[type="text"] {
    width: 100%;
  }
  .search-bar .chip-btn,
  .search-bar .submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
  }

  /* Réorganisation du formulaire pour placer le panneau filtres */
  #searchForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  #searchForm input[name="q"] { order: 1; }
  #searchForm input[name="ville"] { order: 2; }
  #btnFilter {
    order: 3;
    margin-bottom: -10px; /* harmonisation espacement */
  }
  #filterPanel {
    order: 4;
    width: 100%;
    overflow: hidden;
    transition: max-height .25s ease, padding .2s ease, margin .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  #filterPanel.open {
    max-height: 600px; /* au lieu de 140px */
    margin-bottom: 10px; /* harmonisation espacement */
  }
  #filterPanel:not(.open) {
    max-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .filter-row {
    justify-content: stretch;
    padding: 12px;
    gap: 12px;
  }
  .switch .label { font-size: 15px; }
  .avis-group { flex-wrap: wrap; gap: 10px; }
  .stars-inline { max-width: 100% !important; }
  .rating__star { width: 1.4rem; height: 1.4rem; }
}

/* 4) Results cards ("fiche") */
@media (max-width: 900px){
  .fiche {
    margin:14px auto;
    padding:20px 0;
    border-radius:14px;
  }
  .fiche-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 18px;
  }
  .fiche-header { font-size: 18px; }
  .fiche-header .fiche-secteur { font-size: 15px; }
  .fiche-note { font-size: 16px; }
  .fiche-details {
    gap: 20px;
    margin-top: 6px;
    padding: 0 18px;
  }
  .fiche-col { min-width: 100%; }
  .fiche-col p { font-size: 15px; margin: 8px 4px; }
  .fiche-lien { padding: 0 18px; font-size: 15px; }
}

/* 5) CSV button block */
@media (max-width: 900px){
  .download-csv .btn { width: 100%; }
}

/* 6) Pager: stack and make buttons full width */
@media (max-width: 900px){
  .pager {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
    margin: 18px auto 26px;
  }
  .pager__left { text-align: center; }
  .pager__right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pager__right .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Pager mobile : même taille/position qu'avec 2 boutons */
@media (max-width: 900px){
  .pager__right{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .pager__right .btn{
    width: 100%;
    justify-content: center;
  }
  /* S'il n'y a qu'un bouton, mets-le dans la 2e colonne en pleine largeur */
  .pager__right .btn:only-child{
    grid-column: 1 / 3;
    justify-self: stretch;   /* occupe toute la colonne */
    width: 100%;
  }
}


/* 7) Minor polish for tiny screens */
@media (max-width: 480px){
  .search-bar input[type="text"]::placeholder { font-size: 14px; }
  .chip-btn > span, .submit-btn { font-size: 15px; }
  .pager__label { font-size: 14px; }
}

/* iOS/Safari: masquer totalement le radio natif des étoiles + enlever le halo */
.rating__input{
  position:absolute !important;
  opacity:0 !important;
  width:0 !important;
  height:0 !important;
  margin:0 !important;
  pointer-events:none !important;
  -webkit-appearance:none !important;
  appearance:none !important;
  border:0 !important;
}

.rating__label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  -webkit-tap-highlight-color: transparent; /* enlève le flash gris iOS */
  touch-action: manipulation;
}

.rating__label:focus,
.rating__label:focus-visible,
.rating__star:focus,
.rating__star:focus-visible{
  outline: none !important;
}

/* ================================
   DASHBOARD — Responsive only (mobile/tablette)
   (Aucun impact desktop)
   ================================ */

/* Tablette & mobile */
@media (max-width: 992px){

  /* Cartes & entêtes */
  .dash-grid{ gap:16px; }
  .card{ padding:14px; border-radius:12px; }
  .card-head{ display:flex; flex-direction:column; align-items:stretch; gap:10px; }
  .card-head h2{ margin:0; text-align:center; }

  /* Pastilles de période (Requêtes) */
  .chip-group{ justify-content:center; }

  /* Canvas Chart — largeur fluide + hauteur adaptée mobile */
  #reqChart{
    width:100% !important;
    height:240px !important;   /* mobile-friendly, desktop inchangé */
    max-width:100%;
    display:block;
  }

  /* Bloc actions Exports (form) */
  #expActions{
    display:flex; flex-wrap:wrap; gap:10px; align-items:stretch;
  }
  #expActions .input-search{
    flex:1 1 100%;
    width:100%;
  }
  /* Boutons demi-largeur sur tablette */
  #expActions .btn,
  #expActions a.btn{
    flex:1 1 calc(50% - 5px);
    justify-content:center;
  }

  /* Grille des fichiers */
  .files-grid{ gap:12px; }
  .file-card{
    grid-template-columns:1fr;      /* empile les éléments */
    justify-items:start;
    gap:10px;
  }
  .file-card .file-icon{ font-size:22px; }
  .file-card .file-meta{ width:100%; }
  .file-card > div:last-child{
    width:100%;
    display:flex; gap:8px; align-items:center; justify-content:stretch;
  }
  .file-card a.file-cta,
  .file-card form .btn{
    flex:1 1 50%;
    justify-content:center;
  }

  /* Pagination exports */
  .exp-pager{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-top:16px;
  }
  .exp-pager .pager__right{
    width:100%;
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
  }
  .exp-pager .btn{ width:100%; }
}

/* Petits mobiles */
@media (max-width: 480px){
  /* Boutons Exports en pleine largeur */
  #expActions .btn,
  #expActions a.btn{
    flex:1 1 100%;
  }
  /* Canvas un peu plus compact */
  #reqChart{ height:210px !important; }

  /* Métadonnées fichier plus lisibles */
  .file-card .file-name{ font-size:16px; }
  .file-card .file-sub{ font-size:12px; }
}

/* Canvas Chart — corrige l’écrasement en mobile */
@media (max-width: 992px){
  #reqChart{
    width:100% !important;
    height:auto !important;
    aspect-ratio: 3 / 1; /* même ratio que 900x300 */
    display:block;
  }
}

/* ======================
   REGISTER — PRICING (Final)
   ====================== */

/* Conteneur + titre */
.pricing{
  position: relative;
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 16px;
  overflow: visible; /* pour l’ombre de la carte Pro */
}
.pricing__title{
  text-align:center;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 28px 0 14px;
  letter-spacing:.2px;
}

/* Toggle Mensuel / Annuel (pill) */
.billing-toggle{ display:flex; justify-content:center; margin: 0 0 90px; }
.billing-pill{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px;
  overflow: hidden;           /* évite tout débordement */
  min-width: 260px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.billing-opt{
  z-index: 1;
  text-align: center;
  padding: 8px 14px;
  font-size: 16px;
  color: #d9d9d9;
  cursor: pointer;
  user-select: none;
}
.billing-opt small{ font-size:12px; opacity:.9; }

/* Slider violet, parfaitement centré */
.billing-slider{
  position: absolute;
  top: 50%;
  left: 4px;
  height: calc(100% - 8px);      /* marge égale haut/bas */
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(90deg, #8a63ff, #a678ff);
  box-shadow: 0 8px 24px rgba(165,120,255,.35);
  transform: translate(0, -50%);
  transition: transform .25s ease;
}
.billing-pill.is-yearly .billing-slider{ transform: translate(100%, -50%); }

/* Grille des cartes */
.pricing__grid{
  position: relative;
  isolation: isolate;           /* contexte de pile propre */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;         /* mêmes hauteurs */
  margin-top: 6px;
}

/* Cartes */
.plan-card{
  position: relative;
  z-index: 0;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.20);
  transition: transform .25s cubic-bezier(.25,.8,.25,1),
              box-shadow .25s cubic-bezier(.25,.8,.25,1),
              border-color .25s ease;
}
.plan-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

/* Header des cartes : prix en haut à droite */
.plan-card__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:10px;
}
.plan-card__head h3{
  order:2;
  flex:1 1 100%;
  margin:13px 0 0;
  font-size:18px;
}
.plan-card__badge{
  display:inline-block;
  font-size:16px;
  letter-spacing:.4px;
  color:#e9e9e9;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:6px 10px;
  border-radius:999px;
}
.plan-card__badge--accent{
  background: linear-gradient(90deg, #8a63ff, #a678ff);
  border-color: rgba(255,255,255,.18);
}
.plan-card__price{
  order:1;
  margin-left:auto;
  display:flex;
  align-items:baseline;
  gap:4px;
}
.plan-card__price .price__value{
  font-size:38px;
  font-weight:700;
  line-height:1;
  transition: opacity .12s ease;
}
.price__period{ color:#bfbfbf; font-size:14px; }

/* Liste de features */
.plan-card__list{
  margin:8px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.plan-card__list li{
  display:flex;
  gap:4px;
  line-height:1.4;
  position:relative;
  padding-left:24px;
}
.plan-card__list li::before{
  content:"✔";
  position:absolute;
  left:0; top:0;
  font-weight:700;
  opacity:.9;
}

/* CTA */
.plan-card__foot{
  margin-top:auto;
  display:flex;
  justify-content:center;
}

/* ——— Mise en avant de la carte Pro (opaque + chevauchement + hover) ——— */
.plan-card--pro{
  z-index:10;                                   /* au-dessus */
  transform: scale(1.10) translateY(-12px);     /* taille + léger décalage */
  background:
    linear-gradient(180deg, rgba(165,120,255,.10), rgba(255,255,255,.03)),
    #141416;                                    /* couche OPAQUE dessous */
  border-color: rgba(165,120,255,.50);
  box-shadow: 0 0 48px rgba(165,120,255,.45),
              0 8px 20px rgba(0,0,0,.35);
}
.pricing__grid .plan-card:hover{ z-index:1; }   /* les autres restent dessous */
.plan-card--pro:hover{
  z-index:12;
  transform: scale(1.10) translateY(-20px);     /* effet vers le haut */
  box-shadow: 0 0 56px rgba(165,120,255,.50),
              0 10px 24px rgba(0,0,0,.40);
}

/* Note */
.pricing__note{ text-align:center; margin-top:12px; }

/* Responsive */
@media (max-width: 992px){
  .pricing{ margin-top:36px; }
  .pricing__grid{ grid-template-columns:1fr; }
  .plan-card--pro{
    transform:none;
    z-index:0;
    box-shadow: 0 12px 28px rgba(165,120,255,.30);
  }
}

/* Petits écrans : prix revient à gauche pour éviter les collisions */
@media (max-width: 600px){
  .plan-card__head{ flex-direction:column; align-items:flex-start; }
  .plan-card__price{ margin-left:0; }
}

/* Petits écrans : prix en haut à gauche + titre sous le badge et au-dessus des fonctionnalités */
@media (max-width: 600px){
  .plan-card__head {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  /* Prix en haut à gauche */
  .plan-card__price {
    order: 1;
    margin-left: 0;
    flex: 0 0 auto;
  }

  /* Badge en deuxième position */
  .plan-card__badge {
    order: 2;
    flex: 0 0 auto;
    margin-top: 4px;
  }

  /* Titre juste après le badge, donc avant la liste */
  .plan-card__head h3 {
    order: 3;
    flex: 1 1 100%;
    margin: 12px 0 0;
  }
}
/* Désactiver le hover de la carte Pro sur le responsive */
@media (max-width: 992px){
  .plan-card--pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 56px rgba(165, 120, 255, .50), 0 10px 24px rgba(0, 0, 0, .40);
  }
}
@media (max-width: 992px){
  .billing-toggle {
    margin-bottom: 40px; /* ou moins si tu veux encore plus compact */
  }
}

.flash {
  text-align: center;
  margin-bottom: 14px;
  opacity: 0;                      /* invisible par défaut */
  transition: opacity 0.6s ease;   /* transition entrée/sortie */
}
.flash.show {
  opacity: 1;                      /* devient visible */
}
.flash-success { color: #a7f3d0; }
.flash-error   { color: #fca5a5; }

/* ——— Normalisation des tailles de police des boutons (exports) ——— */
.btn,
.file-cta {
  font-size: 14px;      /* même taille partout */
  line-height: 1;       /* évite les variations de hauteur visuelle */
}

/* Optionnel : s'assurer que tous ces boutons ont la même hauteur/padding */
.btn,
.file-cta {
  height: 40px;
  padding: 0 14px;
}
