/* ==========================================================================
   Maillon Recrutement — feuille de style du site v2
   v2.5.1 — 18/11/2026 — CSS natif, sans outil de compilation.
   v2.2 : réécriture de la sortie compilée de la v2 (Tailwind), rendu identique.
   v2.3 : logo de l'accueil dans un cercle, coins réguliers de la photo « vision »,
          taille de l'étiquette « Notre expertise » alignée sur les autres,
          contour de focus lisible sur les fonds verts et orange.
   v2.4 : modifications visuelles du document « tes choix pour finaliser la mise en ligne » :
          téléphone dans l'en-tête, pastille du logo, photo organique animée, carrousel de photos,
          chiffres clés alignés, « Notre identité » sur fond sable foncé, cartes d'offres alignées,
          socle commun numéroté.
   v2.4.1 : forme de la photo « vision » plus marquée et plus rapide (tracé SVG animé, maquette XD).
   v2.4.3 : téléphone de l'en-tête en gras ; carrousel sur une seule rangée (styles de la seconde
            rangée gardés) ; introduction de « Nos offres » sur toute la largeur des cartes.
            (Pas de v2.4.2 pour ce fichier : la v2.4.2 du site ne touchait que index.html.)
   v2.4.4 : bouton Pause / Relancer du carrousel caché à l'écran, visible seulement au clavier
            (demande du client) ; l'arrêt au survol de la souris est inchangé.
   v2.4.9 : « Quand faire appel à Maillon ? » sans césure (plus de tirets en fin de ligne) ;
            « Nos offres » : section des trois offres sur fond sable, cartes Essentielle et
            Premium sur fond blanc (demandes du client).
   v2.5.0 : menu mobile : le téléphone devient la dernière entrée de la liste, sous « Nos
            annonces » ; la mention « Grand Ouest & Île-de-France » est retirée du menu.
   v2.5.1 : page Contact : la photo de Damien Morvan remplace les initiales « DM » dans le cercle.

   Sommaire
      1. Jetons de la charte : couleurs, polices
      2. Polices
      3. Remise à zéro du navigateur (couche « reset »)
      4. Socle : textes, liens, focus, utilitaires
      5. Mise en page commune : conteneur, sections, étiquettes, boutons, fond organique
      6. En-tête et menu mobile
      7. Pied de page
      8. Accueil
      9. Pages intérieures : fil d'Ariane, introduction
     10. Nos offres
     11. Nos annonces
     12. Contact et formulaire
     13. Pages légales, 404, pages de résultat, bandeau de préproduction
     14. Mouvement réduit

   Points de rupture (largeur de la fenêtre) : 1600 px et plus ; 1180, 900 et 640 px
   et moins. Chaque section regroupe ses propres règles responsives, dans cet ordre.

   Règles de maintenance
   - La politique de sécurité du site (.htaccess) bloque tout style écrit dans le HTML
     (attribut style=, balise <style>) : tous les styles vont dans ce fichier.
   - Couleurs : variables de la section 1. Un code à 8 chiffres (ex. #ede6d8dc) est une
     couleur de la charte rendue transparente (les 2 derniers chiffres = opacité).
   - !important : deux usages voulus, et seulement ceux-là ([hidden], mouvement réduit).
   - Après toute modification : outils-de-test/comparer_rendu.py (pixels) et
     comparer_styles.py (styles calculés), contre la version précédente.
   ========================================================================== */


/* 1. Jetons de la charte
   ========================================================================== */

:root {
  --vert: #20362d;
  --sable: #ede6d8;
  --sable-fonce: #dfd7c7;   /* fond de « Notre identité » (accueil), v2.4 */
  --orange: #cb541d;
  --sauge: #a2ac84;
  --erreur: #9a3f16;        /* erreurs du formulaire, bandeau de préproduction (contraste 5,5:1) */
  --trait: #20362d26;       /* filets et bordures : vert à 15 % */
  --trait-case: #20362d3d;  /* bordure de la case d'accord : vert à 24 % */
  --focus: var(--orange);   /* contour de focus clavier ; sable sur les fonds sombres (section 4) */

  --police-texte: "Plus Jakarta Sans", sans-serif;
  --police-titre: Urbanist, sans-serif;

  color-scheme: light;
}


/* 2. Polices (fichiers dans /fonts, licences dans /fonts/LICENCES-POLICES.txt)
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jakarta-400.woff2) format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jakarta-500.woff2) format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/jakarta-600.woff2) format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/jakarta-700.woff2) format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/urbanist-400.woff2) format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/urbanist-500.woff2) format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/urbanist-600.woff2) format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/urbanist-700.woff2) format("woff2");
}
@font-face {
  font-family: Urbanist;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/urbanist-800.woff2) format("woff2");
}


/* 3. Remise à zéro du navigateur
   Dans une couche (@layer) : toutes les règles hors couche, plus bas, passent avant
   elles, quelle que soit leur spécificité.
   ========================================================================== */

@layer reset {
  *,
  ::before,
  ::after,
  ::backdrop {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }

  html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--police-texte);
    -webkit-tap-highlight-color: transparent;
  }

  strong {
    font-weight: bolder;
  }

  small {
    font-size: 80%;
  }

  ul {
    list-style: none;
  }

  img,
  svg {
    display: block;
    vertical-align: middle;
  }

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

  button,
  input,
  textarea {
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: transparent;
    border-radius: 0;
  }

  button,
  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  textarea {
    resize: vertical;
  }

  ::placeholder {
    opacity: 1;
    color: currentcolor;
  }

  @supports (color: color-mix(in lab, red, red)) {
    ::placeholder {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }
}


/* 4. Socle
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;   /* ancres : le titre visé ne passe pas sous l'en-tête fixe */
}

body {
  color: var(--vert);
  background: var(--sable);
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--police-titre);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.1vw, 3.2rem);
}

h3 {
  font-size: 1.5rem;
}

