/* ==========================================================================
   OF Factory CRM — feuille de styles
   Sommaire
   01. Polices
   02. Variables
   03. Base
   04. Éléments communs (conteneur, boutons, titres de section, écran dessiné)
   05. En-tête
   06. Hero
   07. La chaîne
   08. Atouts
   09. Fonctionnalités
   10. Pour qui ?
   11. Tarifs
   12. Qui sommes-nous ?
   13. Demande de démo
   14. FAQ
   15. Pied de page
   16. Rappel de démo et retour en haut
   17. Maquettes d'interface dessinées (préfixe .m-)
   18. Pages légales
   19. Apparition au défilement
   20. Animations réduites
   ========================================================================== */

/* 01. Polices ------------------------------------------------------------ */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-800.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

/* 02. Variables ---------------------------------------------------------- */
:root {
  /* Couleurs relevées dans l'interface d'OF Factory CRM */
  --bleu: #1e40af;
  --bleu-fonce: #172f85;
  --bleu-nuit: #101e57;
  --bleu-vif: #3b82f6;
  --bleu-pale: #eff6ff;
  --bleu-pale-2: #dbeafe;
  --ambre: #f59e0b;
  --ambre-pale: #fef3c7;
  --ambre-texte: #92400e;
  --rouge: #ef4444;
  --rouge-pale: #fee2e2;
  --rouge-texte: #b91c1c;
  --vert-pale: #d1fae5;
  --vert-texte: #065f46;
  --violet-pale: #ede9fe;
  --violet-texte: #5b21b6;
  --encre: #111827;
  --texte: #374151;
  --texte-discret: #4b5563;
  --papier: #f9fafb;
  --blanc: #ffffff;
  --trait: #e5e7eb;
  --trait-fort: #d1d5db;

  /* Typographie */
  --police: "Montserrat", "Segoe UI", Arial, sans-serif;
  --taille-texte: 1.0625rem;
  --taille-petit: 0.9375rem;
  --taille-h1: clamp(2.125rem, 1.2rem + 3.6vw, 3.5rem);
  --taille-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --taille-h3: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);

  /* Mesures */
  --largeur: 73.75rem;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
  --rayon: 8px;
  --rayon-grand: 12px;
  --section: clamp(4rem, 9vw, 7.5rem);
  --hauteur-entete: 4.5rem;
  --dent: 64px 24px; /* une dent du toit d'usine */
}

/* 03. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hauteur-entete) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: var(--taille-texte);
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--encre);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--taille-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--taille-h2);
  font-weight: 800;
}

h3 {
  font-size: var(--taille-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--bleu);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--bleu-fonce);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--encre);
  color: var(--blanc);
  border-radius: var(--rayon);
}

.lien-evitement:focus {
  top: 1rem;
  color: var(--blanc);
}

.masque-visuel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 04. Éléments communs --------------------------------------------------- */
.conteneur {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
}

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

.section--papier {
  background: var(--papier);
  border-block: 1px solid var(--trait);
}

/* Section claire dont le bas s'ouvre sur un toit en dents de scie : pas de filet */
.section--bas-ouvert {
  border-bottom: 0;
}

/* En-tête de page qui enchaîne directement sur une bande bleue à dents de scie */
.page-entete--ouvert {
  border-bottom: 0;
}

.section__tete {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section__tete p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--texte-discret);
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 2px solid var(--bleu);
  border-radius: var(--rayon);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.bouton--plein {
  background: var(--bleu);
  color: var(--blanc);
}

.bouton--plein:hover {
  background: var(--bleu-fonce);
  border-color: var(--bleu-fonce);
  color: var(--blanc);
  transform: translateY(-2px);
}

.bouton--contour {
  background: var(--blanc);
  color: var(--bleu);
}

.bouton--contour:hover {
  background: var(--bleu-pale);
  transform: translateY(-2px);
}

.bouton--clair {
  background: var(--blanc);
  border-color: var(--blanc);
  color: var(--bleu);
}

.bouton--clair:hover {
  background: var(--bleu-pale-2);
  border-color: var(--bleu-pale-2);
  transform: translateY(-2px);
}

.bouton--petit {
  min-height: 2.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* Marqueur « à compléter » : informations que nous n'avons pas encore */
.a-completer {
  display: inline-block;
  padding: 0.1em 0.5em;
  border: 1.5px dashed var(--ambre);
  border-radius: 4px;
  background: var(--ambre-pale);
  color: var(--ambre-texte);
  font-size: 0.875em;
  font-weight: 600;
}

/* Toit d'usine : bordure en dents de scie posée au-dessus des blocs bleus */
.toit {
  height: 24px;
  background-image: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    var(--couleur-toit, var(--bleu)) calc(50% + 0.5px)
  );
  background-size: var(--dent);
  background-repeat: repeat-x;
}

/* Variante posée à la suite d'un bloc gris clair */
.toit--papier {
  background-color: var(--papier);
}

/* Écran dessiné : cadre qui accueille les maquettes d'interface */
.ecran {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon-grand);
  background: var(--papier);
  box-shadow: 12px 12px 0 var(--bleu-pale-2);
}

.ecran__barre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--trait);
  background: var(--blanc);
}

.ecran__barre img {
  width: auto;
  height: 1rem;
}

.ecran__onglet {
  margin-left: auto;
  padding: 0.1rem 0.6rem;
  border-radius: 4px;
  background: var(--bleu-pale);
  color: var(--bleu);
  font-size: 0.75rem;
  font-weight: 600;
}

.ecran__corps {
  /* Tout le contenu d'une maquette est dimensionné en em :
     il se réduit avec la largeur du cadre. */
  padding: 1.6em;
  font-size: clamp(6px, 1.95cqi, 12.5px);
  line-height: 1.35;
  color: var(--encre);
}

