/* ============================================================
   home.css : Styles spécifiques à la page d'accueil
   Sublime Gestion Site Vitrine
   ============================================================ */

/* === LOADER PREMIUM (index.html uniquement) === */

.loader {
  background-color: var(--noir);
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader__logo {
  width: 180px;
  height: auto;
  animation: loaderLogoIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.loader__line {
  width: 180px;
  height: 2px;
  background: var(--orange);
  margin-top: 12px;
  transform-origin: left center;
  animation: loaderLineGrow 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.loader--out .loader__content {
  animation: loaderLogoFade 0.2s ease both;
}

.loader--out {
  animation: loaderCurtainUp 0.6s cubic-bezier(0.76, 0, 0.24, 1) both;
}

/* === BARRE DE PROGRESSION SCROLL === */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  z-index: 9998;
  pointer-events: none;
  transition: width 80ms linear;
}

/* === HERO === */

.page-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
  position: relative;
  scroll-margin-top: 100px;
}

@media (min-width: 768px) {
  .page-hero {
    padding-top: 160px;
    padding-bottom: 96px;
  }
}

/* Halo ambiant derrière le dashboard */
.page-hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(var(--orange-rgb), 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

/* Les délais d'entrée du hero étaient calés sur l'ancien loader de la home
   (1,5 s à 2,1 s) : sur les pages de démo, qui n'ont pas de loader, le
   visiteur regardait un hero vide pendant 1,5 s. Délais ramenés à une
   cascade courte. */

/* Rangée de badges hero */
.hero__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-spring) 0.05s both;
}

/* Repère de catégorie au-dessus du H1 (pages solutions) */
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-spring) 0.05s both;
}

.hero__kicker-num {
  font-variant-numeric: tabular-nums;
  color: var(--muted-light);
}

.hero__kicker-num::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Titre H1 hero */
.hero__headline {
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
  color: var(--ink);
  max-width: 980px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-spring) 0.15s both;
}

/* Partie italique Instrument Sans dans le titre */
.hero__headline .italic {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: -0.025em;
}

/* Sous-titre */
.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-spring) 0.3s both;
}

/* Rangée CTA */
.hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-spring) 0.42s both;
}

/* Zone dashboard hero */
.hero__visual {
  max-width: 1100px;
  margin-inline: auto;
  opacity: 0;
  animation: fadeUp 1s var(--ease-spring) 0.55s both;
}

/* Animation par mot pour le H1 (activée par JS) */
.hero__headline.js-words .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.5s var(--ease-spring) both;
}

/* === DASHBOARD INTERACTIF === */

.dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-margin-top: 100px;
}

/* Survol sobre : légère élévation + ombre plus marquée (remplace l'ancien
   effet de bascule 3D au curseur, jugé trop prononcé et instable). */
.dashboard:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* === DASHBOARD À CONTENU VARIABLE (onglets dont le contenu n'a pas tous
   la même hauteur : profils, tableaux de bord SaaS génériques, etc.) ===
   Le dashboard de base ci-dessus est prévu pour un cadre à hauteur fixe :
   .dashboard__panels a `height:100%` sur un parent en `height:auto`, ce qui
   ne se recalcule pas de façon fiable quand JS active dynamiquement un
   nouveau panel (bug constaté : le panel devient anormalement haut, contenu
   poussé en bas, sur tous les onglets sauf celui déjà actif au chargement).
   Ce modificateur neutralise toute hauteur en pourcentage/calc et ne garde
   que le panel actif dans le flux : à utiliser sur tout dashboard dont les
   panels affichent un contenu de longueur variable. */

.dashboard--dynamic .dashboard__panels {
  height: auto;
  min-height: 0;
}

.dashboard--dynamic .dashboard__content {
  height: auto;
}

.dashboard--dynamic .dashboard__panel {
  position: static;
  inset: auto;
  overflow: visible;
}

/* Seul le panel actif reste dans le flux : évite tout empilement transitoire
   des deux panels (sortant + entrant) pendant les 160ms où dashboard.js
   retire l'attribut hidden avant de le reposer sur l'ancien panel. */
.dashboard--dynamic .dashboard__panel:not(.is-active) {
  display: none;
}

.dashboard--dynamic .dashboard__layout {
  min-height: 0;
}

