/* =========================================================
  components.css
  - Nav
  - Buttons
  - Cards / callouts
  - Lists, steps, accordion, form
  (Palette: charcoal-blue)
========================================================= */

/* ---------------- NAV ---------------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240,241,245,.82); /* charcoal-50 */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
}

.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
}

.brand{ display:flex; gap:10px; align-items:center; }
.brand__mark{
  width: 14px; height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--charcoal-700), var(--charcoal-400));
  box-shadow: 0 10px 30px rgba(15,16,21,.18);
}
.brand__name{
  font-weight: 600;
  letter-spacing: .2px;
  font-size: clamp(0.95rem, 1.1vw, 1.4rem);
}

.nav__links{
  display:flex;
  gap: 16px;
  align-items:center;

  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1;
}

.nav__links a{
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(21,24,30,.90); /* charcoal-900 */
}
.nav__links a:hover{
  background: rgba(195,200,213,.28); /* charcoal-200 */
}

.nav__burger{
  display:none;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(240,241,245,.88); /* charcoal-50 */
  cursor:pointer;
}
.nav__burger span{
  display:block;
  height:2px;
  margin: 6px 10px;
  background: rgba(63,71,90,.72); /* charcoal-700 */
}

.nav__panel{
  border-top: 1px solid var(--stroke);
  background: rgba(240,241,245,.92); /* charcoal-50 */
}
.nav__panelInner{
  display:grid;
  gap: 10px;
  padding: 16px 0 18px;
}
.nav__panelInner a{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(63,71,90,.16); /* charcoal-700 */
  background: rgba(225,228,234,.92); /* charcoal-100 */
}

/* ---------------- BUTTONS ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(63,71,90,.22); /* charcoal-700 */
  cursor:pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
  position:relative;
  overflow:hidden;
  user-select:none;
}
.btn--lg{ padding: 14px 18px; border-radius: 18px; }
.btn--sm{ padding: 10px 12px; border-radius: 14px; }

/* Primary: sombre premium + texte clair */
.btn--primary{
  color: rgba(240,241,245,.96); /* charcoal-50 */
  background: linear-gradient(135deg, var(--charcoal-950), var(--charcoal-700));
  border-color: rgba(225,228,234,.14); /* charcoal-100 */
  box-shadow: 0 16px 50px rgba(15,16,21,.22);
}
.btn--primary::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(90deg, transparent, rgba(240,241,245,.18), transparent);
  transform: translateX(-70%) rotate(18deg);
  transition: transform 520ms var(--ease);
}
.btn--primary:hover::after{ transform: translateX(70%) rotate(18deg); }

/* Ghost: par défaut sur fond clair (donc plus lisible en “dark text”) */
.btn--ghost{
  background: rgba(225,228,234,.55); /* charcoal-100 */
  border-color: rgba(63,71,90,.18);  /* charcoal-700 */
  color: rgba(21,24,30,.92);         /* charcoal-900 */
}

/* Dans une section sombre, ghost devient clair */
.section--final .btn--ghost{
  background: rgba(240,241,245,.10);
  border-color: rgba(240,241,245,.16);
  color: rgba(240,241,245,.92);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 60px rgba(15,16,21,.18);
}

/* ---------------- PILL ---------------- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(15,16,21,.65);          /* charcoal-950 soft */
  border: 1px solid rgba(240,241,245,.14); /* clair */
  color: rgba(240,241,245,.90);            /* texte clair */

  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
}

.pill:hover{
  transform: translateY(-1px);
  background: rgba(21,24,30,.72);          /* charcoal-900 */
  border-color: rgba(240,241,245,.22);
}

/* Dans section finale (déjà sombre) : légèrement plus “glassy” */
.section--final .pill{
  background: rgba(240,241,245,.10);
  border-color: rgba(240,241,245,.16);
  color: rgba(240,241,245,.92);
}


