/* =====================================================================
   Tylan Web & IA — Feuille de style
   ---------------------------------------------------------------------
   Organisation du fichier :
   1.  Variables (couleurs, tailles)  ← modifiez les couleurs ici
   2.  Base & réglages généraux
   3.  Boutons
   4.  En-tête & navigation
   5.  Hero
   6.  Sections & titres
   7.  Cartes services / bénéfices
   8.  Tarifs
   9.  Réalisations
   10. Étapes (processus)
   11. Contact & formulaire
   12. Pied de page
   13. Animations au scroll
   14. Responsive (mobile / tablette)
   ===================================================================== */

/* =====================================================================
   1. VARIABLES  —  👉 Pour changer les couleurs, modifiez ici
   ===================================================================== */
:root {
  /* Couleurs de la charte */
  --bleu-nuit:      #0a1a3a;  /* bleu nuit profond (fond principal) */
  --bleu-nuit-2:    #0d2b5c;  /* bleu un peu plus clair */
  --turquoise:      #22d3ee;  /* accent turquoise lumineux */
  --turquoise-fonce:#0891b2;  /* turquoise foncé (pour le texte sur blanc) */
  --blanc:          #ffffff;

  /* Nuances de FOND des sections (on alterne A / B une section sur deux) */
  --sect-a:         #0a1a3a;  /* nuance 1 (bleu nuit de base) */
  --sect-b:         #0e2245;  /* nuance 2 (un peu plus claire) */

  /* Nuances de surface (cartes) — plus claires que les sections pour ressortir */
  --surface:        #16315f;  /* fond des cartes */
  --surface-2:      #1b3a70;  /* survol / variante */
  --bordure:        rgba(148, 197, 255, 0.16);
  --bordure-forte:  rgba(148, 197, 255, 0.30);
  --bordure-turq:   rgba(34, 211, 238, 0.55);  /* bordure turquoise au survol */
  --ombre-carte:    0 18px 40px rgba(3, 10, 30, 0.55), 0 0 24px rgba(34, 211, 238, 0.14);

  /* Texte */
  --texte:          #eaf2ff;  /* texte principal (presque blanc) */
  --texte-doux:     #a9bfe0;  /* texte secondaire (gris bleuté) */

  /* Dégradés bleu → turquoise */
  --grad: linear-gradient(120deg, #3b82f6 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(59,130,246,0.16), rgba(34,211,238,0.16));

  /* Formes & ombres */
  --radius:    18px;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --ombre:      0 10px 30px rgba(0, 0, 0, 0.28);
  --ombre-forte:0 24px 60px rgba(2, 12, 35, 0.55);
  --glow:       0 0 0 1px rgba(34,211,238,0.35), 0 14px 40px rgba(34,211,238,0.18);

  /* Mise en page */
  --max: 1140px;
  --pad: clamp(1rem, 3vw, 2rem);

  /* Typographie système (aucune dépendance externe) */
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
            Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/* =====================================================================
   2. BASE & RÉGLAGES GÉNÉRAUX
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police);
  color: var(--texte);
  background-color: var(--bleu-nuit);
  /* Léger halo turquoise en haut de page */
  background-image:
    radial-gradient(900px 500px at 78% -8%, rgba(34,211,238,0.18), transparent 60%),
    radial-gradient(700px 500px at 8% 4%, rgba(59,130,246,0.16), transparent 55%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--turquoise); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* Texte en dégradé (titres) */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Lien d'évitement (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--turquoise);
  color: var(--bleu-nuit);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Style de focus visible et cohérent (accessibilité) */
:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Petite pastille turquoise (devant les sur-titres) */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 12px var(--turquoise);
}

/* Sur-titre (petit texte au-dessus des grands titres) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 0 0 1rem;
}
.eyebrow.center { justify-content: center; }

/* =====================================================================
   3. BOUTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 10px 26px rgba(34,211,238,0.28);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(34,211,238,0.42); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--texte);
  border-color: var(--bordure-forte);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--turquoise); }

.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* =====================================================================
   4. EN-TÊTE & NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 26, 58, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bordure);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(34,211,238,0.35)); }
.logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--blanc);
}
.logo-text strong { color: var(--turquoise); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  color: var(--texte-doux);
  font-weight: 600;
  font-size: .98rem;
  padding: .35rem 0;
  position: relative;
}
.nav-list a:hover { color: var(--blanc); text-decoration: none; }
/* Petit trait turquoise au survol */
.nav-list a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .2s ease;
}
.nav-list a:hover::after { width: 100%; }

