/* ==========================================================================
   2LTEC SAS – feuille de styles unique
   Mise en page de référence : maquette à 1447 px de large (page de 1087 px).
   Sommaire : 1. Variables  2. Base  3. En-tête  4. Hero  5. Services
              6. Domaines  7. Pourquoi / Contact  8. Pied de page
              9. Adaptations (≤ 1273, ≤ 1100, ≤ 760, ≤ 480)  10. Préférences
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
  /* Couleurs */
  --c-marine: #0a1b3f;         /* titres */
  --c-texte: #16233f;          /* texte courant */
  --c-texte-doux: #2b3752;     /* textes secondaires */
  --c-nav: #04153d;            /* liens du menu sur fond clair */
  --c-nav-actif: #0c4189;      /* lien actif du menu (bleu de la maquette) */
  --c-roi: #01439a;            /* boutons, bandeau courbe */
  --c-roi-fonce: #003580;      /* survol des boutons */
  --c-vif: #0b4699;            /* sur-titres, icônes, lien actif */
  --c-clair: #6fb1ff;          /* accents sur fond sombre */
  --c-nuit: #01193f;           /* pied de page */
  --c-pastille: #021c46;       /* pastilles des cartes photo */
  --c-fond: #ffffff;
  --c-bord: #eef1f6;           /* bord des cartes */
  --c-champ: #e1e6ee;          /* bord des champs */
  --c-separateur: #e9ecf1;
  --c-succes: #0b6b3a;
  --c-erreur: #b3261e;
  --c-focus: #1a63d8;          /* anneau de focus sur fond clair */
  --c-focus-sombre: #ffc233;   /* anneau de focus sur fond sombre */

  /* Polices */
  --font-titre: "Barlow", "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  --font-texte: "Nunito Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Gabarit */
  --largeur: 1226px;           /* largeur maximale des grilles */
  --gouttiere: 24px;           /* marge latérale minimale */
  --entete-h: 100px;
  --rayon: 4px;
  --ombre-carte: 0 1px 7px rgba(16, 38, 84, .09);
  --ombre-survol: 0 2px 4px rgba(16, 38, 84, .06), 0 10px 24px rgba(16, 38, 84, .14);
  --transition: .2s ease;

  /* Positions fluides de l’en-tête (valeurs de la maquette atteintes à 1447 px) */
  --logo-gauche: clamp(24px, calc(50vw - 632px), 92px);   /* 19 px à gauche de la grille */
  --nav-debut: clamp(176px, calc(371px - (1447px - 100vw) * .565), 371px);
  --nav-ecart: clamp(18px, calc(47px - (1447px - 100vw) * .084), 47px);
  --entete-droite: clamp(20px, calc(52px - (1447px - 100vw) * .1), 52px);
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-texte);
  background: var(--c-fond);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.entete :focus-visible,
.pied :focus-visible,
.carte-domaine :focus-visible {
  outline-color: var(--c-focus-sombre);
}

/* Cible du lien d’évitement : reçoit le focus sans anneau */
main:focus {
  outline: none;
}

/* Les ancres ne passent pas sous l’en-tête collant (tablette / mobile) */
[id] {
  scroll-margin-top: var(--decalage-ancre, 16px);
}

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

/* Texte réservé aux lecteurs d’écran */
.masque {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Lien d’évitement */
.evitement {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-roi);
  border-radius: var(--rayon);
  transform: translateY(-200%);
}

.evitement:focus {
  transform: none;
}

.icone {
  flex: none;
  width: 1em;
  height: 1em;
}

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--rayon);
  font-family: var(--font-texte);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-roi);
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.bouton:hover {
  background: var(--c-roi-fonce);
  box-shadow: 0 6px 16px rgba(1, 45, 110, .28);
  transform: translateY(-1px);
}

.bouton:active {
  transform: none;
  box-shadow: none;
}

.bouton[disabled] {
  opacity: .65;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* Cartes blanches génériques */
.carte {
  background: #fff;
  border: 1px solid var(--c-bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-carte);
}

/* Titres de section en bleu vif */
.titre-section,
.carte__titre {
  font-family: var(--font-texte);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-vif);
}

/* 3. En-tête -------------------------------------------------------------- */
.entete {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--entete-h);
  color: #fff;
}

.entete__int {
  position: relative;
  display: flex;
  align-items: flex-start;
  max-width: 1447px;
  height: 100%;
  margin-inline: auto;
  padding-left: var(--nav-debut);
  padding-right: var(--entete-droite);
}

