/* ==========================================================================
   LiveAI — feuille de style du site, refonte octobre 2026.

   Un seul accent, tenu sur toute la page : le rose LiveAI relevé pour tenir
   sur fond sombre (#EC5F80 est le #7A2E3D de la marque remonté en
   luminosité — sur un fond noir, le bordeaux d'origine disparaît).
   Tout le reste est neutre, et la couleur ne sert qu'à désigner l'action.
   ========================================================================== */

:root {
  --nuit:        #0B0A0C;
  --surface:     #131216;
  --surface-2:   #1A181E;
  --bord:        #272430;
  --bord-clair:  #37323F;

  --encre:       #F3EFEA;
  --encre-douce: #AFA8B5;
  /* 4,5:1 sur --nuit. Le gris precedent (#6F6878) mesurait 3,69 :
     sous le seuil AA pour tout texte de moins de 24 px. */
  --encre-faible:#7C758C;

  --accent:      #EC5F80;
  --accent-vif:  #FF7E9A;
  --accent-voile: rgba(236, 95, 128, 0.14);

  --sain:        #5FCB8B;

  --gouttiere:   clamp(20px, 5vw, 72px);
  --rayon:       10px;

  --t-rapide:    160ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-doux:      560ms cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--encre);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-vif);
  outline-offset: 3px;
  border-radius: 4px;
}

.enveloppe { max-width: 1240px; margin: 0 auto; padding-inline: var(--gouttiere); }

