@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/fira-sans-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/fira-sans-500.woff2) format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/fira-sans-600.woff2) format('woff2');
}

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fira-sans-700.woff2) format('woff2');
}

:root {
  /* Valeurs de marque relevees sur le logotype vectoriel fourni par le client. */
  --surface: #231F20;
  --accent: #F9EE20;
  --accent-ink: #231F20;
  --text: #231F20;
  --muted-clair: #55524F;
  --muted-sur-tint: #55524F;
  --muted: var(--muted-clair);
  --muted-faible: #6F6B67;
  --tint: #FBFBF9;
  --line-claire: #DCDCD6;
  --line: var(--line-claire);
  --line-forte: #BFC0B9;
  --white: #FFFFFF;
  --alerte: #B4232B;
  --valide: #0B7A4B;

  --display: 'Fira Sans', system-ui, sans-serif;
  --font: 'Fira Sans', system-ui, sans-serif;

  --r-btn: 10px;
  --r-s: 6px;
  --r-card: 12px;
  --r-img: 12px;
  --r-pill: 999px;

  --wrap: 1220px;
  --wrap-entete: 1400px;
  --gouttiere: clamp(20px, 4.5vw, 60px);
  --air: clamp(56px, 7vw, 104px);

  --fond: var(--tint);
  --encre: var(--text);
  --focus: var(--text);
}

.entete,
.hero,
.section-teintee,
.formulaire {
  --fond: var(--tint);
  --encre: var(--text);
  --muted: var(--muted-sur-tint);
  --line: var(--line-claire);
  --focus: var(--text);
}

.pied,
.section-sombre,
.bandeau-clients {
  --fond: var(--white);
  --encre: var(--text);
  --muted: var(--muted-clair);
  --line: var(--line-claire);
  --focus: var(--text);
}

.section-jaune {
  --fond: var(--accent);
  --encre: var(--accent-ink);
  --muted: var(--accent-ink);
  --line: rgba(35, 31, 32, .25);
  --focus: var(--surface);
}

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

html {
  -webkit-text-size-adjust: 100%;

  /* La barre est collante : sans cette reserve, le lien d evitement et toute ancre
     deposent leur cible derriere elle. Hauteur mesuree : 142 px en dessous de 1240 ou elle
     tient sur deux lignes, 72 au-dessus. La reserve garde une marge pour absorber une
     variation de hauteur. */
  scroll-padding-top: 164px;
}

@media (min-width: 1240px) {
  html {
    scroll-padding-top: 92px;
  }
}

body {
  margin: 0;
  background: var(--tint);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

strong,
b {
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
}

h1 {
  font-weight: 600;
  font-size: clamp(2.05rem, 4.4vw, 3.55rem);
  line-height: 1.06;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.375rem);
  line-height: 1.12;
}

h3 {
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.2;
}

h4 {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.conteneur {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.section {
  background: var(--fond);
  color: var(--encre);
  padding: var(--air) 0;
}

.section-jaune {
  background: var(--fond);
  color: var(--encre);
  padding: clamp(54px, 7vw, 96px) 0;
}

.cta-zone {
  max-width: 68ch;
  margin: 0 0 20px;
}

.surtitre {
  font-weight: 600;
  font-size: .78125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-faible);
  margin: 0 0 14px;
}

/* Le schema est un bloc encadre : colle au surtitre, les deux se lisent comme un
   seul ensemble. On les separe. */
.hero-appui .schema + .surtitre {
  margin-top: clamp(26px, 2.6vw, 38px);
}

.chapeau {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 14px 0 0;
}

.titre-section {
  max-width: 22ch;
  margin: 0 0 clamp(22px, 2.8vw, 38px);
}

.lien-evitement {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .06em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--r-pill);
}

.lien-evitement:focus {
  transform: none;
  outline: 2px solid var(--surface);
  outline-offset: 2px;
}

.entete {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 251, 249, .92);
  backdrop-filter: blur(8px);
  color: var(--encre);
  border-bottom: 1px solid var(--line-claire);
}

.entete-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gouttiere);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  margin: 0;
}

.logo-dessin {
  display: block;
  height: 28px;
  width: auto;
}

