/* ==========================================================================
   DecIA — Design tokens
   Identité visuelle reprise de la v4 (decia-v4.html) : fond sombre, dégradé
   bleu, Plus Jakarta Sans (titres + texte) / JetBrains Mono (labels).
   ========================================================================== */
:root {
  /* Couleurs */
  --bg: #000000;
  --panel: #0c0d11;
  --card: #111319;
  --card-hover: #15171f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f6fa;
  --text-soft: #9aa0b4;
  --text-mute: #6c7288;
  --blue-start: #0066ff;
  --blue-end: #3b24fc;
  /* Accent plus clair (icônes, labels, liens survolés) — repris de la v4. */
  --accent: #5c9cff;
  --grad: linear-gradient(135deg, var(--blue-start), var(--blue-end));
  --grad-soft: linear-gradient(135deg, rgba(0, 102, 255, 0.16), rgba(59, 36, 252, 0.16));
  --success: #34d399;

  /* Typographie */
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Rythme / échelle */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7.5rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-glow: 0 14px 30px rgba(0, 102, 255, 0.35);
  --container-w: 1180px;
  /* Hauteur fluide : 56px en mobile étroit jusqu'à 76px à partir de 760px. */
  --header-h: clamp(56px, 4.5vw + 42px, 76px);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

p {
  color: var(--text-soft);
  max-width: 62ch;
}

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

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 40px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.section-pad {
  padding: var(--space-6) 0;
}

.section-pad.alt {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: var(--space-1) 0 var(--space-2);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header — logo + un seul CTA, flottant et transparent au repos, opaque
   et resserré au scroll (repris du format de decia-v4.html).
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  height: calc(var(--header-h) - 18px);
  background: rgba(4, 5, 8, 0.85);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header .container {
  /* Comme .container est un enfant flex de .site-header, il se réduirait
     sinon à la largeur de son contenu (donc centré par ses marges auto)
     au lieu d'occuper toute la largeur disponible : on force width:100%
     pour que le logo colle vraiment au bord gauche et le groupe nav au
     bord droit. */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: 100%;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 24px;
  width: auto;
}

/* Rubriques + CTA (+ burger) : un seul bloc collé à droite, c'est lui qui
   s'adapte (espacement, disparition des liens) selon la largeur de page —
   le logo, lui, reste fixe tout à gauche. */
.nav-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* CTA du header : plus bas que les boutons du reste du site (.btn garde
   son padding normal ailleurs), pour rester discret à côté du logo. */
.nav-group .btn-primary {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--grad);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Menu burger : masqué par défaut, affiché seulement sous 960px. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Panneau mobile : liens + CTA, déplié sous le header. */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: var(--space-2) 40px calc(var(--space-3));
  background: rgba(4, 5, 8, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-nav[data-open="true"] {
  display: flex;
}

.mobile-nav a:not(.btn) {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 0.98rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:not(.btn):hover {
  color: var(--text);
}

.mobile-nav .btn {
  margin-top: var(--space-2);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-group > .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Hero — centré, repris au pixel de decia-v4.html (plus de visuel/photo :
   texte + CTA + repères + bulles décoratives, tout centré sur la page).
   ========================================================================== */
.hero {
  position: relative;
  padding: 200px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 102, 255, 0.35) 0%,
    rgba(59, 36, 252, 0.18) 40%,
    rgba(0, 0, 0, 0) 72%
  );
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  margin: 18px auto 20px;
}

.hero .lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Visuel-preuve : bandeau de repères concrets (= .hero-stats de la v4) */
.proof-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card);
  font-size: 0.85rem;
  color: var(--text-soft);
  animation: float 4.5s ease-in-out infinite;
}

.proof-chip:nth-child(1) {
  animation-delay: 0.2s;
}

.proof-chip:nth-child(2) {
  animation-delay: 1s;
}

.proof-chip:nth-child(3) {
  animation-delay: 0.5s;
}

.proof-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

/* Bulles décoratives (= .bubble-field de la v4) */
.bubble-field {
  position: relative;
  height: 70px;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 2;
}

.bubble {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  white-space: nowrap;
  animation: float 4.5s ease-in-out infinite;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.bubble:nth-child(1) {
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  animation-delay: 0.8s;
}

.bubble .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* Masquées sous 960px (comme dans la v4) — placé après la définition de
   base pour gagner le tie-break de cascade à spécificité égale. */
@media (max-width: 960px) {
  .bubble-field {
    display: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   Solution — 3 bénéfices clés
   ========================================================================== */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.benefit-card {
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 102, 255, 0.4);
}

.benefit-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.benefit-card .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.9rem;
}

/* ==========================================================================
   Comment ça marche — 3 étapes
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 22px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.step:hover .step-num {
  border-color: var(--blue-start);
  transform: scale(1.06);
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
}

/* ==========================================================================
   À propos — un paragraphe humain
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-3);
  align-items: start;
  max-width: 760px;
}

.about .avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  text-align: center;
  overflow: hidden;
}

.about .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about p {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: none;
}

.about .signature {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  color: var(--text);
  font-size: 0.95rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--text-soft);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-question .plus::before {
  width: 14px;
  height: 2px;
}

.faq-question .plus::after {
  width: 2px;
  height: 14px;
}

.faq-item[data-open="true"] .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding-bottom: var(--space-2);
  font-size: 0.95rem;
  max-width: 68ch;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  background: var(--grad);
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -130px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 460px;
  margin-bottom: 0.4rem;
}

.cta-band p {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
}

.cta-band .urgency {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.6rem;
  display: inline-block;
}

.cta-band .btn-primary {
  position: relative;
  background: #fff;
  color: var(--blue-start);
}

.cta-band .btn-primary:hover {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-2);
  display: inline-block;
}

.footer-brand .logo img {
  height: 22px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  border-color: var(--border-strong);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-mute);
}

.footer-bottom a {
  color: var(--text-mute);
}

.footer-bottom a:hover {
  color: var(--text-soft);
}

/* ==========================================================================
   Reveal-on-scroll (un seul effet, sobre)
   Le contenu est visible par défaut : c'est le JS qui ajoute .reveal-armed
   juste avant d'observer les éléments. Si le script ne se charge pas (ou
   si JS est désactivé), rien ne reste caché — c'est un bonus visuel, pas
   une dépendance.
   ========================================================================== */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-armed.visible {
  opacity: 1;
  transform: none;
}

/* Effet cascade : les enfants .reveal d'un conteneur .stagger apparaissent
   l'un après l'autre au lieu de tous en même temps. */
.stagger .reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .benefits,
  .steps {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about .avatar {
    width: 64px;
    height: 64px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 28px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 22px;
  }

  .mobile-nav {
    padding-left: 22px;
    padding-right: 22px;
  }
}