p + p {
  margin-top: 1.15rem;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input,
textarea {
  touch-action: manipulation;   /* pas de délai au toucher sur mobile */
}

button {
  cursor: pointer;
}

svg {
  flex-shrink: 0;
}

/* Focus clavier visible partout : ne jamais le supprimer sans le remplacer. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

/* Sur les fonds verts et orange, le contour orange se voit mal (2,97:1 sur vert,
   invisible sur orange) : il passe en sable (10,4:1 sur vert, 3,5:1 sur orange). */
.hero,
.vision,
.commitment,
.offer-banner,
.method-card.featured,
.offer-card.highlight,
.replacement-section,
.contact-page,
.site-footer {
  --focus: var(--sable);
}

/* Le formulaire, sur fond sable, garde le contour orange. */
.contact-form {
  --focus: var(--orange);
}

::selection {
  background: var(--orange);
  color: #fff;
}

/* Attribut hidden toujours respecté, même sur un élément en display: flex ou grid
   (.form-field). Le champ « offre » et le panneau de confirmation en dépendent. */
[hidden] {
  display: none !important;
}

/* Texte lu par les lecteurs d'écran, invisible à l'écran. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

/* Lien « Aller au contenu », visible seulement au clavier. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
  color: var(--vert);
}

.skip-link:focus {
  top: 15px;
}

.small {
  font-size: 0.875rem;
  line-height: 1.7;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 640px) {
  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 2.2rem;
  }
}


/* 5. Mise en page commune
   ========================================================================== */

/* Conteneur : largeur du contenu, centrée. */
.container {
  width: min(1180px, 100% - 96px);
  margin-inline: auto;
}

/* Paliers de largeur maximale, hérités de la v2 et conservés à l'identique.
   Ils limitent la largeur du contenu entre 690 et 1280 px de fenêtre
   (ex. 1 024 px de contenu pour une fenêtre de 1 200 px). À rediscuter avec la charte. */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

.section {
  padding: 100px 0;
}

/* Étiquette au-dessus des titres. */
.eyebrow {
  margin-bottom: 17px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Variante précédée d'un trait orange. */
.eyebrow-lined {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.eyebrow-lined::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.section-heading {
  margin-bottom: 45px;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 22px;
}

.section-heading.center {
  max-width: 790px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.center p {
  margin-inline: auto;
}

.centered-action {
  text-align: center;
}

/* Boutons : .button + une couleur (.button-orange, -green, -white, -outline-light). */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  transition:
    transform 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #00000015;
}

.button-orange {
  background: var(--orange);
  color: #fff;
}

.button-green {
  background: var(--vert);
  color: #fff;
}

.button-white {
  background: #fff;
  color: var(--vert);
}

.button-outline-light {
  border-color: #ffffff8c;
  color: #fff;
}

.button-outline-light:hover {
  background: #ffffff12;
}

/* Bouton désactivé pendant l'envoi du formulaire (contact.js). */
.button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Fond organique : deux grandes formes très pâles, derrière le contenu de la section. */
.organic-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.organic-bg::before,
.organic-bg::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 83px solid;
  border-radius: 46% 39% 55% 43%;
  opacity: 0.028;
  transform: rotate(-30deg);
  pointer-events: none;
}

.organic-bg::before {
  top: -100px;
  left: -330px;
  width: 620px;
  height: 750px;
}

.organic-bg::after {
  right: -250px;
  bottom: -390px;
  width: 870px;
  height: 680px;
}

@media (max-width: 1180px) {
  .container {
    width: calc(100% - 72px);
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 48px);
  }

  .section {
    padding: 76px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding: 63px 0;
  }

  .eyebrow {
    margin-bottom: 15px;
    font-size: 0.69rem;
    letter-spacing: 0.13em;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 0.94rem;
  }
}


/* 6. En-tête et menu mobile
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #20362d0d;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: calc(100% - 80px);
  max-width: 1520px;
  min-height: 88px;
  margin: auto;
}

.brand {
  display: block;
  flex-shrink: 0;
}

.brand img {
  width: 167px;
  height: 57px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
  margin-right: 20px;
}

.desktop-nav a {
  position: relative;
  padding: 30px 0;
  font-size: 0.84rem;
  white-space: nowrap;
}

/* Soulignement orange : au survol et sur la page en cours. */
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform 0.2s;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Téléphone à la place de l'onglet Contact : icône orange à gauche du numéro, en gras
   comme dans le menu mobile (v2.4.3). */
.desktop-nav .nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.phone-icon {
  color: var(--orange);
}

.header-cta {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 0.82rem;
}

/* Boutons d'ouverture et de fermeture du menu mobile. */
.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--vert);
}

/* Menu mobile : élément <dialog> natif, piloté par site.js. */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  flex-direction: column;
  gap: 16px;
  width: min(88%, 390px);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 26px;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid var(--trait);
  background: var(--sable);
  color: var(--vert);
  box-shadow:
    0 10px 15px -3px #0000001a,
    0 4px 6px -4px #0000001a;
}

.mobile-drawer[open] {
  display: flex;
  animation: maillon-drawer-in 0.3s ease-out;
}

.mobile-drawer::backdrop {
  background: #00000080;
}

/* Menu ouvert : la page derrière ne défile plus. */
html:has(.mobile-drawer[open]) {
  overflow: hidden;
}

@keyframes maillon-drawer-in {
  from {
    transform: translate(100%);
  }
  to {
    transform: none;
  }
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.mobile-drawer .menu-button {
  display: flex;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.mobile-drawer nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--trait);
  font-family: var(--police-titre);
  font-size: 1.7rem;
}

/* Téléphone : dernière entrée de la liste, au même niveau que les liens (même police,
   même taille, même trait de séparation : règle « .mobile-drawer nav a »), v2.5.0. */
