@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:#000000; color:#e5e5e5; margin:0; overflow-x:hidden; }
input,button,select,textarea{ font-family:inherit; }

/* Global field focus styles (match contact page) */
:root{
  --focus-border: rgba(165,120,255,.70);
  --focus-shadow: rgba(165,120,255,.18);
  --field-bg: #151518;
  --field-bg-focus: #121215;
  --field-border: rgba(255,255,255,.14);
  --field-radius: 12px;
  /* Desktop width for search area (was wider before) */
  --search-width: 900px;
}

/* Ensure in-page anchors (#...) aren't hidden under sticky header/promotions */
[id]{
  /* promo banner (fixed) + sticky navbar height measured via --nav-height */
  scroll-margin-top: calc(var(--promo-height, 0px) + var(--nav-height, 60px));
}

/* Apply violet focus ring to text inputs, textareas and selects */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.input-auth:focus,
.input-search:focus,
.input:focus,
.textarea:focus{
  outline: none !important;
  box-shadow: 0 0 0 3px var(--focus-shadow);
  border-color: var(--focus-border) !important;
}

/* Subtle animated halos background (opt-in via .halo-bg element) */
.halo-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(24px); /* softer, more diffuse glow */
  --halo1: rgba(91,66,243,.32);   /* indigo */
  --halo2: rgba(159,68,211,.30);  /* violet */
  --halo3: rgba(129,140,248,.22); /* soft indigo */
}

/* Spots are injected by JS so we can keep motion continuous across pages */
.halo-spot{
  position:absolute;
  left:0; top:0;
  width: 60vw; height: 60vw; /* default; JS updates */
  border-radius:50%;
  will-change: transform;
  /* softer falloff to make halos more diffuse */
  background: radial-gradient(closest-side, var(--color, rgba(91,66,243,.35)) 0%, transparent 82%);
}
.halo-1{ --color: var(--halo1); }
.halo-2{ --color: var(--halo2); }
.halo-3{ --color: var(--halo3); }

@media (prefers-reduced-motion: reduce){
  .halo-spot{ display:none; }
}

/* Ensure content sits above halos when used */
.main-content{ position: relative; z-index: 1; }

/* NAV */
.main-nav{
  display:flex; justify-content:space-between; align-items:center;
  padding:15px 40px;
  background:rgba(0, 0, 0, 0.16);
  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:14px; list-style:none; margin:0; padding:0; align-items:center; }
.main-nav ul li a{ color:#ccc; text-decoration:none; font-weight:500; transition:color .2s; font-size: 19px; }
.main-nav ul li a:hover{ color:#fff; }
.main-nav > ul > li > a.active{ color:#fff; position:relative; }
.main-nav > ul > li > a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-8px; height:2px; border-radius:2px;
  background:linear-gradient(135deg,#5b42f3,#9f44d3); }

/* Encadrer UNIQUEMENT l'item actif (pills on .active only) */
#primary-menu a[data-nav],
#primary-menu a[href="/affiliation"]{
  position:relative; display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:10px; line-height:1; color:#d8d8e9;
  border:1px solid transparent; /* pas d'encadrement par défaut */
  background: transparent;       /* pas de fond par défaut */
  box-shadow: none;              /* pas d'ombre par défaut */
  overflow:hidden; transition: color .2s, border-color .2s, background .2s, box-shadow .25s;
}
/* Hover: uniquement la couleur du texte, sans cadre */
#primary-menu a[data-nav]:hover,
#primary-menu a[href="/affiliation"]:hover{
  color:#fff; border-color: transparent; background: transparent; box-shadow:none;
}
/* Actif: appliquer le style pill/encadré */
#primary-menu a[data-nav].active,
#primary-menu a[href="/affiliation"].active{
  color:#fff; border-color:rgba(255,255,255,.30); background:rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 20px rgba(0,0,0,.25);
}
/* Glossy reflection overlay uniquement quand actif */
#primary-menu a[data-nav].active::after,
#primary-menu a[href="/affiliation"].active::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 55%);
  mix-blend-mode: screen; opacity:.25;
}
/* Remove underline indicator for pills */
.main-nav > ul > li > a[data-nav].active::after,
.main-nav > ul > li > a[href="/affiliation"].active::after{ display:none; }

/* Desktop: center the primary menu */
@media (min-width: 993px){
  .main-nav #primary-menu{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  /* Ensure language switcher doesn't push items on desktop */
  .main-nav .nav-list .lang-switch{ margin-left: 0 !important; }
  /* Right side actions (desktop) */
  .main-nav .nav-right{
    position:absolute;
    right:40px;
    display:flex; align-items:center; gap:12px;
    top:50%; transform: translateY(-50%); /* vertically center the group */
  }
  /* Make login button match primary menu pill height */
  .main-nav .nav-right .nav-login-btn{
    height:auto; /* match pills which are padding-based */
    padding:8px 14px; /* same as #primary-menu pills */
    line-height:1;
    font-size:19px; /* align with primary links */
    display:inline-flex; align-items:center;
    font-weight:500; /* lighter than default .btn (600) */
  }
  /* Hide duplicates in centered menu on desktop */
  .main-nav #primary-menu .login-item,
  .main-nav #primary-menu .lang-switch,
  .main-nav #primary-menu .nav-credits{ display:none !important; }
  /* Language flags: vertically centered + 2px spacing */
  .main-nav .lang-switch{ display:flex; align-items:center; gap:5px !important; line-height:1; }
  .main-nav .lang-switch a{ display:inline-flex; align-items:center; }
  .main-nav .lang-switch img{ display:block; height:14px; width:20px; margin:0; vertical-align:middle; }
}

/* Welcome page: keep default filled background, retain subtle outline + transitions */
body:has(.welcome-hero) .main-nav .nav-login-btn{
  border-color: #4a465d !important; /* violet brand */
  border-width: 2px;
  /* Keep same outer height as primary pills (1px border) by compensating padding */
  padding: 7px 14px;
  color: #e9e7ff !important;
  box-shadow: none;
  text-shadow: none;
  transition: box-shadow .22s ease, border-color .18s ease, filter .18s ease, transform .06s ease;
}
body:has(.welcome-hero) .main-nav .nav-login-btn:hover,
body:has(.welcome-hero) .main-nav .nav-login-btn:focus-visible{
  filter: none; /* cancel .btn-primary brightness */
  border-color: #a78bfa !important; /* lighter violet on hover */
  box-shadow:
    0 0 0 3px rgba(124,92,255,.22),   /* soft outer ring */
    0 0 20px rgba(124,92,255,.45),    /* ambient outer glow */
    inset 0 0 12px rgba(124,92,255,.35); /* inner glow (visible since transparent) */
  outline: none;
}