/* .mock-screen est prévu à l'origine pour un parent à hauteur fixe
   (aspect-ratio 4/3 sur .fonc-hero__visual) ; à l'intérieur d'un dashboard
   à contenu variable, ce parent n'existe pas : on remplace explicitement
   son `height: calc(100% - 48px)` par une hauteur naturelle. */
.dashboard--dynamic .mock-screen {
  height: auto;
}

/* Section d'intro générique au-dessus d'un dashboard à onglets */
.dashboard-intro {
  padding: var(--space-16) 0 var(--space-10);
  text-align: center;
  scroll-margin-top: 100px;
}

.dashboard-intro__h2 em,
.solution-details__h2 em {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: -0.02em;
}

/* === PAGES SOLUTIONS : GABARIT PARTAGÉ === */

.page-hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-spring) 0.42s both;
}

.demo-section {
  padding-bottom: var(--space-4);
}

/* Contrôles au-dessus d'une démo (segmented control + astuce) */
.demo-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(var(--noir-rgb), 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}

.seg__btn svg {
  width: 15px;
  height: 15px;
}

.seg__btn:hover {
  color: var(--ink);
}

.seg__btn.is-active {
  background: var(--ink);
  color: #FFFFFF;
}

.seg__btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.demo-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Pastille « Interactif » : la démo se manipule (halos orange = points de départ) */
.demo-tip::before {
  content: 'Interactif';
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 4px 24px;
  border-radius: var(--radius-pill);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D14E15' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9l11 4-5 2-2 5z'/%3E%3Cpath d='M4 4l2 2M9 2v3M2 9h3'/%3E%3C/svg%3E") no-repeat 8px 50% / 12px 12px, rgba(var(--orange-rgb), 0.1);
  color: var(--orange-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-tip kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
}

/* Toast de démo (retour d'action simulée) */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--noir);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-spring);
  max-width: calc(100vw - 32px);
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.demo-toast--info .demo-toast__dot {
  background: var(--orange);
}

/* Ce que ça couvre + repères */
.solution-details {
  padding: var(--space-20) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.solution-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: var(--space-16);
  align-items: start;
}

.solution-details__head {
  margin-bottom: var(--space-6);
}

.solution-details__head .eyebrow {
  display: inline-flex;
  margin-bottom: var(--space-3);
}

.solution-details__h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.12;
}

.solution-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.solution-details__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.solution-details__item:last-child {
  border-bottom: none;
}

.solution-details__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

.solution-details__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
}

.solution-details__text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.solution-reperes {
  position: sticky;
  top: 100px;
  background: var(--noir);
  color: #FFFFFF;
  border-radius: 24px;
  padding: var(--space-8);
}

.solution-reperes__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--orange-rgb), 0.9);
  margin-bottom: var(--space-3);
}

.solution-reperes__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solution-reperes__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.solution-reperes__value {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: right;
}

.solution-reperes__note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  margin-top: var(--space-4);
}

.solution-reperes__note a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.solution-reperes .btn {
  margin-top: var(--space-5);
}

/* Rail des autres familles */
.solutions-rail {
  padding: var(--space-16) 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.solutions-rail__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.solutions-rail__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.solutions-rail__all {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

.solutions-rail__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}

.solutions-rail__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-standard), border-color 0.3s var(--ease-standard);
}

.solutions-rail__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--orange-rgb), 0.3);
}

.solutions-rail__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(var(--orange-rgb), 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solutions-rail__icon svg {
  width: 15px;
  height: 15px;
}

.solutions-rail__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-light);
}

.solutions-rail__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1023px) {
  .solutions-rail__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .solution-details__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .solution-reperes {
    position: static;
  }
}

@media (max-width: 640px) {
  .solutions-rail__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Légende "exemple illustratif" sous un dashboard de démo générique.
   Marge basse explicite (bug corrigé : elle était à 0, ce qui collait
   le texte contre la section sombre suivante sans aucune respiration). */
.dashboard-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
  margin: var(--space-5) auto var(--space-16);
}

/* La CTA finale générique (.solution-final-cta) est définie dans
   components.css : partagée par les pages de démo, la FAQ et le blog. */

/* Chrome barre navigateur */
.dashboard__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 16px;
  background: #F0EEEA;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.dashboard__chrome-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dashboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard__dot--red    { background: #FF5F57; }
