/* ==========================================================================
   eucalysoft.fr — feuille de style unique
   --------------------------------------------------------------------------
   Aucune ressource externe : la police et les images sont servies par le site.
   Couleurs et typographie de la carte de visite : la « nuit » du recto,
   la « cendre » du verso, une seule police (Archivo).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 380 720;
  font-stretch: 100% 116%;
  font-display: swap;
}

:root {
  --nuit: #12291F;       /* canopée : fonds sombres */
  --nuit-clair: #1A3627; /* panneaux sur fond sombre */
  --cendre: #EEF1EC;     /* fonds clairs */
  --blanc: #FFFFFF;
  --trait: #D8E0DA;      /* bordures sur fond clair */
  --profond: #1E3D2C;    /* texte sur fond clair */
  --doux: #54685D;       /* texte secondaire sur fond clair */
  --vif: #3E7C5B;        /* accent sur fond clair : feuilles, coches, soulignés */
  --vif-texte: #356B4E;  /* le même vert, assez foncé pour du texte (contraste 5,5:1) */
  --eau: #A9D6C4;        /* accent sur fond sombre */
  --sauge: #A8BCB0;      /* texte secondaire sur fond sombre */
  --argent: #E2E8E5;     /* texte clair sur fond sombre */

  /* Niveaux de criticité (texte : contraste supérieur à 6:1 sur blanc) */
  --critique: #C8432F;  --critique-texte: #A3322A;
  --elevee: #DE8A2C;    --elevee-texte: #9A4A0C;
  --moderee: #D2AE3E;   --moderee-texte: #6E5B0E;

  /* Filet argent de la carte : un trait qui se fond dans le fond à droite
     (clair sur les fonds sombres, plus soutenu sur les fonds clairs) */
  --filet-nuit: linear-gradient(90deg, #E2E8E5, #B7C3BD 30%, #93A69D 62%, rgb(147 166 157 / 0));
  --filet-nuit-centre: linear-gradient(90deg, rgb(147 166 157 / 0), #B7C3BD 28%, #E2E8E5 50%, #B7C3BD 72%, rgb(147 166 157 / 0));
  --filet-clair: linear-gradient(90deg, #6B8577, #9FB2AA 35%, #C3CFC9 65%, rgb(195 207 201 / 0));
  --filet-clair-centre: linear-gradient(90deg, rgb(159 178 170 / 0), #9FB2AA 25%, #6B8577 50%, #9FB2AA 75%, rgb(159 178 170 / 0));

  /* Décalages qui alignent la première ligne d'un texte avec la première ligne d'un encart
     (marge intérieure de l'encart, corrigée de la hauteur de ligne ; mesurés à l'écran) */
  --alignement-synthese: 0.125rem;
  --alignement-encart: 1.875rem;
  /* Bandeau d'accueil : espace entre l'introduction et la coupure, puis entre la coupure
     et les boutons */
  --avant-coupure: 4.25rem;
  --apres-coupure: 2.25rem;
  /* Au-delà de 1 280 px : taille du texte d'introduction du bandeau */
  --taille-intro: 1.125rem;

  --marge: clamp(1.25rem, 4vw, 4rem);
  --largeur: 86rem;
  --entete: 4.5rem;
  --rayon: 1rem;
}

@media (min-width: 64rem) {
  :root { --entete: 5.75rem; }
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--nuit);
  color: var(--profond);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  font-weight: 420;
  line-height: 1.65;
  font-kerning: normal;
  overflow-wrap: break-word; /* une adresse trop longue passe à la ligne au lieu de déborder */
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.875rem, 1.3rem + 2.1vw, 2.875rem); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.1875rem; font-stretch: 104%; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-stretch: 104%; line-height: 1.35; }
p, li, dd, summary { text-wrap: pretty; }
.ligne { display: block; } /* chaque phrase commence sur une nouvelle ligne */
@media (max-width: 47.99rem) {
  .chapeau .ligne, .synthese-intro .ligne { display: inline; } /* sur téléphone, le texte d'introduction coule normalement */
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible { outline: 2px solid var(--vif); outline-offset: 3px; }
.nuit :focus-visible, .hero :focus-visible, .pied :focus-visible { outline-color: var(--eau); }
.nuit .offre-audit :focus-visible { outline-color: var(--vif); }
main { flex: 1 0 auto; } /* le contenu pousse le pied de page en bas de l'écran */
main:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--entete) + 1rem); }

.evitement {
  position: absolute; z-index: 30; left: var(--marge); top: -6rem;
  padding: 0.625rem 1rem;
  background: var(--nuit); color: #fff;
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 0.75rem; }

.cadre { width: min(100% - 2 * var(--marge), var(--largeur)); margin-inline: auto; }

/* --- Fonds et rythme des sections ------------------------------------------ */