.legende {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--texte-discret);
}

figure {
  margin: 0;
}

/* 05. En-tête ------------------------------------------------------------ */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.entete.est-decollee {
  border-bottom-color: var(--trait);
}

.entete__barre {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--hauteur-entete);
}

.entete__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.entete__logo img {
  display: block;
  width: auto;
  height: 2.125rem;
}

.menu {
  margin-left: auto;
}

.menu__liste {
  display: flex;
  gap: 0.25rem;
}

.menu__lien {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: var(--rayon);
  color: var(--encre);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.menu__lien:hover {
  background: var(--bleu-pale);
  color: var(--bleu);
}

.menu__bascule {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  cursor: pointer;
}

@media (max-width: 56rem) {
  .menu {
    order: 3;
    margin-left: 0;
  }

  .entete__demo {
    margin-left: auto;
  }

  .menu__bascule {
    display: inline-flex;
  }

  .menu__liste {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--marge) 1rem;
    background: var(--blanc);
    border-bottom: 1px solid var(--trait);
  }

  .menu__liste.est-ouverte {
    display: flex;
  }

  .menu__lien {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--trait);
    border-radius: 0;
    font-size: 1.0625rem;
  }
}

@media (max-width: 34rem) {
  .entete__barre {
    gap: 0.6rem;
  }

  .entete__logo img {
    height: 1.625rem;
  }

  .entete .entete__demo {
    padding-inline: 0.7rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 24rem) {
  .entete__barre {
    gap: 0.3rem;
  }

  .entete__logo img {
    height: 1.3rem;
  }

  .entete .entete__demo {
    padding-inline: 0.5rem;
    font-size: 0.7rem;
  }

  .menu__bascule {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* 06. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
  background: var(--papier);
}

/* Quadrillage de plan d'atelier, estompé vers le bas */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}

.hero__grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 13fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__kicker {
  margin-bottom: 1rem;
  color: var(--bleu);
  font-size: 1.0625rem;
  font-weight: 700;
}

.hero__texte p {
  max-width: 32rem;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--texte-discret);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

@media (max-width: 60rem) {
  .hero__grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visuel {
    padding-right: 12px; /* place pour l'ombre portée de l'écran */
  }
}

/* 07. La chaîne ---------------------------------------------------------- */
.chaine__fond {
  background-color: var(--bleu);
  color: var(--bleu-pale-2);
  /* Quadrillage blanc sur fond bleu : un plan d'atelier */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.chaine h2 {
  color: var(--blanc);
}

.chaine .section__tete p {
  color: var(--bleu-pale-2);
}

.postes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 3rem;
  counter-reset: poste;
}

/* Le rail qui relie les postes */
.postes::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0.9375rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
}

/* L'affaire qui avance sur le rail */
.postes__affaire {
  position: absolute;
  top: 0.375rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  background: var(--ambre);
  animation: avancer-rail 12s linear infinite;
}

@keyframes avancer-rail {
  0% {
    left: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 1.25rem);
    opacity: 0;
  }
}

.poste {
  position: relative;
  counter-increment: poste;
}

/* Repère du poste sur le rail */
.poste::before {
  content: counter(poste);
  position: absolute;
  top: -3rem;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--blanc);
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 0.875rem;
  font-weight: 700;
}

.poste h3 {
  color: var(--blanc);
  font-size: 1.0625rem;
}

.poste p {
  margin-top: 0.5rem;
  font-size: var(--taille-petit);
  line-height: 1.5;
}

.chaine__note {
  max-width: 44rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  font-size: var(--taille-petit);
}

@media (max-width: 62rem) {
  /* Le rail passe à la verticale */
  .postes {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    padding-top: 0;
    padding-left: 3.25rem;
  }

  .postes::before {
    left: 0.9375rem;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .postes__affaire {
    top: 0;
    left: 0.375rem;
    animation-name: avancer-rail-vertical;
  }

  .poste::before {
    top: -0.25rem;
    left: -3.25rem;
  }
}

@keyframes avancer-rail-vertical {
  0% {
    top: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 1.25rem);
    opacity: 0;
  }
}

/* 08. Atouts ------------------------------------------------------------- */
.atouts__grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.atout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
  transition: border-color 0.2s, transform 0.2s;
}

.atout:hover {
  border-color: var(--bleu);
  transform: translateY(-3px);
}

.atout p {
  margin-top: 0.75rem;
  color: var(--texte-discret);
}

.atout--large {
  grid-column: span 7;
}

.atout--etroit {
  grid-column: span 5;
}

.atout--bleu {
  border-color: var(--bleu);
  background: var(--bleu);
}

.atout--bleu h3 {
  color: var(--blanc);
}

.atout--bleu p {
  color: var(--bleu-pale-2);
}

.atout--bleu:hover {
  border-color: var(--bleu-fonce);
}

.atout__visuel {
  container-type: inline-size;
  margin-top: auto;
}

.atout__visuel > div {
  font-size: clamp(9px, 2.6cqi, 13px);
  line-height: 1.35;
  color: var(--encre);
}

.atout--etroit .atout__visuel > div {
  font-size: clamp(9px, 3.4cqi, 13px);
}

@media (max-width: 56rem) {
  .atout--large,
  .atout--etroit {
    grid-column: 1 / -1;
  }
}

/* 09. Fonctionnalités ---------------------------------------------------- */
.fonctions {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6.5rem);
}

