/*
 * home.css : la mise en page des blocs ajoutés par l'usine.
 *
 * Aucune couleur ni aucun rayon n'est redéfini ici : tout vient des jetons de
 * da.css (--c-*, --r-*) et des classes du thème. Ce fichier ne fait que de la
 * disposition.
 */

/* ── bandeau du haut, dans le header collant ─────────────────────────── */
.gu-bandeau {
  position: relative;
  width: 100%;
  min-height: var(--bandeau-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--e2);
  padding: 0 var(--e3) 0 var(--e4);
  background: var(--c-encre);
  color: #ffffff;
  font-family: var(--f-titre);
  font-size: var(--tm);
  line-height: 1.2;
}
.gu-bandeau[hidden] {
  display: none;
}
.gu-bandeau p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gu-bandeau [data-mois-nom] {
  font-weight: 700;
  text-transform: capitalize;
}
.gu-bandeau a {
  color: #ffffff;
  text-decoration: underline;
}
.gu-bandeau-fermer {
  position: static;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-bouton);
  background: color-mix(in srgb, #ffffff 14%, transparent);
  color: #ffffff;
  cursor: pointer;
}
.gu-bandeau-fermer:hover {
  background: color-mix(in srgb, #ffffff 26%, transparent);
}

/* ── header collant du thème ─────────────────────────────────────────── */
.gu-entete {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: color-mix(in srgb, var(--c-fond) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-bord);
}
/* Le logo du header est contraint en hauteur : sans cela, l’image se peint a sa
   largeur intrinseque (547 px) dans un flex item plus etroit et bave hors du
   navbar. width:auto + les attributs width/height de la balise gardent le
   ratio 547:160 : aucune deformation, aucun debordement. */
.gu-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.gu-logo img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 40vw;
}
@media (min-width: 768px) {
  .gu-logo img {
    height: 40px;
    max-width: 220px;
  }
}
.gu-navbar {
  height: 76px;
}
.gu-navbar .menu {
  padding: 0;
}
.gu-navbar .menu li > a {
  white-space: nowrap;
}
.gu-nav-rubriques {
  gap: var(--e5);
}