/* Bouton hamburger (caché sur grand écran) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
/* Animation du hamburger en croix quand le menu est ouvert */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   5. HERO
   ===================================================================== */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); position: relative; }
/* Halo turquoise très subtil et flouté derrière le titre (effet de lumière) */
.hero::before {
  content: "";
  position: absolute;
  left: 4%;
  top: 16%;
  width: min(560px, 62%);
  height: 320px;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 68%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;   /* le contenu passe au-dessus du halo */
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: .6rem; }
.hero-sub {
  color: var(--texte-doux);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 44ch;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }

.hero-badges {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  color: var(--texte-doux);
  font-size: .92rem;
  font-weight: 600;
}
.hero-badges li { white-space: nowrap; }

/* --- Illustration : maquette de navigateur --- */
.hero-visual { position: relative; }
.mockup {
  background: var(--surface);
  border: 1px solid var(--bordure-forte);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre-forte);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.mockup-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid var(--bordure);
}
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ffffff33; }
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
/* Fausse barre d'adresse */
.mockup-bar .mockup-url {
  width: auto; height: auto; border-radius: 999px;
  margin-left: .6rem;
  padding: .2rem .7rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--bordure);
  color: var(--texte-doux);
  font-size: .72rem;
}
.mockup-body { padding: 1.5rem 1.4rem 1.6rem; }

/* --- Mini-site affiché dans le navigateur (aux couleurs de la marque) --- */
.mini-eyebrow {
  margin: 0 0 .5rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--turquoise);
}
.mini-title {
  margin: 0 0 .35rem;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--blanc);
}
.mini-sub {
  margin: 0 0 1rem;
  font-size: .82rem; line-height: 1.4;
  color: var(--texte-doux);
}
.mini-btn {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--grad);
  color: #04121f;
  font-size: .8rem; font-weight: 800;
}
.mini-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem;
  margin-top: 1.3rem;
}
.mini-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .8rem .5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--bordure);
}
.mini-ico { font-size: 1.15rem; line-height: 1; }
.mini-bar { width: 60%; height: 6px; border-radius: 4px; background: var(--grad-soft); }

/* --- Bulle de chat qui flotte par-dessus --- */
.chat-bubble {
  position: absolute;
  right: -6px; bottom: -22px;
  width: min(80%, 300px);
  display: flex;
  gap: .6rem;
  padding: .9rem;
  background: var(--bleu-nuit-2);
  border: 1px solid var(--bordure-forte);
  border-radius: 18px;
  box-shadow: var(--glow);
}
.chat-avatar {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #04121f;
  font-weight: 800; font-size: .8rem;
  display: grid; place-items: center;
}
.chat-msgs { display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; }
.chat-in, .chat-out { margin: 0; padding: .45rem .7rem; border-radius: 12px; }
.chat-in { background: rgba(255,255,255,0.08); color: var(--texte); border-bottom-left-radius: 4px; }
.chat-out { background: var(--grad); color: #04121f; font-weight: 600; border-bottom-right-radius: 4px; }

/* =====================================================================
   6. SECTIONS & TITRES
   ===================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; background-color: var(--sect-a); }
/* Une section sur deux prend la nuance plus claire, pour créer un rythme */
.section-alt {
  background-color: var(--sect-b);
  border-block: 1px solid rgba(148, 197, 255, 0.07);
}
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-lead { color: var(--texte-doux); font-size: 1.08rem; margin: 0; }

/* Grilles réutilisables */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================================
   7. CARTES SERVICES & BÉNÉFICES
   ===================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--ombre);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--bordure-turq); box-shadow: var(--ombre-carte); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--bordure-forte);
  color: var(--turquoise);
  margin-bottom: 1.1rem;
}
.card p { color: var(--texte-doux); margin: 0; }