.fonction {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Une ligne sur deux : l'écran passe à gauche, dans la colonne large */
.fonction:nth-child(even) {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.fonction:nth-child(even) .fonction__texte {
  order: 2;
}

.fonction__texte p {
  margin-top: 1rem;
  color: var(--texte-discret);
}

.fonction__points {
  display: grid;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.fonction__points li {
  position: relative;
  padding-left: 1.75rem;
  font-size: var(--taille-petit);
  font-weight: 600;
  color: var(--encre);
}

/* Puce : un petit écrou */
.fonction__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.75rem;
  height: 0.75rem;
  border: 2.5px solid var(--bleu);
  border-radius: 3px;
  transform: rotate(45deg);
}

.fonction__visuel {
  padding-right: 12px;
}

/* Cadres plus étroits que celui du hero : le texte des maquettes y est un peu plus grand */
.fonction .ecran__corps {
  font-size: clamp(7px, 2.3cqi, 12.5px);
}

@media (max-width: 56rem) {
  .fonction,
  .fonction:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .fonction:nth-child(even) .fonction__texte {
    order: 0;
  }
}

/* 10. Pour qui ? --------------------------------------------------------- */
.profils {
  border-top: 2px solid var(--encre);
}

.profil {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 1rem 2.5rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--trait-fort);
  transition: background-color 0.2s;
}

.profil:hover {
  background: var(--bleu-pale);
}

.profil p {
  color: var(--texte-discret);
}

.profil .profil__gain {
  padding-left: 1.125rem;
  border-left: 3px solid var(--ambre);
  color: var(--encre);
  font-weight: 600;
}

.profils__entetes {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 2.5rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--trait-fort);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texte-discret);
}

@media (max-width: 56rem) {
  .profils__entetes {
    display: none;
  }

  .profil {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 11. Tarifs ------------------------------------------------------------- */
.bascule {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
  padding: 0.25rem;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: var(--blanc);
}

.bascule__choix {
  min-height: 2.5rem;
  padding: 0.375rem 1.125rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--encre);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.bascule__choix[aria-pressed="true"] {
  background: var(--bleu);
  color: var(--blanc);
}

.offres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.offre {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
  transition: transform 0.2s, border-color 0.2s;
}

.offre:hover {
  transform: translateY(-3px);
  border-color: var(--bleu);
}

.offre--recommandee {
  position: relative;
  border: 2px solid var(--bleu);
  box-shadow: 10px 10px 0 var(--bleu-pale-2);
}

.offre__repere {
  position: absolute;
  top: -0.875rem;
  left: 1.5rem;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 0.8125rem;
  font-weight: 700;
}

.offre__prix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--trait);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--encre);
}

.offre__periode {
  font-size: var(--taille-petit);
  font-weight: 400;
  color: var(--texte-discret);
}

.offre__contenu {
  display: grid;
  gap: 0.625rem;
  margin-block: 1.25rem 1.75rem;
  font-size: var(--taille-petit);
}

.offre .bouton {
  margin-top: auto;
}

/* Tableau comparatif */
.comparatif {
  margin-top: 4rem;
  overflow-x: auto;
}

.comparatif table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--taille-petit);
}

.comparatif caption {
  margin-bottom: 1.25rem;
  color: var(--encre);
  font-size: var(--taille-h3);
  font-weight: 700;
  text-align: left;
}

.comparatif th,
.comparatif td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--trait-fort);
  text-align: left;
}

.comparatif thead th {
  border-bottom: 2px solid var(--encre);
  color: var(--encre);
}

.comparatif tbody th {
  font-weight: 600;
  color: var(--encre);
}

.comparatif .a-completer {
  white-space: nowrap;
}

.comparatif tbody tr:hover {
  background: var(--blanc);
}

@media (max-width: 56rem) {
  .offres {
    grid-template-columns: minmax(0, 1fr);
  }

  .offre--recommandee {
    margin-right: 10px;
  }
}

/* 12. Qui sommes-nous ? -------------------------------------------------- */
.maison {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.maison__texte p {
  margin-top: 1.25rem;
  color: var(--texte-discret);
}

.maison__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.maison__dessin svg {
  display: block;
  width: 100%;
}

/* Les caisses avancent sur le tapis de l'illustration */
.dessin__caisses {
  animation: avancer-caisses 6s linear infinite;
}

@keyframes avancer-caisses {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(60px);
  }
}

@media (max-width: 56rem) {
  .maison {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 13. Demande de démo ---------------------------------------------------- */
.demo {
  --couleur-toit: var(--bleu);
}

.demo__fond {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--section);
  background: var(--bleu);
  color: var(--bleu-pale-2);
}

.demo__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.demo h2 {
  color: var(--blanc);
}

.demo__texte p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.demo__etapes {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  counter-reset: etape;
}

.demo__etapes li {
  position: relative;
  padding-left: 2.75rem;
  counter-increment: etape;
}

.demo__etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 2px solid var(--blanc);
  border-radius: 50%;
  color: var(--blanc);
  font-size: 0.875rem;
  font-weight: 700;
}

.formulaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
  color: var(--texte);
  box-shadow: 12px 12px 0 var(--bleu-nuit);
}

.champ {
  display: grid;
  gap: 0.375rem;
}

.champ--large {
  grid-column: 1 / -1;
}

.champ label {
  color: var(--encre);
  font-size: 0.9375rem;
  font-weight: 600;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-size: 1rem;
}

.champ textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.champ input:hover,
.champ select:hover,
.champ textarea:hover {
  border-color: var(--bleu);
}

.champ [aria-invalid="true"] {
  border-color: var(--rouge-texte);
}

.champ__erreur {
  color: var(--rouge-texte);
  font-size: 0.875rem;
  font-weight: 600;
}

.champ__erreur:empty {
  display: none;
}

.formulaire__note {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--texte-discret);
}

.formulaire .bouton {
  grid-column: 1 / -1;
  justify-self: start;
}

.confirmation {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--vert-texte);
  border-radius: 4px;
  background: var(--vert-pale);
  color: var(--vert-texte);
  font-weight: 600;
}