/* ── hero : la composition du thème, à la hauteur de l'écran ─────────── */
.gu-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: var(--e5);
}
.gu-hero-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e6);
  align-items: center;
  width: 100%;
}
@media (min-width: 768px) {
  .gu-hero-grille {
    grid-template-columns: 1fr 1fr;
    gap: var(--e5);
  }
}
.gu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e3);
  margin-block: var(--e4) var(--e5);
}
.gu-hero-preuve {
  display: flex;
  align-items: center;
  gap: var(--e2);
  font-family: var(--f-titre);
  font-size: var(--tm);
  color: var(--c-texte-2);
  margin-bottom: var(--e4);
}
.gu-hero-visuel {
  border-radius: var(--r-image);
  overflow: hidden;
  box-shadow: var(--o-carte);
}
.gu-hero-visuel img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .gu-hero-visuel img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ── défilé de logos partenaires ─────────────────────────────────────── */
.gu-logos {
  border-top: 1px solid var(--c-bord);
  padding-top: var(--e4);
  margin-top: var(--e4);
}
.gu-logos-titre {
  font-family: var(--f-titre);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-texte-2);
  margin-bottom: var(--e3);
}
[data-defile] {
  overflow: hidden;
  position: relative;
}
[data-defile] .kv-piste {
  display: flex;
  align-items: center;
  gap: var(--e6);
  width: max-content;
  animation: gu-defile 32s linear infinite;
}
[data-defile] img {
  height: 26px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  [data-defile] .kv-piste {
    animation: none;
  }
}
@keyframes gu-defile {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.gu-partenaires {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--e4);
  align-items: center;
  justify-items: center;
}
@media (min-width: 640px) {
  .gu-partenaires {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gu-partenaires a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 100%;
  border: 1px solid var(--c-bord);
  border-radius: var(--r-carte);
  background: var(--c-surface);
  padding: var(--e3);
}
.gu-partenaires img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.gu-partenaires a:hover img {
  filter: none;
  opacity: 1;
}

/* ── briques communes ────────────────────────────────────────────────── */
.gu-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--e2);
  font-family: var(--f-titre);
  font-size: var(--tm);
  font-weight: 700;
  color: var(--c-primaire-texte);
  margin-bottom: var(--e3);
}
.gu-kicker svg {
  flex: none;
}
.gu-carte {
  background: var(--c-surface);
  border: var(--carte-bord);
  border-radius: var(--r-carte);
  box-shadow: var(--o-carte);
  padding: var(--e5);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.gu-carte:hover {
  box-shadow: var(--o-survol);
  border-color: color-mix(in srgb, var(--c-primaire-texte) 40%, var(--c-bord));
}
.gu-carte h3,
.gu-carte h4 {
  margin-bottom: var(--e2);
}
.gu-pastille {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  background: var(--c-pale);
  color: var(--c-encre);
  border-radius: 999px;
  padding: 2px var(--e3);
  font-family: var(--f-titre);
  font-size: var(--tm);
  font-weight: 500;
}
.gu-grille {
  display: grid;
  gap: var(--e5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gu-grille-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .gu-grille-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gu-grille-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .gu-grille-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.gu-section {
  padding-block: var(--e7);
}
.gu-section-pale {
  background: var(--c-fond-2);
}
.gu-texte {
  max-width: 34em;
  color: var(--c-texte-2);
}
.gu-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-carte);
  background: var(--c-pale);
  color: var(--c-primaire-texte);
  margin-bottom: var(--e3);
  flex: none;
}

/* ── chiffres clés ───────────────────────────────────────────────────── */
.gu-chiffre {
  text-align: center;
  padding: var(--e5) var(--e4);
}
.gu-chiffre b {
  display: block;
  font-family: var(--f-titre);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1;
  color: var(--c-primaire-texte);
  font-weight: 800;
}
.gu-chiffre span {
  display: block;
  margin-top: var(--e2);
  font-family: var(--f-titre);
  font-size: var(--tm);
  color: var(--c-texte-2);
}
.gu-chiffre svg {
  color: var(--c-primaire-texte);
  margin-bottom: var(--e2);
}

/* ── méthode (features du thème) ─────────────────────────────────────── */
.gu-volet {
  display: grid;
  gap: var(--e6);
  align-items: center;
  grid-template-columns: 1fr;
  margin-bottom: var(--e7);
}
.gu-volet img {
  width: 100%;
  border-radius: var(--r-image);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .gu-volet {
    grid-template-columns: 3fr 2fr;
  }
  .gu-volet-inverse {
    grid-template-columns: 2fr 3fr;
  }
  .gu-volet-inverse .gu-volet-texte {
    order: 2;
  }
}
.gu-lottie {
  width: 100%;
  max-width: 220px;
  margin: var(--e4) auto 0;
}
.gu-lottie svg {
  width: 100%;
  height: auto;
}

/* ── étapes photo (comment ça marche) ────────────────────────────────── */
.gu-etapes {
  display: grid;
  gap: var(--e6);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .gu-etapes {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.gu-etapes ol {
  display: grid;
  gap: var(--e3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}
.gu-etapes [data-etape] {
  border: 1px solid var(--c-bord);
  border-radius: var(--r-carte);
  background: var(--c-surface);
  padding: var(--e4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gu-etapes [data-etape].kv-actif {
  border-color: var(--c-primaire-texte);
  box-shadow: var(--o-carte);
}
.gu-etapes [data-etape] h3 {
  font-size: var(--t2);
  margin-bottom: var(--e2);
}
.gu-etapes [data-etape] p {
  margin: 0;
  color: var(--c-texte-2);
}
.gu-etapes-visuel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.gu-etapes-visuel img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--r-image);
  display: block;
  transition: opacity 0.18s ease;
}
.gu-etapes-visuel img.kv-change {
  opacity: 0.25;
}

/* ── calculateur ─────────────────────────────────────────────────────── */
.gu-calc {
  display: grid;
  gap: var(--e6);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .gu-calc {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.gu-calc-champs {
  display: grid;
  gap: var(--e4);
}
.gu-calc label {
  display: block;
  font-size: var(--tm);
  font-weight: 700;
  color: var(--c-texte);
  margin-bottom: var(--e1);
}
.gu-calc input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--c-bord);
  border-radius: var(--r-bouton);
  padding: 0 var(--e3);
  font-family: var(--f-titre);
  background: var(--c-surface);
  color: var(--c-texte);
}
.gu-calc-ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e3);
  padding-block: var(--e3);
  border-top: 1px solid var(--c-bord);
}
.gu-calc-ligne:first-of-type {
  border-top: 0;
}
.gu-calc-ligne span {
  color: var(--c-texte-2);
  font-size: var(--tm);
}
.gu-calc-ligne output {
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: var(--t3);
  color: var(--c-primaire-texte);
}

/* ── comparatif à bascule ────────────────────────────────────────────── */
.gu-bascule-boutons {
  display: inline-flex;
  gap: var(--e1);
  padding: var(--e1);
  background: var(--c-pale);
  border-radius: var(--r-bouton);
  margin-bottom: var(--e5);
}
.gu-bascule-boutons button {
  border: 0;
  background: transparent;
  border-radius: var(--r-bouton);
  padding: var(--e2) var(--e4);
  min-height: 44px;
  font-family: var(--f-titre);
  font-weight: 700;
  color: var(--c-encre);
  cursor: pointer;
}
.gu-bascule-boutons button.kv-actif {
  background: var(--c-surface);
  color: var(--c-primaire-texte);
  box-shadow: var(--o-carte);
}
.gu-bascule-cartes article {
  border: 1px solid var(--c-bord);
  border-radius: var(--r-carte);
  background: var(--c-surface);
  padding: var(--e5);
}
.gu-bascule-cartes article.kv-en-avant {
  border-color: var(--c-primaire-texte);
  background: var(--c-pale);
  box-shadow: var(--o-carte);
}

/* ── frise de l'année de trésorerie ──────────────────────────────────── */
.gu-frise {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--e6);
  display: grid;
  gap: var(--e5);
}
.gu-frise::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--c-bord);
}
.gu-frise::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
  height: calc((100% - 12px) * var(--kv-progression, 0));
  background: var(--c-primaire-texte);
  transition: height 0.2s linear;
}
.gu-frise [data-jalon] {
  position: relative;
}
.gu-frise [data-jalon]::before {
  content: "";
  position: absolute;
  left: calc(var(--e6) * -1 + 4px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-bord);
  border: 2px solid var(--c-fond);
}
.gu-frise [data-jalon].kv-atteint::before {
  background: var(--c-primaire-texte);
}
.gu-frise h3 {
  font-size: var(--t2);
  margin-bottom: var(--e1);
}
.gu-frise p {
  margin: 0;
  color: var(--c-texte-2);
}