.dashboard__dot--yellow { background: #FEBC2E; }
.dashboard__dot--green  { background: #28C840; }

.dashboard__url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-light);
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  padding: 4px 12px;
  border: 1px solid var(--border);
  margin: 0 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Layout : sidebar + content */
.dashboard__layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 430px;
  background: var(--bg);
}

/* Sidebar */
.dashboard__sidebar {
  background: var(--bg-dark);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 8px 16px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: var(--space-3);
}

.dashboard__brand-icon {
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.dashboard__nav-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}

.dashboard__nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.dashboard__nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.dashboard__nav-btn.is-active {
  background: var(--orange);
  color: #FFFFFF;
}

/* Zone de contenu */
.dashboard__content {
  position: relative;
  overflow: hidden;
}

/* Conteneur des panels (relative pour les panels absolus) */
.dashboard__panels {
  position: relative;
  height: 100%;
  min-height: 430px;
}

/* Panel individuel */
.dashboard__panel {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
  pointer-events: none;
  overflow: hidden;
}

.dashboard__panel.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Header commun des panels */
.dashboard__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard__panel-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* === DASHBOARD : TAB DASHBOARD === */

.dashboard__kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard__kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.dashboard__kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.dashboard__kpi-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.dashboard__kpi-trend {
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  margin-top: 3px;
}

/* Rangée chart + events */
.dashboard__chart-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  flex: 1;
}

.dashboard__chart-card,
.dashboard__events-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  overflow: hidden;
}

.dashboard__card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

/* Graphique courbe SVG */
.dashboard__line-chart {
  display: block;
  width: 100%;
  height: 80px;
  overflow: visible;
}