.benefit {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--ombre);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.benefit:hover { transform: translateY(-6px); border-color: var(--bordure-turq); box-shadow: var(--ombre-carte); }
.benefit-ico { font-size: 1.7rem; display: block; margin-bottom: .6rem; }
.benefit h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.benefit p { color: var(--texte-doux); margin: 0; font-size: .96rem; }

/* =====================================================================
   8. TARIFS
   ===================================================================== */
.pricing {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 920px;
  margin-inline: auto;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ombre);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
/* Survol des offres (sauf la carte mise en avant, gérée juste après) */
.price-card:not(.price-card--featured):hover {
  transform: translateY(-6px);
  border-color: var(--bordure-turq);
  box-shadow: var(--ombre-carte);
}
/* Carte mise en avant (offre principale) */
.price-card--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--glow);
}
.price-card--featured:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow), 0 22px 50px rgba(3, 10, 30, 0.5);
}
.price-badge {
  position: absolute;
  top: -14px; left: 2rem;
  background: var(--grad);
  color: #04121f;
  font-weight: 800; font-size: .8rem;
  padding: .35rem .8rem;
  border-radius: 999px;
}
.price-title { font-size: 1.3rem; margin-bottom: .3rem; }
.price-desc { color: var(--texte-doux); margin-bottom: 1.2rem; }

.price-amount { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .3rem; }
.price-from { color: var(--texte-doux); font-size: .95rem; }
.price-value {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-recurring {
  color: var(--texte); font-size: .98rem;
  margin: 0 0 1.4rem;
}
.price-recurring strong { color: var(--turquoise); }
.price-recurring span { display: block; color: var(--texte-doux); font-size: .88rem; }
.price-recurring--muted span { margin-top: .2rem; }

.price-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.price-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--texte);
  font-size: .96rem;
}
.price-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--turquoise);
  font-weight: 900;
}
.price-list li.muted { color: var(--texte-doux); }
.price-list li.muted::before { content: "＋"; color: var(--texte-doux); font-weight: 700; }

.price-card .btn { margin-top: auto; }

.price-note {
  max-width: 720px;
  margin: 1.8rem auto 0;
  text-align: center;
  color: var(--texte-doux);
  font-size: .95rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

/* =====================================================================
   9. RÉALISATIONS
   ===================================================================== */
.work {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.work:hover { transform: translateY(-6px); border-color: var(--bordure-forte); box-shadow: var(--ombre-forte); }
/* Vignettes en dégradé (placeholders) — remplacez par de vraies images */
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: end start;
  padding: .9rem;
}
.work-thumb--1 { background: linear-gradient(135deg, #0d2b5c, #22d3ee); }
.work-thumb--2 { background: linear-gradient(135deg, #3b0d5c, #3b82f6); }
.work-thumb--3 { background: linear-gradient(135deg, #0d5c4a, #22d3ee); }
.work-tag {
  background: rgba(4,18,31,0.55);
  color: var(--blanc);
  font-size: .75rem; font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.work-body { padding: 1.3rem 1.4rem 1.5rem; }
.work-body h3 { margin-bottom: .3rem; }
.work-body p { color: var(--texte-doux); margin: 0; font-size: .95rem; }

/* =====================================================================
   10. ÉTAPES (PROCESSUS)
   ===================================================================== */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  position: relative;
  box-shadow: var(--ombre);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-6px); border-color: var(--bordure-turq); box-shadow: var(--ombre-carte); }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #04121f;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.step p { color: var(--texte-doux); margin: 0; font-size: .95rem; }

/* =====================================================================
   11. CONTACT (coordonnées)
   ===================================================================== */
.section-contact {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(34,211,238,0.12), transparent 60%),
    var(--sect-a);
}

/* Grille des cartes de coordonnées (s'adapte toute seule à la largeur) */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
  padding: 2.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
  color: var(--texte);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
/* Les cartes cliquables (téléphone, e-mail) réagissent au survol */
a.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--bordure-forte);
  box-shadow: var(--glow);
  text-decoration: none;
}
.contact-ico {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--bordure-forte);
  font-size: 1.5rem;
  margin-bottom: .6rem;
}
.contact-card-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--texte-doux);
}
.contact-card-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blanc);
  word-break: break-word;
}
.contact-card-cta {
  margin-top: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--turquoise);
}
.contact-card-cta--muted { color: var(--texte-doux); font-weight: 400; }