/* ── quiz vrai/faux ──────────────────────────────────────────────────── */
.gu-quiz {
  background: var(--c-surface);
  border: var(--carte-bord);
  border-radius: var(--r-carte);
  box-shadow: var(--o-carte);
  padding: var(--e5);
}
.gu-quiz [data-question] {
  border-top: 1px solid var(--c-bord);
  padding-top: var(--e4);
  margin-top: var(--e4);
}
.gu-quiz [data-question]:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.gu-quiz [data-question-texte] {
  font-family: var(--f-titre);
  font-size: var(--t2);
  font-weight: 700;
  margin-bottom: var(--e2);
}
.gu-quiz [data-explication] {
  margin-top: var(--e2);
  color: var(--c-texte-2);
}
.gu-quiz-score {
  font-family: var(--f-titre);
  font-weight: 700;
  color: var(--c-primaire-texte);
}

/* ── onglets du dossier ──────────────────────────────────────────────── */
.gu-onglets [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  margin-bottom: var(--e5);
}
.gu-onglets [role="tab"] {
  min-height: 44px;
  border: 1px solid var(--c-bord);
  background: var(--c-surface);
  border-radius: 999px;
  padding: 0 var(--e4);
  font-family: var(--f-titre);
  font-weight: 700;
  cursor: pointer;
  color: var(--c-texte);
}
.gu-onglets [role="tab"][aria-selected="true"] {
  background: var(--c-primaire-texte);
  border-color: var(--c-primaire-texte);
  color: #ffffff;
}

/* ── avis lecteurs ───────────────────────────────────────────────────── */
/* La largeur de slide calculee par Swiper gouverne la rangee : aucun plancher
   de 288 px qui laisserait un creneau vide a droite. */
.gu-avis {
  min-width: 0;
}
.gu-avis-etoiles {
  display: flex;
  gap: 2px;
  color: var(--c-primaire-texte);
  margin-bottom: var(--e3);
}
.gu-avis-entete {
  display: flex;
  align-items: center;
  gap: var(--e3);
  margin-bottom: var(--e3);
}
.gu-avis-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-pale);
  color: var(--c-encre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-titre);
  font-weight: 700;
  flex: none;
}
.gu-avis blockquote {
  margin: 0;
  color: var(--c-texte-2);
}
#reviewSwiper .swiper-slide {
  height: auto;
}
#reviewSwiper .swiper-slide > article {
  height: 100%;
}

/* ── bandes de rubriques ─────────────────────────────────────────────── */
.gu-bande {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e4);
  padding-block: var(--e5);
  border-top: 1px solid var(--c-bord);
  align-items: start;
}
@media (min-width: 768px) {
  .gu-bande {
    grid-template-columns: 15rem 1fr auto;
    align-items: center;
  }
}
.gu-bande h3 {
  margin: 0;
  font-size: var(--t2);
}
.gu-bande p {
  margin: 0;
  color: var(--c-texte-2);
}
.gu-sujets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gu-sujets a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--e3);
  border-radius: 999px;
  background: var(--c-pale);
  color: var(--c-encre);
  font-family: var(--f-titre);
  font-size: var(--tm);
  text-decoration: none;
}
.gu-sujets a:hover {
  background: var(--c-primaire-texte);
  color: #ffffff;
}