.chart-area-fill {
  fill: url(#chartGradient);
  opacity: 0.35;
}

.chart-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: var(--orange);
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.chart-label {
  font-size: 9px;
  color: var(--muted-light);
  font-weight: 500;
}

/* Liste événements */
.dashboard__event {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.dashboard__event:last-child {
  border-bottom: none;
}

.dashboard__event-time {
  font-weight: 700;
  color: var(--orange);
  min-width: 38px;
  flex-shrink: 0;
}

.dashboard__event-info strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.dashboard__event-info span {
  color: var(--muted);
  font-size: 10px;
}

/* === DASHBOARD : TAB PLANNING === */

.dashboard__planning {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.dashboard__planning-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.dashboard__planning-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.dashboard__planning-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}

.dashboard__planning-today {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Légende moniteurs */
.dashboard__planning-legend {
  display: flex;
  gap: var(--space-4);
}

.dashboard__legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.dashboard__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Grille planning */
.dashboard__grid {
  display: grid;
  grid-template-columns: 36px repeat(5, 1fr);
  gap: 4px;
  flex: 1;
}

.dashboard__grid-header {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
}

.dashboard__grid-header.is-today {
  color: var(--orange);
}

.dashboard__grid-cell {
  height: 32px;
  position: relative;
}

.dashboard__grid-hour {
  font-size: 9px;
  color: var(--muted-light);
  font-weight: 500;
  text-align: right;
  padding-top: 3px;
  padding-right: 4px;
}

/* Créneau coloré */
.dashboard__slot {
  position: absolute;
  inset: 1px 2px;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard__slot--1 { background: rgba(var(--orange-rgb), 0.15); color: var(--orange); }
.dashboard__slot--2 { background: rgba(59, 130, 246, 0.14); color: #2563EB; }
.dashboard__slot--3 { background: rgba(16, 185, 129, 0.14); color: #059669; }

/* === DASHBOARD : TAB ÉLÈVES === */

.dashboard__table {
  flex: 1;
  overflow: hidden;
}

.dashboard__table-head {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 0.9fr;
  gap: var(--space-3);
  padding: 0 8px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  border-bottom: 1px solid var(--border);
}

.dashboard__table-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 0.9fr;
  gap: var(--space-3);
  padding: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur-fast) var(--ease-standard);
}

.dashboard__table-row:last-child {
  border-bottom: none;
}

.dashboard__table-row:hover {
  background: rgba(var(--ink-rgb), 0.025);
}

/* Avatar initiales */
.dashboard__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
}

.dashboard__avatar--orange { background: rgba(var(--orange-rgb), 0.12); color: var(--orange); border-color: rgba(var(--orange-rgb), 0.25); }
.dashboard__avatar--blue   { background: rgba(59, 130, 246, 0.12); color: #2563EB; border-color: rgba(59, 130, 246, 0.25); }
.dashboard__avatar--teal   { background: rgba(var(--success-rgb), 0.12); color: var(--success); border-color: rgba(var(--success-rgb), 0.25); }

.dashboard__cell-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard__cell-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Barre de progression */
.dashboard__progress-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard__progress {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.dashboard__progress-bar {
  height: 100%;
  background: var(--orange);
  border-radius: var(--radius-pill);
}

.dashboard__progress-pct {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  min-width: 28px;
  text-align: right;
}

/* Prochaine leçon */
.dashboard__cell-lesson {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === DASHBOARD : TAB FACTURATION === */

.dashboard__invoice-head {
  display: grid;
  grid-template-columns: 2fr 1fr 0.8fr 0.9fr;
  gap: var(--space-3);
  padding: 0 8px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  border-bottom: 1px solid var(--border);
}

.dashboard__invoice-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.8fr 0.9fr;
  gap: var(--space-3);
  padding: 8px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.dashboard__invoice-row:last-child {
  border-bottom: none;
}

.dashboard__invoice-num {
  font-size: 10px;
  color: var(--muted);
}

.dashboard__invoice-date {
  font-size: 11px;
  color: var(--muted);
}

.dashboard__invoice-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* === DASHBOARD : TAB STATISTIQUES === */

.dashboard__stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard__stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.dashboard__stat-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.dashboard__stat-card-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.dashboard__stat-card-delta {
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  margin-top: 3px;
}

.dashboard__stats-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  flex: 1;
}

.dashboard__bar-chart-card,
.dashboard__donut-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard__bar-chart {
  display: block;
  width: 100%;
  height: 72px;
}

.bar-rect {
  fill: var(--border);
  rx: 2;
  transition: fill var(--dur-base) var(--ease-standard);
}

.bar-rect:last-of-type {
  fill: var(--orange);
}

.dashboard__donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  position: relative;
}

.dashboard__donut {
  width: 80px;
  height: 80px;
}

.donut-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.donut-arc {
  fill: none;
  stroke: var(--orange);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 40px 40px;
  transition: stroke-dashoffset 1s var(--ease-spring);
}

.dashboard__donut-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.dashboard__donut-pct {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.dashboard__donut-sub {
  font-size: 8px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

/* === LOGOS MARQUEE === */

.logos-strip {
  padding-block: 60px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-strip__label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.logos-strip__marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logos-strip__track {
  display: flex;
  gap: 60px;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
  padding-right: 60px;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.logos-strip__item {
  font-size: 20px;
  font-weight: 400;
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  color: var(--ink);
  opacity: 0.45;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* === FEATURE ROWS === */

.feature-rows {
  padding-block: var(--section-py);
}

.feature-row {
  display: grid;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-20);
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .feature-row--reverse {
    direction: rtl;
  }

  .feature-row--reverse > * {
    direction: ltr;
  }
}

.feature-row__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-row__content h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.feature-row__content h3 .italic {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}

.feature-row__content p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

/* Visual box */
.feature-row__visual {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  overflow: hidden;
}

/* === VISUAL : NODES FLOW === */

.nodes-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  max-width: 320px;
}

.node {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
}

.node::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 24px;
  width: 2px;
  height: 9px;
  background: var(--border);
}

.node:last-child::after {
  display: none;
}

.node--highlighted {
  border-color: rgba(var(--success-rgb), 0.35);
  background: rgba(var(--success-rgb), 0.04);
}

.node__icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.node--highlighted .node__icon {
  background: rgba(var(--success-rgb), 0.10);
  border-color: rgba(var(--success-rgb), 0.25);
}

.node__icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
}

.node--highlighted .node__icon svg {
  stroke: var(--success);
}

.node__label {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.node--highlighted .node__label {
  background: rgba(var(--success-rgb), 0.12);
  color: var(--success);
}

/* === VISUAL : STATS DISPLAY === */

.stats-visual {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.stats-visual__big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-2);
}

.stats-visual__num {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.stats-visual__pct {
  font-size: 36px;
  font-weight: 600;
  color: var(--orange);
}

.stats-visual__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.stats-visual__chart {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 60px;
  margin-bottom: var(--space-3);
}

.stats-visual__bar {
  flex: 1;
  background: var(--border);
  border-radius: 3px 3px 0 0;
}

.stats-visual__bar--high { background: rgba(var(--orange-rgb), 0.35); }
.stats-visual__bar--highest { background: var(--orange); }

.stats-visual__legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted-light);
  font-weight: 500;
}

/* === VISUAL : FACTURES === */

.invoices-list {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: var(--space-4);
}

.invoice-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.invoice-item__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
}

.invoice-item__avatar--orange { background: rgba(var(--orange-rgb), 0.10); color: var(--orange); }

.invoice-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.invoice-item__ref {
  font-size: 11px;
  color: var(--muted);
}

.invoice-item__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.invoice-item__amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* === COMPARISON (fond dark) === */

.comparison-section {
  background: var(--bg-dark);
  padding-block: var(--section-py);
  margin-inline: var(--space-4);
  border-radius: var(--radius-2xl);
}

@media (min-width: 768px) {
  .comparison-section {
    margin-inline: var(--space-8);
  }
}

.comparison-section h2 {
  color: #FFFFFF;
}

.comparison-section h2 .italic {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}

/* Table comparatif */
.compare-table {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.compare-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.40);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-header__us {
  color: var(--orange);
}

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-dark);
  align-items: center;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.compare-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.compare-feature span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.40);
}