.confirmation[hidden] {
  display: none;
}

@media (max-width: 56rem) {
  .demo__grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .formulaire {
    margin-right: 12px;
  }
}

@media (max-width: 34rem) {
  .formulaire {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 14. FAQ ---------------------------------------------------------------- */
.faq__grille {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq__tete {
  position: sticky;
  top: calc(var(--hauteur-entete) + 2rem);
}

.faq__tete p {
  margin-top: 1rem;
  color: var(--texte-discret);
}

.faq__liste {
  border-top: 2px solid var(--encre);
}

.question {
  border-bottom: 1px solid var(--trait-fort);
}

.question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
}

.question summary::-webkit-details-marker {
  display: none;
}

.question summary :is(h2, h3) {
  font-size: 1.125rem;
  font-weight: 600;
}

.question summary:hover :is(h2, h3) {
  color: var(--bleu);
}

/* Signe plus qui devient moins à l'ouverture */
.question__signe {
  position: relative;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--bleu);
  border-radius: 6px;
}

.question__signe::before,
.question__signe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 2px;
  background: var(--bleu);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.question__signe::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.question[open] .question__signe::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.question__reponse {
  max-width: 40rem;
  padding-bottom: 1.5rem;
  color: var(--texte-discret);
}

@media (max-width: 56rem) {
  .faq__grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__tete {
    position: static;
  }
}

/* 15. Pied de page ------------------------------------------------------- */
.pied {
  --couleur-toit: var(--bleu-nuit);
}

.pied__fond {
  /* Le bas laisse la place au bandeau de rappel fixé en bas de l'écran */
  padding-block: 3.5rem 6.5rem;
  background: var(--bleu-nuit);
  color: #c7d2fe;
  font-size: var(--taille-petit);
}

.pied__grille {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr));
  gap: 2.5rem;
}

.pied__logo img {
  display: block;
  width: auto;
  height: 2.25rem;
}

.pied__marque p {
  max-width: 22rem;
  margin-top: 1.25rem;
}

.pied__titre {
  margin-bottom: 1rem;
  color: var(--blanc);
  font-weight: 700;
}

.pied__liens {
  display: grid;
  gap: 0.625rem;
}

.pied a {
  color: #c7d2fe;
  text-decoration: none;
}

.pied a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pied__bas a {
  color: var(--blanc);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 56rem) {
  .pied__grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pied__marque {
    grid-column: 1 / -1;
  }
}

/* 16. Rappel de démo et retour en haut ----------------------------------- */
.rappel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--trait-fort);
  background: var(--blanc);
  transform: translateY(110%);
  transition: transform 0.3s;
}

.rappel.est-visible {
  transform: translateY(0);
}

.rappel__barre {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
}

.rappel__texte {
  color: var(--encre);
  font-size: var(--taille-petit);
  font-weight: 600;
}

.rappel .bouton {
  margin-left: auto;
  flex-shrink: 0;
}

.rappel__fermer,
.haut {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: var(--blanc);
  color: var(--encre);
  cursor: pointer;
  flex-shrink: 0;
}

.rappel__fermer:hover,
.haut:hover {
  border-color: var(--bleu);
  color: var(--bleu);
}

.haut {
  position: fixed;
  right: var(--marge);
  bottom: 5rem;
  z-index: 41;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, bottom 0.3s;
}

.haut.est-visible {
  opacity: 1;
  visibility: visible;
}

/* Sans bandeau de rappel, le bouton redescend */
.haut.est-bas {
  bottom: 1.25rem;
}

@media (max-width: 34rem) {
  .rappel__texte {
    display: none;
  }

  .rappel .bouton {
    margin-left: 0;
    flex: 1;
  }
}

/* 17. Maquettes d'interface dessinées ------------------------------------ */
/* Ces blocs recréent l'interface du CRM en HTML, avec des données fictives.
   Toutes les mesures sont en em pour suivre la taille du cadre. */
.m-titre {
  font-size: 1.7em;
  font-weight: 700;
}

.m-sous {
  margin-top: 0.3em;
  color: var(--texte-discret);
}