.contact-note {
  max-width: 620px;
  margin: 2.2rem auto 0;
  text-align: center;
  color: var(--texte-doux);
  font-size: 1rem;
}

/* =====================================================================
   11 bis. RÉASSURANCE « À DISTANCE », FAQ & ENCART CHATBOT
   ===================================================================== */

/* Petite note centrée sous une section */
.section-note {
  max-width: 660px;
  margin: 1.8rem auto 0;
  text-align: center;
  color: var(--texte-doux);
  font-size: .98rem;
}

/* --- FAQ : accordéon accessible construit avec <details>/<summary> --- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  transition: border-color .22s ease, box-shadow .22s ease;
}
.faq-item:hover { border-color: var(--bordure-turq); box-shadow: var(--ombre-carte); }
.faq-item[open] { border-color: var(--bordure-forte); box-shadow: var(--ombre); }

/* La question (cliquable) */
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 700; font-size: 1.05rem; color: var(--blanc);
  cursor: pointer;
  list-style: none;                       /* enlève la puce (Firefox) */
}
.faq-q::-webkit-details-marker { display: none; }  /* enlève la flèche native (Safari/Chrome) */
.faq-q:hover { color: var(--turquoise); }

/* Icône « + » qui pivote en « × » à l'ouverture */
.faq-icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid var(--bordure-forte);
  color: var(--turquoise);
  font-size: 1.35rem; line-height: 1; font-weight: 800;
  transition: transform .25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

/* La réponse */
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--texte-doux); }
.faq-a p { margin: 0; }
.faq-a strong { color: var(--texte); }

/* --- Encart « Testez mon chatbot » (bordure en dégradé + halo) --- */
.chatbot-cta {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.3rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--glow);
}
.chatbot-cta-ico {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad);
  font-size: 1.6rem;
}
.chatbot-cta-text strong { color: var(--blanc); font-size: 1.08rem; display: block; margin-bottom: .15rem; }
.chatbot-cta-text span { color: var(--texte-doux); font-size: .95rem; }

/* =====================================================================
   12. PIED DE PAGE
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--bordure);
  background: rgba(4, 12, 30, 0.55);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand p { color: var(--texte-doux); margin: .7rem 0 0; max-width: 40ch; font-size: .95rem; }
.footer-h { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blanc); margin: 0 0 .9rem; }
.footer-nav ul, .footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nav a, .footer-contact a { color: var(--texte-doux); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--turquoise); text-decoration: none; }
.footer-contact li { color: var(--texte-doux); font-size: .95rem; }

.footer-bottom { border-top: 1px solid var(--bordure); }
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.2rem;
}
.footer-bottom p { margin: 0; color: var(--texte-doux); font-size: .88rem; }

/* =====================================================================
   13. ANIMATIONS AU SCROLL
   ---------------------------------------------------------------------
   Les éléments « .reveal » apparaissent en douceur quand on scrolle.
   La classe « .is-visible » est ajoutée par script.js.
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Les cartes portent aussi la classe .reveal. On redéclare ici leur transition
   APRÈS .reveal pour que le survol (soulèvement + bordure + ombre) reste fluide,
   sans casser l'apparition en fondu. */
.card, .benefit, .price-card, .step, .faq-item, .contact-card {
  transition: opacity .5s ease, transform .25s ease, border-color .22s ease, box-shadow .22s ease;
}

/* ♿ Respect du réglage « animations réduites » du système :
   on désactive tout mouvement pour les personnes sensibles. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =====================================================================
   14. RESPONSIVE (tablette & mobile)
   ===================================================================== */