.entete__logo {
  position: absolute;
  left: var(--logo-gauche);
  top: 5px;
}

.entete__logo img {
  width: auto;
  height: 120px;   /* le logo se dimensionne par sa hauteur */
  max-width: none;
}

/* Menu principal */
.nav__liste {
  display: flex;
  gap: var(--nav-ecart);
  margin-top: 33px;
}

.nav__lien {
  position: relative;
  display: block;
  padding: 12px 0;
  font-size: .68125rem;      /* 10,9 px */
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--c-nav);
  transition: color var(--transition);
}

/* Soulignement fin du lien actif / survolé */
.nav__lien::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__lien:hover,
.nav__lien[aria-current] {
  color: var(--c-nav-actif);
}

/* « Pourquoi nous choisir » chevauche la partie qui s’assombrit : léger halo clair pour la lisibilité */
.nav__liste > li:nth-child(4) .nav__lien {
  text-shadow: 0 0 5px rgba(206, 226, 250, .7), 0 0 2px rgba(206, 226, 250, .55);
}

.nav__lien:hover::after,
.nav__lien[aria-current]::after {
  transform: none;
}

/* Les deux derniers liens reposent sur la partie sombre du dégradé */
.nav__liste > li:nth-child(n+5) .nav__lien {
  color: #fff;
}

.nav__liste > li:nth-child(n+5) .nav__lien:hover::after,
.nav__liste > li:nth-child(n+5) .nav__lien[aria-current]::after {
  background: var(--c-clair);
}

/* Coordonnées */
.entete__contact {
  display: grid;
  gap: 10px;
  margin-top: 27px;
  margin-left: auto;
}

.entete__coord {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8875rem;       /* 14,2 px */
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  color: #fff;
}

.entete__coord .icone {
  width: 21px;
  height: 21px;
  transform: translateY(-1px);
}

.entete__coord:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bouton du menu mobile (masqué sur grand écran) */
.entete__burger {
  display: none;
}

/* 4. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #b9d3f0;
  isolation: isolate;
}

.hero__fond,
.hero__vague {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.hero__fond {
  top: 0;
  height: 100%;
  z-index: -3;
}

/* Photo : à droite, fondue vers la gauche dans le fond clair */
.hero__photo {
  position: absolute;
  top: var(--entete-h);
  right: 0;
  z-index: -2;
  width: 59.8%;
  max-width: none;
  height: 292px;
  object-fit: cover;
  object-position: 20% 40%;    /* cadrage : à ajuster selon la photo définitive */
  --fondu: linear-gradient(to right, transparent 3%, rgba(0, 0, 0, .12) 9%, rgba(0, 0, 0, .35) 13.5%, rgba(0, 0, 0, .55) 18%, rgba(0, 0, 0, .72) 23%, rgba(0, 0, 0, .86) 27.5%, rgba(0, 0, 0, .95) 32%, #000 37%);
  -webkit-mask-image: var(--fondu);
  mask-image: var(--fondu);
}

.hero__vague {
  bottom: -1px;
  height: 141px;
  z-index: -1;
}

.hero__contenu {
  position: relative;
  padding-top: 143px;
  padding-bottom: 61px;
}

.hero__titre,
.hero__texte,
.bouton--devis {
  margin-left: -14px;          /* le texte déborde légèrement la grille dans la maquette */
}

.hero__titre {
  font-family: var(--font-titre);
  font-size: 1.625rem;         /* 26 px */
  font-weight: 700;
  line-height: 31px;
  letter-spacing: .75px;
  text-transform: uppercase;
  color: var(--c-marine);
}

.hero__titre span {
  display: block;
}

.hero__texte {
  margin-top: 12px;
  font-size: .8125rem;         /* 13 px */
  font-weight: 500;
  line-height: 19px;
  letter-spacing: -.3px;
  color: var(--c-marine);
}

.bouton--devis {
  justify-content: flex-start;
  gap: 10px;
  min-width: 175px;
  height: 35px;
  margin-top: 8px;
  padding: 0 13px;
  font-size: .71875rem;        /* 11,5 px */
  font-weight: 500;
  letter-spacing: .15px;
  line-height: 1;
}

.bouton--devis .icone {
  width: 15px;
  height: 17px;
}

/* 5. Services ------------------------------------------------------------- */
.services {
  position: relative;
  z-index: 1;
  margin-top: -45px;           /* le titre mord sur la vague blanche du hero */
}

.section-tete {
  text-align: center;
}

.sur-titre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: .78125rem;        /* 12,5 px */
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--c-vif);
}