.compare-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
}

.compare-cell svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.compare-cell--them {
  color: rgba(255, 255, 255, 0.35);
}

.compare-cell--them svg {
  stroke: rgba(255, 255, 255, 0.30);
}

.compare-cell--us {
  color: var(--success);
}

.compare-cell--us svg {
  stroke: var(--success);
}

/* === STEPS (HOW IT WORKS) === */

.steps-section {
  padding-block: var(--section-py);
}

.steps-grid {
  display: grid;
  gap: var(--space-6);
  counter-reset: steps;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.step-card__number {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* === PRICING PREVIEW === */

.pricing-preview {
  padding-block: var(--section-py);
  background: var(--cream);
}

.pricing-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--dur-slow) var(--ease-standard), box-shadow var(--dur-slow) var(--ease-standard);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured {
  border-color: rgba(var(--orange-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(var(--orange-rgb), 0.12), var(--shadow-md);
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-6);
}

.price-card__amount {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.price-card__period {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price-card__no-commit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: var(--space-5);
}

.price-card__no-commit svg {
  flex-shrink: 0;
}

.price-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex: 1;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.4;
}

.price-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card__cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(var(--noir-rgb), 0.15);
  color: var(--ink);
  transition: background-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}

.price-card__cta:hover {
  background: rgba(var(--noir-rgb), 0.05);
  transform: translateY(-1px);
}

.price-card--featured .price-card__cta {
  background: var(--orange);
  color: #FFFFFF;
  border-color: transparent;
}

.price-card--featured .price-card__cta:hover {
  background: var(--orange-hover);
}

.pricing-preview__footnote {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--space-6);
}

/* === TESTIMONIALS MARQUEE === */

.testimonials-section {
  padding-block: var(--section-py);
  overflow: hidden;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 340px;
  flex-shrink: 0;
}

.testi-card__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: var(--space-5);
}

.testi-card__quote .italic {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  color: var(--ink);
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testi-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  flex-shrink: 0;
}

.testi-card__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.testi-card__role {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* === FAQ === */

.faq-section {
  padding-block: var(--section-py);
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-standard);
}

.faq-item.is-open {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-standard), background-color var(--dur-base) var(--ease-standard);
}

.faq-item.is-open .faq-toggle {
  transform: rotate(45deg);
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-standard);
}

.faq-answer__inner {
  padding: 0 22px 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

/* === CONTACT SECTION (HOME) === */

.contact-home {
  padding-block: var(--section-py);
  background: var(--cream);
}

.contact-home__grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-home__grid {
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-16);
    align-items: start;
  }
}

.contact-home__info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.contact-home__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: 14px;
  color: var(--ink-2);
}

.contact-home__info-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.contact-home__info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

/* Formulaire */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-form__row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.contact-label .required {
  color: var(--orange);
  margin-left: 2px;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
  appearance: none;
  -webkit-appearance: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--muted-light);
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.12);
}