/* Tablette — le menu bascule en tiroir dès cette largeur */
@media (max-width: 900px) {
  /* Menu en tiroir déroulant (hamburger) */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 26, 58, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bordure);
    padding: 1rem var(--pad) 1.6rem;
    transform: translateY(-140%);
    transition: transform .3s ease;
    box-shadow: var(--ombre-forte);
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--bordure); }
  .nav-list a { display: block; padding: .95rem .2rem; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .chat-bubble { right: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .price-card--featured { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero-badges { gap: .4rem 1rem; }

  /* Encart chatbot : on empile l'icône au-dessus du texte, centré */
  .chatbot-cta { flex-direction: column; text-align: center; gap: .8rem; }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .logo-text { font-size: 1rem; }
}

/* =====================================================================
   15. BOUTON FLOTTANT « APPELER » (mobile uniquement)
   ---------------------------------------------------------------------
   Caché sur ordinateur ; apparaît en bas à GAUCHE sur mobile / petite
   tablette (le chatbot occupe le bas à droite).
   ===================================================================== */
.call-fab {
  display: none;                 /* masqué par défaut (ordinateur) */
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); /* respecte l'encoche iPhone */
  z-index: 90;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  background: var(--grad);
  color: #04121f;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.45);
}
.call-fab:hover { text-decoration: none; transform: translateY(-2px); }
.call-fab:active { transform: translateY(0); }
.call-fab-ico { font-size: 1.15rem; line-height: 1; }

/* Visible en dessous de 900px (mobile / petite tablette) */
@media (max-width: 900px) {
  .call-fab { display: inline-flex; }
}

/* =====================================================================
   16. MISE EN VALEUR DU BOUTON DU CHATBOT (widget externe)
   ---------------------------------------------------------------------
   ⚠️ Ce bloc restyle le bouton flottant du chatbot (classe
   « .wbcb-launcher », fournie par le widget Hostinger). Si un jour le
   widget change son code, le bouton reviendra simplement à son
   apparence d'origine — rien ne casse sur le site.
   ===================================================================== */
.wbcb-root .wbcb-launcher {
  width: 66px !important;
  height: 66px !important;
  /* Dégradé bleu → turquoise de la charte */
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%) !important;
  /* Halo turquoise permanent pour attirer l'œil */
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.5) !important;
  animation: wbcb-attn 2.2s ease-out infinite;
}
.wbcb-root .wbcb-launcher:hover {
  transform: scale(1.08);
  filter: brightness(1.06);
}
/* Icône du bouton légèrement agrandie */
.wbcb-root .wbcb-launcher svg {
  width: 32px !important;
  height: 32px !important;
}

/* Pulsation « anneau » qui se propage autour du bouton */
@keyframes wbcb-attn {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55), 0 8px 30px rgba(34, 211, 238, 0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(34, 211, 238, 0),    0 8px 30px rgba(34, 211, 238, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0),       0 8px 30px rgba(34, 211, 238, 0.5); }
}

/* ♿ Pas d'animation si l'utilisateur a réduit les animations */
@media (prefers-reduced-motion: reduce) {
  .wbcb-root .wbcb-launcher { animation: none !important; }
}

/* =====================================================================
   17. BULLE D'ACCROCHE DU CHATBOT (apparaît au-dessus du bouton)
   ===================================================================== */
.chat-teaser {
  position: fixed;
  right: 20px;
  bottom: 98px;                 /* juste au-dessus du bouton (66px + 20px + marge) */
  z-index: 2147482000;          /* sous le widget, au-dessus du site */
  width: max-content;
  max-width: 240px;
  animation: teaser-in .4s ease both;
}
@keyframes teaser-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.chat-teaser-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  text-align: left;
  background: var(--bleu-nuit-2);
  border: 1px solid var(--bordure-forte);
  border-radius: 16px 16px 4px 16px;   /* coin bas-droit pointu = bulle vers le bouton */
  box-shadow: var(--glow);
  padding: .75rem .95rem;
  cursor: pointer;
  line-height: 1.35;
}
.chat-teaser-btn:hover { border-color: var(--turquoise); }
.chat-teaser-hi { display: block; font-size: .95rem; font-weight: 700; color: var(--blanc); }
.chat-teaser-cta { display: block; margin-top: 2px; font-size: .88rem; font-weight: 600; color: var(--turquoise); }
.chat-teaser-close {
  position: absolute;
  top: -10px; right: -10px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--texte-doux);
  border: 1px solid var(--bordure-forte);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
}
.chat-teaser-close:hover { color: var(--blanc); border-color: var(--turquoise); }

@media (prefers-reduced-motion: reduce) {
  .chat-teaser { animation: none; }
}