.sur-titre::before,
.sur-titre::after {
  content: "";
  width: 41px;
  height: 1.5px;
  background: #5d8fd0;
}

.section-tete__titre {
  font-size: 1.21875rem;       /* 19,5 px */
  font-weight: 700;
  line-height: 24px;
  letter-spacing: .07px;
  color: var(--c-marine);
}

.services__grille {
  display: grid;
  grid-template-columns: 293fr 279fr 279fr 291fr;   /* largeurs inégales de la maquette */
  gap: 26px;
  margin: 3px 1px 0 4px;
}

.carte-service {
  --retrait: 31px;             /* marge gauche du texte */
  --decalage-tete: 0px;        /* décalage de l’icône et du titre */
  --ecart-titre: 29px;
  min-height: 144px;
  padding: 14px 12px 12px var(--retrait);
  background: #fff;
  border: 1px solid var(--c-bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-carte);
  transition: box-shadow var(--transition), transform var(--transition);
}

.carte-service:nth-child(2) { --retrait: 29px; --ecart-titre: 25px; }
.carte-service:nth-child(3) { --retrait: 25px; --ecart-titre: 27px; }
.carte-service:nth-child(4) { --retrait: 32px; --decalage-tete: 9px; --ecart-titre: 27px; }

.carte-service:hover,
.carte-domaine:hover {
  box-shadow: var(--ombre-survol);
  transform: translateY(-2px);
}

.carte-service__tete {
  display: flex;
  align-items: center;
  gap: var(--ecart-titre);
  min-height: 48px;
  margin-left: var(--decalage-tete);
}

.carte-service__icone {
  --icone-h: 52px;
  position: relative;
  flex: none;
  width: 56px;
  height: var(--icone-h);
  margin-block: calc((48px - var(--icone-h)) / 2);   /* l’icône déborde sans agrandir la ligne */
  color: var(--c-vif);
}

/* Ajustements optiques propres à chaque pictogramme */
.carte-service__icone--engrenage { left: 2px; }
.carte-service__icone--usine { --icone-h: 53px; left: -3px; top: -1px; }
.carte-service__icone--goutte { --icone-h: 54px; left: -1px; }
.carte-service__icone--eclair { --icone-h: 49px; }

.carte-service__titre {
  padding-top: 3px;
  font-size: .8875rem;         /* 14,2 px */
  font-weight: 700;
  line-height: 19px;
  color: var(--c-marine);
}

.carte-service__texte {
  margin-top: 13px;
  font-size: .78125rem;        /* 12,5 px */
  font-weight: 500;
  line-height: 18px;
  color: var(--c-texte);
}

/* 6. Domaines d’intervention ---------------------------------------------- */
.domaines {
  margin-top: 10px;
}

.titre-section {
  font-size: .84375rem;        /* 13,5 px */
  line-height: 18px;
  text-align: center;
}

.domaines__grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 8px 1px 0 3px;
}

.carte-domaine {
  position: relative;
  min-height: 151px;
  overflow: hidden;
  border-radius: 5px;
  color: #fff;
  background: var(--c-pastille);
  isolation: isolate;
  transition: box-shadow var(--transition), transform var(--transition);
}

.carte-domaine__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile bleu marine, plus dense en bas */
.carte-domaine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom,
    rgba(4, 26, 62, .2) 0%,
    rgba(4, 26, 62, .32) 36%,
    rgba(3, 22, 55, .7) 58%,
    rgba(2, 20, 50, .87) 76%,
    rgba(2, 20, 50, .9) 100%);
}

.carte-domaine__contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 11px;
  text-align: center;
}

.pastille {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--c-pastille);
}

.pastille__icone {
  width: 37px;
  height: 37px;
}

.pastille__icone--engrenage {
  transform: translate(1px, 1px);
}

/* La dernière pastille est légèrement décentrée sur la maquette */
.carte-domaine:nth-child(4) .pastille {
  transform: translateX(4px);
}

.pastille__icone--eclair {
  width: 23px;
  height: 35px;
}

.carte-domaine__titre {
  margin-top: 10px;
  font-size: .84375rem;        /* 13,5 px */
  font-weight: 500;
  line-height: 18px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.carte-domaine__texte {
  margin-top: 4px;
  font-size: .75rem;           /* 12 px */
  font-weight: 500;
  line-height: 17px;
}

/* 7. Pourquoi nous choisir + Contact --------------------------------------- */
.bas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
  /* la rangée déborde la grille de 2 px à droite dans la maquette */
  width: min(var(--largeur) + 2px, 100% - 2 * var(--gouttiere));
  transform: translateX(1px);
}