.pied .logo-dessin {
  height: 24px;
}

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

.entete-bascule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  background: transparent;
  color: var(--encre);
  border: 1px solid var(--line-claire);
  border-radius: var(--r-s);
  padding: 9px 14px;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
}

.entete-bascule::before {
  content: "";
  flex: none;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.navigation {
  display: none;
  width: 100%;
  order: 3;
}

.entete-bascule[aria-expanded="true"] ~ .navigation {
  display: block;
}

.navigation-liste {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: .9375rem;
}

.navigation a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.navigation a:hover {
  color: var(--encre);
}

.navigation a[aria-current="page"] {
  color: var(--encre);
}

.entete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  order: 4;
  width: 100%;
}

.entete-telephone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* Le jaune est deja pris par le bouton d appel a l action et par l indicateur de
     page courante. Le numero se distingue par sa graisse et son corps, sans contour :
     un contour couterait soixante pixels de largeur et masquerait le numero jusqu a
     1400 px, ce qui couvre trop d ecrans de portable. */
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.entete-telephone:hover {
  color: var(--muted);
}

@media (min-width: 1240px) {
  .entete-barre {
    max-width: var(--wrap-entete);
  }

  .entete-bascule {
    display: none;
  }

  .navigation {
    display: block;
    order: 2;
    width: auto;
    margin-left: auto;
    border-top: 0;
    padding-top: 0;
  }

  .navigation-liste {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(9px, 1.1vw, 20px);
    font-size: .875rem;
  }

  .navigation a {
    padding: 6px 0;
    border-top: 0;
    border-bottom: 2px solid transparent;
  }

  .navigation a[aria-current="page"] {
    border-bottom-color: var(--accent);
  }

  .entete-actions {
    order: 3;
    width: auto;
    margin-left: 0;
    flex-wrap: nowrap;
  }

  .entete-actions .btn {
    padding: 10px 18px;
  }
}

/* Mesure : avec le numero en gras et en corps 17, la barre tient sur une ligne des
   1360 px. En dessous il s efface, il reste dans le pied et sur la page contact. */
@media (min-width: 1240px) and (max-width: 1359px) {
  .entete-telephone {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 20px;
  min-height: 44px;
  border: 0;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  background: var(--surface);
  color: var(--tint);
}

.arw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: .9375rem;
  line-height: 1;
}

.btn-y {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px var(--surface);
}

.btn-n:hover {
  background: var(--tint);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px var(--surface);
}

.btn-n {
  background: var(--surface);
  color: var(--accent);
}

.btn-o {
  background: transparent;
  color: var(--text);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-forte);
}

.btn-o:hover {
  background: var(--surface);
  color: var(--tint);
  box-shadow: inset 0 0 0 1px var(--surface);
}

.btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.badge {
  display: inline-block;
  font-weight: 500;
  font-size: .84375rem;
  padding: 8px 15px;
  border: 0;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-forte);
  color: var(--encre);
}