.mobile-drawer .drawer-phone {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-drawer .drawer-phone .phone-icon {
  flex: none;
  width: 24px;
  height: 24px;
}

@media (max-width: 1180px) {
  .nav-wrap {
    gap: 20px;
    width: calc(100% - 44px);
  }

  .desktop-nav {
    gap: 18px;
    margin-right: 0;
  }

  .desktop-nav a {
    font-size: 0.77rem;
  }

  .brand img {
    width: 147px;
  }

  .header-cta {
    padding: 11px 17px;
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .nav-wrap {
    min-height: 76px;
  }

  .brand img {
    width: 150px;
    height: 53px;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    width: calc(100% - 36px);
    min-height: 72px;
  }

  .brand img {
    width: 140px;
    height: 48px;
  }
}


/* 7. Pied de page
   ========================================================================== */

.site-footer {
  padding: 62px 0 22px;
  background: var(--vert);
  color: var(--sable);
}

.site-footer a:hover {
  color: #fff;
}

/* Trois colonnes : marque, navigation, coordonnées. */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.3fr;
  gap: 64px;
}

.footer-grid a {
  display: block;
  font-size: 0.83rem;
  line-height: 1.8;
}

.footer-grid nav a + a {
  margin-top: 7px;
}

.footer-label {
  margin: 6px 0 20px;
  color: var(--sauge);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Signature sous le logo. */
.footer-brand p {
  margin-top: 17px;
  font-family: var(--police-titre);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.35;
}

.footer-grid .footer-company {
  font-family: var(--police-titre);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.footer-coordinates {
  display: grid;
  gap: 12px;
  margin-top: 21px;
}

.footer-coordinates a,
.footer-coordinates p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.83rem;
}

.footer-coordinates p {
  font-size: 0.9rem;
}

.footer-coordinates svg {
  flex-shrink: 0;
  color: var(--sauge);
}

.footer-coordinates span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Bas de page : copyright et liens légaux. */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 23px;
  border-top: 1px solid #ede6d82e;
  color: #ede6d8ad;
  font-size: 0.72rem;
}

.footer-bottom > div {
  display: flex;
  gap: 25px;
}

@media (max-width: 1180px) {
  .footer-grid {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    gap: 35px;
  }

  .footer-grid a {
    overflow-wrap: anywhere;
  }

  .footer-brand a,
  .footer-grid nav a {
    font-size: 0.77rem;
  }

  .footer-brand img {
    width: 175px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 45px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid a,
  .footer-grid nav a {
    font-size: 0.85rem;
  }

  .footer-label {
    margin-bottom: 14px;
    font-size: 0.66rem;
  }

  .footer-brand img {
    width: 168px;
  }

  .footer-coordinates {
    margin-top: 17px;
  }

  .footer-coordinates p {
    font-size: 0.82rem;
  }

  .footer-bottom {
    display: block;
    margin-top: 32px;
  }

  .footer-bottom > div {
    gap: 23px;
    margin-top: 12px;
  }
}


/* 8. Accueil
   ========================================================================== */

/* --- Bandeau d'ouverture (hero) --- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  overflow: hidden;
  background: var(--vert);
  color: #fff;
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-shade {
  background: linear-gradient(#12241c24, #10241cca);
}

.hero-content {
  position: relative;
  max-width: 1160px;
  padding: 48px 24px 42px;
  text-align: center;
}

/* Pastille du logo : cercle blanc de 74 px et « M » qui déborde, dessinés dans mark-pastille.svg. */
.hero-mark {
  width: 92px;
  margin: 0 auto 22px;
}

.hero-mark img {
  width: 100%;
}

.hero h1 {
  max-width: 1050px;
  margin: 0 auto;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero-content > p {
  max-width: 700px;
  margin: 25px auto 28px;
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 13px;
}

.hero-bottom {
  display: inline-block;
  margin-top: 29px;
  color: #ffffffe6;
  font-size: 0.8rem;
}

.hero-bottom span {
  margin-left: 5px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- Vision et chiffres clés (fond vert) --- */

.vision {
  padding-top: 96px;
  padding-bottom: 62px;
  background: var(--vert);
  color: var(--sable);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 88px;
}

.vision h2 {
  margin-bottom: 27px;
}

.vision p:not(.eyebrow) {
  color: #ede6d8dc;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* Texte justifié, sans césure (v2.4.9) : les mots ne sont plus coupés en fin de ligne. */
.vision-copy > p:not(.eyebrow) {
  text-align: justify;
}

.vision .button {
  margin-top: 30px;
}

.vision-image {
  max-width: 510px;
  height: 350px;
}

/* Photo à la forme organique (maquette XD). Le contour est un tracé SVG placé dans la photo
   (#forme-organique, voir index.html), en coordonnées relatives : la forme suit la taille de
   la photo sur tous les écrans. site.js l'anime (4 formes en boucle) ; sans JavaScript et en
   mouvement réduit, la photo garde la première forme, celle de la maquette. */
.organic-photo {
  position: relative;
  clip-path: url(#forme-organique);
}

.organic-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Le SVG ne sert qu'à définir la forme : il n'occupe aucune place. */
.organic-clip {
  position: absolute;
  width: 0;
  height: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  padding: 34px 0;
  border-top: 1px solid #ede6d846;
  border-bottom: 1px solid #ede6d846;
}

/* Chaque chiffre clé occupe deux rangées communes aux trois colonnes (grille « subgrid ») :
   les chiffres sont sur la même ligne de base, les descriptions commencent à la même hauteur. */
.stats > div {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  padding: 0 39px;
  border-right: 1px solid #ede6d833;
}

.stats > div:first-child {
  padding-left: 0;
}

.stats > div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  align-self: end;
  font-family: var(--police-titre);
  font-size: 3.85rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.stats strong small {
  display: block;
  margin-bottom: 7px;
  font-family: var(--police-texte);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
}

.stats strong .unit {
  display: inline;
  font-family: var(--police-titre);
  font-size: 1.9rem;
  font-weight: 600;
}

/* « .vision » en tête : passe avant la règle des paragraphes de la section. */
.vision .stats p {
  max-width: 265px;
  margin-top: 13px;
  font-size: 0.87rem;
  line-height: 1.6;
}

/* --- Méthode (4 étapes) --- */

.method-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 66px;
}

.method-section::before {
  content: "";
  position: absolute;
  top: -420px;
  left: -480px;
  z-index: -1;
  width: 680px;
  height: 680px;
  border: 100px solid #20362d06;
  border-radius: 46% 50% 43% 57%;
  transform: rotate(-30deg);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.method-card {
  min-height: 310px;
  padding: 31px 27px 34px;
  border-radius: 28px;
  background: #fff;
  transition: transform 0.25s;
}

.method-card:hover {
  transform: translateY(-5px);
}

.method-card.featured {
  background: var(--orange);
  color: #fff;
}

.step-number {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-bottom: 26px;
  color: var(--orange);
}

.featured .step-number {
  color: #fff;
}

.step-number span {
  font-family: var(--police-titre);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.step-number i {
  flex: 1;
  height: 1px;
  margin-top: 7px;
  background: currentcolor;
}

.method-card h3 {
  min-height: 52px;
  margin-bottom: 17px;
  font-size: 1.42rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.method-card p {
  font-size: 0.86rem;
  line-height: 1.8;
}

/* --- Expertise : carrousel de photos et métiers --- */

.expertise {
  padding-top: 16px;
}

/* Carrousel : une rangée qui défile vers la gauche (site.js, « Carrousel »).
   site.js répète les photos de chaque rangée, puis l'animation la fait glisser de la moitié
   de sa longueur et recommence : la boucle est continue. Sans JavaScript, les photos restent
   immobiles. La durée par défaut (60 s) est remplacée par site.js (vitesse constante).
   Les règles « carousel-row-reverse » et « .carousel-row + .carousel-row » servent à une
   seconde rangée, plus basse et en sens contraire, retirée du HTML en v2.4.3 (pas assez de
   photos) : elles sont gardées pour la remettre sans toucher à ce fichier. */
.carousel-row {
  overflow: hidden;
}

.carousel-row + .carousel-row {
  margin-top: 16px;
}

.carousel-track {
  display: flex;
  width: max-content;
}

.carousel-track img {
  width: auto;
  max-width: none;
  height: 250px;
  margin-right: 16px;   /* marge plutôt qu'écart : la moitié de la rangée tombe juste */
  border-radius: 15px;
  object-fit: cover;
}

.carousel-row-reverse img {
  height: 200px;
}

[data-carousel-active] .carousel-track {
  animation: maillon-defilement 60s linear infinite;
}

/* Seconde rangée : vers la droite. */
[data-carousel-active] .carousel-row-reverse .carousel-track {
  animation-direction: reverse;
}

/* Pause : souris au-dessus des photos, ou bouton « Mettre en pause » (clavier, voir plus bas). */
[data-carousel-paused] .carousel-track {
  animation-play-state: paused;
}

@media (hover: hover) {
  .carousel:hover .carousel-track {
    animation-play-state: paused;
  }
}

@keyframes maillon-defilement {
  to {
    transform: translateX(-50%);
  }
}

/* Bouton Pause / Relancer (v2.4.4) : caché à l'écran, comme le lien « Aller au contenu ».
   Il n'apparaît que lorsqu'on l'atteint au clavier (touche Tab), sous les photos à droite,
   par-dessus la marge de « Notre expertise », sans décaler la page ; les lecteurs d'écran
   l'annoncent toujours. Il permet d'arrêter le défilement sans souris (règle d'accessibilité
   WCAG 2.2.2). site.js le montre ou le cache (attribut hidden) comme avant.
   Pour l'afficher de nouveau en permanence : supprimer la règle « .carousel-toggle:not(:focus) »
   et les lignes position, top, right, left de « .carousel-controls ». */
.carousel {
  position: relative;
}

.carousel-controls {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.carousel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}

.carousel-toggle:hover {
  background: #fff;
}

.carousel-toggle:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.expertise-copy {
  display: block;
  padding-top: 70px;
  padding-bottom: 15px;
}

.expertise-copy h2 {
  font-size: 2.5rem;
}

.expertise-copy .section-heading {
  max-width: 820px;
}

.expertise-copy .section-heading p:not(.eyebrow) {
  font-size: 0.96rem;
}

.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 29px 35px;
}

.trades-grid article {
  padding-top: 18px;
  border-top: 1px solid #20362d30;
}

.trades-grid h3 {
  position: relative;
  margin-bottom: 10px;
  padding-left: 14px;
  font-size: 1.17rem;
  line-height: 1.3;
}

/* Petit carré orange devant chaque métier. */
.trades-grid h3::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--orange);
}

.trades-grid p {
  font-size: 0.83rem;
  line-height: 1.75;
}

/* --- Bannière vers les offres --- */

.banner-wrap {
  padding: 50px 0 96px;
}

.offer-banner {
  padding: 65px 45px;
  border-radius: 32px;
  background: var(--vert);
  color: var(--sable);
  text-align: center;
}

.offer-banner h2 {
  max-width: 800px;
  margin: auto;
  font-size: 2.65rem;
}

.offer-banner p:not(.eyebrow) {
  max-width: 725px;
  margin: 23px auto 27px;
  color: #ede6d8db;
  font-size: 0.95rem;
  text-wrap: balance;
}

/* Une phrase par ligne. Si une phrase doit se couper, ses lignes sont équilibrées (pas de mot
   isolé en fin de phrase). Sur mobile, les phrases se suivent (règle de la zone 640 px). */
.offer-banner .banner-sentence {
  display: block;
  text-wrap: balance;
}

/* --- Ce qui nous distingue (fond sable foncé depuis la v2.4) ---
   Étiquette et icônes en orange, titres et textes en vert. */

.differences {
  background: var(--sable-fonce);
  color: var(--vert);
}

.differences-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.differences-grid article {
  padding: 12px 28px 0;
  border-left: 1px solid var(--trait);
}

.differences-grid article:first-child {
  padding-left: 0;
  border: 0;
}

.differences-grid article:last-child {
  padding-right: 0;
}

.differences-grid svg {
  margin-bottom: 25px;
  color: var(--orange);
}

.differences-grid h3 {
  margin-bottom: 15px;
  font-size: 1.42rem;
  line-height: 1.2;
}

.differences-grid p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.differences-action {
  margin-top: 44px;
}

/* --- Engagement (bandeau orange) --- */

.commitment {
  padding: 46px 0;
  background: var(--orange);
  color: #fff;
}

.commitment .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.commitment .container > div {
  flex: 1;
  min-width: 0;
}

.commitment-mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid #ffffff5e;
  border-radius: 50%;
}

.commitment .eyebrow {
  margin-bottom: 9px;
  color: #fff;
  opacity: 0.8;
}

.commitment h2 {
  font-size: 2rem;
}

.commitment p:not(.eyebrow) {
  margin-top: 12px;
  font-size: 0.92rem;
}

.commitment .button {
  flex-shrink: 0;
  margin-left: auto;
}

/* --- Accueil : grands écrans --- */

@media (min-width: 1600px) {
  .hero {
    min-height: 760px;
  }

  .hero h1 {
    font-size: 5.4rem;
  }
}

/* --- Accueil : 1180 px et moins --- */

@media (max-width: 1180px) {
  .vision-grid {
    gap: 45px;
  }

  .method-card {
    padding: 28px 22px;
  }

  .method-card h3 {
    font-size: 1.25rem;
  }

  .method-card p {
    font-size: 0.81rem;
  }

  .differences-grid article {
    padding-inline: 20px;
  }
}

/* --- Accueil : 900 px et moins --- */

@media (max-width: 900px) {
  .hero {
    min-height: 640px;
  }

  .hero-photo {
    object-position: 57% 40%;
  }

  .hero-content {
    padding: 40px 30px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .vision {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .vision-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 38px;
  }

  .vision h2 {
    font-size: 2.25rem;
  }

  .vision p:not(.eyebrow) {
    font-size: 0.86rem;
  }

  .vision-image {
    height: 310px;
  }

  .stats > div {
    padding: 0 24px;
  }

  .stats strong {
    font-size: 3.2rem;
  }

  .stats strong .unit {
    font-size: 1.45rem;
  }

  .vision .stats p {
    font-size: 0.79rem;
  }

  .method-section {
    padding-bottom: 76px;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-card {
    min-height: 280px;
    padding: 32px;
  }

  .method-card h3 {
    min-height: auto;
    font-size: 1.5rem;
  }

  .method-card p {
    font-size: 0.91rem;
  }

  .carousel-row + .carousel-row {
    margin-top: 12px;
  }

  .carousel-track img {
    height: 200px;
    margin-right: 12px;
  }

  .carousel-row-reverse img {
    height: 160px;
  }

  .expertise-copy .section-heading {
    margin-bottom: 30px;
  }

  .trades-grid {
    gap: 28px 40px;
  }

  .banner-wrap {
    padding-bottom: 70px;
  }

  .offer-banner {
    padding: 55px 35px;
  }

  .offer-banner h2 {
    font-size: 2.4rem;
  }

  .differences-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 0;
  }

  .differences-grid article:nth-child(2) {
    padding-right: 0;
  }

  .differences-grid article:nth-child(3) {
    padding-left: 0;
    border: 0;
  }

  .commitment .container {
    flex-wrap: wrap;
    gap: 24px;
  }

  .commitment .container > div {
    flex-basis: calc(100% - 100px);
  }

  .commitment h2 {
    font-size: 1.75rem;
  }

  .commitment .button {
    margin-left: 100px;
  }
}

/* --- Accueil : 640 px et moins --- */

@media (max-width: 640px) {
  .hero {
    min-height: 645px;
  }

  .hero-photo {
    object-position: 57% 50%;
  }

  .hero-shade {
    background: linear-gradient(#10241c51, #10241cdb);
  }

  .hero-content {
    padding: 40px 20px 34px;
  }

  .hero-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 26px;
  }

  .hero h1 {
    font-size: 2.83rem;
    line-height: 1.03;
  }

  .hero h1 br {
    display: none;
  }

  .hero-content > p {
    margin-top: 24px;
    font-size: 0.89rem;
    line-height: 1.75;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }

  .hero-actions .button {
    min-width: 224px;
    padding: 14px 25px;
  }

  .hero-bottom {
    margin-top: 25px;
    font-size: 0.72rem;
    line-height: 1.8;
  }

  .hero-bottom span {
    display: block;
    margin: 0;
  }

  .vision {
    padding-top: 63px;
    padding-bottom: 35px;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .vision h2 {
    font-size: 2.35rem;
  }

  .vision p:not(.eyebrow) {
    font-size: 0.94rem;
  }

  .vision-copy > p:not(.eyebrow) {
    text-align: left;
  }

  .vision-image {
    width: 94%;
    height: 260px;
    margin: auto;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: 42px;
    padding: 0;
    border-bottom: 0;
  }

  .stats > div {
    display: grid;
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 125px 1fr;
    align-items: center;
    gap: 20px;
    border: 0;
    border-bottom: 1px solid #ede6d833;
  }

  .stats > div,
  .stats > div:first-child {
    padding: 25px 0;
  }

  .stats strong {
    align-self: auto;
    font-size: 3.1rem;
  }

  .stats strong small {
    font-size: 0.71rem;
  }

  .stats strong .unit {
    display: block;
    font-size: 1.1rem;
  }

  .vision .stats p {
    max-width: 230px;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .method-section {
    padding-bottom: 38px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Carte en deux colonnes : numéro à gauche, texte à droite. */
  .method-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 21px;
    min-height: 0;
    padding: 26px 27px;
  }

  .step-number {
    grid-area: 1 / 1 / 3;
    align-items: start;
    margin: 0;
    padding-top: 1px;
  }

  .step-number span {
    font-size: 2.25rem;
  }

  .step-number i {
    display: none;
  }

  .method-card h3 {
    grid-column: 2;
    margin: 0 0 12px;
    font-size: 1.4rem;
  }

  .method-card p {
    grid-column: 2;
    font-size: 0.86rem;
    line-height: 1.75;
  }

  .carousel-row + .carousel-row {
    margin-top: 10px;
  }

  .carousel-track img {
    height: 150px;
    margin-right: 10px;
    border-radius: 12px;
  }

  .carousel-row-reverse img {
    height: 120px;
  }

  /* 6 px au lieu de 12 : le bouton, quand il apparaît au clavier, ne touche pas « Notre expertise ». */
  .carousel-controls {
    margin-top: 6px;
  }

  .expertise-copy {
    padding-top: 45px;
  }

  .expertise-copy h2 {
    font-size: 2.1rem;
  }

  .expertise-copy .section-heading p:not(.eyebrow) {
    font-size: 0.94rem;
  }

  .trades-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .trades-grid h3 {
    font-size: 1.24rem;
  }

  .trades-grid p {
    font-size: 0.875rem;
  }

  .banner-wrap {
    padding: 38px 0 60px;
  }

  .offer-banner {
    padding: 40px 25px;
    border-radius: 25px;
  }

  .offer-banner h2 {
    font-size: 2rem;
    line-height: 1.14;
  }

  .offer-banner p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 0.89rem;
  }

  /* Un retour à la ligne <br> ajouté dans ces textes est ignoré sur mobile. */
  .offer-banner h2 br,
  .offer-banner p br {
    display: none;
  }

  .offer-banner .banner-sentence {
    display: inline;
  }

  .differences-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Une colonne : un filet au-dessus de chaque bloc, y compris le premier et le troisième. */
  .differences-grid article,
  .differences-grid article:first-child,
  .differences-grid article:nth-child(3) {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0 16px;
    padding: 25px 0 0;
    border: 0;
    border-top: 1px solid var(--trait);
  }

  .differences-grid svg {
    grid-area: 1 / 1 / 3;
    margin: 0;
  }

  .differences-grid h3 {
    grid-column: 2;
    margin-bottom: 11px;
    font-size: 1.38rem;
  }

  .differences-grid p {
    grid-column: 2;
    font-size: 0.91rem;
  }

  .commitment {
    padding: 38px 0;
  }

  .commitment .container {
    display: block;
    text-align: center;
  }

  .commitment-mark {
    width: 63px;
    height: 63px;
    margin: 0 auto 22px;
  }

  .commitment h2 {
    font-size: 1.95rem;
  }

  .commitment p:not(.eyebrow) {
    font-size: 0.85rem;
  }

  .commitment .button {
    margin: 23px 0 0;
  }
}


/* 9. Pages intérieures : fil d'Ariane et introduction
   ========================================================================== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 35px;
  font-size: 0.76rem;
  opacity: 0.75;
}

.breadcrumbs > span {
  display: flex;
  gap: 11px;
}

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

.page-intro {
  padding: 32px 0 70px;
}

.page-intro .eyebrow {
  margin-bottom: 20px;
}

.page-intro h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 4.2vw, 4.35rem);
}

.page-intro .intro-copy {
  max-width: 640px;
  margin-top: 25px;
  font-size: 1.07rem;
}

@media (max-width: 900px) {
  .page-intro {
    padding-bottom: 55px;
  }
}

@media (max-width: 640px) {
  .breadcrumbs {
    gap: 8px;
    margin-bottom: 29px;
    font-size: 0.7rem;
  }

  .breadcrumbs > span {
    gap: 8px;
  }

  .page-intro {
    padding: 25px 0 47px;
  }

  .page-intro h1 {
    font-size: 2.55rem;
  }

  /* Un retour à la ligne <br> ajouté dans le titre est ignoré sur mobile. */
  .page-intro h1 br {
    display: none;
  }

  .page-intro .intro-copy {
    margin-top: 22px;
    font-size: 0.94rem;
  }
}


/* 10. Nos offres
   ========================================================================== */

/* Introduction et trois offres, sur fond sable comme « Un service complet » (v2.4.9 ;
   fond blanc auparavant). */
.offers-section {
  background: var(--sable);
}

.offers-page {
  padding: 32px 0 82px;
}

/* Texte d'introduction : toute la largeur, comme la grille des cartes en dessous (v2.4.3). */
.offers-page .intro-copy {
  max-width: none;
}

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

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 0 24px;
  margin-top: 55px;
}

/* Les trois cartes partagent les mêmes 6 rangées (grille « subgrid ») : numéro, titre,
   présentation, garantie, liste et bouton sont alignés d'une carte à l'autre, à toutes les
   largeurs. Sur mobile (une colonne), chaque carte redevient une simple colonne. */
.offer-card {
  position: relative;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 33px 30px;
  border: 1px solid var(--trait);
  border-radius: 29px;
  background: #fff;   /* blanc sur le fond sable de la section (v2.4.9) */
}

/* Offre mise en avant (fond vert). Depuis la v2.4, elle n'est plus surélevée : les trois
   cartes sont alignées. */
.offer-card.highlight {
  border-color: var(--vert);
  background: var(--vert);
  color: var(--sable);
}

.offer-number {
  color: var(--orange);
  font-family: var(--police-titre);
  font-size: 1.5rem;
  font-weight: 700;
}

.offer-card h2 {
  margin: 7px 0 10px;
  font-size: 2.5rem;
}

.offer-card .offer-intro {
  min-height: 56px;
  margin: 0;
  font-size: 0.87rem;
}

.offer-guarantee {
  margin-top: 24px;
  padding: 25px 0 23px;
  border-top: 1px solid #20362d2b;
  border-bottom: 1px solid #20362d2b;
}

.offer-card .offer-guarantee {
  margin-bottom: 25px;
}

.highlight .offer-guarantee {
  border-color: #ede6d839;
}

.offer-guarantee span {
  display: block;
  font-size: 0.73rem;
  opacity: 0.8;
}

.offer-guarantee strong {
  font-family: var(--police-titre);
  font-size: 2.45rem;
  line-height: 1.3;
}

/* Listes à coches des cartes d'offres. */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.65;
}

.check-list li + li {
  margin-top: 12px;
}

.check-list svg {
  margin-top: 4px;
  color: var(--orange);
}

.offer-card .check-list {
  margin-bottom: 30px;
}

.offer-card .check-list li {
  font-size: 0.82rem;
}

.highlight .check-list svg,
.highlight .offer-number {
  color: var(--sauge);
}

.offer-card .button {
  width: 100%;
  margin-top: auto;
}

/* --- Socle commun à toutes les offres --- */

.offer-common {
  padding-top: 75px;
  padding-bottom: 75px;
}

.common-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.common-grid > article {
  padding-top: 23px;
  border-top: 1px solid var(--trait);
}

.common-grid h3 {
  margin: 13px 0 19px;
  font-size: 1.4rem;
}

.common-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #20362d0b;
  color: var(--orange);
}

/* Points numérotés, un encadré blanc par point. La numérotation continue d'une colonne à
   l'autre (01 à 09) : le compteur « etape » part de la grille, pas de chaque liste.
   Les attributs start="4" et start="6" du HTML gardent la bonne numérotation sans CSS. */
.common-grid {
  counter-reset: etape;
}

.step-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.6;
  counter-increment: etape;
}

.step-list li::before {
  content: counter(etape, decimal-leading-zero);
  flex-shrink: 0;
  min-width: 1.4em;
  color: var(--orange);
  font-family: var(--police-titre);
  font-size: 1rem;
  font-weight: 700;
}

/* --- Garantie de remplacement (bandeau orange) --- */

.replacement-section {
  padding: 80px 0;
  background: var(--orange);
  color: #fff;
}

.replacement-section .eyebrow {
  color: #fff;
  opacity: 0.85;
}

.replacement-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 80px;
}