.contact-field.has-error .contact-input,
.contact-field.has-error .contact-select,
.contact-field.has-error .contact-textarea {
  border-color: #EF4444;
}

.contact-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.contact-error {
  font-size: 12px;
  color: #EF4444;
  font-weight: 500;
  display: none;
}

.contact-field.has-error .contact-error {
  display: block;
}

.contact-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 28px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}

.contact-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.35);
}

.contact-submit:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.contact-legal {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-legal a {
  color: var(--orange);
  text-decoration: underline;
}

/* Message de succès */
.contact-success {
  display: none;
  text-align: center;
  padding: var(--space-12);
  align-items: center;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-success.is-visible {
  display: flex;
}

.contact-success__icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--success-rgb), 0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}

.contact-success h3 {
  font-size: 20px;
  color: var(--ink);
}

.contact-success p {
  font-size: 15px;
  color: var(--muted);
  max-width: 360px;
}

.contact-success__btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* === CTA FINAL === */

.cta-final {
  padding-block: var(--section-py);
}

.cta-final__box {
  background: var(--noir);
  border-radius: var(--radius-2xl);
  padding: 80px var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final__box::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at top, rgba(var(--orange-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-final__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--orange-rgb), 0.80);
  display: block;
  margin-bottom: var(--space-4);
}

.cta-final__box h2 {
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}

.cta-final__box h2 .italic {
  font-family: 'Instrument Sans', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}

.cta-final__box p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* === VISUAL : ESPACE ÉLÈVE === */

.eleve-preview {
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.eleve-preview__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.eleve-preview__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--orange-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}

.eleve-preview__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.eleve-preview__meta {
  font-size: 11px;
  color: var(--muted);
}

.eleve-preview__info {
  flex: 1;
}

.eleve-preview__prog-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: var(--space-2);
}

.eleve-preview__prog-label strong {
  color: var(--orange);
}

.eleve-preview__prog-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.eleve-preview__prog-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 100px;
}

.eleve-preview__next-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.eleve-preview__next {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(var(--orange-rgb), 0.06);
  border: 1px solid rgba(var(--orange-rgb), 0.15);
  border-radius: var(--radius-md);
  color: var(--orange);
}

.eleve-preview__next-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.eleve-preview__next-sub {
  font-size: 11px;
  color: var(--muted);
}

.eleve-preview__cta {
  background: var(--orange);
  color: #FFFFFF;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}

/* === TÉMOIGNAGES : ÉTOILES === */

.testi-card__stars {
  font-size: 14px;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

/* === TÉMOIGNAGES : BADGES PROFIL === */

.testi-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: var(--space-3);
}

.testi-badge--gerant {
  background: rgba(231, 92, 31, 0.10);
  color: #E75C1F;
}

.testi-badge--secretaire {
  background: rgba(45, 107, 228, 0.10);
  color: #2D6BE4;
}

.testi-badge--moniteur {
  background: rgba(5, 150, 105, 0.10);
  color: #059669;
}

/* === CTA FINAL : ACTIONS === */

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* === TABS MOBILE (caché sur desktop) === */

.dashboard__tabs-mobile {
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 12px;
  gap: 6px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.dashboard__tabs-mobile::-webkit-scrollbar {
  display: none;
}

.dashboard__tab-mobile {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard);
}

.dashboard__tab-mobile:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard__tab-mobile.is-active {
  background: var(--orange);
  color: #FFFFFF;
}

/* === PLANNING LIST MOBILE (caché sur desktop) === */

.dashboard__planning-list {
  display: none;
}

.dashboard__slot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.dashboard__slot-item--1 { background: rgba(231, 92, 31, 0.10); }
.dashboard__slot-item--2 { background: rgba(59, 130, 246, 0.10); }
.dashboard__slot-item--3 { background: rgba(16, 185, 129, 0.10); }

.dashboard__slot-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 38px;
  flex-shrink: 0;
}

.dashboard__slot-info {
  font-size: 13px;
  color: var(--ink);
}

.dashboard__slot-info strong {
  font-weight: 700;
}

/* === RESPONSIVE DASHBOARD === */