.section { padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }
.nuit { background-color: var(--nuit); color: #fff; }
.cendre { background-color: var(--cendre); color: var(--profond); }
.blanc { background-color: var(--blanc); color: var(--profond); }

.chapeau {
  max-width: 44rem; margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--doux);
}
.nuit .chapeau { color: var(--sauge); }

/* Filet argent fondu sous un titre, ou au-dessus (le même que sous le grand titre) */
.filet-sous::after, .filet-dessus::before {
  content: "";
  display: block; width: min(100%, 22rem); height: 2px;
  background: var(--filet-clair);
}
.filet-sous::after { margin-top: 1.5rem; }
.filet-dessus::before { margin-bottom: 1.75rem; }
.nuit .filet-sous::after { background: var(--filet-nuit); }

/* Halo très léger sur les sections sombres, le même que derrière la signature de l'en-tête */
.halo-haut { background-image: radial-gradient(56rem 22rem at 50% 0, rgb(169 214 196 / 0.1), rgb(169 214 196 / 0) 72%); }
.halo-cote { background-image: radial-gradient(46rem 24rem at 76% 42%, rgb(169 214 196 / 0.1), rgb(169 214 196 / 0) 72%); }

.deux-colonnes { display: grid; gap: 3rem; }
@media (min-width: 64rem) {
  .deux-colonnes { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(4rem, 6vw, 7rem); align-items: start; }
}