.badge-plein {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.badges-espaces {
  margin-top: 22px;
}

.cartes {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.carte {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  color: var(--text);
  transition: box-shadow .18s ease, border-color .18s ease;
}

.carte-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.carte-corps {
  padding: clamp(22px, 2.4vw, 30px);
}

.carte-numero {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .75rem;
  color: var(--muted);
}

.carte h2,
.carte h3 {
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.carte-liste {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.carte-liste li {
  position: relative;
  font-size: .875rem;
  padding: 8px 0 8px 18px;
  border-top: 1px solid var(--line);
}

.carte-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--text);
}

.section-sombre .carte {
  --muted: var(--muted-clair);
  --line: var(--line-claire);
}

.carte-service {
  position: relative;
  transition: border-color .15s ease;
}

.carte-service:hover {
  border-color: var(--line-forte);
  box-shadow: 0 0 0 1px var(--line-forte);
}

.carte-lien {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.carte-lien::after {
  content: "";
  position: absolute;
  inset: 0;
}

.carte-service:hover .carte-lien {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.bloc-souligne {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.bloc-souligne h3 {
  margin: 0 0 10px;
}

.chiffres {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  text-align: left;
}

.chiffres > li {
  background: var(--fond);
  padding: clamp(20px, 2.2vw, 28px);
}

.chiffre-valeur {
  font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}

.chiffre-libelle {
  font-size: .875rem;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.45;
}

@media (min-width: 821px) {
  .chiffres {
    grid-template-columns: repeat(4, 1fr);
  }

  .chiffres li + li {
    border-left: 1px solid var(--line);
  }
}

.bandeau-clients {
  background: var(--fond);
  color: var(--encre);
}

.bandeau-clients {
  background: var(--fond);
  color: var(--encre);
  padding: clamp(28px, 3.4vw, 46px) 0;
  border-top: 1px solid var(--line-claire);
  border-bottom: 1px solid var(--line-claire);
}

/* ---------- galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.galerie li {
  margin: 0;
}

.galerie img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--r-img);
}

.galerie span {
  display: block;
  margin-top: 10px;
  font-size: .84375rem;
  color: var(--muted-faible);
}

@media (min-width: 620px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- bande de chantiers ---------- */

.bande {
  background: var(--white);
  border-top: 1px solid var(--line-claire);
  border-bottom: 1px solid var(--line-claire);
}

.bande-liste {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-claire);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bande-liste li {
  position: relative;
  background: var(--white);
}

.bande-liste img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.bande-liste span {
  display: block;
  padding: 14px clamp(16px, 2vw, 22px) 18px;
  font-size: .84375rem;
  font-weight: 500;
  color: var(--muted);
}

@media (min-width: 620px) {
  .bande-liste {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .bande-liste {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- figure de page ---------- */

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-img);
}

.figure figcaption {
  margin-top: 12px;
  font-size: .84375rem;
  color: var(--muted-faible);
}

/* ---------- schema unifilaire ---------- */

.schema {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--line-claire);
  margin: 0;
}

.schema::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  background-image:
    linear-gradient(var(--line-claire) .6px, transparent .6px),
    linear-gradient(90deg, var(--line-claire) .6px, transparent .6px);
  background-size: 19px 19px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(120% 110% at 50% 45%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 110% at 50% 45%, #000 55%, transparent 100%);
}

.schema svg {
  position: relative;
  width: 100%;
  height: auto;
}

.schema .sch-etroit {
  display: none;
}

.schema .fil {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: square;
}

.schema .fin {
  fill: none;
  stroke: var(--muted-faible);
  stroke-width: 1;
}

/* Sans JavaScript le chemin reste trace : l animation est un supplement,
   jamais une condition d affichage. */
.schema .sous-tension {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
}

.js .schema .sous-tension {
  stroke-dasharray: var(--l, 1400);
  stroke-dashoffset: var(--l, 1400);
  transition: stroke-dashoffset 2.1s cubic-bezier(.3, .7, .3, 1);
}

.js .schema.vu .sous-tension {
  stroke-dashoffset: 0;
}

.schema .plein {
  fill: var(--text);
}

.schema .creux {
  fill: var(--white);
  stroke: var(--text);
  stroke-width: 1.6;
}

.schema text {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--muted);
  letter-spacing: .02em;
}

.schema text.fort {
  fill: var(--text);
  font-weight: 600;
}

.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-size: .78125rem;
  color: var(--muted-faible);
}

.legende b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.legende i {
  width: 16px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--text);
}

.legende i.trait {
  background: var(--text);
  height: 1.6px;
  box-shadow: none;
}

/* ---------- ruban de logos ---------- */

.bandeau-intitule {
  font-size: .84375rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted-faible);
  margin: 0;
}

.ruban {
  --hauteur-logo: clamp(28px, 2.8vw, 36px);
  margin-top: clamp(16px, 2vw, 24px);
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.piste {
  list-style: none;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(36px, 5vw, 74px);
  margin: 0;
  padding: 0 clamp(36px, 5vw, 74px) 0 0;
  animation: defile 42s linear infinite;
}

.ruban:hover .piste,
.ruban:focus-within .piste {
  animation-play-state: paused;
}

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

.piste li {
  --a: 2.5;
  --k: 1;
  flex: 0 0 auto;
  height: calc(var(--hauteur-logo) * var(--k));
  width: calc(var(--hauteur-logo) * var(--k) * var(--a));
}

.marque {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.m-circet {
  --a: 2.18;
  --k: 1.22;
}

.marque.m-circet {
  background-image: url(/assets/img/clients/circet.webp);
}

.m-axians {
  --a: 5.02;
  --k: 0.8;
}

.marque.m-axians {
  background-image: url(/assets/img/clients/axians.webp);
}

.m-equans {
  --a: 3.78;
  --k: 0.92;
}

.marque.m-equans {
  background-image: url(/assets/img/clients/equans.webp);
}

.m-nge {
  --a: 1.99;
  --k: 1.24;
}

.marque.m-nge {
  background-image: url(/assets/img/clients/nge.webp);
}

.m-vinci {
  --a: 3.7;
  --k: 0.86;
}

.marque.m-vinci {
  background-image: url(/assets/img/clients/vinci.webp);
}

.m-engie {
  --a: 2.78;
  --k: 1.02;
}

.marque.m-engie {
  background-image: url(/assets/img/clients/engie.webp);
}

.m-waat {
  --a: 2.2;
  --k: 1.24;
}

.marque.m-waat {
  background-image: url(/assets/img/clients/waat.webp);
}

.m-bornes-solutions {
  --a: 1.85;
  --k: 1.34;
}

.marque.m-bornes-solutions {
  background-image: url(/assets/img/clients/bornes-solutions.webp);
}

.m-ielo {
  --a: 2.54;
  --k: 1.16;
}

.marque.m-ielo {
  background-image: url(/assets/img/clients/ielo.webp);
}

.m-ville-de-cogolin {
  --a: 2.95;
  --k: 1.2;
}

.marque.m-ville-de-cogolin {
  background-image: url(/assets/img/clients/ville-de-cogolin.webp);
}

@media (prefers-reduced-motion: reduce) {
  .ruban {
    overflow: visible;
    padding: 0 var(--gouttiere);
    -webkit-mask-image: none;
            mask-image: none;
  }

  .piste {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 58px);
  }

  .piste[aria-hidden] {
    display: none;
  }
}

@media (max-width: 640px) {
  .schema .sch-large {
    display: none;
  }

  .schema .sch-etroit {
    display: block;
  }
}

.hero {
  background: var(--fond);
  color: var(--encre);
}

.hero-corps {
  display: grid;
  gap: clamp(30px, 4.5vw, 72px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 4.6vw, 64px) var(--gouttiere) var(--air);
}

/* Le surtitre est une etiquette, pas un paragraphe : il ne se coupe pas tant
   que la ligne le porte. */
.hero .surtitre {
  color: var(--muted-faible);
  max-width: none;
}

.hero h1 em {
  font-style: normal;
  color: inherit;
}

.hero p {
  color: var(--muted);
  max-width: 44ch;
}

/* La mesure etroite n a de sens que si la seconde colonne du hero occupe la
   droite. Sur un hero d une seule colonne, elle laisse les deux tiers de la
   ligne vides : on l elargit, sans depasser la longueur de ligne lisible. */
.hero-simple p {
  max-width: 62ch;
}

.hero .btns {
  margin-top: 30px;
}

@media (min-width: 900px) {
  .hero-corps {
    grid-template-columns: 1.12fr .88fr;
  }

  .hero-simple {
    grid-template-columns: 1fr;
  }
}

.faits {
  margin: 0;
  border-top: 1px solid var(--line);
}

.faits > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.faits dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .09em;
  color: var(--muted);
}

.faits dd {
  margin: 0;
  font-weight: 600;
}

.visuel {
  position: relative;
  border-radius: var(--r-img);
  overflow: hidden;
}

.visuel img {
  width: 100%;
}

.visuel-large {
  margin-bottom: 26px;
}

.visuel-etiquette {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-s);
  padding: 7px 14px;
  font-weight: 600;
  font-size: .8125rem;
}