.m-rang {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.m-rang--entre {
  justify-content: space-between;
}

.m-pile {
  display: grid;
  gap: 0.8em;
  margin-top: 1.4em;
}

.m-bouton {
  padding: 0.6em 1.1em;
  border-radius: 0.5em;
  background: var(--bleu);
  color: var(--blanc);
  font-weight: 700;
  white-space: nowrap;
}

.m-ligne {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 1.2em;
  border: 1px solid var(--trait);
  border-radius: 0.7em;
  background: var(--blanc);
}

.m-ligne strong {
  display: block;
  font-weight: 600;
}

.m-ligne small {
  display: block;
  margin-top: 0.15em;
  font-size: 0.9em;
  color: var(--texte-discret);
}

.m-ligne .m-badge {
  margin-left: auto;
}

.m-pastille {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.8em;
  height: 2.8em;
  border-radius: 0.6em;
  background: var(--bleu-pale);
  color: var(--bleu);
}

.m-pastille--ronde {
  border-radius: 50%;
  background: var(--ambre-pale);
  color: var(--ambre-texte);
}

.m-pastille svg {
  width: 1.4em;
  height: 1.4em;
}

.m-badge {
  display: inline-block;
  padding: 0.25em 0.8em;
  border-radius: 99em;
  background: #f3f4f6;
  color: var(--texte);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

.m-badge--ambre {
  background: var(--ambre-pale);
  color: var(--ambre-texte);
}

.m-badge--violet {
  background: var(--violet-pale);
  color: var(--violet-texte);
}

.m-badge--vert {
  background: var(--vert-pale);
  color: var(--vert-texte);
}

.m-badge--bleu {
  background: var(--bleu-pale-2);
  color: var(--bleu);
}

.m-badge--rouge {
  background: var(--rouge-pale);
  color: var(--rouge-texte);
}

.m-filtre {
  padding: 0.5em 0.9em;
  border: 1px solid var(--trait-fort);
  border-radius: 0.5em;
  background: var(--blanc);
  font-weight: 600;
  white-space: nowrap;
}

.m-filtre--actif {
  border-color: var(--bleu);
  background: var(--bleu);
  color: var(--blanc);
}

/* Cartes de chiffres, avec leur liseré de couleur */
.m-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1em;
}

.m-kpis--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.m-kpi {
  padding: 1em 1.2em;
  border: 1px solid var(--trait);
  border-left: 0.3em solid var(--trait-fort);
  border-radius: 0.6em;
  background: var(--blanc);
}

.m-kpi strong {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
}

.m-kpi span {
  display: block;
  font-size: 0.9em;
  color: var(--texte-discret);
}

.m-kpi--bleu {
  border-left-color: var(--bleu-vif);
}

.m-kpi--bleu strong {
  color: var(--bleu);
}

.m-kpi--ambre {
  border-left-color: var(--ambre);
}

.m-kpi--ambre strong {
  color: #b45309;
}

.m-kpi--rouge {
  border-left-color: var(--rouge);
}

.m-kpi--rouge strong {
  color: var(--rouge-texte);
}

/* Graphique en barres */
.m-barres {
  display: flex;
  align-items: flex-end;
  gap: 0.7em;
  height: 9em;
  margin-top: 1.4em;
  padding-bottom: 0.1em;
  border-bottom: 2px solid var(--bleu);
}

.m-barres span {
  flex: 1;
  height: var(--h);
  border-radius: 0.3em 0.3em 0 0;
  background: var(--bleu);
  transform-origin: bottom;
}

.m-barres span:nth-child(odd) {
  background: var(--bleu-vif);
}

/* Variante sur fond bleu */
.m-barres--clair {
  height: 7em;
  margin-top: 0;
  border-bottom-color: var(--blanc);
}

.m-barres--clair span,
.m-barres--clair span:nth-child(odd) {
  background: var(--bleu-pale-2);
}

.m-barres--clair .m-barres__record {
  background: var(--ambre);
}

.m-mois {
  display: flex;
  gap: 0.7em;
  margin-top: 0.5em;
  font-size: 0.85em;
  color: var(--texte-discret);
}

.m-mois span {
  flex: 1;
  text-align: center;
}

/* Les barres montent quand le bloc apparaît */
.js .m-barres--animees span {
  transform: scaleY(0);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 45ms);
}

.js .est-apparu .m-barres--animees span,
.js .m-barres--animees.est-apparu span {
  transform: scaleY(1);
}

/* Barre de remplissage d'une promotion */
.m-jauge {
  flex: 1;
  height: 0.7em;
  border-radius: 99em;
  background: #e5e7eb;
  overflow: hidden;
}

.m-jauge span {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: 99em;
  background: var(--bleu);
}

/* Tableau simple */
.m-table {
  width: 100%;
  margin-top: 1.4em;
  border: 1px solid var(--trait);
  border-radius: 0.7em;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--blanc);
  overflow: hidden;
}

.m-table th,
.m-table td {
  padding: 0.8em 1.1em;
  border-bottom: 1px solid var(--trait);
  text-align: left;
  font-weight: 400;
}

.m-table th {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--texte-discret);
}

.m-table tr:last-child td {
  border-bottom: 0;
}

.m-table b {
  font-weight: 600;
  color: var(--bleu);
}

.m-table .m-rouge {
  color: var(--rouge-texte);
  font-weight: 600;
}

/* Tableau des affaires en colonnes (hero) */
.pipeline {
  margin-top: 1.4em;
  border: 1px solid var(--trait);
  border-radius: 0.7em;
  background: var(--blanc);
  overflow: hidden;
}

.pipeline__tetes,
.pipeline__piste {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pipeline__tetes {
  border-bottom: 1px solid var(--trait);
  background: var(--papier);
}

.pipeline__tetes span {
  padding: 0.8em 0.7em;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.2;
}

.pipeline__piste {
  position: relative;
  min-height: 17em;
}

.pipeline__piste > div {
  padding: 0.6em;
  border-right: 1px solid var(--trait);
}

.pipeline__piste > div:nth-child(6) {
  border-right: 0;
}

.m-carte {
  padding: 0.7em;
  border: 1px solid var(--trait-fort);
  border-radius: 0.5em;
  background: var(--blanc);
  font-size: 0.9em;
}

.m-carte + .m-carte {
  margin-top: 0.6em;
}

.m-carte strong {
  display: block;
  font-weight: 600;
  line-height: 1.2;
}

.m-carte small {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
  color: var(--texte-discret);
}

.m-carte em {
  display: block;
  margin-top: 0.4em;
  color: var(--bleu);
  font-style: normal;
  font-weight: 700;
}

/* L'affaire qui avance d'une colonne à l'autre */
.pipeline__mobile {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% / 6);
  padding: 0.6em;
  border: 0 !important;
  animation: avancer-colonnes 14s cubic-bezier(0.6, 0, 0.2, 1) infinite;
}

.pipeline__mobile .m-carte {
  border: 2px solid var(--ambre);
  background: var(--ambre-pale);
  box-shadow: 0.4em 0.4em 0 rgba(245, 158, 11, 0.25);
}

.pipeline__mobile .m-carte em {
  color: var(--ambre-texte);
}