/* Coches : listes de bénéfices et de livrables */
.coches li, .garanties li { position: relative; padding-left: 1.75rem; }
.coches li::before, .garanties li::before {
  content: "";
  position: absolute; left: 0.3rem; top: 0.32em;
  width: 0.375rem; height: 0.75rem;
  border: solid var(--vif); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.garanties li::before { border-color: var(--eau); }

/* --- Boutons -------------------------------------------------------------
   Deux coins opposés arrondis : la forme des repères du QR code de la carte. */

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

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.125rem; padding: 0.8125rem 1.5rem;
  border-radius: 0.875rem 0;
  font-weight: 600; font-stretch: 106%; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.bouton-clair { background: var(--eau); color: var(--nuit); }
.bouton-clair:hover { background: #fff; }
.bouton-trait { box-shadow: inset 0 0 0 1px rgb(226 232 229 / 0.45); color: #fff; }
.bouton-trait:hover { box-shadow: inset 0 0 0 1px var(--eau); color: var(--eau); }
.bouton-sombre { background: var(--nuit); color: #fff; }
.bouton-sombre:hover { background: var(--vif-texte); }
.bouton-contour { box-shadow: inset 0 0 0 1px var(--trait); color: var(--profond); }
.bouton-contour:hover { box-shadow: inset 0 0 0 1px var(--vif); color: var(--vif-texte); }

/* --- En-tête : vert nuit, il se détache du bandeau clair et reste visible au défilement -- */

.entete {
  position: sticky; top: 0; z-index: 20;
  /* un halo très léger derrière la signature, sur la « nuit » de la carte */
  background: radial-gradient(42rem 9rem at 50% 0, rgb(169 214 196 / 0.11), rgb(169 214 196 / 0) 72%) var(--nuit);
  color: #fff;
  box-shadow: 0 0.75rem 2rem -1.25rem rgb(18 41 31 / 0.55);
}
.entete::after { /* le filet argent de la carte, en pied d'en-tête */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(183 195 189 / 0), #93A69D 18%, #E2E8E5 50%, #93A69D 82%, rgb(183 195 189 / 0));
}
.entete :focus-visible { outline-color: var(--eau); }
.entete .cadre {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--entete);
}
.marque { /* le logo dans un écrin aux coins de feuille */
  display: inline-flex; align-items: center;
  padding: 0.625rem 1.125rem;
  border: 1px solid rgb(169 214 196 / 0.3); border-radius: 1rem 0;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0) 70%);
  transition: border-color 0.2s;
}
.marque:hover { border-color: var(--eau); }
.marque img { width: clamp(8.75rem, 6.5rem + 4.5vw, 11.75rem); height: auto; }
.signature { /* les trois métiers, centrés dans l'en-tête et séparés par une petite feuille */
  display: flex; align-items: center; justify-content: center; gap: 1.125rem;
  font-size: 1.0625rem; font-weight: 520; font-stretch: 106%; letter-spacing: 0.02em;
  color: var(--argent); white-space: nowrap;
}
.signature span { display: flex; align-items: center; gap: 1.125rem; }
.signature span + span::before {
  content: ""; flex: none;
  width: 0.5rem; height: 0.5rem;
  border-radius: 100% 0; background: var(--eau);
}
.menu { display: flex; align-items: center; gap: 0.625rem; }
.menu a:not(.bouton) { /* chaque entrée du menu dans son contour */
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: 0.5rem 1.125rem;
  border: 1px solid rgb(226 232 229 / 0.28); border-radius: 0.875rem 0;
  color: #fff; font-size: 1rem; font-weight: 520;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.menu a:not(.bouton):hover { border-color: var(--eau); background: rgb(169 214 196 / 0.1); color: var(--eau); }
.menu .bouton { min-height: 2.75rem; padding: 0.625rem 1.375rem; margin-left: 0.375rem; font-size: 0.9375rem; }

@media (max-width: 63.99rem) {
  .menu li:not(:last-child) { display: none; }
  .marque { padding: 0.5rem 0.875rem; }
}
@media (max-width: 79.99rem) {
  .signature { display: none; }
}
@media (min-width: 80rem) {
  /* Trois colonnes : le logo à gauche, la signature au centre exact, le menu à droite */
  .entete .cadre { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .entete .marque { justify-self: start; }
  .entete nav { justify-self: end; }
}
@media (min-width: 80rem) {
  /* Un menu un peu plus serré laisse de l'air autour de la signature centrée */
  .menu { gap: 0.5rem; }
  .menu a:not(.bouton) { padding-inline: 0.9375rem; }
  .menu .bouton { padding-inline: 1.125rem; }
}
@media (min-width: 80rem) and (max-width: 95.99rem) {
  /* Jusqu'à 1 536 px, un cran de plus pour que la signature reste au centre exact */
  .menu { gap: 0.375rem; }
  .menu a:not(.bouton) { padding-inline: 0.75rem; }
  .menu .bouton { margin-left: 0.25rem; padding-inline: 1rem; }
}
@media (min-width: 80rem) and (max-width: 85.99rem) {
  .signature, .signature span { gap: 0.875rem; }
  .signature { font-size: 1rem; }
}
@media (min-width: 96rem) {
  /* Sur grand écran, deux filets argent prolongent la signature de part et d'autre */
  .signature {
    padding-inline: 3.25rem;
    background:
      linear-gradient(90deg, rgb(226 232 229 / 0), rgb(226 232 229 / 0.5)) left center / 2.25rem 1px no-repeat,
      linear-gradient(90deg, rgb(226 232 229 / 0.5), rgb(226 232 229 / 0)) right center / 2.25rem 1px no-repeat;
  }
}
@media (min-width: 80rem) and (max-width: 81.99rem) {
  .menu { gap: 0.3125rem; }
  .menu a:not(.bouton) { padding-inline: 0.625rem; }
}

/* --- Bandeau d'accueil --------------------------------------------------------
   Deux bandeaux : en haut, sur fond clair, le titre et l'introduction ; en bas, sur la
   « nuit » de la carte de visite, les boutons et les garanties. La coupure passe un peu
   au-dessus des boutons ; l'exemple de synthèse est à cheval sur les deux. Le contenu suit
   les mêmes bords que les autres sections : le texte à gauche, la synthèse à droite. */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* un fond presque blanc qui glisse vers la cendre, semé de points fins (le réseau maillé du
     logo), avec une clarté derrière le titre */
  background:
    radial-gradient(46rem 17rem at 50% 0, #fff 30%, rgb(255 255 255 / 0) 75%),
    radial-gradient(circle at 1px 1px, rgb(62 124 91 / 0.2) 1px, rgb(62 124 91 / 0) 1.6px) 0 0 / 1.5rem 1.5rem,
    linear-gradient(#FAFBF9, var(--cendre));
  color: var(--profond);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 4.5rem);
}
.hero-grille { display: grid; }
/* Le titre : le nom en grand, la signature en vert dessous, puis le filet */
.titre-marque, .titre-devise { display: block; }
.titre-marque { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); font-stretch: 114%; letter-spacing: 0.01em; line-height: 1; color: var(--nuit); }
.titre-devise { margin-top: 1rem; font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem); font-weight: 480; font-stretch: 104%; letter-spacing: 0; line-height: 1.25; color: var(--vif-texte); }
.hero h1::after {
  content: "";
  display: block; width: min(100%, 22rem); height: 2px; margin-top: 1.75rem;
  background: var(--filet-clair);
}
.hero-intro { padding-block: 3.25rem var(--avant-coupure); }
.hero .chapeau { max-width: 46rem; margin-top: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--doux); }
@media (min-width: 48rem) {
  /* Les deux phrases centrées sur les trois cartes, la phrase d'introduction sur la synthèse */
  .hero-intro .chapeau { max-width: none; text-align: center; }
}
.synthese-intro { text-align: center; }
.hero .chapeau-fort { color: var(--profond); font-weight: 520; }

/* Lignes « un mot, son explication » séparées par un filet fin : les trois engagements du
   titre dans le bandeau d'accueil, les trois repères de l'audit (version claire sur fond sombre) */