/* Affiliation page: add the same luminous halo on hover/focus */
body:has(.aff-hero2) .main-nav .nav-login-btn{
  transition: box-shadow .22s ease, border-color .18s ease, filter .18s ease, transform .06s ease;
}
body:has(.aff-hero2) .main-nav .nav-login-btn:hover,
body:has(.aff-hero2) .main-nav .nav-login-btn:focus-visible{
  filter: none;
  border-color: #a78bfa !important;
  box-shadow:
    0 0 0 3px rgba(124,92,255,.22),
    0 0 20px rgba(124,92,255,.45),
    inset 0 0 12px rgba(124,92,255,.35);
  outline: none;
}

/* Layout */
.main-content{ padding:60px 20px; max-width:1100px; margin:auto; }

/* Welcome page: trim extra bottom space under footer */
body:has(.welcome-hero) .main-content{ padding-bottom:0; }
@media (max-width: 600px){ body:has(.welcome-hero) .main-content{ padding-bottom:0; } }

/* Home hero: vertically center the search block on homepage when idle */
.home-hero.is-centered{
  /* account for sticky nav (60px) and optional promo banner height */
  min-height: calc(70vh - 60px - var(--promo-height, 0px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@supports (height: 100dvh){
  .home-hero.is-centered{ min-height: calc(70dvh - 60px - var(--promo-height, 0px)); }
}
h1{ font-weight:500; font-size:32px; margin:0 0 30px; text-align:center; }

/* Search wrap */
.search-wrap{ width:100%; max-width: var(--search-width); margin:0 auto -15px; }
.search-bar{ display:flex; gap:12px; align-items:flex-start; width:100%; }
.search-bar > *{ min-width:0; }
.search-bar input[type="text"], .search-bar .chip-btn, .search-bar .submit-btn{ height:44px; border-radius: var(--field-radius); }
.search-bar input[type="text"]{ flex:1 1 0%; min-width:0; padding:12px 16px; border:1px solid var(--field-border); background: var(--field-bg); color:#f0f0f0; transition:background .25s, border-color .15s, box-shadow .15s; }
.search-bar input[type="text"]::placeholder{ color:#aaa; }
/* Effet uniquement au clic (focus) */
.search-bar input[type="text"]:focus{
  background: var(--field-bg-focus);
  border-color: var(--focus-border) !important;
  box-shadow: 0 0 0 3px var(--focus-shadow);
  outline: none;
}

/* Autosuggest tag mode: prevent double frames inside inputs */
.search-bar .as-tagwrap{ border:1px solid var(--field-border); background: var(--field-bg-focus) !important; border-radius: var(--field-radius); transition: background .25s, border-color .15s, box-shadow .15s; }
/* Donne le même halo au wrapper (mode tags) sur survol et focus */
.search-bar .as-tagwrap:focus-within{
  background: var(--field-bg-focus) !important;
  border-color: var(--focus-border) !important;
  box-shadow: 0 0 0 3px var(--focus-shadow) !important;
}
/* Empêche l'input interne de doubler le halo en mode tags */
.search-bar .as-tagwrap input[type="text"]:focus{ box-shadow:none !important; }

/* 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;
  -webkit-tap-highlight-color: transparent;
}
.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); }

/* Quand les options ne sont pas déroulées, harmonise avec les deux champs */
.chip-btn[aria-expanded="false"]{
  background: var(--field-bg) !important;
  border-color: var(--field-border) !important;
  color: #f0f0f0;
}

/* Rechercher */
.submit-btn{
  background: linear-gradient(135deg, #2241c5c4, #8016a3a8) !important;
  border: 1px solid #7858df !important;
  color:#fff; 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; }

/* Ensure advanced filters have the same inner width as the max results box */
#filterPanel{ display:flex; justify-content:center; }
#filterPanel .filter-row{ width:100%; max-width: var(--search-width); margin:0 auto; }

/* Desktop: match filter options box width with max results box */
@media (min-width: 993px){
  #filterPanel{ max-width: var(--search-width); margin:20px auto 24px; }
}

/* Slider box (maxPanel): centré sans changer la mise en page */
#maxPanel{ overflow: visible !important; position: relative; margin-bottom: -10px; }
#maxPanel .rubber-max-wrap{ width:100%; max-width: var(--search-width); margin:6px 10px 3px; text-align:left; display:flex; flex-direction:row; align-items:center; justify-content:center; }
#maxPanel .rubber-max-wrap .label{ min-width:80px; color:#ddd; font-weight:500; text-align:left; padding-bottom: 2px; }
#maxPanel .slider{ flex:1 1 auto; width:auto; }
#maxPanel .slider .noUi-handle .point .value{ z-index: 10; }

/* 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:22px 0 22px; }
/* Place le texte à gauche du bouton (desktop), centre le groupe */
.download-csv{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.download-csv p{ margin:0; color:#cfcfcf; }
.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, #2241c5c4, #8016a3a8) !important; border: 1px solid #7858df !important; }
.btn-primary:hover{ filter:brightness(1.08); }

/* Disabled state for all buttons */
.btn:disabled,
.btn[disabled]{
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(30%) brightness(.95);
}

/* Export CSV button: distinct background */
.download-csv .btn,
.download-csv .btn-primary{
  background: linear-gradient(135deg, #2241c5c4, #8016a3a8) !important; /* green gradient */
  border: 1px solid #7858df !important; /* light green border */
}
.download-csv .btn:hover{ filter: brightness(1.08); }

/* Export button: integrate upload-arrow animation (scoped) */
.export-btn{ display:inline-flex; align-items:center; gap:8px; }
.export-btn .upload-arrow{ --icon-color:#fff; --particle:#fff; --scale:1; display:inline-block; transform:scale(var(--scale)); }
.export-btn .upload-arrow .icon{ position:relative; width:20px; height:20px; display:inline-block; vertical-align:top; pointer-events:none; }
.export-btn .upload-arrow .icon .dot{ position:absolute; left:0; top:0; width:3px; height:3px; border-radius:50%; background:var(--particle); }
.export-btn .upload-arrow .icon .arrow, .export-btn .upload-arrow .icon .line{ position:absolute; z-index:1;  color: var(--icon-color); }
.export-btn .upload-arrow .icon .arrow{ left:9px; top:4px; width:2px; height:10px; border-radius:1px; background:var(--icon-color); transform:translateY(calc(var(--arrow-y,0) * 1px)); }
.export-btn .upload-arrow .icon .arrow::before, .export-btn .upload-arrow .icon .arrow::after{ content:""; position:absolute; left:0; top:var(--arrow-top,0); width:2px; height:6px; border-radius:1px; background:inherit; transform-origin:1px 1px; transform:rotate(var(--r, calc(var(--arrow-rotate,45) * 1deg))); }
.export-btn .upload-arrow .icon .arrow::after{ --r: calc(var(--arrow-rotate,45) * -1deg); }
.export-btn .upload-arrow .icon .line{ left:0; top:6px; width:20px; height:20px; fill:none; stroke:var(--icon-color); stroke-width:2; stroke-linejoin:round; stroke-linecap:round;  color: var(--icon-color); }

/* ===== Clearable input (used on dashboard exports search) ===== */
.input-clear-wrap{ position: relative; display: inline-flex; align-items: center; }
.input-clear-wrap .input-search{ padding-right: 36px; }
.clear-input-btn{
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: none;
  align-items: center; justify-content: center;
  background: transparent; color: #cfcfcf; border: none;
  cursor: pointer; line-height: 1; font-size: 18px;
  transition: color .18s ease, transform .06s ease;
}
.clear-input-btn{ transform: translateY(-54%); }
.clear-input-btn:hover{ color:#ffffff; }
.clear-input-btn:active{ transform: translateY(-50%) scale(.96); }


/* 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:0; }
.file-rowwrap{ overflow:hidden; margin-bottom:10px; }
.file-rowwrap{ transition: height .30s cubic-bezier(.2,.6,.2,1), margin-bottom .30s cubic-bezier(.2,.6,.2,1); }
.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;
  transition: background .2s ease, border-color .2s ease;
}
.file-card:hover{ background:rgba(255,255,255,.07); }
/* removal animation */
.file-card.removing{
  overflow: hidden;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
  transition:
    opacity .22s linear,
    max-height .30s cubic-bezier(.2,.6,.2,1);
}
.file-icon{ font-size:20px; }
.file-meta{ min-width:0; overflow:hidden; }
.file-name{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-sub{ color:#b7b7b7; font-size:13px; white-space:nowrap; }

/* 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, #2241c5c4, #8016a3a8) !important;
  border: 1px solid #7858df !important;
  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; }
.files-grid .empty-state{ margin-top: 0; }

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

/* ====== Toast de téléchargement ====== */
.toast-wrap{
  position: fixed;
  /* ancrage bas‑droite: TOAST à gauche du bouton Discord */
  /* Desktop Discord: right=25px, size=70px → offset = 25 + 70 + 16 gap = 111px */
  right: calc(max(16px, env(safe-area-inset-right)) + 25px + 70px + 16px) !important;
  /* Aligne verticalement près du bas (Discord bottom=25px). 16 + 9 ≈ 25 */
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 9px) !important;
  top: auto !important;
  left: auto !important;

  /* Ensure toasts appear above floating contact button */
  z-index: 100500; /* higher than #ts-discord (99999) */
  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);
  position: relative;
  z-index: 100510; /* ensure toast card is above other fixed UI */
}

/* ====== Reveal animations (staggered) ====== */
.reveal{ opacity:0; transform: translateY(12px); will-change: opacity, transform;
  transition: opacity .70s cubic-bezier(.2,.6,.2,1), transform .70s cubic-bezier(.2,.6,.2,1); }
.reveal.is-in{ opacity:1; transform: none; }
/* Avoid transforms on heavy media wrappers (video, feature cards) to
   prevent clipping/centering bugs on some mobile browsers. */
.video-frame.reveal,
.feature-card.reveal{ transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* Disable scroll-in reveal animations on Welcome */
body:has(.welcome-hero) .reveal{
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* Also prevent per-card/star/illustration enter animations on Welcome */
body:has(.welcome-hero) .review-card .stars svg{
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
body:has(.welcome-hero) .feature-card .feat-ico-large img{
  animation: none !important;
}

.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{
    /* Mobile Discord: right=20px, size=60px → offset = 20 + 60 + 12 gap = 92px */
    left: auto !important;
    right: calc(max(12px, env(safe-area-inset-right)) + 20px + 60px + 12px) !important;
    /* 12 + 8 ≈ 20 */
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 8px) !important;
    align-items: flex-end;
  }
  .toast{ width: min(92vw, 340px); }
}

/* =========================================================
   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: var(--field-radius); padding:12px 16px;
  border:1px solid var(--field-border);
  background: var(--field-bg);
  color:#f0f0f0; transition:background .25s, border-color .15s, box-shadow .15s;
}
.input-search::placeholder{ color:#aaa; }
.input-search:focus{ background: var(--field-bg-focus); outline:none; }

/* Liens "Tarifs" / "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: var(--field-radius);
  padding: 12px 16px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: #f0f0f0;
  transition: background .25s, border-color .15s, box-shadow .15s;
}

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

.input-auth:focus { background: var(--field-bg-focus); outline: none; }

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

#particles{
  position: absolute;          /* défile avec la page (zéro latence) */
  top: 0; bottom: 0;           /* pleine hauteur du contenu */
  /* Full‑bleed fiable depuis un conteneur centré */
  left: calc(50% - 50vw);      /* aligne le bord gauche sur le viewport */
  width: 100vw;                /* largeur = viewport */
  max-width: none;             /* ignore max-width du parent */
  z-index: -1;                 /* place VRAIMENT sous tout le contenu */
  opacity: .65;
  filter: saturate(5.15);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding: 40px 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;
  transition: box-shadow .2s, border-color .2s, background-color .2s, transform .06s;
  box-shadow: 0 0 14px rgba(165,120,255,.35);
}
/* Make pills work as inline CTA links with a trailing animated arrow */
.pill--link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  cursor:pointer;
}
.pill--link::after{ content: none; }

/* Eyebrow CTA: nicer chevron inside a soft circle */
.cta-pill{ gap:8px; padding-right:8px; }
.cta-pill .chev{
  display:inline-grid; place-items:center;
  width:26px; height:26px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.16);
  color:#e9e7ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 18px rgba(127,91,255,.20);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.cta-pill:hover .chev,
.cta-pill:focus-visible .chev{
  transform: translateX(3px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.26);
  color:#fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 24px rgba(127,91,255,.28);
}
.cta-pill .chev svg{ display:block; width:14px; height:14px; margin-left:2px; }
@media (prefers-reduced-motion: reduce){ .cta-pill .chev{ transition:none; } }
.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: 1200px;
  margin: 40px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  /* Force proper clipping on mobile WebKit/Android when GPU layers are involved */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.video-frame video{
  width: 100%;
  display: block;
  background: #000;
  pointer-events: none;
  /* Ensure rounded corners are honored across mobile browsers */
  border-radius: inherit;
  /* Nudge some mobile engines to respect clipping */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Ensure leftover play button markup (if any) stays hidden after revert */
.video-play-btn{ display:none !important; }

/* Removed play button overlay styles */

/* ---------- 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; }

/* Mobile-only: narrower width for the pricing note under the heading */
@media (max-width: 480px){
  .pricing-head + p.section-sub.section-sub--lg{ max-width:200px; }
}

/* ---------- 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{
  position: relative;
  overflow: hidden;
  /* Same glass gradient as review cards */
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(107, 235, 142, .06), transparent 40%),
    radial-gradient(120% 100% at 100% 0%, rgba(107, 235, 142, .06), transparent 40%),
    rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 16px;
  display:flex; flex-direction:column; gap:8px;
  box-shadow: 0 14px 36px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.feature-card h3{ margin:2px 0 2px; font-size:23px; }
.feature-card p{ margin:0; color:#cfcfcf; font-size: 16px; }
.feature-card .feat-copy p + p{ margin-top: 6px; }
.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);
}

/* One-per-row list layout for features */
.feature-list{ grid-template-columns: 1fr !important; gap: 22px; }
.feature-card--row{ flex-direction: row; align-items: center; gap: 12px; }
.feature-card--rev{ flex-direction: row-reverse; }
.feature-card--row .feat-copy{ flex:1; display:flex; flex-direction:column; gap:8px; }

/* Framed style for feature rows (glass card) */
/* Unframed variant for feature rows: remove card frame and center content */
.feature-list .feature-card{
  background: transparent !important;   /* remove glass background */
  border: 0 !important;                 /* remove borders */
  box-shadow: none !important;          /* remove outer/inner shadows */
  backdrop-filter: none !important;     /* no blur */
  border-radius: 0 !important;          /* no rounded frame */
  padding: 10px 0;                      /* vertical spacing only */
  margin: 0 auto;                       /* keep row centered */
}

/* Center the illustration and the copy block */
.feature-card--row{ justify-content: center; gap: 34px; }
.feature-card--row .feat-copy{ 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start;    /* left-align content block */
  text-align: left;           /* left-align text */
  max-width: 560px;
}
.feature-card--row .feat-ico-large{ margin: 0 auto; }

/* Improve readability on dark background (slightly brighter copy) */
.feature-list .feature-card .feat-copy h3{
  /* Gradient text for nicer aesthetic than plain white */
  background:linear-gradient(135deg,#b991ff 0%, #7c5cff 60%, #a579ff 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 0 transparent; /* cancel previous white text shadow if any */
}
.feature-list .feature-card .feat-copy p{ color:#e2e2ee; line-height:1.55; text-shadow: 0 1px 2px rgba(0,0,0,.45); }

/* Subtle accent underline for feature titles */
.feature-list .feature-card .feat-copy h3::after{
  content:""; display:block; height:3px; width:54px; margin-top:8px;
  border-radius:3px;
  /* Palette cohérente (violet du site) */
  background: linear-gradient(90deg, #8a63ff, #a678ff);
  opacity:.75;
}

/* Larger feature icons (no framed background) */
.feat-ico-large{ display:block; margin:0; flex:0 0 auto; }
.feat-ico-large img, .feat-ico-large object{ width: min(450px, 45vw); height:auto; display:block; }
@media (max-width: 1000px){
  .feat-ico-large img, .feat-ico-large object{ width: min(380px, 45vw); }
}
@media (max-width: 600px){
  .feature-card--row{ flex-direction: column; align-items:center; }
  .feature-card--rev{ flex-direction: column; }
  .feature-card--row{ gap:12px; }
  .feat-ico-large img, .feat-ico-large object{ width: min(300px, 80vw); }
  /* Re-center illustration explicitly to counter cascade resets */
  .feature-card--row .feat-ico-large{ margin-left:auto !important; margin-right:auto !important; }
}

/* --- Mobile-only fixes: rounded video and framed feature rows --- */
@media (max-width: 900px){
  /* Safeguard rounded corners for video on mobile (iOS/WebKit quirks) */
  .video-frame{ border-radius:14px; overflow:hidden; }
  /* Extra clipping path to enforce rounding when overflow is ignored */
  @supports (clip-path: inset(0 round 14px)){
    .video-frame video{ clip-path: inset(0 round 14px); }
  }

  /* Re-introduce framed cards for the 4 feature rows on mobile */
  .feature-list .feature-card{
    background:
      radial-gradient(120% 100% at 0% 0%, rgba(107, 235, 142, .06), transparent 40%),
      radial-gradient(120% 100% at 100% 0%, rgba(107, 235, 142, .06), transparent 40%),
      rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.05) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    margin: 0; /* let grid gaps define spacing */
  }
  /* Restore standard text colors inside framed cards on mobile */
  .feature-list .feature-card .feat-copy h3{
    background: none !important;
    -webkit-background-clip: initial !important; background-clip: initial !important;
    color: #e7e7ff !important;
    text-shadow: none !important;
  }
  .feature-list .feature-card .feat-copy p{
    color:#cfcfcf !important;
    text-shadow: none !important;
  }
}

/* ---------- Feature illustrations: animations & interactions ---------- */
.feat-ico-large img,
.feat-ico-large object{
  will-change: transform, filter;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  /* Plus lumineux et lisible par défaut */
  filter: brightness(1.18) contrast(1.06) saturate(1.06);
}

/* Keep gentle idle motion for raster fallbacks (if any) */
.feat-ico-large img{
  animation: icoFloat 7s ease-in-out infinite, icoGlow 5.5s ease-in-out infinite;
  animation-play-state: paused;
}
.feature-card.reveal.is-in .feat-ico-large img{ animation-play-state: running; }
.feature-card:nth-child(2) .feat-ico-large img{ animation-duration: 6.2s, 5s; animation-delay: .2s, .3s; }
.feature-card:nth-child(3) .feat-ico-large img{ animation-duration: 7.6s, 6.2s; animation-delay: .1s, .4s; }
.feature-card:nth-child(4) .feat-ico-large img{ animation-duration: 6.8s, 5.2s; animation-delay: .15s, .2s; }

@keyframes icoFloat{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-10px) rotate(.25deg); }
}
@keyframes icoGlow{
  0%,100%{ filter: drop-shadow(0 0 0 rgba(165,120,255,0)); }
  50%{ filter: drop-shadow(0 0 16px rgba(165,120,255,.22)); }
}
/* Retrait du shadow visible et hover plus soft: simple scale */
.feat-ico-large object{ transform-origin:center; }
.feature-card:hover .feat-ico-large img,
.feature-card:focus-within .feat-ico-large img,
.feature-card:hover .feat-ico-large object,
.feature-card:focus-within .feat-ico-large object{
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce){
  .feat-ico-large img{ animation: none !important; }
}

/* Reduce side spacing around illustration */
.feature-card--row .feat-ico-large{ margin-inline: 0; }
.feature-card--row:not(.feature-card--rev) .feat-ico-large{ margin-right: 0; }
.feature-card--row.feature-card--rev .feat-ico-large{ margin-left: 0; }

/* ---------- FAQ ---------- */
.faq{ max-width:900px; margin: 6px auto 0; display:grid; gap:10px; }
/* Harmonise FAQ items with review cards background */
.faq-item{
  position: relative;
  overflow: hidden;
  border-radius:12px;
  /* same layered background used on .review-card in welcome.html */
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(107, 235, 142, .06), transparent 40%),
    radial-gradient(120% 100% at 100% 0%, rgba(107, 235, 142, .06), transparent 40%),
    rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 36px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.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; }

/* Welcome page – subtle glow on main titles */
body:has(.welcome-hero) .hero-title{
  /* stronger, white-leaning glow for the hero */
  text-shadow: 0 0 14px rgba(255,255,255,.1), 0 0 36px rgba(255,255,255,.1);
}
body:has(.welcome-hero) .section-title,
body:has(.welcome-hero) .problem-title{
  /* bright but softer than the hero */
  text-shadow: 0 0 10px rgba(255,255,255,.2), 0 0 26px rgba(255,255,255,.2);
}

.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, 0 0 14px rgba(165,120,255,.35);
  transition: box-shadow .2s, border-color .2s, background-color .2s, transform .06s;
}

/* Glow effect on pills */
.pill:hover,
.pill:focus-visible{
  border-color: var(--focus-border);
  box-shadow: 0 0 14px rgba(165,120,255,.35);
  outline: none;
}
.pill--outline:hover,
.pill--outline:focus-visible{
  border-color: var(--focus-border);
  box-shadow: 0 0 0 3px rgba(165,120,255,.10) inset, 0 0 14px rgba(165,120,255,.35);
  outline: none;
}

/* Vidéo : halo + bordure stylée */
.video-frame--glow{
  position: relative;
  /* Bordure visible en violet doux */
  border: 1px solid rgba(165,120,255,.34);
  /* Ombre ambiante + fin liseré intérieur + léger halo externe */
  box-shadow:
    0 20px 60px rgba(127,91,255,.18),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 0 3px rgba(165,120,255,.12);
}
.video-frame--glow::after{
  /* Reflet glossy très subtil sur le haut */
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
  opacity:.25;
}

/* ---------- Problem compare (Sans vs Avec) ---------- */
.problem-section{ max-width:1100px; margin: 10px auto 0; padding: 0 16px; }
.problem-eyebrow{ text-align:center; color:#ff6b6b; font-weight:800; letter-spacing:.16em; font-size:12px; opacity:.95; }
.problem-title{ text-align:center; font-size:45px; margin:6px 0 4px; font-weight:800; }
.problem-sub{ text-align:center; color:#cfcfcf; margin:0 auto 50px; max-width:760px; font-size:19px; margin-top:18px; margin-bottom:60px; }

.problem-compare{
  display:grid; grid-template-columns: 1.2fr 1fr; gap:20px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px; padding:18px; margin-top:16px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.05);
}
.problem-compare--image{ display:block; padding:0; background:transparent; border:none; box-shadow:none; }
.problem-compare--image .problem-illustration{
  display:block;
  width:170%;
  max-width:none;
  height:auto;
  margin-left:-35%;
  margin-right:-35%;
  border-radius:0;
}
/* French-specific sizing for the problem illustration */
html[lang="fr"] .problem-compare--image .problem-illustration[src$="problem_fr.svg"],
html[lang="fr"] .problem-compare--image .problem-illustration[data-svg-problem="fr"]{
  width:140%;
  margin-left:-20%;
  margin-right:-20%;
}
.problem-col-title{ font-weight:800; color:#e7e7ff; margin:6px 0 12px; }
.problem-col-title .brand{ color:#a78bfa; }
.problem-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.problem-list li{ display:flex; align-items:center; gap:10px; color:#d0d0d7; font-size:16px; }
.ico{ width:22px; height:22px; border-radius:999px; position:relative; display:inline-block; flex-shrink:0; }
.ico::before, .ico::after{ content:""; position:absolute; left:50%; top:50%; width:12px; height:2px; border-radius:2px; transform-origin:center; }
.ico--bad{ background:rgba(255,80,80,.10); border:1px solid rgba(255,80,80,.45); }
.ico--bad::before, .ico--bad::after{ background:#ff6b6b; }
.ico--bad::before{ transform: translate(-50%,-50%) rotate(45deg); }
.ico--bad::after { transform: translate(-50%,-50%) rotate(-45deg); }

.benefits-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; align-content:start; }
.benefit-card{
  display:flex; gap:10px; align-items:flex-start;
  background: rgba(255,255,255,.96);
  color:#0f0f14;
  border-radius:12px; padding:12px 12px; border:1px solid rgba(0,0,0,.09);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform-origin: center;
}
.benefit-card:nth-child(1){ transform: rotate(-2deg); }
.benefit-card:nth-child(2){ transform: rotate(2deg); }
.benefit-card:nth-child(3){ transform: rotate(-1.3deg); }
.benefit-card:nth-child(4){ transform: rotate(1.6deg); }
.benefit-card:nth-child(5){ transform: rotate(-1deg); }
.benefit-card:nth-child(6){ transform: rotate(1.2deg); }
.benefit-ico{ width:20px; height:20px; border-radius:999px; border:2px solid #22c55e; position:relative; margin-top:2px; flex-shrink:0; }
.benefit-ico::after{ content:""; position:absolute; left:4px; top:2px; width:8px; height:12px; border-right:3px solid #22c55e; border-bottom:3px solid #22c55e; transform: rotate(45deg); border-radius:2px; }
.benefit-title{ font-weight:800; font-size:15px; color:#0b0b0f; margin-bottom:2px; }
.benefit-desc{ font-size:13px; color:#2b2b38; line-height:1.35; }

@media (max-width: 900px){
  .problem-compare{ grid-template-columns: 1fr; }
  .benefits-grid{ grid-template-columns: 1fr; }
  .benefit-card{ transform:none !important; }
  /* SVG image: keep within viewport on small screens */
  .problem-compare--image .problem-illustration{ width:100%; margin:0; }
  /* Keep same mobile behavior for French version */
  html[lang="fr"] .problem-compare--image .problem-illustration[src$="problem_fr.svg"],
  html[lang="fr"] .problem-compare--image .problem-illustration[data-svg-problem="fr"]{ width:100%; margin:0; }
}

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

/* 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; }
}

/* ---------- Mobile-only line breaks helper ---------- */
.br-mobile{ display:none; }
@media (max-width: 600px){
  /* Requested responsive sizes */
  .hero-inner h1{ font-size:45px; }
  .hero-sub--lg{ font-size:19px; }
  .pill{ font-size:14px; }
  /* Turn helper spans into real line breaks on mobile */
  .br-mobile{ display:inline; }
  .br-mobile::after{ content:"\A"; white-space:pre; }
}

/* ===================================================== */
/*              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;
    padding-bottom: 40px; /* espace respirant sous le footer */
}

/* 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) */
#howitworks, #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; }

  /* Bouton burger — reset total + style */
  .burger{
    all:unset; display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:12px;
    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; }

  /* Fallback: si pour une raison X aria-expanded ne change pas,
     synchroniser l’icône avec l’état .nav-open du conteneur */
  .main-nav.nav-open .burger .burger-bar:nth-child(1){ transform: translate(-50%, 7px) rotate(45deg) !important; }
  .main-nav.nav-open .burger .burger-bar:nth-child(2){ opacity:0 !important; }
  .main-nav.nav-open .burger .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(0,0,0,1);
    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;
    padding-top:12px;
  }
  .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; border-radius:10px;
    color:#e5e5e5; text-decoration:none !important;
    text-align: center;
  }
  /* 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:#fff !important; font-weight:600;
    /* background:rgba(165,120,255,.10); */
  }
  /* Hide right-side actions on mobile (use the menu entries instead) */
  .main-nav .nav-right{ display:none !important; }
}

/* ===============================
   NAV (Mobile): flags + login row
   =============================== */
@media (max-width: 992px){
  /* Switch nav list to grid so last two items (flags, login) share a row */
  .main-nav .nav-list{
    display:grid;
    grid-template-columns: 1fr auto; /* flags on the left, login button on the right */
    gap: 6px 10px;
    align-items: center;            /* align items on the same row baseline */
    grid-auto-flow: dense;          /* allow later items (flags) to backfill same row as login */
  }
  /* By default, every item spans full width */
  .main-nav .nav-list > li{ grid-column: 1 / -1; }
  /* Make flags occupy the left cell of the last row */
  .main-nav .nav-list > li.lang-switch{
    grid-column: 1 / 2;
    display:flex; align-items:center; gap:8px;
    margin-left: 0 !important; /* override inline margin-left:auto */
    justify-self: start;
  }
  /* Place login CTA on the right cell, same row as flags (immediately under Affiliation) */
  .main-nav .nav-list > li.login-item{
    grid-column: 2 / 3;
    display:flex; justify-content:flex-end; align-items:center; justify-self: end;
    order: 10; /* after other items so it fills the hole on the same row as flags (dense) */
  }
  .main-nav .nav-list > li.lang-switch{
    order: 9;  /* just before login */
  }

  /* Give the login link the same look as desktop (.btn.btn-primary) with glow */
  .main-nav .nav-list > li.login-item a{
    width:auto; display:inline-flex; align-items:center; justify-content:center;
    height:36px; padding:0 16px; border-radius:12px; font-weight:600; text-decoration:none !important;
    color:#fff !important; background: linear-gradient(135deg, #2241c5c4, #8016a3a8) !important; border: 1px solid #7858df !important;
    box-shadow: 0 8px 22px rgba(124,92,255,.28), inset 0 0 0 1px rgba(255,255,255,.10);
    transition: box-shadow .18s ease, filter .18s ease, transform .06s ease, border-color .18s ease;
  }
  .main-nav .nav-list > li.login-item a:hover,
  .main-nav .nav-list > li.login-item a:focus-visible{
    filter:brightness(1.08);
    box-shadow:
      0 0 0 3px rgba(124,92,255,.22),
      0 12px 28px rgba(124,92,255,.40),
      inset 0 0 10px rgba(255,255,255,.12);
    outline: none;
    border-color: #8f74ff !important;
  }
}

/* ==============================================
   Welcome: smoother responsive for problem SVGs
   ============================================== */
/* Tablet range: reduce oversize so images don't get cropped */
@media (max-width: 1200px) and (min-width: 901px){
  .problem-compare--image .problem-illustration{ width:120%; margin-left:-10%; margin-right:-10%; height:auto; max-width:none; }
  html[lang="fr"] .problem-compare--image .problem-illustration[src$="problem_fr.svg"],
  html[lang="fr"] .problem-compare--image .problem-illustration[data-svg-problem="fr"]{ width:112%; margin-left:-6%; margin-right:-6%; }
}

/* New tablet/desktop-narrow range: 1201–1380px */
@media (min-width: 1201px) and (max-width: 1380px){
  .problem-compare--image .problem-illustration{
    width:140%;
    margin-left:-20%;
    margin-right:-20%;
    height:auto;
    max-width:none;
  }
  /* Fine tune FR artwork (starts larger by default) */
  html[lang="fr"] .problem-compare--image .problem-illustration[src$="problem_fr.svg"],
  html[lang="fr"] .problem-compare--image .problem-illustration[data-svg-problem="fr"]{
    width:130%;
    margin-left:-15%;
    margin-right:-15%;
  }
}

/* ===========================
   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;
  }
  #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;
    margin: 0; /* éviter cumul gap + margin */
    transform: none !important; /* évite micro-saut en fin d'anim */
  }
  /* Responsive-only: remove default panel margins */
  .filter-panel { margin: 0; }

  /* Assure que le bouton Rechercher est en dessous de Filtrer sur mobile */
  #btnSearch {
    order: 5;
    margin-bottom:10px;
  }
  #filterPanel.open {
    max-height: 600px; /* au lieu de 140px */
    display: block;    /* présent dans le flux quand ouvert */
    transform: none !important; /* pas de translateY */
  }
  #filterPanel:not(.open) {
    max-height: 0;
    padding: 0 !important;
    /* fermé par défaut, évite le double gap initial */
    display: none;
    /* pas de !important ici pour permettre au JS d'ajuster margin-bottom pendant l'anim */
    margin: 0;
    border: 0 !important;
    box-shadow: none !important;
  }

  #btnFilter { margin-top: 10px; }

  .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{ flex-direction: column; align-items: stretch; text-align:center; }
  .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; }
}

/* Harmonise spacing and text for Export button (mobile) */
@media (max-width: 992px){
  .download-csv{ margin: 10px 0 10px !important; }
  .download-csv .btn{ height:44px; font-size:15px !important; margin-bottom: 7px; }
}

/* Desktop: control Export spacing based on filter panel state */
@media (min-width: 993px){
  /* Adoucit le passage entre -14px et 14px pour éviter l'à-coup */
  .download-csv{ transition: margin-top .26s ease; }
  /* Harmonise les marges au-dessus et en dessous du bloc Export,
     que le panneau filtres soit ouvert ou fermé. */
  .search-wrap:has(#filterPanel:not(.open)) ~ .download-csv,
  .search-wrap:has(#filterPanel.open) ~ .download-csv{
    margin: 22px 0 22px !important;
  }

  /* Cas AJAX: le bloc résultats est injecté dans #ajaxResults.
     On applique les mêmes ajustements de marge en tenant compte
     de l’état du panneau de filtres pour éviter le grand espace
     au-dessus du texte "Satisfait de votre…". */
  .search-wrap:has(#filterPanel:not(.open)) ~ #ajaxResults .download-csv{
    margin: 0 0 22px !important;
  }
  .search-wrap:has(#filterPanel.open) ~ #ajaxResults .download-csv{
    margin: 14px 0 22px !important;
  }
  /* Conserve aussi l’ancien ciblage direct (sans #ajaxResults) */
  .search-wrap:has(#filterPanel:not(.open)) ~ .download-csv{
    margin: -14px 0 22px !important;
  }
  .search-wrap:has(#filterPanel.open) ~ .download-csv{
    margin: 14px 0 22px !important;
  }
}

/* Désactive les effets :hover sur écrans tactiles (évite le violet persistant) */
@media (hover: none), (pointer: coarse){
  /* ne neutralise le hover tactile QUE si non actif */
  .chip-btn:hover:not(.active){ color: inherit; border-color: rgba(255,255,255,.10); }
  .chip-btn:hover:not(.active)::after{ opacity: 0; transform: scale(.98); }
}

/* 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)
   ================================ */

/* Canvas Chart desktop: léger décalage visuel */
#reqChart{ margin-left: -10px; }

/* 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: 1500px;
  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: #ffffff;
  cursor: pointer;
  user-select: none;
}
.billing-opt small{ font-size:12px; opacity:.9; }
.billing-opt .percent-bubble{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: #6a9912;
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  margin-left:8px;
  box-shadow: 0 0 14px rgb(77 255 122 /.35);
}

/* 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;
  pointer-events: none; /* ne bloque jamais le clic sur les labels */
}
.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;
  overflow: visible;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(107, 235, 142, .06), transparent 40%),
    radial-gradient(120% 100% at 100% 0%, rgba(107, 235, 142, .06), transparent 40%),
    rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:26px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:18px;
  box-shadow: 0 14px 36px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .25s cubic-bezier(.25,.8,.25,1),
              box-shadow .25s cubic-bezier(.25,.8,.25,1),
              border-color .25s ease;
  will-change: transform, box-shadow; /* hover plus fluide */
  backface-visibility: hidden;        /* évite les artefacts en 3D */
  backdrop-filter: blur(8px);
}
/* Plus de hauteur sur desktop pour des cartes visuellement plus longues */
@media (min-width: 993px){
  .plan-card{ min-height: 460px; }
  .plan-card--featured{ min-height: 460px; }
}
.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:12px;
}
.plan-card__head h3{
  order:2;
  flex:1 1 100%;
  margin:13px 0 0;
  font-size:24px;
}
.plan-card__badge{
  display:inline-block;
  font-size:18px;
  letter-spacing:.4px;
  color:#e9e9e9;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:8px 12px;
  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:45px;
  font-weight:700;
  line-height:1;
  transition: opacity .12s ease;
}
.plan-card__price .price__old{
  font-size:20px;
  font-weight:700;
  color:#939393;
  text-decoration: line-through;
  opacity:.95;
  margin-right:8px;
}
.price__period{ color:#bfbfbf; font-size:16px; }

/* Liste de features */
.plan-card__list{
  margin:8px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:12px;
}
.plan-card__list li{
  display:flex;
  gap:10px;
  font-size:16px;
  line-height:1.4;
  position:relative;
  padding-left:42px; /* space for gradient check badge */
}
.plan-card__list li::before{
  /* Use a text presentation check mark so Safari/iOS doesn't swap to emoji
     (emoji ignores CSS color and can appear gray). */
  content: "\2714\FE0E"; /* HEAVY CHECK MARK + text variation selector */
  position:absolute;
  left:0; top:0.05em; /* align with first line of text */
  width:28px; height:28px;
  display:grid; place-items:center;
  /* Prefer system text fonts to avoid Apple Color Emoji fallback */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  /* Hint Safari to prefer text glyphs when available */
  font-variant-emoji: text;
  color:#fff; font-weight:800; font-size:16px;
  background: linear-gradient(90deg, #7654af 0%, #802db1 50%, #041fa7 100%);
  border-radius:8px;
  box-shadow: 0 6px 16px rgb(182 104 255 / 35%), inset 0 0 0 1px rgba(255, 255, 255, .15);
  opacity:1;
}

/* CTA */
.plan-card__foot{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.cancel-note{ font-size:14px; color:#bfbfbf; opacity:.95; }

/* ——— Mise en avant de la carte vedette (opaque + chevauchement + hover) ——— */
.plan-card--pro,
.plan-card--featured{
  z-index:10;                                   /* au-dessus */
  transform: scale(1.10) translateY(-12px);     /* taille + léger décalage */
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(107,235,142,.06), transparent 40%),
    radial-gradient(120% 100% at 100% 0%, rgba(107,235,142,.06), transparent 40%),
    linear-gradient(180deg, rgba(165,120,255,.08), rgba(255,255,255,.02)),
    rgba(255,255,255,.04);
  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);
  backface-visibility: hidden;
}
.plan-flag{
  position:absolute;
  top:-12px;
  left:50%;
  transform: translateX(-50%);
  z-index: 2;
  /* Fill */
  background: linear-gradient(90deg, #8b5cdb, #041fa7);
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  /* Fix: avoid clipped border ends by drawing the outline as a ring shadow instead of border */
  border: none;
  box-shadow:
    0 0 0 1px rgba(165,120,255,.50),                 /* crisp 1px ring in requested color */
    0 6px 18px rgba(0,0,0,.25);        /* drop shadow */
  /* Nudge the compositor to prevent aliasing at the pill tips */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.pricing__grid .plan-card:hover{ z-index:1; }   /* les autres restent dessous */
.plan-card--pro:hover,
.plan-card--featured: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; }

/* Anchor offset for sticky header when scrolling to pricing on welcome */
#pricing{ scroll-margin-top: 150px; }

/* Responsive */
@media (max-width: 992px){
  .pricing{ margin-top:36px; }
  .pricing__grid{ grid-template-columns:1fr; }
  .plan-card--pro,
  .plan-card--featured{
    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 vedette sur le responsive */
@media (max-width: 992px){
  .plan-card--pro:hover,
  .plan-card--featured: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;
}


#maxPanel .rubber-row{ display:flex; align-items:center; gap:24px; width:100%; max-width: var(--search-width); margin:0 auto; }
#maxPanel .slider{ flex:1 1 auto; width:auto; }


/* --- Slider value field + custom steppers --- */
#maxPanel .lead-input-wrap{ position:relative; display:inline-flex; align-items:center; height:40px; padding-right:24px; border-radius: var(--field-radius); border:1px solid var(--field-border); background: var(--field-bg); transition: background .25s, border-color .15s, box-shadow .15s; overflow:hidden; }
#maxPanel .lead-input{ width:67px; height:100%; border:0; background:transparent; color:#f0f0f0; text-align:center; font-weight:600; padding:0 10px; }
#maxPanel .lead-input:focus{ outline:none; background: var(--field-bg-focus); }

/* hide native spinners */
#maxPanel .lead-input::-webkit-outer-spin-button,
#maxPanel .lead-input::-webkit-inner-spin-button{ -webkit-appearance: none; margin:0; }
#maxPanel .lead-input{ -moz-appearance: textfield; appearance: textfield; }

/* Remove custom steppers (triangles) next to exact value field */
#maxPanel .lead-input-wrap .step{ display:none !important; }
#maxPanel .lead-input-wrap{ padding-right: 0; }
#maxPanel .lead-input{ width:67px; height:100%; border:0; background:transparent; color:#f0f0f0; text-align:center; font-weight:600; padding:0 10px; }


#maxPanel .lead-input-wrap .step.up{
  top: 0;
  border-bottom: 1px solid var(--field-border);
  border-top-left-radius: 0;
}
#maxPanel .lead-input-wrap .step.down{
  bottom: 0;
  border-top: 0;
}
#maxPanel .lead-input-wrap .step:hover{ filter: brightness(1.2); }
#maxPanel .lead-input-wrap .step:active{ filter: brightness(1.5); }


/* --- Triangle-only steppers (clean) --- */
#maxPanel .lead-input-wrap .step{ position:absolute; right:0; width:28px; height:50%; display:flex; align-items:center; justify-content:center; padding:0; border:0; background:transparent; cursor:pointer; user-select:none; font-size:0; line-height:0; }
#maxPanel .lead-input-wrap .step::before{ content:""; display:block; width:0; height:0; border-left:6px solid transparent; border-right:6px solid transparent; }
#maxPanel .lead-input-wrap .step.up{ top:0; }
#maxPanel .lead-input-wrap .step.up::before{ border-bottom:8px solid #ddd; }
#maxPanel .lead-input-wrap .step.down{ bottom:0; }
#maxPanel .lead-input-wrap .step.down::before{ border-top:8px solid #ddd; }
#maxPanel .lead-input-wrap .step:hover::before{ filter: brightness(1.25); }
#maxPanel .lead-input-wrap .step:active::before{ filter: brightness(1.6); }

#maxPanel .lead-input-wrap:focus-within{ background: var(--field-bg-focus); box-shadow: 0 0 0 3px var(--focus-shadow); border-color: var(--focus-border); }


/* === Fix A: remove inner purple line in the value field on focus === */
#maxPanel .lead-input-wrap .step{
  border-left: none !important;
  box-shadow: none !important;
}
#maxPanel .lead-input-wrap:focus-within .step{
  border-left: none !important;
  box-shadow: none !important; /* keep only the outer glow on the wrapper */
}

/* === Fix B: center slider vertically vs. the value field === */
#maxPanel .rubber-row .slider{
  position: relative;
  transform: translateY(1px); /* nudge down by 1px */
}


/* Fix: remove inner purple line (button focus outline) but keep wrapper focus ring */
#maxPanel .lead-input-wrap .step{ outline: none !important; box-shadow: none !important; border: 0 !important; }
#maxPanel .lead-input-wrap .step:focus,
#maxPanel .lead-input-wrap .step:focus-visible{ outline: none !important; box-shadow: none !important; border: 0 !important; }

@media (max-width: 720px){
  #maxPanel .rubber-max-wrap{ flex-direction:column; align-items:stretch; text-align:left; }
  /* Keep the numeric field to the right of the slider on mobile */
#maxPanel .rubber-row{ flex-direction:row; align-items:center; gap:22px; flex-wrap:nowrap; }
  #maxPanel .rubber-max-wrap .label{ min-width:0; text-align:center; }
}

/* Mobile: show credits popover above the menu (overlay style) */
@media (max-width: 992px){
  /* When moved to <body> as a portal, escape any parent clip-path */
  .nav-credits-popover.is-portal{
    position: fixed;
    width: min(92vw, 280px);
    z-index: 200000; /* above any UI (Discord 99999, Toast 100500) */
  }
  /* Fallback when still inside the nav */
  .main-nav .nav-credits-popover{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--nav-height, 60px) + 10px);
    right: auto;
    width: min(92vw, 280px);
    z-index: 200000;
  }
  .nav-credits-content .nav-credits-anim{ justify-content: center; }
}