/* ── cas clients ─────────────────────────────────────────────────────── */
.gu-cas img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-carte);
  display: block;
  margin-bottom: var(--e4);
}
/* Garde du parc 30/09/2026 : en inline-flex sans retour a la ligne, la description etranglee par la
   fourchette tombait a 298 px a 1440 (sous les 300 px que page_cassee.colonne_etroite exige), et a
   185 px a 390. Le retour a la ligne lui rend la largeur de la carte des qu'elle ne tient plus. */
.gu-cas-mesure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--e2);
  font-family: var(--f-titre);
  font-weight: 800;
  font-size: var(--t3);
  color: var(--c-primaire-texte);
}
.gu-cas-mesure span {
  font-size: var(--tm);
  font-weight: 500;
  color: var(--c-texte-2);
}

/* ── articles : composition magazine ─────────────────────────────────── */
.gu-vedette {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--e5);
  border: var(--carte-bord);
  border-radius: var(--r-carte);
  background: var(--c-surface);
  overflow: hidden;
  box-shadow: var(--o-carte);
}
@media (min-width: 768px) {
  .gu-vedette {
    grid-template-columns: 6fr 5fr;
  }
}
.gu-vedette img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.gu-vedette-texte {
  padding: var(--e5);
  display: flex;
  flex-direction: column;
  gap: var(--e2);
}
.gu-vedette-texte h3 {
  margin: 0;
}
.gu-vedette-texte .btn {
  align-self: flex-start;
  margin-top: auto;
}
.gu-article-carte {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.gu-article-carte img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.gu-article-carte-corps {
  padding: var(--e5);
  display: flex;
  flex-direction: column;
  gap: var(--e2);
  flex: 1;
}
.gu-article-carte-corps h3 {
  font-size: var(--t2);
  margin: 0;
}
.gu-article-carte-corps p {
  margin: 0;
  color: var(--c-texte-2);
  flex: 1;
}

/* ── équipe ──────────────────────────────────────────────────────────── */
.gu-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-carte);
  display: block;
  margin-bottom: var(--e4);
}
.gu-equipe-carte h3 {
  font-size: var(--t2);
  margin-bottom: var(--e1);
}
.gu-equipe-role {
  font-family: var(--f-titre);
  font-size: var(--tm);
  font-weight: 700;
  color: var(--c-primaire-texte);
  margin-bottom: var(--e3);
}
.gu-equipe-rs {
  display: flex;
  gap: var(--e3);
  margin-top: var(--e4);
  padding-top: var(--e4);
  border-top: 1px solid var(--c-bord);
}
.gu-equipe-rs a {
  display: inline-flex;
  align-items: center;
  gap: var(--e1);
  min-height: 44px;
  color: var(--c-primaire-texte);
  font-family: var(--f-titre);
  font-size: var(--tm);
  text-decoration: none;
}
.gu-equipe-rs a:hover {
  text-decoration: underline;
}

/* ── pages internes ──────────────────────────────────────────────────── */
.gu-page {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--e4);
}
.gu-page-texte {
  max-width: 34em;
}
.gu-entete-page {
  width: 100%;
  background: var(--c-fond-2);
  padding-block: var(--e7) var(--e6);
}
.gu-entete-page img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--r-image);
  display: block;
  margin-top: var(--e5);
}
.gu-fil {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e2);
  align-items: center;
  font-family: var(--f-titre);
  font-size: var(--tm);
  color: var(--c-texte-2);
  margin-bottom: var(--e4);
  list-style: none;
  padding: 0;
}
.gu-fil a {
  color: var(--c-primaire-texte);
  text-decoration: none;
}
.gu-fil a:hover {
  text-decoration: underline;
}
.gu-cta-final {
  text-align: center;
}
.gu-cta-final .gu-cta-symbole {
  width: 64px;
  height: 64px;
  border-radius: var(--r-carte);
  background: var(--c-surface);
  box-shadow: var(--o-survol);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--e4);
}

/* ── listes à puces avec icône ───────────────────────────────────────── */
.gu-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--e2);
}
.gu-liste li {
  display: flex;
  gap: var(--e2);
  align-items: flex-start;
  color: var(--c-texte-2);
}
.gu-liste li svg {
  flex: none;
  margin-top: 3px;
  color: var(--c-primaire-texte);
}

/* ── tableau du comparatif ───────────────────────────────────────────── */
.gu-tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t1);
}
.gu-tableau th,
.gu-tableau td {
  text-align: left;
  padding: var(--e3);
  border-bottom: 1px solid var(--c-bord);
  vertical-align: top;
}
.gu-tableau th {
  font-family: var(--f-titre);
  background: var(--c-pale);
  color: var(--c-encre);
}
.gu-tableau-scroll {
  overflow-x: auto;
}