.chapeau-section {
  max-width: 64ch;
  margin: -10px 0 22px;
}

/* Citation d ouverture. Le filet jaune reprend le conducteur du schema : la
   conviction est posee sur la meme ligne que le courant. */
.section-citation {
  padding: clamp(40px, 5vw, 76px) 0;
}

.citation {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: clamp(18px, 2.4vw, 30px);
}

.citation blockquote {
  margin: 0;
}

/* La mesure est posee sur le paragraphe, pas sur le cadre : en « ch » sur le
   cadre elle se calculait a la taille du corps de texte, pas a celle de la
   citation, et la coupait trois fois trop tot. */
.citation p {
  max-width: 21em;
  font-family: var(--display);
  font-size: clamp(1.1875rem, 2.3vw, 1.6875rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

.citation figcaption {
  margin-top: 14px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-faible);
}

.texte-riche {
  max-width: 72ch;
}

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line-claire);
  border-radius: var(--r-card);
  padding: 16px 12px;
}

.logos img {
  width: 120px;
  height: 48px;
  object-fit: contain;
}

.temoignages {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

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

.temoignage {
  height: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-claire);
  border-radius: var(--r-card);
  padding: 24px;
  color: var(--text);
}

.temoignage blockquote {
  margin: 0;
  font-size: 1.0625rem;
}