.replacement-copy > p {
  font-size: 0.96rem;
  line-height: 1.85;
}

/* Paragraphes particuliers : « .replacement-copy > » les fait passer avant la règle ci-dessus. */
.replacement-copy > .replacement-duration-label {
  margin-top: 28px;
  font-size: 0.8rem;
}

.replacement-copy > .replacement-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 12px;
  padding: 16px 0;
  border-top: 1px solid #ffffff4a;
  border-bottom: 1px solid #ffffff4a;
  font-size: 0.84rem;
}

.replacement-durations > span:not([aria-hidden]) {
  white-space: nowrap;
}

.replacement-copy > .replacement-condition {
  font-size: 0.8rem;
}

.replacement-copy .button {
  margin-top: 28px;
}

@media (max-width: 1180px) {
  .offer-card {
    padding: 29px 23px;
  }
}

@media (max-width: 900px) {
  .offers-grid {
    gap: 0 15px;
  }

  .offer-card {
    padding: 26px 20px;
  }

  .offer-card h2 {
    font-size: 2rem;
  }

  .check-list li,
  .step-list li {
    font-size: 0.82rem;
  }

  .offer-card .check-list li {
    font-size: 0.78rem;
  }

  .step-list li {
    padding: 14px 16px;
  }

  .offer-card .button {
    padding: 12px;
    font-size: 0.79rem;
  }

  .common-grid {
    gap: 24px;
  }

  .common-grid h3 {
    font-size: 1.2rem;
  }

  .replacement-section {
    padding: 65px 0;
  }

  .replacement-grid {
    gap: 40px;
  }

  .replacement-grid h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 640px) {
  .offers-page {
    padding: 25px 0 58px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 34px;
  }

  .offer-card {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    padding: 29px 28px;
  }

  .offer-card h2 {
    font-size: 2.7rem;
  }

  .offer-card .offer-intro {
    min-height: 0;
    font-size: 0.92rem;
  }

  .offer-guarantee {
    padding: 19px 0;
  }

  .check-list li,
  .step-list li {
    font-size: 0.88rem;
  }

  .offer-card .check-list li {
    font-size: 0.89rem;
  }

  .offer-card .button {
    padding: 14px;
    font-size: 0.87rem;
  }

  .offer-common {
    padding: 57px 0;
  }

  /* Une colonne : l'icône passe à gauche du texte. */
  .common-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .common-grid > article {
    position: relative;
    padding-left: 60px;
  }

  .common-icon {
    position: absolute;
    top: 30px;
    left: 0;
  }

  .common-grid h3 {
    font-size: 1.5rem;
  }

  .replacement-section {
    padding: 58px 0;
  }

  .replacement-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .replacement-grid h2 {
    font-size: 2.2rem;
  }

  .replacement-copy > p {
    font-size: 0.92rem;
  }

  .replacement-copy > .replacement-durations {
    gap: 7px 10px;
  }
}