@keyframes avancer-colonnes {
  0%,
  10% {
    transform: translateX(0);
  }
  16%,
  27% {
    transform: translateX(100%);
  }
  33%,
  44% {
    transform: translateX(200%);
  }
  50%,
  61% {
    transform: translateX(300%);
  }
  67%,
  78% {
    transform: translateX(400%);
  }
  84%,
  96% {
    transform: translateX(500%);
    opacity: 1;
  }
  100% {
    transform: translateX(500%);
    opacity: 0;
  }
}

/* 18. Pages légales ------------------------------------------------------ */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section);
}

.legal__contenu {
  max-width: 46rem;
}

.legal h1 {
  font-size: var(--taille-h2);
}

.legal__maj {
  margin-top: 1rem;
  color: var(--texte-discret);
  font-size: var(--taille-petit);
}

.legal h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--trait-fort);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul,
.legal dl {
  margin-top: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li + li {
  margin-top: 0.375rem;
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
}

.legal dt {
  font-weight: 600;
  color: var(--encre);
}

.legal dd {
  margin: 0;
}

.legal__retour {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Pied de page court des pages légales */
.pied__fond--court {
  padding-block: 0 2.5rem;
}

.pied__bas--seul {
  margin-top: 0;
  border-top: 0;
}

.pied__ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.pied__bas .pied__ligne a {
  color: #c7d2fe;
  font-weight: 400;
  text-decoration: none;
}

.pied__bas .pied__ligne a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

@media (max-width: 34rem) {
  .legal dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.125rem;
  }

  .legal dd {
    margin-bottom: 0.75rem;
  }
}

/* 19. Apparition au défilement ------------------------------------------- */
/* Sans JavaScript, tout reste visible : la classe .js est posée par le script. */
.js .apparait {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .apparait.est-apparu {
  opacity: 1;
  transform: none;
}

/* 20. Animations réduites ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .apparait {
    opacity: 1;
    transform: none;
  }

  .js .m-barres--animees span {
    transform: none;
  }

  /* Positions fixes, lisibles sans mouvement */
  .pipeline__mobile {
    transform: translateX(200%);
  }

  .postes__affaire {
    display: none;
  }
}

/* ==========================================================================
   21. Site multi-pages : état actif du menu, en-tête de page, aperçu, CTA
   ========================================================================== */

/* Page en cours signalée dans le menu */
.menu__lien[aria-current="page"] {
  color: var(--bleu);
  background: var(--bleu-pale);
}

@media (max-width: 56rem) {
  .menu__lien[aria-current="page"] {
    background: transparent;
    box-shadow: inset 3px 0 0 var(--bleu);
  }
}

/* En-tête des pages intérieures (sans hero) */
.page-entete {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--papier);
  border-bottom: 1px solid var(--trait);
}

.page-entete::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.page-entete__contenu {
  position: relative;
  max-width: 48rem;
}

.page-entete p {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--texte-discret);
}

.fil {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--texte-discret);
}

.fil a {
  color: var(--texte-discret);
  text-decoration: none;
}

.fil a:hover {
  color: var(--bleu);
}

/* Aperçu des pages, sur l'accueil : cartes qui pointent vers chaque page */
.apercu__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.apercu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
  color: var(--encre);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.apercu:hover {
  border-color: var(--bleu);
  transform: translateY(-3px);
  color: var(--encre);
}

.apercu__icone {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bleu-pale);
  color: var(--bleu);
}

.apercu__icone svg {
  width: 1.5rem;
  height: 1.5rem;
}

.apercu h3 {
  font-size: 1.1875rem;
}

.apercu p {
  color: var(--texte-discret);
  font-size: var(--taille-petit);
}

.apercu__fleche {
  margin-top: auto;
  color: var(--bleu);
  font-weight: 700;
  font-size: var(--taille-petit);
}

@media (max-width: 56rem) {
  .apercu__grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Bande d'appel final (fin des pages intérieures) */
.cta-bande {
  --couleur-toit: var(--bleu);
}

.cta-bande__fond {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--bleu);
  color: var(--bleu-pale-2);
}

.cta-bande__grille {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.cta-bande h2 {
  color: var(--blanc);
}

.cta-bande p {
  max-width: 34rem;
  margin-top: 0.75rem;
}

.cta-bande__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   22. Page Hébergement, sécurité et RGPD
   ========================================================================== */
.secu__intro {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.secu__intro p {
  margin-top: 1.25rem;
  color: var(--texte-discret);
}

.secu__carte-france {
  position: relative;
}

.secu__carte-france svg {
  display: block;
  width: 100%;
}

/* Les points de données qui rejoignent le serveur en France */
.flux {
  stroke-dasharray: 3 5;
  animation: flux 1.4s linear infinite;
}

@keyframes flux {
  to {
    stroke-dashoffset: -16;
  }
}

.secu__blocs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.secu__bloc {
  padding: 1.75rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
}

.secu__bloc h3 {
  margin-top: 1rem;
  font-size: 1.1875rem;
}

.secu__bloc p {
  margin-top: 0.625rem;
  color: var(--texte-discret);
  font-size: var(--taille-petit);
}

.secu__icone {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bleu-pale);
  color: var(--bleu);
}

.secu__icone svg {
  width: 1.625rem;
  height: 1.625rem;
}

/* Liste des droits RGPD */
.droits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.droits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--blanc);
  font-size: var(--taille-petit);
}

.droits li svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1em;
  color: var(--bleu);
}

.droits li strong {
  color: var(--encre);
}

.secu__note {
  max-width: 46rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--ambre);
  border-radius: 4px;
  background: var(--ambre-pale);
  color: var(--ambre-texte);
  font-size: var(--taille-petit);
}

@media (max-width: 56rem) {
  .secu__intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .secu__blocs {
    grid-template-columns: minmax(0, 1fr);
  }

  .droits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   23. Ruban de confiance (bandeau de réassurance)
   ========================================================================== */
.ruban {
  background: var(--papier);
}

.ruban__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding-block: 1.5rem;
}