.temoignage figcaption {
  margin-top: 16px;
  font-size: .875rem;
  color: var(--muted-sur-tint);
}

.temoignage-auteur {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--text);
}

.video {
  margin: 24px 0 0;
  max-width: 760px;
}

.video video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border-radius: var(--r-img);
}

.video figcaption {
  margin-top: 12px;
  font-size: .875rem;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 76ch;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-reponse {
  padding: 16px 22px 20px;
}

.faq-lien,
.lien-suite {
  margin: 22px 0 0;
}

.faq-lien a,
.lien-suite a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--encre);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.articles {
  display: grid;
  gap: 16px;
  list-style: none;
  max-width: 780px;
  margin: 0;
  padding: 0;
}

.carte-date {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-signature {
  margin-top: 20px;
  font-size: .875rem;
}

.article-corps h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  margin: 42px 0 14px;
}

.article-corps > h2:first-child {
  margin-top: 0;
}

.liste-article {
  list-style: none;
  margin: 0;
  padding: 0;
}

.liste-article li {
  position: relative;
  padding: 7px 0 7px 20px;
}

.liste-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--text);
}

.formulaire {
  display: grid;
  gap: 18px;
  color: var(--encre);
  background: var(--fond);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.champ label {
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .06em;
  color: var(--text);
}

.champ input,
.champ select,
.champ textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-forte);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}

.champ textarea {
  min-height: 150px;
  resize: vertical;
}

.champ-facultatif {
  font-weight: 400;
  color: var(--muted-faible);
}

.champ-obligatoire {
  color: var(--alerte);
}

.champ-aide {
  font-size: .875rem;
  color: var(--muted);
}

.champ-erreur {
  font-size: .875rem;
  font-weight: 600;
  color: var(--alerte);
}

.champ input[aria-invalid="true"],
.champ select[aria-invalid="true"],
.champ textarea[aria-invalid="true"] {
  border-color: var(--alerte);
  border-width: 2px;
}

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

.alerte {
  border-radius: var(--r-card);
  padding: 16px 20px;
  color: var(--white);
  font-weight: 600;
}

.alerte-echec {
  background: var(--alerte);
}

.alerte-succes {
  background: var(--valide);
}

.alerte-liste {
  margin: 10px 0 0;
  padding: 0 0 0 20px;
}

.alerte-liste a {
  color: inherit;
}

.contact-grille {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grille {
    grid-template-columns: 1.25fr .75fr;
  }
}

.formulaire-intro {
  font-size: .9375rem;
  color: var(--muted);
}