/* ================================================
   Welcome: SVG icons + staggered benefits layout
   ================================================ */

/* Add mySearch logo next to section titles */
.problem-col-title{ display:flex; align-items:center; gap:8px; }
.problem-col-title .title-logo{ width:18px; height:18px; display:inline-block; }

/* Replace the red cross pseudo-icon by the provided SVG */
.problem-list .ico{ width:20px; height:20px; display:inline-block; background: url('/static/images/red-cross.svg') center/18px 18px no-repeat; border:none; border-radius:0; }
.problem-list .ico::before,
.problem-list .ico::after{ content:none !important; }

/* Replace the green check pseudo-icon by the provided SVG */
.benefit-ico{ width:20px; height:20px; background: url('/static/images/checkmark-green.svg') center/18px 18px no-repeat !important; border:none !important; border-radius:0 !important; }
.benefit-ico::after{ content:none !important; }

/* Staggered, interleaved layout like meetsponsors */
.benefits-grid--staggered{ grid-template-columns: 1fr 1fr; gap:12px 16px; align-items:start; }
.benefits-grid--staggered .benefit-card{ position:relative; box-shadow: 0 14px 30px rgba(0,0,0,.32); }
/* Increase vertical overlaps */
.benefits-grid--staggered .benefit-card:nth-child(3),
.benefits-grid--staggered .benefit-card:nth-child(4){ margin-top:-28px; }
.benefits-grid--staggered .benefit-card:nth-child(5),
.benefits-grid--staggered .benefit-card:nth-child(6){ margin-top:-56px; }

/* Fine-tuned offsets + stacking order (closer to meetsponsors) */
.benefits-grid--staggered .benefit-card:nth-child(1){ z-index:5; transform: rotate(-3deg) translate(-8px, -2px); }
.benefits-grid--staggered .benefit-card:nth-child(2){ z-index:4; transform: rotate(3deg) translate(10px, 18px); }
.benefits-grid--staggered .benefit-card:nth-child(3){ z-index:6; transform: rotate(-2.5deg) translate(-12px, 10px); }
.benefits-grid--staggered .benefit-card:nth-child(4){ z-index:7; transform: rotate(2.2deg) translate(14px, 26px); }
.benefits-grid--staggered .benefit-card:nth-child(5){ z-index:5; transform: rotate(-2deg) translate(-10px, 22px); }
.benefits-grid--staggered .benefit-card:nth-child(6){ z-index:8; transform: rotate(2deg) translate(12px, 34px); }

@media (max-width: 900px){
  .benefits-grid--staggered .benefit-card{ margin-top:0 !important; transform:none !important; z-index:1; }
}