.ruban__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--taille-petit);
  font-weight: 600;
  color: var(--encre);
}

.ruban__item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bleu);
}

/* ==========================================================================
   24. Compléments multi-pages (démo en pleine page, FAQ large, boutons)
   ========================================================================== */
.demo__fond--page {
  padding-block: var(--section);
}

.demo__contact {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  font-size: var(--taille-petit);
}

.demo__contact a {
  color: var(--blanc);
  font-weight: 600;
}

.faq__liste--large {
  max-width: 52rem;
}

.bouton--sur-bleu {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--blanc);
}

.bouton--sur-bleu:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--blanc);
  color: var(--blanc);
}

/* ==========================================================================
   25. Révision : ombres douces, 5 familles, grille 4 offres, comparatif
   ========================================================================== */

/* Ombres plus douces (moins de « graphique dur ») */
.ecran {
  box-shadow: 0 22px 45px -24px rgba(16, 30, 87, 0.45);
}

.offre--recommandee {
  box-shadow: 0 26px 50px -26px rgba(30, 64, 175, 0.5);
}

.formulaire {
  box-shadow: 0 26px 55px -28px rgba(16, 30, 87, 0.6);
}

/* Puce IA discrète (aucun mot « IA », pas d'étincelle) */
.m-suggere {
  border: 1px dashed var(--bleu);
  background: var(--bleu-pale);
  color: var(--bleu);
}

/* Parcours devis → payé */
.m-etapes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 1em;
}

.m-etape {
  padding: 0.3em 0.75em;
  border-radius: 99em;
  background: #f3f4f6;
  color: var(--texte-discret);
  font-size: 0.9em;
  font-weight: 600;
}

.m-etape--ok {
  background: var(--vert-pale);
  color: var(--vert-texte);
}

.m-etape--actif {
  background: var(--bleu);
  color: var(--blanc);
}

.m-signe {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--vert-texte);
  font-weight: 600;
  white-space: nowrap;
}

.m-signe svg {
  width: 1.1em;
  height: 1.1em;
}

.m-bouton--clair {
  background: var(--blanc);
  color: var(--bleu);
  box-shadow: inset 0 0 0 1px var(--bleu);
}

/* Schéma de l'écosystème */
.eco {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
  box-shadow: 0 22px 45px -28px rgba(16, 30, 87, 0.4);
}

.eco svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Grille à 4 offres */
.offres--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offre__pour {
  margin-top: 0.35rem;
  color: var(--texte-discret);
  font-size: var(--taille-petit);
  font-weight: 600;
}

.offre__prix {
  align-items: flex-end;
  gap: 0.6rem;
}

.offre__prix > span[data-prix] {
  font-size: 2rem;
  line-height: 1;
}

.offre__periode {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--texte-discret);
}

.offre__unite {
  color: var(--encre);
  font-weight: 600;
}

.offre__devis {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--encre);
}

.offre__contenu {
  gap: 0.75rem;
}

.offre__contenu li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.offre__contenu li svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12em;
  color: var(--bleu);
}

/* Bande « compris dans toutes les offres » */
.commun {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 2rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--papier);
}

.commun li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--taille-petit);
  font-weight: 600;
  color: var(--encre);
}

.commun li svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--bleu);
}

/* Ligne bascule + note */
.bascule-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2.5rem;
}

.bascule {
  margin-bottom: 0;
}

.bascule-ligne__note {
  color: var(--texte-discret);
  font-size: var(--taille-petit);
}

/* Comparatif : cellules oui / non centrées */
.comparatif thead th:not(:first-child),
.comparatif tbody td {
  text-align: center;
}

.comparatif td.oui svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--bleu);
  vertical-align: middle;
}

.comparatif td.non {
  color: var(--trait-fort);
}

.comparatif tbody tr:nth-child(even) {
  background: var(--papier);
}

@media (max-width: 64rem) {
  .offres--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .offres--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   26. FAQ en cartes centrées (page FAQ dédiée)
   ========================================================================== */
.section--faq {
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.faq__liste--large {
  max-width: 48rem;
  margin-inline: auto;
  border-top: 0;
  display: grid;
  gap: 0.875rem;
}

.faq__liste--large .question {
  border: 1px solid var(--trait);
  border-radius: var(--rayon-grand);
  background: var(--blanc);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__liste--large .question:hover {
  border-color: var(--trait-fort);
}

.faq__liste--large .question[open] {
  border-color: var(--bleu);
  box-shadow: 0 18px 40px -26px rgba(16, 30, 87, 0.4);
}

.faq__liste--large .question summary {
  padding: 1.15rem 1.5rem;
}

.faq__liste--large .question__reponse {
  max-width: none;
  padding: 0 1.5rem 1.35rem;
}

@media (max-width: 34rem) {
  .faq__liste--large .question summary {
    padding: 1rem 1.1rem;
  }

  .faq__liste--large .question__reponse {
    padding: 0 1.1rem 1.1rem;
  }
}

/* Marqueur IA discret dans le comparatif tarifaire */
.tag-ia {
  margin-left: 0.4rem;
  padding: 0.05em 0.45em;
  border: 1px solid var(--trait-fort);
  border-radius: 99em;
  color: var(--texte-discret);
  font-size: 0.72em;
  font-weight: 600;
  vertical-align: middle;
}

/* Carte mise en avant dans le pipeline (accent ambre, légère animation) */
.m-carte--actif {
  border: 2px solid var(--ambre);
  background: var(--ambre-pale);
  box-shadow: 0.4em 0.4em 0 rgba(245, 158, 11, 0.22);
}

.m-carte--actif em {
  color: var(--ambre-texte);
}

.pipeline .m-carte--actif {
  animation: flotte 3.2s ease-in-out infinite;
}

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

/* ==========================================================================
   27. Transition fluide d'une page à l'autre (fondu enchaîné)
   ========================================================================== */
@view-transition {
  navigation: auto;
}

/* Pas de fondu si l'utilisateur réduit les animations */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* ==========================================================================
   28. Page Plan du site
   ========================================================================== */
.plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  max-width: 48rem;
}

.plan__groupe h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--encre);
  font-size: 1.375rem;
}