.champ-case-ligne {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.champ-case input {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  accent-color: var(--text);
}

.champ-case label {
  font-family: var(--font);
  font-weight: 400;
  font-size: .9375rem;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
}

.contact-annexe h2 {
  margin-bottom: 18px;
}

.contact-adresse {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.contact-coordonnees p {
  margin: 0 0 8px;
}

.contact-coordonnees a {
  color: var(--text);
}

.contact-horaires,
.plan-mention {
  font-size: .875rem;
  color: var(--muted);
}

.contact-horaires {
  margin-top: 16px;
}

.contact-urgence {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-s);
  padding: 14px 16px;
  font-weight: 600;
}

.plan-titre {
  margin: 28px 0 12px;
}

.plan-apercu {
  position: relative;
  display: block;
  border: 1px solid var(--line-forte);
  border-radius: var(--r-img);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}

.plan-dessin {
  display: block;
  width: 100%;
  height: auto;
}

.plan-action {
  display: block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .9375rem;
  padding: 12px 16px;
}

.plan-apercu:hover .plan-action {
  background: var(--surface);
  color: var(--accent);
}

.plan-hors-site {
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

.plan-cadre {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line-forte);
  border-radius: var(--r-img);
}

.plan-mention {
  margin-top: 10px;
}

.merci-lien {
  margin-top: 26px;
  font-weight: 600;
}

.merci-lien a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.pied {
  background: var(--fond);
  color: var(--encre);
  border-top: 1px solid var(--line-claire);
  padding: var(--air) 0 clamp(28px, 3.6vw, 46px);
}

.pied-grille {
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

@media (min-width: 821px) {
  .pied-grille {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.pied .logo {
  color: var(--encre);
}

.pied-baseline {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--encre);
  margin: 10px 0 12px;
}

.pied-zone,
.pied-horaires {
  font-size: .875rem;
}

.pied a {
  color: var(--encre);
  text-decoration: none;
  border-bottom: 1px solid var(--line-forte);
}

.pied a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.pied-coordonnees p {
  margin: 0 0 8px;
}

.pied-adresse {
  font-weight: 600;
}

.pied-navigation ul,
.pied-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .90625rem;
}

.pied-cookies {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--encre);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-forte);
  padding: 0;
  cursor: pointer;
}

.pied-cookies:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.pied-mention {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 22px var(--gouttiere) 0;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
}

.erreur {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gouttiere) 88px;
}

.erreur-intro {
  font-size: 1.125rem;
  max-width: 60ch;
  margin: 18px 0 32px;
}

.erreur-liens ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.erreur-liens a {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: var(--r-pill);
  padding: 9px 18px;
}

.erreur-liens a:hover {
  color: var(--text);
}

.erreur-contact {
  margin-top: 36px;
  font-size: 1.0625rem;
}

.erreur-contact a {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
}

.legal {
  padding: 64px 0 88px;
}

.legal h1 {
  font-size: clamp(2rem, 4.6vw, 2.75rem);
}

.legal-maj {
  margin: 20px 0 0;
  font-size: .875rem;
  color: var(--muted-clair);
}

.legal-bloc {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line-claire);
  max-width: 74ch;
}

.legal-bloc h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  margin: 0 0 18px;
}

.legal-definitions {
  display: grid;
  gap: 14px;
  margin: 0;
}

.legal-definitions div {
  display: grid;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-claire);
}

.legal-definitions dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-clair);
}

.legal-definitions dd {
  margin: 0;
  font-size: 1.0625rem;
}

.legal-items {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-items li {
  margin-bottom: 8px;
}

.legal-attente {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 18px 20px;
  border-radius: var(--r-card);
}

@media (min-width: 900px) {
  .legal-definitions div {
    grid-template-columns: 18rem 1fr;
    gap: 24px;
    align-items: baseline;
  }
}

.cookies {
  --focus: var(--text);

  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  color: var(--text);
  border-top: 1px solid var(--line-claire);
  box-shadow: 0 -14px 34px rgba(35, 31, 32, .1);
}

.cookies[hidden] {
  display: none;
}

.cookies:focus {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.cookies-conteneur {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gouttiere);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.cookies-titre {
  font-weight: 600;
  font-size: .78125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-faible);
  margin: 0 0 8px;
}

.cookies-texte {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 78ch;
}

.cookies-lien {
  margin: 8px 0 0;
  font-size: .875rem;
}

.cookies-lien a {
  color: var(--text);
  text-decoration: underline;
}

.cookies-choix {
  display: flex;
  gap: 12px;
}

/* Refuser et accepter gardent exactement le meme poids visuel :
   refuser doit etre aussi simple qu accepter. */
.cookies-bouton {
  flex: 1 1 0;
  justify-content: center;
  background: var(--white);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-forte);
}