.carte__titre {
  font-size: .71875rem;        /* 11,5 px */
  font-weight: 800;
  line-height: 16px;
}

/* Pourquoi nous choisir */
.pourquoi {
  min-height: 180px;
  padding: 13px 0 0;
}

.pourquoi .carte__titre {
  padding-left: 28px;
}

.pourquoi__liste {
  display: grid;
  grid-template-columns: 156fr 133fr 159fr 156fr;
  margin-top: 13px;
}

.atout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
  text-align: center;
}

/* Centrages légèrement décalés, comme sur la maquette */
.atout:nth-child(1) { padding-right: 14px; }
.atout:nth-child(3) { padding-left: 6px; }
.atout:nth-child(4) { padding-right: 13px; }

.atout + .atout {
  background: linear-gradient(var(--c-separateur), var(--c-separateur)) left 19px / 1px 91px no-repeat;
}

.atout__icone {
  width: 46px;
  height: 47px;
  color: var(--c-vif);
}

.atout__titre {
  margin-top: 11px;
  font-size: .6875rem;         /* 11 px */
  font-weight: 700;
  line-height: 15px;
  color: var(--c-marine);
}

.atout__texte {
  margin-top: 3px;
  font-size: .5625rem;         /* 9 px */
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -.15px;
  color: var(--c-texte);
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 180px;
  padding: 10px 19px 6px 17px;
}

.contact__titre {
  font-size: .8125rem;         /* 13 px */
  line-height: 18px;
  letter-spacing: .01em;
}

.contact__accroche {
  margin-top: 3px;
  font-size: .625rem;          /* 10 px */
  font-weight: 600;
  line-height: 14px;
  color: var(--c-texte);
}

.contact__liste {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}

.contact__ligne {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 11px;
  font-size: .71875rem;        /* 11,5 px */
  font-weight: 700;
  line-height: 16px;
  color: var(--c-marine);
}

.contact__ligne .icone {
  width: 20px;
  height: 20px;
  margin: -2px 0 -2px -1.5px;  /* l’icône ne grandit pas la ligne */
  color: var(--c-vif);
}

.contact__ligne:last-child .icone {
  margin-top: 3px;             /* repère centré sur les deux lignes */
}

.contact__ligne a:hover {
  color: var(--c-vif);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Formulaire */
.formulaire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 5px 13px;
  padding-top: 2px;
}

.formulaire__champ--large {
  grid-column: 1 / -1;
}

.formulaire input,
.formulaire textarea {
  display: block;
  width: 100%;
  padding: 0 10px;
  font-size: .5rem;            /* 8 px */
  line-height: 14px;
  color: var(--c-marine);
  background: #fff;
  border: 1px solid var(--c-champ);
  border-radius: 3px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.formulaire input {
  height: 26px;
}

.formulaire textarea {
  height: 62px;
  min-height: 62px;
  padding-top: 5px;
  resize: vertical;
}

.formulaire ::placeholder {
  color: #5d6577;
  opacity: 1;
}

.formulaire input:hover,
.formulaire textarea:hover {
  border-color: #b9c3d4;
}

.formulaire input:focus,
.formulaire textarea:focus {
  outline: none;
  border-color: var(--c-vif);
  box-shadow: 0 0 0 3px rgba(11, 70, 153, .2);
}

.formulaire [aria-invalid="true"] {
  border-color: var(--c-erreur);
}

.formulaire [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .2);
}

/* Pot de miel : hors écran, hors tabulation, ignoré des lecteurs d’écran */
.formulaire__piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bouton--envoi {
  display: flex;
  width: 100%;
  height: 29px;
  margin-top: 1px;
  padding: 0 19px 0 0;         /* libellé légèrement décalé à gauche, comme sur la maquette */
  font-size: .71875rem;        /* 11,5 px */
  font-weight: 500;
  letter-spacing: .4px;
  line-height: 1;
}

/* Message d’état (aria-live) : sans hauteur tant qu’il est vide */
.formulaire__etat {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
}

.formulaire__etat:not(:empty) {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 3px;
}

.formulaire__etat.est-succes {
  color: var(--c-succes);
  background: #e7f5ec;
}