/* 11. Nos annonces
   ========================================================================== */

.jobs-page-intro {
  padding-bottom: 0;
}

.jobs-content {
  padding: 40px 0 80px;
}

/* Encadré « aucune annonce pour le moment ». */
.jobs-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  min-height: 295px;
  padding: 24px;
  border: 1px solid var(--trait);
  border-radius: 30px;
  background: #ffffff70;
  text-align: center;
  text-wrap: balance;
}

.empty-symbol {
  margin-bottom: 5px;
  color: var(--orange);
}

.jobs-empty h2 {
  font-size: 2rem;
}

.jobs-empty p {
  max-width: 570px;
  margin: 0 auto;
  font-size: 0.94rem;
}

.jobs-empty a {
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jobs-empty .button {
  font-size: 0.875rem;
  text-decoration: none;
}

@media (min-width: 768px) {
  .jobs-empty {
    padding: 48px;
  }
}

@media (max-width: 640px) {
  .jobs-content {
    padding: 30px 0 58px;
  }

  .jobs-empty {
    gap: 18px;
    padding: 33px 22px;
  }

  .jobs-empty h2 {
    font-size: 1.8rem;
  }

  .jobs-empty p {
    font-size: 0.88rem;
  }

  .jobs-empty a {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }
}


/* 12. Contact et formulaire
   ========================================================================== */

.contact-page {
  position: relative;
  padding: 32px 0 100px;
  background: var(--vert);
  color: var(--sable);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 75px;
}

/* --- Colonne de gauche : texte et coordonnées --- */

.contact-copy h1 {
  max-width: 560px;
  font-size: 3.85rem;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin-top: 26px;
  color: #ede6d8d4;
  font-size: 1.01rem;
}

.contact-details {
  margin-top: 44px;
}

.contact-founder {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 36px;
}

/* Photo de Damien Morvan dans un cercle (v2.5.1 ; remplace les initiales « DM »). Image de
   183 px (3 fois la taille affichée, pour les écrans haute densité). Texte de remplacement vide :
   le nom est écrit juste à côté. */
.founder-photo {
  flex: none;
  width: 61px;
  height: 61px;
  border: 1px solid #ede6d853;
  border-radius: 50%;
  object-fit: cover;
}

.contact-founder h2 {
  font-size: 1.4rem;
}

.contact-founder p {
  margin-top: 5px;
  font-size: 0.75rem;
}

.contact-details > a {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.contact-details svg {
  color: var(--sauge);
}

.contact-details small {
  display: block;
  margin-bottom: 5px;
  color: #ede6d8a3;
  font-size: 0.74rem;
}

.contact-candidate {
  margin-top: 35px;
  padding-top: 27px;
  border-top: 1px solid #ede6d82c;
  font-size: 0.85rem;
  line-height: 1.9;
}

.contact-candidate a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* --- Colonne de droite : formulaire (contrat avec contact.js : voir la page) --- */

.contact-form {
  padding: 37px;
  border-radius: 30px;
  background: var(--sable);
  color: var(--vert);
  box-shadow: 0 18px 55px #0000000e;
}

.contact-form h2 {
  margin-bottom: 7px;
  font-size: 1.7rem;
}

.form-intro {
  margin-bottom: 25px;
  font-size: 0.78rem;
}

/* Piège à robots : champ hors de l'écran, que seul un robot remplit. */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 17px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 500;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #20362d35;
  border-radius: 9px;
  background: #fff;
  color: var(--vert);
  font-size: 0.88rem;
  line-height: 1.6;
}

.form-field textarea {
  height: 105px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #20362d77;
  font-size: 0.81rem;
}

/* Case d'accord, dessinée en CSS (la case native reste utilisable sans JavaScript). */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 23px 0;
  font-size: 0.74rem;
  line-height: 1.75;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  border: 1px solid var(--trait-case);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  appearance: none;
}