@media (max-width: 1023px) {
  .hero__visual {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard {
    min-width: 720px;
  }
}

@media (max-width: 768px) {
  /* Hero : pleine largeur sans scroll horizontal */
  /* overflow: visible annule l'overflow-x: hidden hérité de la règle 1023px */
  /* (overflow-x: hidden force overflow-y: auto sur iOS, ce qui coupe le haut du dashboard) */
  .hero__visual {
    overflow: visible;
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: 0;
  }

  /* Dashboard : réinitialise toute la mise en page desktop */
  .dashboard {
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
  }

  /* Chrome navigateur fictif caché sur mobile */
  .dashboard__chrome {
    display: none;
  }

  /* Tabs mobile visibles + séparation par rapport au hero au-dessus */
  .dashboard__tabs-mobile {
    display: flex;
    margin-top: 24px;
    padding-top: 8px;
  }

  /* Sidebar desktop cachée */
  .dashboard__sidebar {
    display: none !important;
  }

  /* Layout mono-colonne */
  .dashboard__layout {
    display: block;
  }

  /* Contenu pleine largeur */
  .dashboard__content {
    width: 100%;
    overflow: hidden;
  }

  /* Panels : display none → display block pour le panel actif */
  .dashboard__panels {
    position: static;
    height: auto;
    min-height: 0;
  }

  .dashboard__panel {
    position: static;
    display: none;
    width: 100%;
    padding: 16px;
    opacity: 1;
    transform: none;
    transition: none;
    overflow: visible;
    pointer-events: auto;
  }

  .dashboard__panel.is-active {
    display: block !important;
  }

  /* KPI : colonne unique */
  .dashboard__kpi-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Chart et événements : empilés */
  .dashboard__chart-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Stat cards : colonne unique */
  .dashboard__stat-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Stats charts : colonne unique */
  .dashboard__stats-charts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Table élèves : cache les en-têtes, simplifie les lignes */
  .dashboard__table-head {
    display: none;
  }

  .dashboard__table-row {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 12px 0;
  }

  /* Factures : cache les en-têtes */
  .dashboard__invoice-head {
    display: none;
  }

  .dashboard__invoice-row {
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
  }

  /* Planning : cache la grille, montre la liste */
  .dashboard__grid {
    display: none;
  }

  .dashboard__planning-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .dashboard__planning-toolbar {
    flex-direction: column;
    gap: 8px;
  }

  .dashboard__planning-legend {
    flex-wrap: wrap;
  }
}

/* === RESPONSIVE GÉNÉRAL === */

@media (max-width: 767px) {
  .cta-final__box {
    padding: 48px var(--space-6);
  }

  .compare-header,
  .compare-row {
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    padding-inline: var(--space-4);
    gap: var(--space-3);
  }

  .feature-row__visual {
    min-height: 240px;
    padding: var(--space-5);
  }

  .step-card {
    padding: var(--space-6);
  }
}

/* === PREFERS-REDUCED-MOTION === */

@media (prefers-reduced-motion: reduce) {
  .hero__badges,
  .hero__headline,
  .hero__sub,
  .hero__cta-row,
  .hero__visual {
    animation: none;
    opacity: 1;
  }

  .logos-strip__track {
    animation: none;
  }
}

.home-hero {
  position: relative;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
}

/* === SPLIT TEXT === */

.home-hero__h1.split-active,
[data-split].split-active {
  animation: none;
  opacity: 1;
}

.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(0.05s + var(--wi, 0) * 0.065s) both;
}

.split-word--elem {
  display: inline;
}

.split-word--elem > em {
  display: inline;
}

/* === STATS ROW (dans pourquoi-section) === */

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 560px;
  margin: 0 auto var(--space-12);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-num {
  display: block;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .stats-row {
    flex-direction: column;
    gap: 20px;
    padding: 24px var(--space-6);
  }
  .stat-divider {
    width: 48px;
    height: 1px;
  }
}

/* === PREFERS-REDUCED-MOTION : effets cinématiques === */

@media (prefers-reduced-motion: reduce) {
  .split-word {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* === ÉQUILIBRE DES TITRES : accroches longues des pages de solution === */

.dashboard-intro__h2,
.solution-details__h2,
.solution-final-cta__title { text-wrap: balance; }

/* L'accent italique passe toujours sur sa propre ligne (jamais coupé en plein milieu) */
.dashboard-intro__h2 em,
.solution-details__h2 em,
.solution-final-cta__title em { display: block; }

/* Repère de famille : peut passer à la ligne proprement sur petit écran */
.hero__kicker { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