/* ── formulaire de contact ───────────────────────────────────────────── */
.gu-formulaire {
  display: grid;
  gap: var(--e4);
}
.gu-formulaire label {
  display: block;
  font-family: var(--f-titre);
  font-weight: 700;
  font-size: var(--tm);
  margin-bottom: var(--e1);
}
.gu-formulaire input,
.gu-formulaire textarea,
.gu-formulaire select {
  width: 100%;
  border: 1px solid var(--c-bord);
  border-radius: var(--r-bouton);
  padding: var(--e3);
  min-height: 44px;
  font-family: var(--f-titre);
  background: var(--c-surface);
  color: var(--c-texte);
}
.gu-formulaire textarea {
  min-height: 160px;
  resize: vertical;
}
.gu-pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gu-retour {
  border-radius: var(--r-carte);
  padding: var(--e4);
  font-family: var(--f-titre);
}
.gu-retour-ok {
  background: var(--c-pale);
  color: var(--c-encre);
}
.gu-retour-erreur {
  background: #fdeceb;
  color: #8a1c12;
}

/* ── petits écrans ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --header-h: 104px;
    --bandeau-h: 36px;
  }
  .gu-navbar {
    height: 68px;
  }
  .gu-hero {
    padding-block: var(--e4);
  }
  .gu-hero-actions .btn {
    flex: 1 1 100%;
  }
  .gu-section {
    padding-block: var(--e6);
  }
  .gu-chiffre {
    padding: var(--e4) var(--e3);
  }
}

/* rangée d’avis en défilement horizontal, sans laisser de carte orpheline */
.gu-avis-defile {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 1fr);
  gap: var(--t4, 1rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  justify-content: start;
}
@media (min-width: 1024px) {
  .gu-avis-defile {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
  }
}
.gu-avis-defile > * {
  scroll-snap-align: start;
  margin: 0;
}
.gu-partenaires span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--c-bord);
  border-radius: var(--r-carte);
  background: var(--c-surface);
}

/* pastille ronde du bloc « situation type » (cas clients) */
.gu-situation .gu-icone {
  border-radius: 50%;
}

/* =================================================================== */
/* Corrections : hauteurs, débordement, nav sur une ligne, frise 2 col.  */
/* Ce bloc est volontairement en fin de feuille : il reprend la main sur  */
/* les regles posees plus haut par le theme, sans en supprimer aucune.    */
/* =================================================================== */

/* 1. La hauteur reelle de l’entete = bandeau + navbar + la bordure basse.
      Les valeurs mesurees sont 117 px en bureau et 105 px en mobile :      */
:root {
  --navbar-h: 76px;
  --header-h: calc(var(--bandeau-h, 40px) + var(--navbar-h) + 1px);
}
@media (max-width: 767px) {
  :root {
    --navbar-h: 68px;
    --header-h: calc(var(--bandeau-h, 36px) + var(--navbar-h) + 1px);
  }
}

/* 2. Aucun bloc ne doit pouvoir elargir la page. */
html,
body {
  overflow-x: clip;
}
.gu-grille,
.gu-hero-grille,
.gu-frise-bloc,
.gu-calc,
.gu-volet,
.gu-etapes,
.gu-explorer,
.gu-grille-2,
.gu-grille-3,
.gu-grille-4 {
  min-width: 0;
}
.gu-grille > *,
.gu-hero-grille > *,
.gu-frise-bloc > *,
.gu-calc > *,
.gu-volet > *,
.gu-etapes > *,
.gu-explorer > * {
  min-width: 0;
}
.gu-grille-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gu-grille-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gu-grille-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1023px) {
  .gu-grille-4,
  .gu-grille-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .gu-grille-4,
  .gu-grille-3,
  .gu-grille-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 3. Le bandeau de logos defile : sa piste fait max-content, donc son
      conteneur doit etre isole du calcul de largeur intrinseque.           */
[data-defile] {
  overflow: hidden;
  contain: inline-size;
}

/* 4. Le hero occupe exactement la hauteur restante sous l’entete. */
.section.section-hero.gu-hero {
  width: 100%;
  margin-left: 0;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: stretch;
  padding-block: 0;
  overflow-x: clip;
}
.gu-hero-grille {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e5, 1.5rem);
  align-items: center;
  padding-block: var(--e5, 1.5rem);
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .gu-hero-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--e6, 2rem);
  }
}
.gu-hero h1.h1 {
  font-size: clamp(1.45rem, 4.2vw, 3rem);
  margin-block: 0.4em 0.5em;
}
.gu-hero-visuel img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--r-image, 12px);
}
@media (min-width: 768px) {
  .gu-hero-visuel img {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 480px;
  }
}
.gu-hero-preuve {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gu-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 767px) {
  .gu-hero-actions .btn {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.85rem;
    white-space: normal;
  }
  .gu-hero-texte > [data-defile] {
    max-height: 90px;
  }
}

