/* ==========================================================================
   AZIMUT PARTNERS — accueil.css
   Sections propres à la page d'accueil (index.html), dans l'ordre de la page.

   Sommaire
     1. Ouverture : sur-titre, titre, prestation, deux boutons, gratuité
        1 bis. Scène : photographie à bords nets et pictogrammes animés
     2. Blocs communs (en-tête centré, surlignage) et six situations du quotidien
     3. Rupture : deux comparatifs, emplacement de la vidéo, conclusion
     4. Avantages et repères : cinq cartes, bande de quatre repères
     5. Exemples métier : trois cartes avec aperçu d'interface
     6. Bandeau Espace Démonstration : tablette animée dessinée par le code
     7. Démarche : phrase d'expertise, trois étapes, phase gratuite / phase sur devis
     8. Conversion : « Mettez-nous à l'épreuve », trois éléments gratuits
     9. Diagnostic : aperçu fictif du rapport
    10. Questions fréquentes et coordonnées

   Dépend de socle.css et institutionnel.css.
   Composants partagés avec d'autres pages : apercus.css (aperçus d'interfaces)
   et faq.css (questions dépliables).
   ========================================================================== */


/* 1. OUVERTURE ----------------------------------------------------------- */

.ouverture {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3f9 0%, #f8fafc 55%, #ffffff 100%);
}

.ouverture__contenu {
  display: grid;
  gap: clamp(28px, 6vw, 44px);
  padding-block: clamp(28px, 6vw, 52px) clamp(8px, 2vw, 20px);
}

/* Sur-titre : l'activité, dite en clair (ce n'est pas un lien) */
.accroche {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 1.4vw, 18px);
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(1, 131, 134, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: #046a6e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* Point lumineux qui bat doucement */
.accroche__point {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise-vif);
  animation: pulsation 2.6s ease-out infinite;
}

@keyframes pulsation {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 163, 153, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(5, 163, 153, 0);
  }
}

.ouverture__titre {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 2.625rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.ouverture__titre span {
  display: block;
}

.ouverture__titre-accent {
  margin-top: 0.14em;
  color: var(--turquoise);
}

/* La prestation, décrite en une phrase, puis la phrase forte */
.ouverture__offre {
  max-width: 35em;
  margin-top: clamp(16px, 1.8vw, 24px);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
}

.ouverture__phrase {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--turquoise-vif);
  color: var(--marine);
  font-family: var(--police-titre);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

/* Les deux actions commerciales principales */
.ouverture__actions {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 34px);
}

.ouverture__actions .bouton {
  justify-content: flex-start;
  gap: 0.7rem;
  padding-inline: 1.25rem;
}

.ouverture__actions .bouton__fleche {
  margin-left: auto;
}

/* Libellé pouvant passer sur deux lignes équilibrées */
.bouton__libelle {
  text-wrap: balance;
}