.piliers { --pilier-colonne: 8.75rem; margin-block: 1.75rem 1.5rem; border-top: 1px solid var(--trait); }
.piliers div { padding-block: 0.875rem; border-bottom: 1px solid var(--trait); }
.piliers dt {
  position: relative; padding-left: 1.375rem;
  font-size: 1.0625rem; font-weight: 600; font-stretch: 106%; color: var(--nuit);
}
.piliers dt::before { /* la petite feuille de la carte */
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 0.5625rem; height: 0.5625rem;
  border-radius: 100% 0; background: var(--vif);
}
.piliers dd { margin-top: 0.25rem; font-size: 1rem; line-height: 1.5; color: var(--doux); }
@media (min-width: 40rem) {
  .piliers div { display: grid; grid-template-columns: var(--pilier-colonne) minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline; }
  .piliers dd { margin-top: 0; }
}
.nuit .piliers, .nuit .piliers div { border-color: rgb(169 214 196 / 0.28); }
.nuit .piliers dt { color: #fff; }
.nuit .piliers dt::before { background: var(--eau); }
.nuit .piliers dd { color: var(--sauge); }

/* Les trois engagements, en trois cartes blanches côte à côte */
.atouts { display: grid; gap: 1rem; margin-block: 2.25rem 2rem; }
.atouts div {
  padding: 1.375rem 1.5rem 1.5rem;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: linear-gradient(90deg, var(--vif), var(--eau)) top / 100% 3px no-repeat var(--blanc);
  box-shadow: 0 1.25rem 2rem -1.75rem rgb(18 41 31 / 0.3);
}
.atouts dt { position: relative; padding-left: 1.375rem; font-size: 1.125rem; font-weight: 600; font-stretch: 106%; color: var(--nuit); }
.atouts dt::before { /* la petite feuille de la carte */
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 0.5625rem; height: 0.5625rem;
  border-radius: 100% 0; background: var(--vif);
}
.atouts dd { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.5; color: var(--doux); }
@media (min-width: 48rem) {
  .atouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* Le bandeau vert : il part du haut de la suite (boutons, garanties) et descend jusqu'au bas
   du bandeau, sur toute la largeur de l'écran (le dépassement est masqué par le bandeau). */
.hero-suite { position: relative; padding-top: var(--apres-coupure); color: #fff; }
.hero-suite::before {
  content: "";
  position: absolute; z-index: -1; top: 0; left: -100vw; right: -100vw; height: 400rem;
  background: var(--nuit);
}
.hero-suite .actions { margin-top: 0; }

.garanties { display: grid; gap: 0.5rem; margin-top: 2rem; font-size: 0.9375rem; color: var(--argent); }

/* L'exemple de synthèse et sa phrase d'introduction : sous le texte sur tablette et
   téléphone (dans le bandeau vert), à droite sur ordinateur (à cheval sur les deux bandeaux) */
.hero-visuel { position: relative; z-index: 1; display: grid; justify-items: center; margin-top: 2.75rem; }
.synthese-intro { width: min(100%, 25rem); margin-bottom: 1.25rem; font-size: 0.9375rem; line-height: 1.5; background-color: var(--nuit); color: var(--argent); }

@media (min-width: 64rem) {
  /* Le titre centré, avec son filet centré */
  .hero h1 { grid-column: 1 / -1; text-align: center; }
  .hero h1::after { margin-inline: auto; background: var(--filet-clair-centre); }
  /* Les boutons et les garanties centrés dans la hauteur du bandeau vert */
  .hero { padding-bottom: 0; }
  .hero-suite {
    grid-column: 1; grid-row: 3;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: var(--apres-coupure);
  }
  .hero-suite::before { bottom: 0; height: auto; }
  .hero .chapeau { max-width: none; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  /* Petit ordinateur, tablette à l'horizontale : le texte sur toute la largeur puis, dans le
     bandeau vert, les boutons à gauche et l'exemple de synthèse à droite */
  .hero-grille { grid-template-columns: minmax(0, 1fr) 25rem; column-gap: clamp(2.5rem, 4vw, 3.5rem); }
  .hero-intro { grid-column: 1 / -1; }
  .hero-visuel { grid-column: 2; grid-row: 3; align-self: center; margin-block: 3rem; }
}
@media (min-width: 80rem) {
  /* Deux colonnes sur toute la largeur du contenu : le texte contre le bord gauche, comme dans
     les autres sections ; la synthèse contre le bord droit, à cheval sur les deux bandeaux */
  .hero-grille { grid-template-columns: minmax(0, 1fr) 25rem; grid-template-rows: auto auto 1fr; column-gap: clamp(3rem, 4.5vw, 4.5rem); }
  .hero-intro { grid-column: 1; grid-row: 2; }
  .hero .chapeau { font-size: var(--taille-intro); }
  /* La première ligne de la phrase à la hauteur de la première ligne du texte de gauche */
  .hero-visuel { grid-column: 2; grid-row: 2 / 4; align-self: start; margin-top: calc(3.25rem + var(--alignement-synthese)); margin-bottom: 3.5rem; }
  .synthese-intro { background-color: transparent; color: var(--doux); }
}

/* Exemple de synthèse d'audit */
.synthese {
  position: relative; z-index: 1;
  width: min(100%, 25rem);
  padding: 1.625rem 1.625rem 1.5rem;
  border-radius: var(--rayon);
  background: var(--blanc); color: var(--profond);
  box-shadow: 0 2rem 4rem -1.5rem rgb(0 0 0 / 0.65);
}
.synthese-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.synthese-titre { font-size: 1.0625rem; font-weight: 600; font-stretch: 106%; }
.pastille {
  padding: 0.125rem 0.625rem; border-radius: 999px;
  background: var(--cendre); color: var(--doux);
  font-size: 0.8125rem; font-weight: 520;
}
.synthese-contexte { margin-top: 0.125rem; font-size: 0.875rem; color: var(--doux); }

.conformite { margin-top: 1rem; }
.conformite p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.875rem; font-weight: 520; }
.conformite strong { font-size: 1.375rem; font-weight: 600; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.jauge { display: block; height: 0.5rem; margin-top: 0.375rem; overflow: hidden; border-radius: 999px; background: var(--cendre); }
.jauge > span { display: block; height: 100%; border-radius: inherit; background: var(--vif); transform-origin: left; }
.jauge-57 { width: 57%; }

.synthese-sous-titre {
  margin-top: 1rem; padding-top: 0.875rem; border-top: 1px solid var(--trait);
  font-size: 0.875rem; font-weight: 600;
}
.criticites { margin-top: 0.375rem; }
.criticites div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.375rem; }
.criticites div + div { border-top: 1px solid var(--cendre); }
.criticites dt { font-size: 0.9375rem; }
/* Jauge puis libellé dans deux colonnes de largeur fixe : les jauges restent alignées
   quelle que soit la longueur du libellé */
.niveau { display: grid; grid-template-columns: auto 4.5rem; align-items: center; gap: 0.625rem; font-size: 0.8125rem; font-weight: 600; }
.segments { display: flex; gap: 0.1875rem; }
.segments span { width: 0.875rem; height: 0.5rem; border-radius: 2px; background: var(--cendre); }
.niveau-critique { color: var(--critique-texte); }
.niveau-critique .segments span { background: var(--critique); }
.niveau-elevee { color: var(--elevee-texte); }
.niveau-elevee .segments span:nth-child(-n+3) { background: var(--elevee); }
.niveau-moderee { color: var(--moderee-texte); }
.niveau-moderee .segments span:nth-child(-n+2) { background: var(--moderee); }

/* Remédiations prioritaires, numérotées dans l'ordre où les traiter */
.remediations { display: grid; gap: 0.5rem; margin-top: 0.625rem; counter-reset: remediation; }
.remediations li {
  counter-increment: remediation;
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; line-height: 1.35;
}
.remediations li::before {
  content: counter(remediation);
  flex: none; display: grid; place-items: center;
  width: 1.375rem; height: 1.375rem; border-radius: 50%;
  background: var(--nuit); color: var(--eau);
  font-size: 0.75rem; font-weight: 600; line-height: 1;
}

.synthese-pied {
  margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--trait);
  font-size: 0.8125rem; color: var(--doux);
}

/* Le seul mouvement du site : à l'ouverture, la synthèse apparaît et sa jauge se remplit. */
@media (prefers-reduced-motion: no-preference) {
  .synthese { animation: apparaitre 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }
  .jauge > span { animation: remplir 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 1.2s both; }
}
@keyframes apparaitre { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes remplir { from { transform: scaleX(0); } to { transform: none; } }

/* --- Trois questions ---------------------------------------------------------- */

/* Encarts de la colonne de gauche : le chiffre clé, puis le contact des questions fréquentes */
.chiffre, .encart-contact {
  display: grid; gap: 0.5rem;
  max-width: 26rem; margin-top: 2.5rem; padding: 1.5rem 1.75rem;
  border-radius: var(--rayon); background: var(--cendre);
  box-shadow: inset 3px 0 0 var(--vif);
}
.encart-contact { background: var(--blanc); }
.encart-titre { font-size: 1.125rem; font-weight: 600; font-stretch: 104%; }
.encart-texte { font-size: 0.9688em; color: var(--doux); }
.encart-liens { display: grid; justify-items: start; gap: 0.125rem; margin-top: 0.375rem; }
.encart-tel { font-size: 1.375rem; font-weight: 600; font-stretch: 108%; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.encart-courriel { text-decoration-color: var(--vif); }
.encart-tel:hover, .encart-courriel:hover { color: var(--vif-texte); }
@media (min-width: 36rem) and (max-width: 63.99rem) {
  /* Sur tablette, les encarts prennent toute la largeur ; le chiffre passe à gauche de son texte */
  .chiffre, .encart-contact { max-width: none; }
  .chiffre { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.75rem; align-items: center; }
  .chiffre-valeur { grid-row: 1 / 3; }
}
.chiffre-valeur {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 600; font-stretch: 112%; line-height: 1;
  color: var(--vif-texte);
}
.source { font-size: 0.8125rem; color: var(--doux); }
.source a { text-decoration-color: var(--vif); }

.question { padding-block: 2rem; border-top: 1px solid var(--trait); }
.question:first-child { padding-top: 0; border-top: 0; }
.question:last-child { padding-bottom: 0; }
.question h3 { font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem); font-stretch: 106%; }
.question p { max-width: 44rem; margin-top: 0.75rem; color: var(--doux); }

/* --- Les trois offres ------------------------------------------------------- */

.entete-section { max-width: 52rem; }
@media (min-width: 64rem) {
  /* Centré, comme le grand titre et celui de l'audit : plus de vide à droite du titre */
  .entete-centree { max-width: none; text-align: center; }
  .entete-centree h2::after { margin-inline: auto; background: var(--filet-clair-centre); }
  .entete-centree .chapeau { margin-inline: auto; }
}
.offres { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 1.5rem + 3vw, 3.5rem); }
.offre {
  display: flex; flex-direction: column;
  padding: 2.25rem 2rem 2.5rem;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  /* un liseré vert en tête de carte */
  background: linear-gradient(90deg, var(--vif), var(--eau)) top / 100% 3px no-repeat var(--blanc);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.offre:hover { border-color: #B9CCC1; box-shadow: 0 1.5rem 2.5rem -1.75rem rgb(18 41 31 / 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .offre:hover { transform: translateY(-3px); }
}
.offre h3 { position: relative; padding-left: 1.5rem; font-size: 1.375rem; }
.offre h3::before { /* la petite feuille de la carte */
  content: "";
  position: absolute; left: 0; top: 0.36em;
  width: 0.6rem; height: 0.6rem;
  border-radius: 100% 0;
  background: var(--vif);
}
.promesse { margin-top: 0.75rem; font-weight: 520; color: var(--vif-texte); }
.offre .coches {
  display: grid; gap: 0.75rem;
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--trait);
  font-size: 0.9688em;
}

@media (min-width: 64rem) {
  .offres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

/* --- Audit IT Discovery ------------------------------------------------------- */

.audit-entete { display: grid; gap: 1.25rem; align-items: start; }
.audit-entete .chapeau { margin-top: 0; }
.audit-entete .chapeau + .chapeau { margin-top: 1rem; } /* un espace entre les deux phrases */
.audit-entete .offre-audit { margin-top: 1.75rem; }

/* Trois repères sous l'introduction de l'audit : les mêmes lignes que dans le bandeau d'accueil */
.audit-intro .piliers { --pilier-colonne: 11.75rem; max-width: 44rem; margin-block: 2rem 0; }
.offre-audit {
  padding: 2rem 1.75rem;
  border-radius: var(--rayon);
  background: var(--blanc); color: var(--profond);
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.6);
}
.offre-audit-nom { font-size: 0.9375rem; font-weight: 600; color: var(--doux); }
.offre-audit-prix {
  margin-top: 0.375rem;
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); font-weight: 620; font-stretch: 110%; line-height: 1;
  color: var(--vif-texte);
}
.offre-audit-condition { margin-top: 0.375rem; font-size: 1.125rem; font-weight: 600; }
.offre-audit-detail { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--trait); font-size: 0.9375rem; color: var(--doux); }
.offre-audit-detail .ligne + .ligne { margin-top: 0.25rem; }
.offre-audit .actions { margin-top: 1.5rem; }
.offre-audit-note { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--doux); }