.cookies-bouton:hover {
  background: var(--surface);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--surface);
}

@media (min-width: 900px) {
  .cookies-conteneur {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 22px var(--gouttiere);
  }

  .cookies-choix {
    flex: none;
    width: 340px;
  }
}

/* ---------- carte de couverture ---------- */

.texte-carte {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.carte-bloc {
  margin: 0;
}

.carte-france {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.carte-france .contour {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.carte-france .implantation {
  fill: var(--accent);
  stroke: var(--text);
  stroke-width: 1;
}

.carte-bloc figcaption {
  margin-top: 12px;
  font-size: .84375rem;
  color: var(--muted-faible);
}

@media (min-width: 900px) {
  .texte-carte {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  }
}

/* ---------- les trois fils ---------- */
/* Rail de progression : trois conducteurs sur toute la hauteur de la fenetre, celui du
   milieu s alimente au defilement. Il se tient hors de la colonne de texte, dans la marge
   laissee par le conteneur, et disparait des qu il n y a plus de place pour lui. */
/* Deux calques : le trace passe derriere les sections pleine largeur, comme un
   conducteur qui entre dans un ouvrage ; les noeuds restent au-dessus, sinon le
   reperage disparait justement quand la section est a l ecran. */
.fils,
.fils-conducteurs {
  position: fixed;
  top: 0;
  bottom: 0;
  right: max(10px, (100vw - var(--wrap)) / 2 - 40px);
  width: 30px;
  display: none;
  pointer-events: none;
}

.fils-conducteurs {
  z-index: 1;
}

.fils {
  z-index: 31;
}

.fils-cadre {
  position: relative;
  height: 100%;
}

/* Le trace ne croise plus que des fonds clairs, puisqu il plonge derriere les
   sections pleine largeur : a la teinte des filets de separation il devenait
   invisible. Il prend donc le gris appuye. */
.fils-conducteurs .conducteur {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--line-forte);
}

.fils-conducteurs .c1 { right: 21px; }
.fils-conducteurs .c2 { right: 14px; }
.fils-conducteurs .c3 { right: 7px; }

.fils-conducteurs .jus {
  position: absolute;
  top: 0;
  right: 13px;
  width: 3.5px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  box-shadow: 0 0 0 .5px rgba(35, 31, 32, .3);
  height: calc(var(--p, 0) * 100%);
}

.noeud {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: auto;
  text-decoration: none;
  color: var(--muted-faible);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.noeud .pastille {
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1.6px var(--line-forte);
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.noeud .etiquette {
  opacity: 0;
  transform: translateX(6px);
  background: var(--tint);
  padding: 2px 6px;
  border-radius: 3px;
  transition: opacity .25s ease, transform .25s ease;
}

.noeud.passe .pastille {
  background: var(--accent);
  box-shadow: 0 0 0 1.6px var(--text);
}

.noeud.courant .pastille {
  transform: scale(1.35);
}

.noeud.courant .etiquette,
.noeud:hover .etiquette,
.noeud:focus-visible .etiquette {
  opacity: 1;
  transform: none;
  color: var(--text);
}

/* Les sections pleine largeur couvrent le trace : elles portent un fond ou une
   image qui deborde du conteneur, et un fil pose dessus se lit comme une rayure. */
.section-jaune,
.bandeau-clients,
.bande {
  position: relative;
  z-index: 2;
}

@media (min-width: 1340px) {
  .fils,
  .fils-conducteurs {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noeud .pastille,
  .noeud .etiquette {
    transition: none;
  }
}

/* Sur un ecran tactile, les listes du pied et la case de consentement passent a 44 px.
   Au pointeur fin elles restent denses : la contrainte vient du doigt, pas de la largeur. */
@media (pointer: coarse) {
  .pied-navigation ul,
  .pied-legal ul {
    gap: 0;
  }

  .pied-navigation a,
  .pied-legal a,
  .pied-cookies {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .champ-case input {
    width: 28px;
    height: 28px;
  }
}