.formulaire__etat.est-erreur {
  color: var(--c-erreur);
  background: #fdecea;
}

.formulaire__etat.est-attente {
  color: var(--c-texte-doux);
  background: #eef2f8;
}

/* 8. Pied de page ---------------------------------------------------------- */
.pied {
  position: relative;
  min-height: 114px;
  margin-top: 12px;
  overflow: hidden;
  color: #e3e9f6;
  background: var(--c-nuit);
}

.pied__vagues {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: none;
  pointer-events: none;
}

.pied__int {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 114px;
}

.pied__logo {
  flex: none;
  margin: 7px 0 0 27px;
}

.pied__logo img {
  width: auto;
  height: 78px;
  max-width: none;
}

.pied__texte {
  flex: none;
  margin: 24.5px 0 0 31px;
  font-size: .65625rem;        /* 10,5 px */
  line-height: 16px;
}

.pied__engagements {
  display: flex;
  gap: 12px;
  margin: 31px 0 0 46px;
}

.engagement {
  display: flex;
  align-items: center;
  gap: 8px;
}

.engagement__cercle {
  display: grid;
  flex: none;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
}

.engagement__cercle svg {
  width: 29px;
  height: 29px;
}

.engagement__texte {
  padding-top: 7px;
  font-size: .46875rem;        /* 7,5 px */
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  text-transform: uppercase;
}

.pied__fin {
  flex: none;
  width: 265px;                /* le menu déborde un peu la grille à droite, comme sur la maquette */
  margin: 42.5px 0 0 auto;
  white-space: nowrap;
}

.pied__nav ul {
  display: flex;
  font-size: .4875rem;         /* 7,8 px */
  line-height: 14px;
}

.pied__nav li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 8.1px;
  vertical-align: -2px;
  background: rgba(255, 255, 255, .7);
}

.pied__nav a {
  font-weight: 600;
  text-transform: uppercase;
}

.pied__nav a[aria-current],
.pied__nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pied__copyright {
  margin-top: 11px;
  font-size: .69375rem;        /* 11,1 px */
  line-height: 16px;
}

/* 9. Adaptations ----------------------------------------------------------- */

/* ≤ 1340 px : le texte du hero s’aligne sur la grille, le pied ne déborde plus */
@media (max-width: 1340px) {
  .hero__titre,
  .hero__texte,
  .bouton--devis {
    margin-left: 0;
  }

  .pied__fin {
    width: auto;
    padding-left: 16px;
  }
}

/* ≤ 1273 px : la grille devient fluide */
@media (max-width: 1273px) {
  .saut {
    display: none;             /* les retours à la ligne de la maquette ne sont plus imposés */
  }

  .hero__texte {
    max-width: 30em;
  }

  .services__grille,
  .domaines__grille {
    grid-template-columns: repeat(4, 1fr);
    margin-inline: 0;
  }

  .carte-domaine:nth-child(4) .pastille {
    transform: none;
  }

  .services__grille {
    gap: 18px;
  }

  .carte-service,
  .carte-service:nth-child(n) {
    --retrait: 18px;
    --decalage-tete: 0px;
    --ecart-titre: 12px;
    padding-right: 14px;
  }

  .carte-service__icone {
    width: 48px;
  }

  .bas {
    width: min(var(--largeur), 100% - 2 * var(--gouttiere));
    transform: none;
  }

  .pourquoi__liste {
    grid-template-columns: repeat(4, 1fr);
  }

  .atout:nth-child(n) {
    padding: 0 8px;
  }

  .contact {
    grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
    column-gap: 16px;
  }

  .bouton--envoi {
    padding-right: 0;
  }

  /* Pied de page : logo, texte et menu sur une ligne, engagements centrés dessous */
  .pied__int {
    flex-wrap: wrap;
    row-gap: 4px;
    padding-bottom: 18px;
  }

  .pied__logo {
    margin-left: 0;
  }

  .pied__texte {
    flex: 0 1 300px;
    margin-left: 24px;
  }

  .pied__engagements {
    flex: 0 0 100%;
    order: 3;
    justify-content: center;
    gap: 28px;
    margin: 0;
  }
}