.audit-bloc { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); padding-top: clamp(2.5rem, 2rem + 1.5vw, 3rem); border-top: 1px solid rgb(226 232 229 / 0.12); }
.sous-titre { position: relative; padding-left: 1.375rem; font-size: 1.0625rem; font-weight: 600; color: var(--eau); }
.sous-titre::before { /* la petite feuille de la carte */
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 0.5625rem; height: 0.5625rem;
  border-radius: 100% 0; background: var(--eau);
}

.livrables { display: grid; gap: 1rem; margin-top: 1.75rem; }
.livrables li {
  position: relative;
  padding: 1.375rem 1.5rem 1.5rem 3.5rem;
  border: 1px solid rgb(226 232 229 / 0.1); border-radius: var(--rayon);
  background: var(--nuit-clair);
  color: var(--sauge); font-size: 0.9688em;
  transition: border-color 0.25s;
}
.livrables li:hover { border-color: rgb(169 214 196 / 0.45); }
.livrables li::before { /* coche dans une pastille */
  content: "";
  position: absolute; left: 1.4rem; top: 1.62rem;
  width: 0.375rem; height: 0.75rem;
  border: solid var(--eau); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.livrables strong { display: block; margin-bottom: 0.25rem; color: #fff; font-weight: 600; font-stretch: 104%; }

.etapes { display: grid; gap: 2rem; margin-top: 2rem; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding-left: 3.5rem; }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: -0.3rem;
  display: grid; place-items: center;
  width: 2.375rem; height: 2.375rem; border-radius: 50%;
  border: 1px solid var(--eau); background: var(--nuit); color: var(--eau);
  font-size: 0.9375rem; font-weight: 600;
}
.etapes p { max-width: 40rem; margin-top: 0.5rem; font-size: 0.9688em; color: var(--sauge); }

@media (min-width: 48rem) {
  .livrables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  /* Le titre sur toute la largeur, puis le texte et l'encart côte à côte */
  .audit-entete { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(4rem, 6vw, 7rem); row-gap: 2.75rem; align-items: stretch; }
  /* Le titre centré, sur deux lignes */
  .audit-entete h2 { grid-column: 1 / -1; text-align: center; }
  .nuit .audit-entete h2::after { margin-inline: auto; background: var(--filet-nuit-centre); }
  /* Le texte remonte : sa première ligne à la hauteur de « Audit IT Discovery » dans l'encart */
  /* … et les repères descendent : leur dernier filet à la hauteur du bas de l'encart */
  .audit-intro { display: flex; flex-direction: column; justify-content: space-between; padding-top: var(--alignement-encart); }
  .audit-intro .piliers { max-width: none; }
  .audit-entete .offre-audit { align-self: start; margin-top: 0; }
  .etapes p { max-width: 26rem; }
  .livrables { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .livrables li { padding: 3.25rem 1.5rem 1.625rem; }
  .livrables li::before { left: 1.6rem; top: 1.35rem; }
  /* Les trois étapes côte à côte, reliées par un fil */
  .etapes {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem;
    padding-top: 3.5rem;
    background: linear-gradient(rgb(169 214 196 / 0.3), rgb(169 214 196 / 0.3)) left 1.08rem / 100% 1px no-repeat;
  }
  .etapes li { padding-left: 0; }
  .etapes li::before { top: -3.6rem; }
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
  /* Petit ordinateur : deux colonnes égales, l'encart moins haut reste à la hauteur du texte */
  .audit-entete { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(3rem, 5vw, 4rem); }
}

/* --- À propos --------------------------------------------------------------- */

.apropos { display: grid; gap: 3rem; }
.fonction { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 520; font-stretch: 104%; color: var(--vif-texte); }
.bio { max-width: 44rem; margin-top: 1.75rem; }
.bio p + p { margin-top: 1rem; }

/* L'origine du nom : un bandeau sous le texte et la fiche, le titre à gauche, le récit à droite */
.resilience {
  display: grid; gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--trait); border-radius: var(--rayon);
}
.resilience-titre { display: flex; align-items: center; gap: 1.125rem; }
.resilience img { flex: none; width: 2.25rem; height: auto; }
.resilience h3 { font-size: 1.1875rem; }
.resilience p { font-size: 0.9688em; color: var(--doux); }

.fiche { align-self: start; padding: 2rem; border-radius: var(--rayon); background: var(--cendre); }
.fiche div + div { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.fiche dt { font-size: 0.8125rem; font-weight: 600; color: var(--doux); }
.fiche dd { margin-top: 0.25rem; font-size: 0.9688em; }
.fiche a { text-decoration-color: var(--vif); }
.fiche a:hover { color: var(--vif-texte); }

@media (min-width: 64rem) {
  .apropos { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(4rem, 6vw, 7rem); row-gap: 3.5rem; }
  .resilience {
    grid-column: 1 / -1; grid-template-columns: minmax(20rem, 4fr) minmax(0, 8fr);
    column-gap: clamp(2.5rem, 4vw, 4.5rem); align-items: center;
    padding: 2rem 2.5rem;
  }
  .resilience img { width: 2.75rem; }
  .resilience h3 { font-size: 1.375rem; }
}

/* --- Questions fréquentes (dépliables sans script) ----------------------------- */

.faq details { border-top: 1px solid var(--trait); }
.faq details:last-child { border-bottom: 1px solid var(--trait); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding-block: 1.375rem;
  font-size: 1.0625rem; font-weight: 600; font-stretch: 104%;
  list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem; font-weight: 420; line-height: 1;
  color: var(--vif);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--vif-texte); }
.faq details p { max-width: 46rem; padding-bottom: 1.5rem; color: var(--doux); }

/* --- Contact ------------------------------------------------------------------ */

.contact { display: grid; gap: 2.5rem; }
.coordonnees { display: grid; justify-items: start; gap: 0.75rem; }
.tel {
  font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.875rem);
  font-weight: 540; font-stretch: 112%; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #fff; text-decoration: none;
}
.tel:hover { color: var(--eau); }
.courriel {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  color: var(--eau);
  text-decoration-color: rgb(169 214 196 / 0.45);
}
.courriel:hover { text-decoration-color: var(--eau); }
.coordonnees .garanties { margin-top: 1.25rem; }
#contact .chapeau { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); }