.oeil-seul {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Libellés techniques ------------------------------------------------ */
.etiquette {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--encre-faible);
}
.etiquette--accent { color: var(--accent); }

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 10, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-rapide), background var(--t-rapide);
}
.nav[data-colle="oui"] { border-bottom-color: var(--bord); }
.nav__interieur { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav__marque { display: flex; align-items: center; gap: 11px; margin-right: auto; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.nav__liens { display: flex; gap: 26px; font-size: 14.5px; color: var(--encre-douce); }
.nav__liens a { transition: color var(--t-rapide); }
.nav__liens a:hover { color: var(--encre); }

.etoile-logo { width: 26px; height: 26px; display: block; }

/* --- Boutons ------------------------------------------------------------ */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform var(--t-rapide), background var(--t-rapide), border-color var(--t-rapide);
  min-height: 46px;
}
.bouton--plein { background: var(--accent); color: #17070D; }
.bouton--plein:hover { background: var(--accent-vif); transform: translateY(-1px); }
.bouton--fantome { border-color: var(--bord-clair); color: var(--encre); }
.bouton--fantome:hover { border-color: var(--encre-faible); background: var(--surface); }
.bouton--petit { font-size: 13.5px; padding: 9px 16px; min-height: 38px; }

/* --- Héros -------------------------------------------------------------- */
.heros { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px); }
.heros__grille { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.heros__texte { flex: 999 1 480px; min-width: 0; }
.heros__titre { font-size: clamp(42px, 6.6vw, 82px); margin: 20px 0 22px; }
.heros__titre em { font-style: normal; color: var(--accent); }
.heros__chapeau { font-size: clamp(16px, 1.8vw, 18.5px); line-height: 1.68; color: var(--encre-douce); max-width: 56ch; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.heros__note { font-size: 13.5px; color: var(--encre-faible); }

/* La scène 3D couvre toute la section, derrière le texte. Elle rend sur un
   fond opaque de la couleur de la page : le bloom et la transparence
   s'entendent mal, et comme la scène occupe toute la surface, l'opacité ne se
   voit pas. Le dégradé d'ambiance est peint dans la scène elle-même. */
.heros__scene {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.heros__scene canvas { display: block; width: 100%; height: 100%; }

/* Sur un téléphone le héros fait près de 1 200 px de haut : couvrir toute
   cette hauteur revenait à rendre 1,4 million de pixels avec un bloom plein
   écran. La scène se limite donc au haut de la section et s'efface en
   dégradé — moitié moins de pixels, et les boutons retrouvent un fond net. */
@media (max-width: 900px) {
  .heros__texte::before {
    inset: -24px -20px -20px -20px;
    background: radial-gradient(ellipse at 50% 58%, rgba(11,10,12,0.82) 44%, rgba(11,10,12,0) 82%);
  }
  .heros__scene {
    bottom: auto;
    height: min(72vh, 620px);
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
    mask-image: linear-gradient(to bottom, #000 58%, transparent 97%);
  }
}

/* Le texte repasse devant, et un voile le détache du décor sans l'assombrir. */
.heros__grille { position: relative; z-index: 1; }
.heros__texte {
  position: relative;
}
.heros__texte::before {
  content: ""; position: absolute; inset: -40px -60px -30px -40px; z-index: -1;
  background: radial-gradient(ellipse at 30% 50%, rgba(11,10,12,0.92) 38%, rgba(11,10,12,0.0) 76%);
  pointer-events: none;
}

/* Réserve l'espace où l'étoile apparaît, pour que le texte ne la recouvre pas. */
.heros__objet { flex: 1 1 340px; min-width: 0; min-height: 360px; }

/* --- Chiffres ----------------------------------------------------------- */
.chiffres { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; border-top: 1px solid var(--bord); }
.chiffres__case { flex: 1 1 160px; padding: 20px 24px 0 0; }
.chiffres__case + .chiffres__case { border-left: 1px solid var(--bord); padding-left: 24px; }
.chiffres__valeur { font-family: "Bricolage Grotesque", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.chiffres__valeur--accent { color: var(--accent); }

/* --- Bandeau défilant --------------------------------------------------- */
.bandeau { border-block: 1px solid var(--bord); overflow: hidden; background: var(--surface); }
.bandeau__piste { display: flex; gap: 0; width: max-content; animation: glisse 38s linear infinite; }
.bandeau__element { padding: 14px 32px; white-space: nowrap; border-right: 1px solid var(--bord); }
@keyframes glisse { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section__tete { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section__titre { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 16px; }
.section__intro { font-size: 17px; line-height: 1.68; color: var(--encre-douce); }

/* --- Étapes ------------------------------------------------------------- */
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.etape {
  border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 24px 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--nuit) 100%);
  transition: border-color var(--t-rapide), transform var(--t-rapide);
}
.etape:hover { border-color: var(--bord-clair); transform: translateY(-2px); }
.etape__numero {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent-voile);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; margin-bottom: 18px;
}
.etape__titre { font-size: 19px; margin-bottom: 9px; }
.etape__texte { font-size: 14.5px; line-height: 1.64; color: var(--encre-douce); }
.etape__detail {
  margin-top: 16px; padding: 10px 13px; border: 1px solid var(--bord); border-radius: 7px;
  background: var(--nuit); font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
  color: var(--encre-douce); display: flex; align-items: center; gap: 10px;
}

/* --- Fonctionnalités ---------------------------------------------------- */
.fonctions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--bord); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.fonction { background: var(--nuit); padding: 28px 26px 30px; transition: background var(--t-rapide); }
.fonction:hover { background: var(--surface); }
.fonction__icone { color: var(--accent); margin-bottom: 16px; display: block; }
.fonction__titre { font-size: 17.5px; margin-bottom: 9px; }
.fonction__texte { font-size: 14.5px; line-height: 1.64; color: var(--encre-douce); }

/* --- Argument confidentialité ------------------------------------------- */
.manifeste {
  border: 1px solid var(--bord); border-radius: 16px; padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(236,95,128,0.13), transparent 58%),
    var(--surface);
}
.manifeste__titre { font-size: clamp(28px, 4.4vw, 52px); max-width: 18ch; }
.manifeste__liste { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.manifeste__item { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-top: 1px solid var(--bord); }
.manifeste__coche { flex: 0 0 auto; color: var(--sain); margin-top: 2px; }
.manifeste__item strong { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 3px; }
.manifeste__item span { font-size: 14px; line-height: 1.6; color: var(--encre-douce); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--bord); }
.faq__item { border-bottom: 1px solid var(--bord); }
.faq__bouton {
  width: 100%; display: flex; align-items: center; gap: 20px; text-align: left;
  background: none; border: 0; color: var(--encre); font-family: inherit;
  font-size: 17px; font-weight: 500; padding: 22px 0; cursor: pointer; min-height: 56px;
}
.faq__bouton:hover { color: var(--accent-vif); }
.faq__signe { margin-left: auto; flex: 0 0 auto; color: var(--encre-faible); transition: transform var(--t-rapide), color var(--t-rapide); }
.faq__bouton[aria-expanded="true"] .faq__signe { transform: rotate(45deg); color: var(--accent); }
.faq__reponse { display: none; padding: 0 0 24px; font-size: 15.5px; line-height: 1.7; color: var(--encre-douce); max-width: 72ch; }
.faq__reponse[data-ouvert="oui"] { display: block; }

/* --- Appel final -------------------------------------------------------- */
.final { text-align: center; padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--bord); }
.final__titre { font-size: clamp(32px, 5.2vw, 60px); margin-bottom: 18px; }
.final__texte { font-size: 17px; color: var(--encre-douce); max-width: 52ch; margin: 0 auto 32px; line-height: 1.66; }

/* --- Pied de page ------------------------------------------------------- */
.pied { border-top: 1px solid var(--bord); padding: 34px 0 48px; }
.pied__interieur { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 13.5px; color: var(--encre-faible); }
.pied__liens { display: flex; flex-wrap: wrap; gap: 22px; }
.pied__liens a:hover { color: var(--encre-douce); }

/* --- Révélation au défilement -------------------------------------------
   Le contenu est VISIBLE par défaut. Il n'est masqué que si le script a
   confirmé qu'il saura le révéler, en posant `anime` sur <html>.

   Sans cette précaution, une page chargée dans un onglet d'arrière-plan reste
   blanche : le navigateur ne produit aucune mise à jour de rendu, donc
   l'IntersectionObserver ne se déclenche jamais et rien ne repasse opaque.
   Observé en ligne, pas supposé. */
.reveler { opacity: 1; transform: none; }

html.anime .reveler {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-doux), transform var(--t-doux);
}
html.anime .reveler[data-vu="oui"] { opacity: 1; transform: none; }

/* --- Adaptation aux petits écrans --------------------------------------- */
@media (max-width: 920px) {
  .etapes, .fonctions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifeste__liste { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 620px) {
  .etapes, .fonctions { grid-template-columns: 1fr; }
  .nav__liens { display: none; }
  .chiffres__case + .chiffres__case { border-left: 0; padding-left: 0; }
  /* L'étoile reste APRÈS le titre : la faire passer devant repoussait
     l'accroche sous la ligne de flottaison sur un téléphone. */
  .heros__objet canvas { max-width: 260px; }
  .heros__grille { gap: 24px; }
}

/* Le mouvement est un agrément, jamais une condition de lecture. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.anime .reveler { opacity: 1; transform: none; }
}