/* ---------------- CARDS ---------------- */
.card{
  background: var(--card);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 10px 40px rgba(15,16,21,.10);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__title{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* OK/NO conservés */
.card--ok{ border-color: rgba(62, 170, 120, .35); }
.card--no{ border-color: rgba(220, 80, 80, .35); }

.callout{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63,71,90,.18); /* charcoal-700 */
  background: linear-gradient(180deg, rgba(240,241,245,.98), rgba(225,228,234,.90)); /* 50 -> 100 */
  padding: 22px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.callout i{ font-size: 22px; margin-top: 2px; color: rgba(63,71,90,.82); } /* 700 */

.callout--strong{
  background: linear-gradient(135deg, rgba(15,16,21,.98), rgba(63,71,90,.92)); /* 950 -> 700 */
  color: rgba(240,241,245,.92);
  border-color: rgba(240,241,245,.12);
}
.callout--strong i{ color: rgba(240,241,245,.88); }

.quote{ font-size: 1.15rem; line-height: 1.3; margin: 0 0 14px; }

/* ---------------- LISTS ---------------- */
.iconLine, .bullets li, .checklist li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.iconLine i, .bullets i, .checklist i{
  font-size: 25px;
  margin-top: 2px;
  color: rgba(63,71,90,.82); /* 700 */
}


.iconLineHero i, .bulletsHero i, .checklistHero i{
  font-size: 20px;
  margin-top: 2px;
  color: rgba(255,255,255,0.82); /* 700 */
}



.section--final .bullets i{ color: rgba(240,241,245,.82); }

.hero__points{
  list-style:none;
  padding:0;
  margin: 18px 0 10px;
  display:grid;
  gap: 10px;
  max-width: 58ch;
}

.bullets, .checklist{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap: 10px;
}
.checklist--cols{
  grid-template-columns: 1fr 1fr;
}

.banner{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(63,71,90,.16);
  background: rgba(195,200,213,.26); /* 200 */
  display:flex;
  gap: 10px;
  align-items:flex-start;
}

/* ---------------- PRINCIPLES ---------------- */
.principles{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.principle{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240,241,245,.16);
  background: rgba(15,16,21,.92);   /* charcoal-950 */

  padding: 18px;
  display:flex;
  gap: 12px;

  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* Icône claire */
.principle i{
  font-size: 24px;
  color: rgba(240,241,245,.88);
}

/* Titre clair */
.principle h3{
  margin: 0 0 2px;
  color: rgba(240,241,245,.95);
}

/* Texte secondaire clair atténué */
.principle p{
  margin: 0;
  color: rgba(195,200,213,.80); /* charcoal-200 */
}

/* ---------------- STEPS (INVERTED) ---------------- */
.steps{
  display:grid;
  gap: 12px;
  margin-bottom: 18px;
}

/* Carte step sombre */
.step{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(240,241,245,.16);     /* clair */
  background: rgba(15,16,21,.92);              /* charcoal-950 */
  padding: 16px;
  display:grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}

/* Numéro devient clair */
.step__n{
  width: 60px;
  height: 60px;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(240,241,245,.96),   /* charcoal-50 */
    rgba(195,200,213,.90)    /* charcoal-200 */
  );

  color: rgba(21,24,30,.96);  /* charcoal-900 */

  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  letter-spacing: .02em;

  box-shadow: inset 0 0 0 1px rgba(21,24,30,.08);
}

/* Titres clairs */
.step__b h3{
  margin: 0 0 2px;
  display:flex;
  gap:10px;
  align-items:center;
  color: rgba(240,241,245,.95);
}

/* Texte secondaire clair atténué */
.step__b p{
  margin: 0;
  color: rgba(195,200,213,.80); /* charcoal-200 */
}

/* ---------------- TRUST ---------------- */
.trust{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Par défaut sur fond clair */
.trust__item{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(225,228,234,.55);
  border: 1px solid rgba(63,71,90,.16);
  color: rgba(21,24,30,.90);
}

/* Sur fond sombre (final), on inverse */
.section--final .trust__item{
  background: rgba(240,241,245,.10);
  border-color: rgba(240,241,245,.16);
  color: rgba(240,241,245,.88);
}

.trustGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.trustBadge{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(63,71,90,.14);
  background: rgba(225,228,234,.90);
}

/* ---------------- ACCORDION ---------------- */
.accordion{ display:grid; gap: 10px; }
.accItem{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(63,71,90,.16);
  background: rgba(225,228,234,.92);
  overflow: hidden;
}
.accBtn{
  width:100%;
  text-align:left;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  font-weight: 700;
}
.accPanel{
  padding: 0 18px 16px;
  color: rgba(63,71,90,.80);
}

/* ---------------- FORM ---------------- */
.form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }

/* Par défaut: inputs lisibles sur fond clair */
.field input, .field textarea{
  border-radius: 16px;
  border: 1px solid rgba(63,71,90,.18);
  background: rgba(240,241,245,.75);
  padding: 12px 14px;
  color: rgba(21,24,30,.92);
}

.field input::placeholder, .field textarea::placeholder{
  color: rgba(63,71,90,.62);
}

/* Sur section finale: inputs “dark UI” */
.section--final .field input,
.section--final .field textarea{
  border-color: rgba(240,241,245,.18);
  background: rgba(240,241,245,.08);
  color: rgba(240,241,245,.92);
}
.section--final .field input::placeholder,
.section--final .field textarea::placeholder{
  color: rgba(240,241,245,.55);
}

.consent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(63,71,90,.80);
  font-size: .95rem;
}
.section--final .consent{
  color: rgba(240,241,245,.86);
}

.form__note{ margin: 0; display:flex; gap:10px; align-items:center; }

.form__status{
  min-height: 22px;
  font-size: .95rem;
}
.form__status.is-ok{ color: rgba(135, 255, 200, .92); }
.form__status.is-err{ color: rgba(255, 170, 170, .92); }

.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }





/* ================================
   NAV DESKTOP (fond clair + logo centré + menus éloignés)
================================ */
@media (min-width: 900px){

  .nav{
    background: rgba(229,230,230,1);
    border-bottom: 1px solid rgba(63,71,90,.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
                backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease;
  }

  .nav.is-blur{
    background: rgba(229,230,230,.70);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    border-bottom-color: rgba(63,71,90,.14);
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
  }

  /* ✅ GRID: gauche | logo | droite */
  .nav__inner{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    padding: 14px 0;
    column-gap: 96px; /* ✅ AÈRE entre logo et menus (augmente si besoin) */
  }

  /* Logo centré */
  .brand{
    justify-self:center;
  }
  .brand__name{
    color: rgba(21,24,30,.92);
    font-weight: 700;
    letter-spacing: .3px;
  }
  .brand__mark{
    background: linear-gradient(135deg, rgba(21,24,30,.85), rgba(63,71,90,.65));
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }

  /* Menus gauche/droite */
  .nav__links{
    display:flex;
    align-items:center;
    gap: 18px;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: .2px;
    line-height: 1;
  }

  .nav__links--left{ justify-self:start; padding-right: 24px; }  /* ✅ pousse un peu plus loin */
  .nav__links--right{ justify-self:end;  padding-left: 24px; }   /* ✅ pousse un peu plus loin */

  .nav__links a{
    color: rgba(21,24,30,.88);
    padding: 10px 12px;
    border-radius: 999px;
    transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
  }
  .nav__links a:hover{
    background: rgba(63,71,90,.08);
    color: rgba(21,24,30,.96);
    transform: translateY(-1px);
  }

  .nav__links a[aria-current="page"]{
    background: rgba(63,71,90,.10);
    color: rgba(21,24,30,.98);
  }

  /* Desktop: burger/panel off */
  .nav__burger{ display:none; }
  .nav__panel{ display:none !important; }
}




/* =========================================================
   BUTTON — Diagnostic (clair sur fond sombre) + icône + sheen
========================================================= */

.btn-diagnostic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 12px 18px;
  border-radius: 999px;

  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .2px;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;
  user-select: none;

  position: relative;
  overflow: hidden; /* nécessaire pour la brillance */
  transform: translateZ(0);

  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

/* Variante claire sur fond sombre */
.btn-diagnostic--light{
  color: rgba(21,24,30,.94); /* texte sombre */
  background: rgba(240,241,245,.92); /* fond clair */
  border: 1px solid rgba(240,241,245,.18);
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
}

/* Icône */
.btn-diagnostic i{
  font-size: 1.15rem;
  opacity: .92;
}

/* Hover */
.btn-diagnostic--light:hover{
  transform: translateY(-2px);
  background: rgba(240,241,245,.98);
  border-color: rgba(240,241,245,.28);
  box-shadow: 0 20px 70px rgba(0,0,0,.32);
}

/* Active */
.btn-diagnostic--light:active{
  transform: translateY(0);
  box-shadow: 0 12px 40px rgba(0,0,0,.26);
}

/* Focus accessibilité */
.btn-diagnostic--light:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(240,241,245,.55),
    0 0 0 5px rgba(181,74,86,.30),
    0 20px 70px rgba(0,0,0,.32);
}

/* =========================================================
   Micro-brillance (sheen) — très subtile
========================================================= */

.btn-diagnostic::after{
  content:"";
  position:absolute;
  inset:-60%;

  /* bande de brillance */
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.00) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.00) 65%,
    transparent 100%
  );

  transform: translateX(-80%) rotate(18deg);
  opacity: .35;
  pointer-events:none;
}

/* Brillance au hover */
.btn-diagnostic:hover::after{
  animation: btnSheen 900ms ease forwards;
}

/* Option: brillance douce automatique toutes les ~7s */
.btn-diagnostic[data-sheen="auto"]::after{
  animation: btnSheenIdle 7s ease-in-out infinite;
}

@keyframes btnSheen{
  from { transform: translateX(-80%) rotate(18deg); }
  to   { transform: translateX(80%)  rotate(18deg); }
}

@keyframes btnSheenIdle{
  0%, 78% { transform: translateX(-85%) rotate(18deg); opacity: 0; }
  82%     { opacity: .28; }
  92%     { transform: translateX(85%) rotate(18deg); opacity: .28; }
  100%    { opacity: 0; }
}