@media (min-width: 64rem) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(4rem, 6vw, 7rem); align-items: center; }
}

/* --- Pied de page ------------------------------------------------------------ */

.pied { background: var(--nuit); color: var(--sauge); font-size: 0.9375rem; }
.pied-grille {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem;
  padding-block: 3.5rem 3rem;
  border-top: 1px solid rgb(226 232 229 / 0.1);
}
.pied-marque { grid-column: 1 / -1; }
.pied-marque img { width: 10.5rem; height: auto; }
.pied-marque p { max-width: 22rem; margin-top: 1rem; }
.pied-titre { font-weight: 600; color: #fff; }
.pied ul { display: grid; gap: 0.5rem; margin-top: 0.875rem; }
.pied a { color: var(--argent); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--eau); }
.pied-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid rgb(226 232 229 / 0.1);
  font-size: 0.8125rem;
}
/* La signature de l'en-tête, reprise entre les deux mentions du bas */
.pied-signature {
  order: -1; flex-basis: 100%;
  display: flex; align-items: center; gap: 0.6875rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem; font-weight: 480; font-stretch: 104%; color: var(--argent);
}
.pied-signature::before, .pied-signature::after {
  content: ""; flex: none;
  width: 0.4375rem; height: 0.4375rem;
  border-radius: 100% 0; background: var(--eau);
}
@media (min-width: 80rem) {
  .pied-bas { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; }
  .pied-signature { order: 0; margin-bottom: 0; }
  .pied-bas p:last-child { justify-self: end; }
}
main.cendre + .pied .pied-grille { border-top: 0; } /* pas de trait sous une page claire */