.bouton__libelle-court {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

/* Encart de gratuité, visible dès le premier écran */
.gratuite {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(1, 131, 134, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 26px -18px rgba(8, 36, 72, 0.4);
}

.gratuite__pastille {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--turquoise-brume);
  color: #016c6a;
}

.gratuite__pastille .icone {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.gratuite__texte {
  display: grid;
  gap: 1px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.gratuite__texte strong {
  color: var(--marine);
  text-wrap: balance;
}

.gratuite__texte em {
  color: #02777a;
  font-style: normal;
  font-weight: 700;
}

.gratuite__texte small {
  color: var(--encre-douce);
  font-size: 0.875rem;
}


/* 1 bis. SCÈNE : photographie à bords nets et pictogrammes animés -------- */
/* Le bloc .scene garde toujours les proportions de la photographie
   (1075 × 883) : les pictogrammes et l'arc lumineux sont placés en
   pourcentage de sa largeur et de sa hauteur, et restent donc au même
   endroit de l'image sur tous les écrans. Aucun bord flou.

   Pour déplacer un pictogramme : modifier ses valeurs left / top / width
   (en % de la photographie) dans les règles .picto--… ci-dessous.
   Pour remplacer la photographie : voir LISEZMOI.md. */

.ouverture {
  --rapport: 1.2174;   /* largeur / hauteur de la photographie (1075 / 883) */
}

.scene {
  position: relative;
  aspect-ratio: 1075 / 883;
  container-type: inline-size;
  border-radius: var(--rayon-l);
  background: #dfe7ee;
  box-shadow: 0 36px 70px -46px rgba(8, 36, 72, 0.6);
}

/* La balise <picture> transmet l'arrondi de la scène à la photographie */
.scene picture {
  border-radius: inherit;
}

.scene__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* Calque lumineux : deux points qui scintillent et un éclat qui parcourt l'arc */
.scene__lumiere {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Arc lumineux : il se trace à l'arrivée sur la page */
.scene__arc-halo,
.scene__arc-trait,
.scene__arc-retour {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 1.7s var(--courbe) 0.5s forwards;
}

.scene__arc-halo {
  stroke: #40f4f8;
  stroke-width: 15;
  opacity: 0.45;
  filter: blur(7px);
}

.scene__arc-trait {
  stroke-width: 4;
}

.scene__arc-retour {
  stroke: #9ffbff;
  stroke-width: 2.6;
  opacity: 0.5;
  animation-delay: 1.5s;
}

@keyframes trace {
  to {
    stroke-dashoffset: 0;
  }
}

.scene__etoile {
  transform-box: fill-box;
  transform-origin: center;
  animation: scintille 2.8s ease-in-out infinite alternate;
}

.scene__etoile--2 {
  animation-duration: 3.6s;
  animation-delay: 0.9s;
}

@keyframes scintille {
  from {
    opacity: 0.45;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Groupe des effets lumineux (arc + pictogrammes) : couvre toute la photographie */
.scene__effets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Groupe des pictogrammes : couvre toute la photographie */
.scene__pictos {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Pictogramme : panneau de verre lumineux, flottant */
.picto {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(170, 250, 252, 0.92);
  border: max(1px, 0.2cqw) solid rgba(170, 250, 252, 0.92);
  border-radius: 8px;
  border-radius: clamp(4px, 1.3cqw, 16px);
  background: linear-gradient(150deg, rgba(12, 96, 116, 0.8) 0%, rgba(6, 52, 76, 0.86) 100%);
  box-shadow: 0 0 14px rgba(64, 244, 248, 0.55), inset 0 0 10px rgba(64, 244, 248, 0.28);
  box-shadow: 0 0 clamp(5px, 1.7cqw, 24px) rgba(64, 244, 248, 0.55), inset 0 0 clamp(3px, 1.2cqw, 16px) rgba(64, 244, 248, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  /* Apparition (une fois), puis flottement continu */
  animation:
    eclosion 0.7s var(--courbe) var(--apparition, 0.9s) both,
    flotte var(--duree, 6s) ease-in-out var(--depart, 0s) infinite alternate;
}

@keyframes eclosion {
  from {
    opacity: 0;
    scale: 0.82;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.picto svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes flotte {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -0.5cqw;
  }
}

/* Emplacements (en % de la photographie) */
.picto--graphique {
  top: 32.39%;
  left: 79.81%;
  width: 17.21%;
  aspect-ratio: 185 / 133;
  --apparition: 1.25s;
  --duree: 6.4s;
  --depart: -1.2s;
}

.picto--ia {
  top: 46.43%;
  left: 69.02%;
  z-index: 3;
  width: 13.95%;
  aspect-ratio: 158 / 152;
  --apparition: 1s;
  --duree: 5.2s;
  animation:
    eclosion 0.7s var(--courbe) var(--apparition) both,
    flotte var(--duree) ease-in-out 0s infinite alternate,
    halo 3.2s ease-in-out 0s infinite alternate;
}

.picto--schema {
  top: 66.25%;
  left: 74.42%;
  width: 20.65%;
  aspect-ratio: 227 / 141;
  --apparition: 1.5s;
  --duree: 7s;
  --depart: -3s;
}

.picto--liste {
  top: 74.75%;
  left: 52.09%;
  z-index: 3;
  width: 19.53%;
  aspect-ratio: 215 / 132;
  --apparition: 1.75s;
  --duree: 5.8s;
  --depart: -2.2s;
}

/* Tracés communs des pictogrammes */
.picto__trait {
  fill: none;
  stroke: #c9fdff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.picto__trait--fin {
  stroke-width: 2.4;
  opacity: 0.75;
}

.picto__plein {
  fill: #c9fdff;
}

/* « IA » : halo qui respire */
.picto__sigle {
  fill: #ffffff;
  font-family: var(--police-titre);
  font-size: 78px;
  font-weight: 800;
  letter-spacing: 1px;
  text-anchor: middle;
}

@keyframes halo {
  from {
    box-shadow: 0 0 0.9cqw rgba(64, 244, 248, 0.45), inset 0 0 1cqw rgba(64, 244, 248, 0.25);
  }
  to {
    box-shadow: 0 0 3.2cqw rgba(64, 244, 248, 0.95), inset 0 0 1.8cqw rgba(64, 244, 248, 0.5);
  }
}

/* Graphique : les barres varient doucement */
.picto__barre {
  fill: #c9fdff;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: barre 3.4s ease-in-out calc(var(--i, 0) * 0.22s) infinite alternate;
}

@keyframes barre {
  from {
    transform: scaleY(0.62);
  }
  to {
    transform: scaleY(1);
  }
}

/* Schéma : les liaisons s'animent comme un flux, les cases s'allument tour à tour */
.picto__flux {
  stroke-dasharray: 7 7;
  animation: flux 1.5s linear infinite;
}

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

.picto__case {
  fill: rgba(201, 253, 255, 0.1);
  animation: case 3.6s ease-in-out calc(var(--i, 0) * 0.5s) infinite;
}

@keyframes case {
  0%,
  100% {
    fill: rgba(201, 253, 255, 0.08);
  }
  35% {
    fill: rgba(201, 253, 255, 0.6);
  }
  60% {
    fill: rgba(201, 253, 255, 0.08);
  }
}

/* Liste : les cases se cochent l'une après l'autre */
.picto__coche {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: coche 6s ease calc(var(--i, 0) * 0.55s) infinite;
}

@keyframes coche {
  0%,
  6% {
    stroke-dashoffset: 24;
  }
  16%,
  84% {
    stroke-dashoffset: 0;
  }
  94%,
  100% {
    stroke-dashoffset: 24;
  }
}

/* Sans animation (préférence du visiteur) : tout est affiché dans son état final */
@media (prefers-reduced-motion: reduce) {
  .scene__comete {
    display: none;
  }

  .scene__arc-halo,
  .scene__arc-trait,
  .scene__arc-retour {
    stroke-dashoffset: 0;
  }

  .picto__coche {
    stroke-dashoffset: 0;
  }

  .picto__case {
    fill: rgba(201, 253, 255, 0.25);
  }
}

/* LES DEUX BOUTONS, dès 600 px de large (tablettes et ordinateurs) : toujours côte à côte.
   Ils sont compacts et leur libellé tient sur deux lignes (« Soumettez-nous / un problème
   métier »). En dessous de 600 px (téléphones), ils restent l'un sous l'autre, sur toute la
   largeur (règles du début de ce fichier). */
@media (min-width: 600px) {
  .ouverture__actions {
    display: flex;
    flex-wrap: nowrap;          /* jamais de retour à la ligne entre les deux boutons */
    gap: 12px;
  }

  .ouverture__actions .bouton {
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.55rem;
    padding-inline: 0.9rem 1rem;
    font-size: 0.9375rem;
  }

  .ouverture__actions .bouton__fleche {
    margin-left: 0;
  }

  .ouverture__actions .bouton__libelle {
    max-width: 9.7em;
  }

  .ouverture__actions .bouton__libelle-court {
    max-width: 11.9em;
    font-size: 0.875rem;
  }
}

/* DEUX COLONNES, dès 1000 px de large : texte à gauche, photographie à droite.
   La rangée va de la marge gauche de la page jusqu'au bord droit de l'écran, et la
   photographie occupe toute la hauteur de la rangée, du menu au bas de l'ouverture.

   Principe. La colonne de droite est une fenêtre sur la photographie : celle-ci prend la
   hauteur de la rangée et reste calée sur son bord droit, là où se trouvent les effets
   lumineux, qui ne sont donc jamais coupés. La rangée prend au minimum la hauteur que la
   largeur de la colonne donne à la photographie : dès que la place le permet, la
   photographie s'affiche en entier. Sinon, elle est rognée par la gauche uniquement.

   Largeur de la colonne (--largeur-photo). Le texte garde toujours au moins --texte-mini
   de large, afin que les deux boutons tiennent côte à côte ; la photographie prend le reste,
   dans la limite d'un plafond qui dépend de la largeur de l'écran (voir plus bas).

   Le titre est dimensionné d'après la largeur de sa colonne (unité cqw) ; la valeur
   en vw qui précède sert aux navigateurs qui ne connaissent pas cette unité. */
@media (min-width: 1000px) {
  .ouverture {
    --gouttiere: clamp(24px, 3.2vw, 48px);     /* espace entre le texte et la photographie */
    --respiration: clamp(24px, 2.6vw, 48px);   /* marge au-dessus et au-dessous du texte */
    --texte-mini: 32.5rem;                     /* largeur toujours réservée au texte */
    --plafond-photo: 25.5rem;                  /* 1000 à 1199 px : cadrage sur deux personnes */
    --largeur-photo: min(var(--plafond-photo), 100vw - var(--marge-page) - var(--gouttiere) - var(--texte-mini));
  }

  .ouverture__contenu {
    width: auto;
    margin-inline: max(var(--marge-page), (100% - var(--largeur-max)) / 2) 0;
    grid-template-columns: minmax(0, 1fr) var(--largeur-photo);
    align-items: center;
    gap: var(--gouttiere);
    min-height: calc(var(--largeur-photo) / var(--rapport));
    padding-block: var(--respiration);
  }

  .ouverture__texte {
    container-type: inline-size;
  }

  /* La phrase turquoise du titre tient sur une ligne */
  .ouverture__titre {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-size: clamp(1.75rem, 7.2cqw, 2.875rem);
  }

  .ouverture__offre {
    font-size: clamp(0.9375rem, 1.15vw, 1.0625rem);
    font-size: clamp(0.9375rem, 3.1cqw, 1.0625rem);
  }

  .ouverture__phrase {
    font-size: clamp(1.0625rem, 3.6cqw, 1.25rem);
  }

  /* La fenêtre : toute la hauteur de la rangée, marges du texte comprises */
  .ouverture__visuel {
    position: relative;
    align-self: stretch;
    margin-block: calc(-1 * var(--respiration));
    overflow: hidden;
    container-type: size;
    animation-name: fondu;
  }

  /* La photographie : calée à droite, coupe franche, sans arrondi ni ombre */
  .scene {
    position: absolute;
    top: 50%;
    right: 0;
    width: auto;
    height: 100%;                                    /* navigateurs sans unités de conteneur */
    height: max(100cqh, 100cqw / var(--rapport));    /* la photographie couvre toujours la fenêtre */
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-50%);
  }
}

/* De 1000 à 1199 px : la photographie entière ne tiendrait pas à côté du texte. Elle est
   cadrée sur les deux personnes de droite ; la coupe tombe entre deux personnes, jamais sur
   un visage. Les effets lumineux sont légèrement réduits pour rester entiers. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .scene__effets {
    transform: scale(0.88);
    transform-origin: 80% 62%;
  }
}

/* À partir de 1200 px : les trois personnes. La photographie est entière dès 1300 px environ ;
   entre les deux, seul le bord gauche (arrière de la coiffure) est légèrement rogné. */
@media (min-width: 1200px) {
  .ouverture {
    --plafond-photo: min(54vw, 800px);
  }
}


/* 2. BLOCS COMMUNS ET SITUATIONS ------------------------------------------ */
/* En-tête centré et lien de suite : communs aux blocs de la page. */

.bloc-entete {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

.bloc-entete__titre {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);
  line-height: 1.12;
}

.bloc-entete__chapo {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--encre-douce);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

.bloc-suite {
  margin-top: clamp(18px, 2.2vw, 30px);
  text-align: center;
}

/* Retour à la ligne actif uniquement sur grand écran */
.retour-large {
  display: none;
}

@media (min-width: 900px) {
  .retour-large {
    display: inline;
  }
}

/* Passage surligné, à la manière d'un feutre */
.surligne {
  background: linear-gradient(transparent 62%, rgba(5, 163, 153, 0.24) 62%, rgba(5, 163, 153, 0.24) 94%, transparent 94%);
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Six situations du quotidien, en cartes courtes : bloc compact, sous l'ouverture */
.situations {
  padding-top: clamp(44px, 5vw, 76px);
}

.situations__liste {
  display: grid;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 40px);
}

.situation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-l);
  background: var(--blanc);
}

/* Teinte neutre : ce sont les limites des outils actuels, pas encore la solution */
.situation__icone {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eef1f6;
  color: #44547a;
}

.situation__icone .icone {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.situation__titre {
  align-self: end;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.situation__texte {
  margin-top: 3px;
  color: var(--encre-douce);
  font-size: 0.9688rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .situations__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1000px) {
  .situations__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
  }

  .situation {
    padding: 20px 22px;
  }
}


/* 3. RUPTURE -------------------------------------------------------------- */
/* Deux comparatifs : « Jusqu'ici / Aujourd'hui » (le schéma qui s'inverse),
   puis « Hier / Aujourd'hui » (le sur-mesure change de dimension). */

.rupture {
  padding-top: var(--espace-section);
  scroll-margin-top: 72px;
}

.rupture__entete {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

/* Du fax à l'e-mail : deux pictogrammes reliés par une flèche */
.rupture__symbole {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rupture__symbole span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.rupture__symbole .icone {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.rupture__symbole-avant {
  background: #eef1f6;
  color: #8793ad;
}

.rupture__symbole-apres {
  background: var(--turquoise-pale);
  color: var(--turquoise-icone);
}

.rupture__symbole > .icone {
  width: 20px;
  height: 20px;
  color: var(--turquoise-vif);
  stroke-width: 2;
}

.rupture__titre {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.75rem);
  line-height: 1.12;
}

.rupture__chapo {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--encre-douce);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.5;
}

/* Les deux cartes et la flèche qui les relie */
.inversion {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
}

.inversion__carte {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--rayon-xl);
}

.inversion__carte--hier {
  border: 1px solid var(--filet);
  background: var(--fond-doux);
  color: var(--encre-douce);
}

.inversion__carte--aujourdhui {
  border: 1.5px solid rgba(1, 131, 134, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #f6fcfc 100%);
  box-shadow: 0 34px 70px -44px rgba(1, 131, 134, 0.7);
}

.inversion__epoque {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.inversion__carte--hier .inversion__epoque {
  background: #e4e9f2;
  color: #44547a;
}

.inversion__carte--aujourdhui .inversion__epoque {
  background: var(--turquoise-brume);
  color: #016c6a;
}

.inversion__titre {
  margin-top: 16px;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.2;
}

/* Le schéma d'hier est barré : le trait apparaît quand la carte entre dans l'écran */
.inversion__carte--hier .inversion__titre {
  color: #5b6a8c;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(120, 134, 163, 0.6);
}

.js .inversion__carte--hier .inversion__titre {
  text-decoration-color: transparent;
  transition: text-decoration-color 0.8s ease 0.9s;
}

.js .inversion__carte--hier.est-visible .inversion__titre {
  text-decoration-color: rgba(120, 134, 163, 0.6);
}

.inversion__liste {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.inversion__liste li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.inversion__liste .icone {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.inversion__carte--hier .inversion__liste .icone {
  color: #9aa6bf;
}

.inversion__carte--aujourdhui .inversion__liste li {
  color: var(--encre);
}

.inversion__carte--aujourdhui .inversion__liste .icone {
  padding: 4px;
  border-radius: 50%;
  background: var(--turquoise-brume);
  color: #016c6a;
  stroke-width: 2.6;
}

/* Flèche centrale : entre les deux cartes (vers le bas sur mobile, vers la droite sur ordinateur) */
.inversion__fleche {
  z-index: 2;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 52px;
  height: 52px;
  margin-block: -30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #018386 0%, #036166 100%);
  box-shadow: 0 0 0 6px var(--blanc), 0 14px 26px -10px rgba(3, 97, 102, 0.7);
  color: var(--blanc);
}

.inversion__fleche .icone {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  transform: rotate(90deg);
}

/* Phrase de positionnement : placée au-dessus de la démarche (voir partie 7) */
.rupture__signature {
  max-width: 48rem;
  margin: clamp(28px, 3.4vw, 48px) auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  text-align: center;
}

.rupture__signature strong {
  color: var(--marine);
  font-weight: 700;
}

.rupture__signature .lien-fleche {
  margin-top: 6px;
}

@media (min-width: 900px) {
  .inversion {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 3.4vw, 52px);
  }

  .inversion__fleche {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
  }

  .inversion__fleche .icone {
    transform: none;
  }
}


/* Second comparatif : un vrai tableau à deux colonnes */
.dimension {
  margin-top: clamp(44px, 5vw, 76px);
}

.dimension__titre {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  line-height: 1.15;
  text-align: center;
}

/* Cadre arrondi : le tableau lui-même ne peut pas rogner ses angles */
.dimension__cadre {
  max-width: 68rem;
  margin: clamp(22px, 2.6vw, 36px) auto 0;
  overflow: hidden;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-xl);
  background: var(--blanc);
  box-shadow: 0 34px 70px -52px rgba(8, 36, 72, 0.5);
}

.dimension__tableau {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.dimension__tableau th {
  padding: 14px clamp(16px, 2.2vw, 28px);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.dimension__tableau th:first-child {
  width: 44%;
  background: #e4e9f2;
  color: #44547a;
}

.dimension__tableau th:last-child {
  background: var(--turquoise-brume);
  color: #016c6a;
}

.dimension__tableau td {
  padding: 16px clamp(16px, 2.2vw, 28px);
  border-top: 1px solid var(--filet);
  font-size: 1.0625rem;
  line-height: 1.4;
  vertical-align: middle;
}

.dimension__tableau td:first-child {
  background: var(--fond-doux);
  color: var(--encre-douce);
}

/* Colonne « Aujourd'hui » : coche à gauche du texte */
.dimension__tableau td:last-child {
  position: relative;
  padding-left: calc(clamp(16px, 2.2vw, 28px) + 36px);
  color: var(--encre);
  font-weight: 600;
}

.dimension__tableau td .icone {
  position: absolute;
  top: 50%;
  left: clamp(16px, 2.2vw, 28px);
  width: 24px;
  height: 24px;
  margin-top: -12px;
  padding: 4px;
  border-radius: 50%;
  background: var(--turquoise-brume);
  color: #016c6a;
  stroke-width: 2.6;
}

/* Téléphone : chaque ligne devient une fiche « Hier » puis « Aujourd'hui » */
@media (max-width: 699px) {
  .dimension__tableau,
  .dimension__tableau tbody,
  .dimension__tableau tr,
  .dimension__tableau td {
    display: block;
  }

  .dimension__tableau thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .dimension__tableau tr + tr {
    border-top: 1px solid var(--filet);
  }

  .dimension__tableau td {
    padding-block: 12px;
    border-top: 0;
    font-size: 1rem;
  }

  .dimension__tableau td::before {
    content: attr(data-epoque);
    display: block;
    margin-bottom: 2px;
    color: #5b6a8c;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .dimension__tableau td:last-child::before {
    color: #016c6a;
  }

  .dimension__tableau td .icone {
    top: 34px;
    margin-top: 0;
  }
}

/* Vidéo de rupture : composant inactif tant que le fichier validé n'est pas fourni (voir index.html) */
.video-rupture {
  max-width: 60rem;
  margin: clamp(32px, 4vw, 56px) auto 0;
}

.video-rupture video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon-xl);
  background: var(--marine);
  box-shadow: var(--ombre-panneau);
}

/* Conclusion des deux comparatifs */
.rupture__conclusion {
  max-width: 46rem;
  margin: clamp(28px, 3.4vw, 48px) auto 0;
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.rupture__conclusion strong {
  color: var(--marine);
  font-weight: 700;
}


/* 4. AVANTAGES ET REPÈRES -------------------------------------------------- */
/* Cinq cartes : trois puis deux sur grand écran, jamais cinq colonnes étroites. */

.avantages {
  padding-top: var(--espace-section);
}

.avantages__liste {
  display: grid;
  gap: 16px;
  margin-top: clamp(28px, 3.4vw, 48px);
}

.avantage {
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-xl);
  background: var(--blanc);
  box-shadow: 0 24px 50px -44px rgba(8, 36, 72, 0.45);
}

.avantage__icone {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--turquoise-pale);
  color: var(--turquoise-icone);
}

.avantage__icone .icone {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

/* Nature de l'avantage : fonctionnelle, économique, temporelle… */
.avantage__dimension {
  margin-top: 18px;
  color: #046a6e;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.avantage__titre {
  margin-top: 4px;
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.avantage__texte {
  margin-top: 10px;
  color: var(--encre-douce);
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .avantages__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .avantage:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .avantages__liste {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }

  .avantage {
    grid-column: span 2;
  }

  .avantage:nth-child(n+4) {
    grid-column: span 3;
  }
}

/* Bande de quatre repères commerciaux, avec leurs réserves juste en dessous */
.reperes-accueil {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(26px, 3.4vw, 48px) clamp(22px, 3.4vw, 52px);
  border-radius: var(--rayon-xl);
  background: linear-gradient(135deg, #082448 0%, #0c3264 100%);
  color: rgba(255, 255, 255, 0.86);
}

.reperes-accueil__liste {
  display: grid;
  gap: 24px;
  margin: 0;
}

.repere-accueil dt {
  color: var(--blanc);
  font-family: var(--police-titre);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* Trait lumineux au-dessus de chaque chiffre */
.repere-accueil dt::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--cyan);
}

.repere-accueil dd {
  max-width: 17em;
  margin: 8px 0 0;
  font-size: 0.9688rem;
  line-height: 1.4;
}

.reperes-accueil__mention {
  margin-top: clamp(22px, 2.6vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8438rem;
  line-height: 1.55;
}

@media (min-width: 560px) {
  .reperes-accueil__liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 32px;
  }
}

/* Quatre colonnes : chacune garde au moins la largeur de son chiffre, écrit sur une ligne */
@media (min-width: 1040px) {
  .reperes-accueil__liste {
    grid-template-columns: repeat(4, minmax(min-content, 1fr));
    gap: 0;
  }

  .repere-accueil {
    padding-right: 20px;
  }

  .repere-accueil + .repere-accueil {
    padding-left: clamp(20px, 2.2vw, 36px);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
}


/* 5. EXEMPLES MÉTIER ------------------------------------------------------- */
/* Trois cartes : aperçu d'interface (apercus.css), difficulté, transformation, bénéfice. */

.exemples {
  padding-top: var(--espace-section);
}

.exemples__liste {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 3.4vw, 48px);
}

.exemple-metier {
  display: grid;
  align-content: start;
  padding-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--filet);
  border-radius: var(--rayon-xl);
  background: var(--blanc);
  box-shadow: 0 24px 50px -44px rgba(8, 36, 72, 0.45);
}

/* Fond clair derrière l'aperçu d'interface */
.exemple-metier__visuel {
  display: grid;
  align-content: center;
  padding-bottom: 18px;
  background: linear-gradient(180deg, #eef3f9 0%, #f8fafc 100%);
}

.exemple-metier__titre,
.exemple-metier__recit,
.exemple-metier__mention,
.exemple-metier > .lien-fleche {
  margin-inline: 22px;
}

.exemple-metier__titre {
  margin-top: 20px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.exemple-metier__recit {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 0;
}

.exemple-metier__recit dt {
  color: #5b6a8c;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exemple-metier__recit dd {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.exemple-metier__recit div:first-child dd {
  color: var(--encre-douce);
}

.exemple-metier__recit div:nth-child(2) dt {
  color: #046a6e;
}

/* Bénéfice attendu : mis en évidence, sans chiffre inventé */
.exemple-metier__benefice {
  padding: 10px 14px 11px;
  border-radius: 12px;
  background: var(--turquoise-pale);
}

.exemple-metier__recit .exemple-metier__benefice dt {
  color: #016c6a;
}

.exemple-metier__benefice dd {
  color: var(--marine);
  font-weight: 700;
}

/* Nature des données et de l'IA présentées */
.exemple-metier__mention {
  margin-top: 14px;
  color: var(--encre-douce);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.exemple-metier > .lien-fleche {
  justify-self: start;
  margin-top: 4px;
}

/* Tablette : aperçu à gauche, récit à droite */
@media (min-width: 640px) and (max-width: 999px) {
  .exemple-metier {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    padding-bottom: 0;
  }

  .exemple-metier__visuel {
    grid-row: 1 / span 4;
    padding-bottom: 18px;
  }

  .exemple-metier > .lien-fleche {
    margin-bottom: 14px;
  }
}

/* Ordinateur : trois colonnes, liens alignés en bas des cartes */
@media (min-width: 1000px) {
  .exemples__liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .exemple-metier {
    grid-template-rows: auto auto 1fr auto auto;
  }
}


/* 6. BANDEAU ESPACE DÉMONSTRATION ---------------------------------------- */
/* Placé sous les trois exemples : il en est le prolongement (accès libre). */

.bandeau-demo {
  padding-top: clamp(28px, 3vw, 44px);
}

.bandeau-demo__panneau {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: clamp(30px, 6vw, 44px) clamp(22px, 5vw, 40px) 0;
  border-radius: var(--rayon-xl);
  background:
    radial-gradient(90% 150% at 0% 0%, #027a97 0%, rgba(2, 122, 151, 0) 46%),
    radial-gradient(70% 120% at 82% 130%, rgba(2, 110, 135, 0.95) 0%, rgba(2, 98, 123, 0) 60%),
    linear-gradient(100deg, #0a4a6c 0%, #12395a 30%, #0c304f 62%, #01304d 100%);
  box-shadow: 0 34px 60px -36px rgba(8, 36, 72, 0.7);
  color: var(--blanc);
}

/* Décor : vagues de points lumineux */
.bandeau-demo__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Sur mobile, le décor reste dans le bas du bandeau, derrière la tablette */
.bandeau-demo__decor svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
}

.bandeau-demo__titre {
  color: var(--blanc);
  font-family: var(--police-texte);
  font-size: clamp(1.5rem, 1.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.bandeau-demo__titre span {
  color: var(--cyan);
  font-weight: 700;
}

.bandeau-demo__note {
  max-width: 30em;
  margin-top: 10px;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.bandeau-demo__action .bouton {
  /* Fond légèrement opaque : le libellé reste lisible au-dessus du décor */
  background: rgba(6, 40, 66, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  min-height: 58px;
  padding-inline: 1.25rem 1.5rem;
  border-radius: var(--rayon-m);
  font-size: 1.0625rem;
}

.bandeau-demo__action .bouton:hover {
  background: rgba(10, 70, 96, 0.72);
}

/* Tablette dessinée par le code (aucune image) */
.tablette {
  justify-self: center;
  width: min(100%, 360px);
  margin: 10px 0 -64px;
  padding: 7px;
  border-radius: 22px;
  background: linear-gradient(140deg, #e3ebf2 0%, #93a7b8 14%, #2a3d50 40%, #0c1a28 100%);
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
}

.tablette__ecran {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Animation de l'écran : les barres montent et l'anneau se trace à l'apparition */
.js .tablette__barre {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--courbe) calc(0.35s + var(--i, 0) * 0.07s);
}

.js .est-visible .tablette__barre {
  transform: scaleY(1);
}

.js .tablette__arc {
  stroke-dashoffset: 110;
  transition: stroke-dashoffset 1.2s var(--courbe) 0.55s;
}

.js .est-visible .tablette__arc {
  stroke-dashoffset: 0;
}

/* Sans animation (préférence du visiteur) : écran affiché d'emblée dans son état final */
@media (prefers-reduced-motion: reduce) {
  .js .tablette__barre {
    transform: none;
  }

  .js .tablette__arc {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 760px) {
  .bandeau-demo__decor svg {
    width: min(100%, 1000px);
    height: 100%;
  }

  .bandeau-demo__panneau {
    grid-template-columns: clamp(270px, 34%, 440px) minmax(0, 1fr);
    align-content: center;
    gap: 20px 0;
    min-height: 250px;
    padding: 36px clamp(28px, 3.4vw, 56px) 36px 0;
  }

  .tablette {
    position: absolute;
    top: 30px;
    left: clamp(24px, 4.6%, 76px);
    width: clamp(240px, 27%, 372px);
    margin: 0;
    transform: perspective(1500px) rotateY(-13deg) rotateX(5deg) rotate(3.5deg);
    transform-origin: 30% 20%;
  }

  .bandeau-demo__texte,
  .bandeau-demo__action {
    grid-column: 2;
    padding-left: clamp(24px, 2.6vw, 40px);
  }

  .bandeau-demo__texte {
    border-left: 1px solid rgba(255, 255, 255, 0.7);
  }
}

/* Composition de la maquette : tablette, texte, bouton sur une ligne */
@media (min-width: 1400px) {
  .bandeau-demo__panneau {
    grid-template-columns: 27% minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 clamp(24px, 2.4vw, 40px);
    min-height: clamp(210px, 15.2vw, 236px);
    padding-block: 0;
    padding-right: clamp(28px, 3vw, 48px);
  }

  .tablette {
    top: clamp(24px, 1.9vw, 30px);
    left: clamp(36px, 3.6%, 60px);
    width: clamp(290px, 22.5%, 340px);
  }

  .bandeau-demo__texte {
    padding-left: clamp(24px, 2.4vw, 36px);
  }

  .bandeau-demo__action {
    grid-column: 3;
    padding-left: 0;
  }
}


/* 7. DÉMARCHE ------------------------------------------------------------ */

/* La démarche suit directement la question : l'espace entre les deux est réduit */
.demarche {
  padding-top: var(--espace-section);
}

/* Phrase de positionnement au-dessus du panneau (mise en forme : .rupture__signature, partie 3) */
.demarche__expertise {
  margin: 0 auto clamp(28px, 3.4vw, 44px);
}

.demarche__panneau {
  --ecart-etapes: clamp(34px, 3.2vw, 48px);
  display: grid;
  gap: clamp(28px, 3vw, 44px);
  padding: clamp(28px, 3.6vw, 52px) clamp(22px, 3.4vw, 52px);
  border: 1px solid #edf1f6;
  border-radius: var(--rayon-xl);
  background: linear-gradient(135deg, #fafbfd 0%, #f1f5fa 55%, #e9f2f6 100%);
  box-shadow: var(--ombre-panneau);
}

.demarche__titre {
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.375rem);
  line-height: 1.12;
}

.demarche__titre::after {
  content: "";
  display: block;
  width: 104px;
  height: 5px;
  margin-top: 18px;
  border-radius: 5px;
  background: var(--turquoise-vif);
}

.demarche__accroche {
  max-width: 22em;
  margin-top: 18px;
  color: var(--encre-douce);
  font-size: 1rem;
  line-height: 1.45;
}

.demarche__lien {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: #046a6e;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.demarche__lien .icone {
  transition: transform 0.25s var(--courbe);
}

.demarche__lien:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demarche__lien:hover .icone {
  transform: translateX(4px);
}

/* Parcours : deux phases clairement distinguées */
.demarche__parcours {
  display: grid;
  gap: 32px;
}

.phase__titre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Filet qui prolonge l'intitulé de la phase jusqu'à sa dernière étape */
.phase__titre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.phase__nom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
}

.phase__nom .icone {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2.4;
}

.phase--gratuite .phase__titre {
  color: #016c6a;
}

.phase--gratuite .phase__nom {
  background: var(--turquoise-brume);
}

.phase--devis .phase__titre {
  color: #44547a;
}

.phase--devis .phase__nom {
  background: #e4e9f2;
}

.phase__etapes {
  display: grid;
  gap: 26px;
}

.etape {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.etape__icone {
  display: grid;
  flex: none;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--blanc);
  box-shadow: 0 12px 26px -10px rgba(8, 36, 72, 0.22), 0 0 0 1px rgba(8, 36, 72, 0.03);
  color: #0b7e80;
}

.etape__icone .icone {
  width: 30px;
  height: 30px;
  stroke-width: 1.7;
}

.etape__titre {
  padding-top: 8px;
  font-size: 1.125rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.etape__texte {
  max-width: 19em;
  margin-top: 6px;
  color: var(--encre-douce);
  font-size: 1rem;
  line-height: 1.45;
}

/* Flèche entre deux étapes : visible uniquement quand les étapes sont en ligne */
.etape__fleche {
  display: none;
}

/* Pilule de gratuité, sous les étapes */
.demarche__gratuite {
  justify-self: center;
  padding: 12px 22px;
  border-radius: 20px;
  background: var(--turquoise-brume);
  color: #016c6a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

/* Après la livraison : autonomie transmise, évolutions facultatives */
.demarche__suite {
  justify-self: center;
  max-width: 40em;
  margin-top: -10px;
  color: var(--encre-douce);
  font-size: 0.9688rem;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .phase--gratuite .phase__etapes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--ecart-etapes);
  }
}

/* Titre à gauche, phrase et lien à droite (tablette et petit ordinateur) */
@media (min-width: 760px) and (max-width: 1399px) {
  .demarche__entete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 22em);
    column-gap: 40px;
  }

  .demarche__titre {
    grid-row: span 2;
    align-self: center;
  }

  .demarche__accroche {
    align-self: end;
    margin-top: 0;
  }

  .demarche__lien {
    align-self: start;
    justify-self: start;
  }
}

/* Étapes en ligne : phase gratuite sur deux colonnes, phase sur devis sur une */
@media (min-width: 1100px) {
  .demarche__parcours {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--ecart-etapes);
  }

  .phase--gratuite {
    grid-column: span 2;
  }

  .etape__fleche {
    position: absolute;
    top: 22px;
    left: calc((var(--ecart-etapes) + 24px) / -2);
    display: block;
    width: 24px;
    height: 24px;
    color: var(--turquoise-vif);
    stroke-width: 2;
  }
}

@media (min-width: 1280px) {
  .demarche__gratuite {
    padding: 10px 30px;
    border-radius: 999px;
  }
}

/* Composition de la maquette : titre à gauche, étapes à droite */
@media (min-width: 1400px) {
  .demarche__panneau {
    grid-template-columns: minmax(262px, 0.26fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(32px, 3vw, 48px);
  }

  .demarche__titre {
    font-size: 2rem;
  }

  .etape {
    gap: 12px;
  }

  .etape__icone {
    width: 60px;
    height: 60px;
  }

  .etape__icone .icone {
    width: 28px;
    height: 28px;
  }

  .etape__fleche {
    top: 18px;
  }

  .demarche__gratuite,
  .demarche__suite {
    grid-column: 1 / -1;
  }
}


/* 8. CONVERSION ----------------------------------------------------------- */
/* « Mettez-nous à l'épreuve » : la question sur les envies du visiteur, puis
   l'invitation à soumettre un problème métier et les trois éléments gratuits. */

.question {
  padding-top: var(--espace-section);
}

.question__contenu {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.question__icone {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--turquoise-pale);
  color: var(--turquoise-icone);
}

.question__icone .icone {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.question__titre {
  font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.16;
}

.question__texte {
  max-width: 36em;
  margin: 18px auto 0;
  color: var(--encre-douce);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}

.question__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}


/* Question d'introduction, au-dessus du titre */
.conversion__question {
  max-width: 34em;
  margin: 0 auto 14px;
  color: #046a6e;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: balance;
}

/* Les trois éléments gratuits */
.conversion__gratuits {
  display: inline-grid;
  justify-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 26px;
  padding: 16px clamp(18px, 2.4vw, 30px) 18px;
  border: 1px solid rgba(1, 131, 134, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fcfc 100%);
}

.conversion__gratuits p {
  color: #016c6a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.conversion__gratuits ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.conversion__gratuits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--marine);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.conversion__gratuits .icone {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--turquoise-brume);
  color: #016c6a;
  stroke-width: 2.6;
}

/* Conditions de la gratuité, juste sous le bouton */
.conversion__mention {
  max-width: 38em;
  margin: 16px auto 0;
  color: var(--encre-douce);
  font-size: 0.9063rem;
  line-height: 1.5;
  text-wrap: balance;
}


/* 9. DIAGNOSTIC ----------------------------------------------------------- */
/* La deuxième porte d'entrée : texte à gauche, aperçu fictif du rapport à droite. */

.porte-diagnostic {
  padding-top: var(--espace-section);
}

.porte-diagnostic__contenu {
  display: grid;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.porte-diagnostic__chapo {
  max-width: 30em;
  margin-top: 16px;
  color: var(--encre-douce);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}

.porte-diagnostic__texte .bouton {
  margin-top: 26px;
}

/* Téléphone et tablette : texte centré, comme les autres blocs de la page */
@media (max-width: 899px) {
  .porte-diagnostic__texte {
    text-align: center;
  }

  .porte-diagnostic__chapo {
    margin-inline: auto;
  }
}

/* Aperçu du rapport : exemple fictif, dessiné par le code */
.rapport-accueil {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-xl);
  background: var(--blanc);
  box-shadow: var(--ombre-panneau);
}

.rapport-accueil__entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rapport-accueil__fictif {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e9eef5;
  color: #44547a;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.rapport-accueil__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--encre-douce);
  font-size: 0.9375rem;
  font-weight: 600;
}

.rapport-accueil__score strong {
  color: var(--turquoise-fonce);
  font-family: var(--police-titre);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.radar-accueil {
  justify-self: center;
  width: 100%;
  max-width: 25rem;
  height: auto;
}

.radar-accueil__grille polygon {
  fill: none;
  stroke: #dde6ef;
  stroke-width: 1;
}

.radar-accueil__forme {
  fill: rgba(5, 163, 153, 0.2);
  stroke: var(--turquoise);
  stroke-width: 2;
  stroke-linejoin: round;
}

.radar-accueil__noms text {
  fill: var(--encre-douce);
  font-family: var(--police-texte);
  font-size: 14px;                /* unités du dessin : il est réduit avec la carte */
  font-weight: 600;
}

.radar-accueil__noms .radar-accueil__valeur {
  fill: var(--marine);
  font-weight: 700;
}

.rapport-accueil__pistes {
  padding-top: 14px;
  border-top: 1px solid var(--filet);
}

.rapport-accueil__pistes p {
  color: #5b6a8c;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rapport-accueil__pistes ul {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.rapport-accueil__pistes li {
  color: var(--encre-douce);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.rapport-accueil__pistes b {
  margin-right: 6px;
  color: var(--marine);
  font-weight: 700;
}

@media (min-width: 900px) {
  .porte-diagnostic__contenu {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  }

  .porte-diagnostic__texte {
    max-width: 36rem;
  }
}


/* 10. QUESTIONS FRÉQUENTES ET COORDONNÉES -------------------------------- */
/* La liste dépliable est mise en forme par faq.css. */

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

.faq-accueil .faq {
  margin-top: clamp(24px, 3vw, 40px);
}

.coordonnees-accueil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  max-width: 54rem;
  margin: clamp(32px, 4vw, 56px) auto 0;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-xl);
  background: var(--fond-doux);
  text-align: center;
}

.coordonnees-accueil p {
  font-size: 1.0625rem;
  line-height: 1.45;
}

.coordonnees-accueil strong {
  color: var(--marine);
  font-weight: 700;
}

/* Adresse de contact : zone de toucher de 44 px de haut */
.coordonnees-accueil p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #046a6e;
  font-weight: 700;
  text-underline-offset: 4px;
}