/* ≤ 1100 px : grilles sur deux colonnes, en-tête sur deux lignes, textes agrandis */
@media (max-width: 1100px) {
  :root {
    --entete-h: 118px;
    --decalage-ancre: 16px;
  }

  /* En-tête : bandeau marine, logo + coordonnées puis menu */
  .entete {
    position: relative;
    height: auto;
    background: linear-gradient(100deg, #01224d 0%, #0b356c 55%, #01204c 100%);
  }

  .entete__int {
    flex-wrap: wrap;
    align-items: center;
    gap: 0 20px;
    height: auto;
    padding: 10px var(--gouttiere) 0;
  }

  .entete__logo {
    position: static;
  }

  .entete__logo img {
    height: 62px;
  }

  .entete__contact {
    display: flex;
    gap: 22px;
    margin-top: 0;
  }

  .entete__coord {
    min-height: 44px;
    font-size: .9375rem;
  }

  .nav {
    flex: 0 0 100%;
    order: 3;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }

  .nav__liste {
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
  }

  .nav__lien,
  .nav__liste > li:nth-child(n) .nav__lien {
    padding: 14px 0;
    font-size: .78125rem;
    color: #fff;
    text-shadow: none;
  }

  .nav__lien::after,
  .nav__liste > li:nth-child(n) .nav__lien::after {
    left: 0;
    right: 0;
    bottom: 8px;
    background: var(--c-clair);
  }

  /* Hero */
  .hero {
    min-height: 0;
  }

  .hero__fond {
    top: -118px;               /* on masque la zone sombre prévue pour l’en-tête superposé */
    height: calc(100% + 118px);
  }

  .hero__photo {
    top: 0;
    width: 50%;
    height: calc(100% - 28px);
    object-position: 78% 40%;
  }

  .hero__contenu {
    padding-top: 44px;
    padding-bottom: 96px;
  }

  .hero__titre {
    font-size: clamp(1.375rem, 3.1vw, 1.75rem);
    line-height: 1.2;
  }

  .hero__texte {
    max-width: min(30em, 52%);
    margin-top: 14px;
    font-size: .9375rem;
    line-height: 1.55;
  }

  .bouton--devis {
    height: 46px;
    margin-top: 18px;
    padding: 0 20px;
    font-size: .875rem;
  }

  .bouton--devis .icone {
    width: 20px;
    height: 20px;
  }

  /* Sections */
  .services {
    margin-top: 4px;
  }

  .sur-titre {
    font-size: .875rem;
    line-height: 1.4;
  }

  .section-tete__titre {
    margin-top: 4px;
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .services__grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
  }

  .carte-service,
  .carte-service:nth-child(n) {
    --retrait: 22px;
    --ecart-titre: 16px;
    min-height: 0;
    padding: 20px 22px 22px;
  }

  .carte-service__titre {
    padding-top: 0;
    font-size: 1.0625rem;
    line-height: 1.3;
  }

  .carte-service__texte {
    margin-top: 14px;
    font-size: .9375rem;
    line-height: 1.55;
  }

  .domaines {
    margin-top: 40px;
  }

  .titre-section {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .domaines__grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .carte-domaine__contenu {
    padding: 22px 18px 22px;
  }

  .carte-domaine__titre {
    margin-top: 12px;
    font-size: 1.0625rem;
    line-height: 1.3;
  }

  .carte-domaine__texte {
    margin-top: 6px;
    font-size: .9375rem;
    line-height: 1.5;
  }

  /* Rangée du bas : cartes empilées */
  .bas {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
  }

  .carte__titre,
  .contact__titre {
    font-size: 1.0625rem;
    line-height: 1.3;
  }

  .pourquoi {
    min-height: 0;
    padding: 22px 0 24px;
  }

  .pourquoi .carte__titre {
    padding-left: 24px;
  }

  .pourquoi__liste {
    margin-top: 22px;
  }

  .atout:nth-child(n) {
    padding: 0 14px;
  }

  .atout + .atout {
    background-position: left 6px;
    background-size: 1px calc(100% - 12px);
  }

  .atout__icone {
    width: 48px;
    height: 50px;
  }

  .atout__titre {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.3;
  }

  .atout__texte {
    margin-top: 6px;
    font-size: .9375rem;
    line-height: 1.5;
  }

  .contact {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 28px;
    min-height: 0;
    padding: 22px 24px 24px;
  }

  .contact__accroche {
    margin-top: 6px;
    font-size: .9375rem;
    line-height: 1.5;
  }

  .contact__liste {
    gap: 4px;
    margin-top: 14px;
  }

  .contact__ligne {
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    font-size: 1rem;
    line-height: 1.4;
  }

  .contact__ligne:nth-child(n) .icone {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  .contact__ligne a {
    display: flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
  }

  .formulaire {
    gap: 12px 14px;
    padding-top: 0;
  }

  .formulaire input,
  .formulaire textarea {
    padding: 0 14px;
    font-size: 1rem;           /* 16 px : évite le zoom automatique d’iOS */
    line-height: 1.4;
  }

  .formulaire input {
    height: 48px;
  }

  .formulaire textarea {
    height: 132px;
    padding-top: 12px;
  }

  .bouton--envoi {
    height: 50px;
    margin-top: 0;
    font-size: .9375rem;
  }

  .formulaire__etat {
    font-size: .9375rem;
  }

  .formulaire__etat:not(:empty) {
    margin-top: 0;
    padding: 10px 14px;
  }

  /* Pied de page */
  .pied {
    margin-top: 40px;
  }

  .pied__vagues {
    opacity: .4;
  }

  .pied__int {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 22px 28px;
    padding: 32px 0 28px;
  }

  .pied__engagements {
    order: 0;
    justify-content: flex-start;
  }

  .pied__logo,
  .pied__texte,
  .pied__engagements,
  .pied__fin {
    margin: 0;
  }

  .pied__texte {
    flex: initial;
    font-size: .9375rem;
    line-height: 1.55;
  }

  .pied__engagements {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 16px 28px;
  }

  .engagement {
    gap: 12px;
  }

  .engagement__cercle {
    width: 48px;
    height: 48px;
  }

  .engagement__texte {
    padding-top: 0;
    font-size: .875rem;
    line-height: 1.4;
    white-space: normal;
  }

  .pied__fin {
    grid-column: 1 / -1;
    width: auto;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    white-space: normal;
  }

  .pied__nav ul {
    flex-wrap: wrap;
  }

  .pied__nav li + li::before {
    height: 14px;
    margin: 0 14px;
    vertical-align: -2px;
  }

  .pied__nav a {
    display: inline-block;
    padding: 12px 0;
    font-size: .9375rem;
    line-height: 20px;
  }

  .pied__copyright {
    margin-top: 6px;
    padding-left: 0;
    font-size: .9375rem;
    line-height: 1.5;
  }
}

/* ≤ 760 px : une colonne, menu « hamburger », en-tête collant */
@media (max-width: 760px) {
  :root {
    --gouttiere: 20px;
    --entete-h: 64px;
    --decalage-ancre: 76px;
  }

  .entete {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(1, 16, 44, .3);
  }

  .entete__int {
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 64px;
    padding: 0 12px 0 var(--gouttiere);
  }

  .entete__logo img {
    height: 50px;
  }

  /* Coordonnées : réduites à deux boutons-icônes de 44 px */
  .entete__contact {
    gap: 2px;
  }

  .entete__coord {
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

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

  .entete__coord .icone {
    width: 22px;
    height: 22px;
  }

  .entete__coord:hover,
  .entete__burger:hover {
    background: rgba(255, 255, 255, .12);
  }

  /* Bouton hamburger */
  .entete__burger {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .entete__burger-traits,
  .entete__burger-traits::before,
  .entete__burger-traits::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition), background-color var(--transition);
  }

  .entete__burger-traits {
    position: relative;
  }

  .entete__burger-traits::before,
  .entete__burger-traits::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .entete__burger-traits::before { top: -7px; }
  .entete__burger-traits::after { top: 7px; }

  .entete__burger[aria-expanded="true"] .entete__burger-traits { background: transparent; }
  .entete__burger[aria-expanded="true"] .entete__burger-traits::before { transform: translateY(7px) rotate(45deg); }
  .entete__burger[aria-expanded="true"] .entete__burger-traits::after { transform: translateY(-7px) rotate(-45deg); }

  /* Panneau du menu : replié par défaut uniquement si le script est actif */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    order: 0;
    margin: 0;
    background: #06224f;
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 24px rgba(1, 16, 44, .35);
  }

  .js .nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear .2s;
  }

  .js .nav.est-ouvert {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  /* Sans script, le menu reste déplié sous le bandeau (non collant) */
  html:not(.js) .entete {
    position: relative;
  }

  html:not(.js) .nav {
    position: static;
    flex: 0 0 100%;
    order: 4;
    box-shadow: none;
  }

  html:not(.js) .entete__int {
    flex-wrap: wrap;
  }

  html:not(.js) .entete__burger {
    display: none;
  }

  .nav__liste {
    display: block;
    padding: 6px var(--gouttiere) 12px;
  }

  .nav__lien,
  .nav__liste > li:nth-child(n) .nav__lien {
    padding: 14px 0;
    font-size: .9375rem;
    line-height: 20px;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .nav__liste > li:last-child .nav__lien {
    border-bottom: 0;
  }

  .nav__lien::after,
  .nav__liste > li:nth-child(n) .nav__lien::after {
    display: none;
  }

  .nav__lien[aria-current],
  .nav__liste > li:nth-child(n) .nav__lien[aria-current] {
    color: var(--c-clair);
  }

  /* Hero : texte puis photo ; le fond vectoriel (pensé pour un écran large) cède la place à un dégradé */
  .hero {
    display: flex;
    flex-direction: column-reverse;   /* le texte reste premier dans le code et à l’écran */
    background:
      radial-gradient(120% 70% at 78% 46%, rgba(226, 238, 250, .95) 0, rgba(226, 238, 250, 0) 62%),
      linear-gradient(168deg, #8fb3e1 0%, #b3cfee 26%, #c8ddf3 62%, #bcd5ef 100%);
  }

  .hero__fond {
    display: none;
  }

  .hero__contenu {
    padding-top: 32px;
    padding-bottom: 0;
  }

  .hero__titre {
    font-size: clamp(1.125rem, 5.6vw, 1.75rem);
    letter-spacing: .4px;
  }

  .hero__texte {
    max-width: 34em;
    font-size: 1rem;
  }

  .bouton--devis {
    width: 100%;
    max-width: 340px;
    height: 50px;
    font-size: .9375rem;
  }

  .hero__photo {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(200px, 52vw, 320px);
    margin-top: 28px;
    object-position: 78% 0;
    --fondu: linear-gradient(to bottom, transparent 0, #000 34%);
  }

  .hero__vague {
    height: clamp(44px, 14vw, 90px);
  }

  .hero__vague-ombre {
    display: none;
  }

  /* Sections */
  .services {
    margin-top: 20px;
  }

  .section-tete__titre {
    font-size: 1.375rem;
  }

  .sur-titre {
    font-size: .9375rem;
  }

  .sur-titre::before,
  .sur-titre::after {
    width: 28px;
  }

  .services__grille,
  .domaines__grille {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .carte-service:hover,
  .carte-domaine:hover {
    transform: none;
  }

  .domaines,
  .bas,
  .pied {
    margin-top: 34px;
  }

  .carte-domaine__contenu {
    padding: 22px 18px 24px;
  }

  /* Atouts : deux par ligne */
  .pourquoi {
    padding: 22px 0 6px;
  }

  .pourquoi .carte__titre {
    padding-left: 20px;
  }

  .pourquoi__liste {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
  }

  .atout:nth-child(n) {
    padding: 0 12px 22px;
  }

  .atout + .atout {
    background: none;
  }

  .atout:nth-child(even) {
    border-left: 1px solid var(--c-separateur);
  }

  /* Contact : coordonnées puis formulaire */
  .contact {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding: 22px 20px 22px;
  }

  .formulaire {
    grid-template-columns: 1fr;
  }

  /* Pied de page */
  .pied__int {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0 24px;
  }

  .pied__logo {
    justify-self: start;
  }

  .pied__engagements {
    flex-direction: column;
    gap: 14px;
  }

  .engagement__texte {
    font-size: .9375rem;
  }

  /* Menu du pied : sans séparateurs, pour un retour à la ligne propre */
  .pied__nav ul {
    column-gap: 22px;
  }

  .pied__nav li + li::before {
    display: none;
  }

  .pied__vagues {
    opacity: .3;
  }
}

/* ≤ 480 px : atouts en liste (icône à gauche, texte à droite) */
@media (max-width: 480px) {
  .pourquoi {
    padding-bottom: 8px;
  }

  .pourquoi__liste {
    grid-template-columns: 1fr;
  }

  .atout:nth-child(n) {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0 20px 18px;
    text-align: left;
  }

  .atout:nth-child(even) {
    border-left: 0;
  }

  .atout__icone {
    flex: none;
    width: 44px;
    height: 46px;
  }

  .atout__titre {
    margin-top: 0;
  }

  .atout__texte {
    margin-top: 4px;
  }

}

/* 10. Préférences de l’utilisateur ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .bouton:hover,
  .carte-service:hover,
  .carte-domaine:hover {
    transform: none;
  }
}

@media print {
  .entete__burger,
  .formulaire,
  .hero__vague,
  .pied__vagues {
    display: none;
  }
}