.consent input[type="checkbox"]:checked {
  border-color: var(--vert);
  background: var(--vert)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Champ signalé en erreur par contact.js (aria-invalid). Après les règles de la case :
   une case cochée garde sa bordure verte (.consent … :checked, plus spécifique). */
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.consent input[aria-invalid="true"] {
  border-color: var(--erreur);
  box-shadow: 0 0 0 1px var(--erreur);
}

/* Messages d'erreur sous les champs ; zone masquée tant qu'elle est vide. */
.field-error {
  color: var(--erreur);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

.consent-error {
  margin: -12px 0 20px;
}

/* Message général : envoi en cours, erreur, réussite (attribut data-state). */
.form-status {
  margin-bottom: 20px;
  font-size: 0.83rem;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="pending"] {
  opacity: 0.8;
}

.form-status[data-state="error"] {
  padding: 12px;
  border: 1px solid var(--erreur);
  border-radius: 8px;
  color: var(--erreur);
}

.form-status[data-state="success"] {
  padding: 12px;
  border: 1px solid var(--vert);
  border-radius: 8px;
}

.contact-form > .button {
  width: 100%;
}

.form-privacy {
  margin-top: 17px;
  color: #20362db3;
  font-size: 0.69rem;
  line-height: 1.7;
}

/* Panneau affiché à la place du formulaire après l'envoi. */
.form-success {
  padding: 45px 6px;
  text-align: center;
}

.form-success svg {
  margin: 0 auto 25px;
  color: var(--orange);
}

.form-success h2 {
  font-size: 2rem;
}

.form-success p {
  max-width: 350px;
  margin: 18px auto 25px;
  font-size: 0.94rem;
}

.form-success .button {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .contact-grid {
    gap: 40px;
  }

  .contact-copy h1 {
    font-size: 3.2rem;
  }

  .contact-form {
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    gap: 30px;
  }

  .contact-copy h1 {
    font-size: 2.75rem;
  }

  .contact-copy > p:not(.eyebrow) {
    font-size: 0.9rem;
  }

  .contact-founder p {
    font-size: 0.69rem;
  }

  .contact-details > a {
    gap: 13px;
    font-size: 0.87rem;
  }

  .contact-form {
    padding: 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
}

@media (max-width: 640px) {
  .contact-page {
    padding: 25px 0 63px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 39px;
  }

  .contact-copy h1 {
    font-size: 2.8rem;
  }

  .contact-copy > p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .contact-details {
    margin-top: 33px;
  }

  .contact-founder {
    margin-bottom: 28px;
  }

  .contact-founder p {
    font-size: 0.76rem;
  }

  .contact-details > a {
    margin: 22px 0;
    font-size: 1rem;
  }

  .contact-candidate {
    margin-top: 28px;
    font-size: 0.86rem;
  }

  .contact-form {
    padding: 28px 23px;
    border-radius: 25px;
  }

  .form-intro,
  .consent {
    font-size: 0.76rem;
  }

  .form-field {
    font-size: 0.83rem;
  }

  /* 16 px minimum : évite le zoom automatique de l'iPhone sur un champ. */
  .form-field input,
  .form-field textarea {
    font-size: 1rem;
  }

  .form-field textarea {
    height: 130px;
  }

  .form-privacy {
    font-size: 0.73rem;
  }

  .form-success h2 {
    font-size: 1.7rem;
  }
}


/* 13. Pages légales, 404, pages de résultat, bandeau de préproduction
   ========================================================================== */

.legal {
  max-width: 860px;
  margin: auto;
  padding: 40px 0 95px;
}

.legal h1 {
  margin-bottom: 35px;
  font-size: 3.3rem;
}

.legal h2 {
  margin: 35px 0 16px;
  font-size: 1.55rem;
}

.legal p,
.legal li {
  font-size: 0.95rem;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Page 404. */
.not-found {
  padding: 110px 25px;
  text-align: center;
}

.not-found p {
  margin: 20px 0 30px;
}

/* Pages /contact/merci/ et /contact/erreur/ (envoi sans JavaScript). */
.result-page {
  padding: 110px 25px;
  text-align: center;
}

.result-page h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.result-page p:not(.eyebrow) {
  max-width: 600px;
  margin: 20px auto 30px;
}

/* PRÉPRODUCTION : bandeau à retirer des 9 pages en production (la règle peut rester). */
.preprod-band {
  background: var(--erreur);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.preprod-band p {
  padding: 8px 20px;
}

@media (max-width: 640px) {
  .legal {
    padding: 27px 0 65px;
  }

  .legal h1 {
    font-size: 2.45rem;
  }

  .legal h2 {
    font-size: 1.5rem;
  }

  .legal p,
  .legal li {
    font-size: 0.92rem;
  }
}


/* 14. Mouvement réduit
   Pour les personnes qui ont demandé à leur système de limiter les animations.
   !important voulu : doit l'emporter sur toutes les transitions du fichier.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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