@media (min-width: 48rem) {
  .pied-grille { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .pied-marque { grid-column: auto; }
}

/* --- Pages secondaires : mentions légales, erreur 404 ----------------------- */

.page { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.page h1 { max-width: 20em; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.page .actions { margin-top: 2rem; }

.page-grille { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.sommaire { align-self: start; padding: 1.5rem 1.75rem; border-radius: var(--rayon); background: var(--blanc); }
.sommaire-titre { font-size: 0.875rem; font-weight: 600; color: var(--doux); }
.sommaire ul { display: grid; gap: 0.375rem; margin-top: 0.75rem; }
.sommaire a { text-decoration: none; }
.sommaire a:hover { color: var(--vif-texte); text-decoration: underline; text-decoration-color: var(--vif); }
@media (max-width: 63.99rem) {
  /* Sur tablette, le sommaire se range en colonnes : la carte n'est plus à moitié vide */
  .sommaire ul { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); column-gap: 1.5rem; }
}

@media (min-width: 64rem) {
  .page-grille { grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(3rem, 5vw, 6rem); }
  .sommaire { position: sticky; top: calc(var(--entete) + 2rem); }
}

/* Le texte sur une feuille blanche, jusqu'au bord droit du contenu */
.prose { padding: clamp(1.5rem, 0.5rem + 3.5vw, 3.25rem); border-radius: var(--rayon); background: var(--blanc); }
.prose h2 { position: relative; margin-top: 3rem; padding-left: 1.5rem; font-size: 1.375rem; font-stretch: 106%; }
.prose h2::before { /* la petite feuille de la carte */
  content: "";
  position: absolute; left: 0; top: 0.36em;
  width: 0.6rem; height: 0.6rem;
  border-radius: 100% 0; background: var(--vif);
}
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 46rem; margin-top: 1rem; }
/* Tableaux à deux colonnes, un filet fin entre les rangées (comme dans le bandeau d'accueil) */
.prose dl { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); margin-top: 1.25rem; border-top: 1px solid var(--trait); }
.prose dt, .prose dd { padding-block: 0.6875rem; border-bottom: 1px solid var(--trait); }
.prose dt { padding-right: 1.5rem; font-weight: 600; }
.prose dl + p { margin-top: 1.5rem; }
.prose a { text-decoration-color: var(--vif); }
.prose a:hover { color: var(--vif-texte); }

@media (max-width: 40rem) {
  .prose dl { grid-template-columns: minmax(0, 1fr); }
  .prose dt { padding-bottom: 0; border-bottom: 0; }
  .prose dd { padding-top: 0.125rem; }
}

/* Page introuvable : le message à gauche, le code en grand à droite */
.page-erreur { display: grid; align-items: center; }
.erreur { display: grid; gap: 2.5rem; align-items: center; }
.erreur-code { /* décor pur : le code est écrit par la feuille de style, pas dans le texte de la page */
  font-size: clamp(6rem, 1rem + 16vw, 17rem); font-weight: 700; font-stretch: 116%;
  line-height: 0.8; letter-spacing: -0.02em;
  color: #DCE3DD;
}
.erreur-code::before { content: "404"; }
@media (max-width: 47.99rem) {
  .erreur { gap: 1.5rem; }
  .erreur-code { order: -1; line-height: 1; } /* sur téléphone, le code au-dessus du titre */
}
@media (min-width: 48rem) {
  .erreur { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 5vw, 4rem); }
}