.plan__liens {
  display: grid;
  gap: 0.75rem;
}

.plan__liens a {
  color: var(--bleu);
  font-weight: 600;
  text-decoration: none;
}

.plan__liens a:hover {
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .plan {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   29. Comparatif tarifaire : tenir dans l'écran en mobile (pas de scroll latéral)
   ========================================================================== */
@media (max-width: 40rem) {
  .comparatif table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
  }

  .comparatif th,
  .comparatif td {
    padding: 0.55rem 0.3rem;
    word-break: break-word;
    hyphens: auto;
  }

  .comparatif thead th {
    font-size: 0.7rem;
  }

  /* Première colonne (libellés) plus large, colonnes d'offres resserrées */
  .comparatif thead th:first-child,
  .comparatif tbody th {
    width: 38%;
  }

  .comparatif td.oui svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  .tag-ia {
    display: inline-block;
    margin-left: 0.2rem;
    padding: 0 0.3em;
  }
}

/* Très petits écrans : marges de page réduites pour que tout tienne */
@media (max-width: 24rem) {
  :root {
    --marge: 0.85rem;
  }
}

/* ==========================================================================
   30. Schéma "Famille Tree Learning" : version minimisée, allégée
   ========================================================================== */
.eco--famille {
  padding: clamp(1.75rem, 5vw, 2.75rem) 1.25rem;
  max-width: 34rem;
  margin-inline: auto;
  border: 1px solid var(--trait);
  background-color: var(--blanc);
  background-image: radial-gradient(rgba(30, 64, 175, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: none;
}

.eco2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco2__carte {
  position: relative;
  flex: 1 1 0;
  max-width: 12.5rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 18px 36px -24px rgba(16, 30, 87, 0.45);
}

.eco2__carte strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eco2__carte > span:last-child {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.eco2__carte--of {
  background: var(--bleu);
  color: var(--blanc);
}

.eco2__carte--of > span:last-child {
  color: var(--bleu-pale-2);
}

.eco2__carte--suite {
  background: var(--blanc);
  border: 2px solid var(--bleu);
}

.eco2__carte--suite strong {
  color: var(--encre);
}

.eco2__carte--suite > span:last-child {
  color: var(--texte-discret);
}

.eco2__lien {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 0;
  border-top: 2.5px dashed var(--bleu);
  position: relative;
}

.eco2__lien::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--blanc);
  border: 2.5px solid var(--bleu);
}

.eco2__badge {
  position: absolute;
  top: -0.85rem;
  left: -0.85rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--blanc);
  border: 1.5px solid var(--trait);
  color: var(--bleu);
  box-shadow: 0 6px 14px -8px rgba(16, 30, 87, 0.5);
}

.eco2__badge svg {
  width: 1.15rem;
  height: 1.15rem;
}

.eco2__badge--bleu {
  background: var(--bleu);
  border-color: var(--bleu);
  color: var(--blanc);
}

@media (max-width: 30rem) {
  .eco2 {
    flex-direction: column;
  }

  .eco2__carte {
    width: 100%;
    max-width: 15rem;
  }

  .eco2__lien {
    width: 0;
    height: 2.5rem;
    border-top: 0;
    border-left: 2.5px dashed var(--bleu);
  }

  .eco2__lien::after {
    left: 0;
    top: 50%;
  }
}

/* 11b. Tarifs — offre unique (prix standard) ----------------------------- */
.offre__montant{font-size:2.25rem;font-weight:800;line-height:1;letter-spacing:-.02em}
.offres--1{grid-template-columns:minmax(0,1fr);max-width:36rem;margin-inline:auto}
.offres--1 .offre{padding:2.75rem 2.5rem 2.25rem;text-align:center}
.offres--1 .offre__pour{min-height:0;margin-top:.5rem;font-size:1rem}
.offres--1 .offre__prix{justify-content:center;border-bottom:0;min-height:0;margin-top:1.5rem;padding-bottom:0}
.offres--1 .offre__montant{font-size:3.5rem}
.offres--1 .offre__contenu{text-align:left;max-width:24rem;margin:1.75rem auto;border-top:1px solid var(--trait);padding-top:1.5rem;font-size:1rem}
.offres--1 .bouton{width:100%}
.apres-fort{margin:2.75rem auto 0;max-width:44rem;padding:1.75rem 2rem;border-radius:var(--rayon-grand);border:2px solid var(--bleu);background:var(--bleu-pale);text-align:center}
.apres-fort p{margin:0;font-size:1.1875rem;font-weight:600;color:var(--encre)}
.apres-fort a{font-weight:700;color:var(--bleu);text-decoration:underline;text-underline-offset:3px}
.remise{margin-top:2.75rem;padding:2rem 2.25rem;border-radius:var(--rayon-grand);background:var(--bleu);color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.25rem 2.5rem}
.remise__texte{max-width:44rem}
.remise__titre{margin:0 0 .5rem;font-size:1.625rem;font-weight:800;line-height:1.2}
.remise p{margin:0;color:rgba(255,255,255,.88)}
.remise .bouton{flex:none}
.remise--centre{flex-direction:column;text-align:center;justify-content:center}
.remise--centre .remise__texte{max-width:46rem}
@media (max-width:56rem){.remise{padding:1.75rem}}