/* 5. Navigation principale : une seule ligne, jusque dans le tiroir. */
.gu-nav-rubriques {
  flex-wrap: nowrap;
}
.gu-nav-rubriques > li > a {
  white-space: nowrap;
  font-size: 0.82rem;
  padding-inline: 0.45rem;
}
@media (min-width: 1180px) {
  .gu-nav-rubriques {
    gap: 0.15rem;
  }
}

/* 6. Calculateur : les quatre resultats sont dans le meme bloc que les champs. */
.gu-calc[data-calcul] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e6, 2rem);
  align-items: start;
}
@media (min-width: 900px) {
  .gu-calc[data-calcul] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.gu-calc-champs {
  display: grid;
  gap: var(--e4, 1rem);
}
.gu-calc-champs label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.gu-calc-champs input {
  width: 100%;
  box-sizing: border-box;
}
.gu-calc-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--c-bord, #e3e8e7);
}
.gu-calc-ligne output {
  font-family: var(--f-titre, inherit);
  font-weight: 700;
  color: var(--c-primaire, #097672);
  min-width: 5ch;
  text-align: right;
}

/* 7. Frise : deux colonnes, la vignette suit la lecture. */
.gu-frise-bloc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--e6, 2rem);
  align-items: start;
  margin-top: var(--e6, 2rem);
}
@media (min-width: 1024px) {
  .gu-frise-bloc {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}
.gu-frise-visuel {
  position: sticky;
  top: calc(var(--header-h) + var(--e4, 1rem));
  display: grid;
  gap: var(--e4, 1rem);
}
.gu-frise-visuel img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--r-image, 12px);
}
.gu-frise-compte {
  display: grid;
  gap: 0.15rem;
}
.gu-frise-compte strong {
  font-family: var(--f-titre, inherit);
  font-size: 1.6rem;
  color: var(--c-primaire, #097672);
}
.gu-jalon-chiffre {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-primaire, #097672);
}
/* Gouttiere des dates : la pastille ne touche plus le trait vertical. */
.gu-frise > li {
  padding-left: 8rem;
}
.gu-frise .gu-pastille {
  position: absolute;
  left: 0;
  width: 6.75rem;
  box-sizing: border-box;
  text-align: center;
}
@media (max-width: 767px) {
  /* Garde du parc 30/09/2026 : la gouttiere de la pastille (5,5 rem) prise sur les 358 px du
     conteneur ne laissait que 234 px au paragraphe du jalon, sous les 300 px de
     page_cassee.colonne_etroite (/services/ et /a-propos/). Sous 767 px la date passe AU-DESSUS
     du texte : la gouttiere disparait et le paragraphe reprend 322 px. */
  .gu-frise > li {
    padding-left: 0;
  }
  .gu-frise .gu-pastille {
    position: static;
    width: auto;
    text-align: left;
    font-size: 0.72rem;
    margin-bottom: var(--e1);
  }
}

/* 8. Temoignages : carrousel du theme, voiles lateraux, slides centrees. */
.gu-avis-cadre {
  position: relative;
}
.gu-avis-voile {
  display: none;
}
@media (min-width: 768px) {
  .gu-avis-voile {
    display: block;
    position: absolute;
    top: 0;
    height: 100%;
    width: 5rem;
    z-index: 10;
    pointer-events: none;
  }
  .gu-avis-voile-gauche {
    left: 0;
    background: linear-gradient(to right, var(--c-fond, #fdfdfd), transparent);
  }
  .gu-avis-voile-droit {
    right: 0;
    background: linear-gradient(to left, var(--c-fond, #fdfdfd), transparent);
  }
}
.gu-avis {
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--e4, 1rem);
  text-align: center;
  padding: var(--e5, 1.5rem);
}
.gu-avis blockquote {
  margin: 0;
}
.gu-avis-etoiles {
  display: flex;
  gap: 0.15rem;
  justify-content: center;
  color: var(--c-primaire, #097672);
}
.gu-avis-entete {
  margin-top: auto;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}
.gu-avis-marque {
  color: var(--c-primaire, #097672);
  opacity: 0.35;
}
#reviewSwiper {
  padding-bottom: 4px;
  height: auto;
}
/* La rangee de pastilles sort du flux : le cadre garde la hauteur des slides. */
#reviewSwiper .swiper-pagination {
  position: absolute;
}
#reviewSwiper .swiper-pagination {
  bottom: 0;
}

/* 9. Explorer, etapes, tableaux. */
.gu-explorer img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-image, 12px);
  max-height: 480px;
}
.gu-etapes-visuel img,
.gu-etapes [data-etapes-visuel] {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--r-image, 12px);
}
.gu-tableau-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.gu-align-start {
  align-items: start;
}
.gu-cta-final {
  text-align: center;
}
.gu-lottie {
  width: 100%;
  max-width: 340px;
}
.gu-lottie svg,
.gu-lottie canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* 10. Aucun contenu ne doit passer sous l’entete colle. */
:target,
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* 11. Une photo doit peindre des le premier rendu : les cartes illustrees ne
       restent jamais transparentes dans l’attente d’un observateur. */
.gu-article-carte[data-apparait],
.gu-cas[data-apparait],
.gu-equipe-carte[data-apparait],
.gu-avis[data-apparait] {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   12. Corrections du portier (26/09) : aucune zone blanche, aucun debordement.
   ══════════════════════════════════════════════════════════════════════════ */

/* a. La revelation au defilement ne laisse jamais une photo invisible : seule
      la translation joue, l’opacite reste a 1. Specificite superieure a celle
      du kit, qui se charge apres ce fichier. */
.kv-js.kv-js [data-apparait] { opacity: 1; }
.kv-js.kv-js [data-apparait]:not(.kv-vu) { transform: translateY(14px); }
.kv-js.kv-js [data-apparait].kv-vu { transform: none; }

/* b. Bandeau : le message se tronque proprement, la croix reste visible.
      Le message est un flex-1 min-w-0 (ellipsis) et la croix un flex-none :
      meme a 390 px, la croix reste dans la largeur et cliquable. */
.gu-bandeau { padding-right: var(--e3); }
.gu-bandeau p { flex: 1 1 auto; min-width: 0; }
.gu-bandeau-fermer { position: static; flex: 0 0 auto; }
@media (max-width: 767px) {
  .gu-bandeau { font-size: .78rem; gap: .4rem; padding: 0 .5rem 0 .75rem; }
  .gu-bandeau-fermer { width: 36px; height: 36px; margin-left: .15rem; }
}

/* c. Hero : le bas du hero tombe au bas de l’ecran, bandeau compris. */
.gu-hero { min-height: calc(100svh - var(--header-h) - var(--bandeau-h, 0px)); }
.gu-hero-visuel img { object-position: 50% 40%; }
@media (max-width: 767px) {
  .gu-hero-grille {
    grid-template-rows: auto minmax(110px, 1fr);
    gap: var(--e4, 1.25rem);
    padding-block: var(--e3, 1rem);
  }
  .gu-hero h1.h1 { font-size: clamp(1.35rem, 6.2vw, 1.7rem); margin-block: .3em .35em; }
  .gu-hero-texte .subtitle {
    font-size: .84rem; line-height: 1.42; margin-bottom: var(--e3, 1rem);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .gu-hero-actions { margin-block: var(--e3, 1rem); gap: .5rem; }
  .gu-hero-actions .btn { min-height: 44px; }
  .gu-hero-preuve { font-size: .78rem; margin-bottom: var(--e3, 1rem); }
  .gu-hero-texte > [data-defile] { max-height: 48px; }
  .gu-hero-visuel { min-height: 110px; }
  .gu-hero-visuel img { height: 100%; min-height: 110px; max-height: none; aspect-ratio: auto; object-fit: cover; }
}

/* d. Frise : photo pleine largeur puis douze jalons en grille, plus aucune
      colonne vide sur la hauteur. */
.gu-frise-large { display: block; }
.gu-frise-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  max-height: 300px; object-fit: cover; border-radius: var(--r-image, 12px);
}
.gu-frise-compte { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: baseline; margin: var(--e4, 1.25rem) 0 var(--e5, 1.5rem); }
.gu-frise-note { max-width: 62ch; }
.gu-frise-grille[data-frise] {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--e5, 1.5rem); padding: .9rem 0 0; position: relative;
}
.gu-frise-grille[data-frise]::before {
  left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px;
  border-radius: 3px; background: color-mix(in srgb, var(--c-texte, #1f2e2d) 14%, transparent);
}
.gu-frise-grille[data-frise]::after {
  left: 0; top: 0; bottom: auto; height: 3px; border-radius: 3px;
  width: calc(100% * var(--kv-progression, 0)); transition: width .15s linear;
  background: var(--c-primaire, #097672);
}
.gu-frise-grille [data-jalon] {
  padding: var(--e4, 1.25rem); border: 1px solid var(--c-bord, #d5dedd);
  border-radius: var(--r-carte, 12px); background: var(--c-surface, #ffffff);
  opacity: .58; transition: opacity .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.gu-frise-grille [data-jalon]::before { display: none; }
.gu-frise-grille [data-jalon].kv-atteint {
  opacity: 1; border-color: color-mix(in srgb, var(--c-primaire, #097672) 45%, var(--c-bord, #d5dedd));
  box-shadow: var(--o-carte, 0 8px 24px rgba(12, 24, 24, .06));
}
@media (max-width: 1023px) { .gu-frise-grille[data-frise] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .gu-frise-grille[data-frise] { grid-template-columns: minmax(0, 1fr); } }

/* d bis. La gouttiere de l'ancienne frise verticale (padding-left de 8rem et
   pastille en position absolue) est neutralisee : la pastille reste dans le
   flux de la carte et ne passe plus par-dessus le titre du jalon. */
.gu-frise-grille > li,
.gu-frise-grille[data-frise] > li { padding-left: var(--e4, 1.25rem); }
.gu-frise-grille .gu-pastille {
  position: static;
  left: auto;
  width: auto;
  box-sizing: border-box;
  display: inline-block;
  text-align: left;
  margin: 0 0 .55rem;
}
.gu-frise-grille [data-jalon] h3 {
  position: static;
  margin: 0 0 .4rem;
  padding: 0;
  text-indent: 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}
.gu-frise-grille [data-jalon] > * { max-width: 100%; }

/* e. Avis : composition review du theme, avec de vrais portraits. */
.gu-avis-cadre { position: relative; }
.gu-avis-voile { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.gu-avis-voile-gauche { left: 0; }
.gu-avis-voile-droit { right: 0; }
#reviewSwiper .swiper-slide { height: auto; }
.gu-avis {
  background: var(--c-surface, #ffffff); border: 1px solid var(--c-bord, #d5dedd);
  border-radius: var(--r-carte, 12px); box-shadow: var(--o-carte, 0 8px 24px rgba(12, 24, 24, .06));
}
.gu-avis-avatar {
  width: 40px; height: 40px; object-fit: cover; display: block; margin: 0 auto .85rem;
  border: 2px solid var(--c-pale, #e6f8f6);
}
.gu-avis-etoiles { display: flex; gap: .15rem; justify-content: center; color: var(--c-accent-2, #10d5cc); margin-bottom: .8rem; }
.gu-avis blockquote { margin: 0 0 1rem; }

/* f. Etapes : le visuel et les cinq vignettes remplissent la colonne. */
.gu-etapes-visuel { background: var(--c-pale, #e6f8f6); border-radius: var(--r-image, 12px); }
.gu-etapes-visuel > img { aspect-ratio: 1 / 1; max-height: 420px; background: var(--c-pale, #e6f8f6); }
.gu-etapes-vignettes {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem; margin: .6rem 0 0; padding: 0; list-style: none;
}
.gu-etapes-vignettes img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 84px;
  object-fit: cover; border-radius: 8px; opacity: .6; transition: opacity .25s ease;
}
.gu-etapes-vignettes li:first-child img { opacity: 1; }

/* g. Pages auteur : portrait 4/3 en deux colonnes, jamais en bandeau 3/1. */
.gu-portrait { aspect-ratio: 4 / 3; height: auto; max-height: 320px; }
.gu-tete-portrait {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--e6, 2rem); align-items: center;
}
.gu-tete-portrait-img { width: 100%; border-radius: var(--r-image, 12px); }
.gu-carte-auteur {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--e5, 1.5rem); align-items: start;
}
.gu-carte-auteur > ul, .gu-carte-auteur > p { grid-column: 1 / -1; }
.gu-carte-auteur-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  object-position: 50% 30%; border-radius: var(--r-image, 12px);
}
@media (max-width: 767px) {
  .gu-tete-portrait, .gu-carte-auteur { grid-template-columns: minmax(0, 1fr); }
}

/* ── garde du parc 30/09/2026 : largeur de lecture sur mobile ─────────────
   Le conteneur du thème ne vaut que 358 px a 390, une carte 358 - 48 de marge
   interieure - 2 de bordure = 308 px. Une rangee icone + texte y prenait 28 px
   de plus (icone 20 px et gap 8) : le texte tombait a 280 px, sous les 300 px
   que page_cassee.colonne_etroite exige pour tout texte de 60 caracteres et
   plus (home : idees recues, /services/ : liste du plan de tresorerie).
   Sous 767 px l'icone passe AU-DESSUS du texte, qui reprend la largeur de la
   carte. Le clip de l'avatar tient la largeur des 340 px du carrousel. */
@media (max-width: 767px) {
  .gu-carte .gu-liste li,
  .gu-carte .gu-duo {
    flex-direction: column;
    gap: var(--e1);
  }
  .gu-carte .gu-liste li > span,
  .gu-carte .gu-duo > span {
    width: 100%;
  }
  .gu-avis {
    padding: var(--e4, 1rem);
  }
}
