/* ==========================================================================
   HMTP — Hydro-Mécanique Travaux Publics
   Feuille de style principale
   Palette issue du logo : bleu marine #102F70 -> vert d'eau #00806A
   ========================================================================== */

/* ------------------------------ 1. Tokens ------------------------------- */
:root {
  /* Couleurs de marque */
  --navy-900: #081A3E;
  --navy-800: #0A1F4B;
  --navy-700: #102F70;
  --navy-600: #17408C;
  --teal-700: #016A57;
  --teal-600: #00806A;
  --teal-500: #0C9578;
  --teal-400: #2FB79B;
  --aqua: #38A3C4;

  /* Neutres */
  --ink: #0E1F38;
  --body: #4C5C74;
  --muted: #7A8AA0;
  --line: #E3E9F1;
  --line-soft: #EFF3F8;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --bg-mint: #F1F8F6;

  /* Dégradés */
  --grad: linear-gradient(115deg, #102F70 0%, #145A8D 52%, #00806A 100%);
  --grad-teal: linear-gradient(135deg, #00806A 0%, #2FB79B 100%);
  --grad-soft: linear-gradient(180deg, #F7FAFD 0%, #FFFFFF 100%);

  /* Typographie */
  --font-head: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Rythme et formes */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 2px 10px rgba(16, 47, 112, 0.06);
  --shadow: 0 16px 44px rgba(16, 47, 112, 0.1);
  --shadow-lg: 0 34px 80px rgba(8, 26, 62, 0.22);

  --header-h: 82px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------- 2. Reset ------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy-700); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
figure, blockquote { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-4) 0; }
/* L'attribut hidden doit primer sur le display des composants (display: flex,
   grid, block...) : sans cela, un élément masqué par script resterait visible. */
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--sp-2);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.06rem; }
p { margin: 0 0 var(--sp-2); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 110px; }

::selection { background: var(--navy-700); color: #fff; }

/* --------------------------- 3. Utilitaires ---------------------------- */
.container {
  width: min(1220px, 100% - 48px);
  margin-inline: auto;
}
.container--narrow { width: min(900px, 100% - 48px); }

.section { padding: var(--sp-7) 0; }
.section--tight { padding: var(--sp-6) 0; }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--bg-mint); }
.section--navy {
  background: var(--navy-800);
  background-image: radial-gradient(circle at 12% 18%, rgba(47, 183, 155, 0.22), transparent 46%),
                    radial-gradient(circle at 88% 82%, rgba(56, 163, 196, 0.16), transparent 42%);
  color: #C6D4E8;
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: var(--sp-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; }
.section--navy .section-head p { color: #B7C7DE; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--sp-2);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--grad-teal);
  border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }
.section--navy .eyebrow { color: var(--teal-400); }

.lead { font-size: 1.08rem; }

.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------- 4. Boutons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(8, 26, 62, 0.22);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--grad); background-size: 160% 160%; }
.btn--primary:hover { background-position: 100% 0; }
.btn--teal { background: var(--teal-600); }
.btn--outline {
  background: #fff;
  color: var(--navy-700);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { color: var(--navy-700); border-color: var(--teal-400); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--sm { padding: 11px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-700);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------- 5. Barre info + En-tête / Nav ------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy-700);
  color: #fff;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: #fff; }

.topbar {
  background: var(--navy-800);
  color: #A9BCD6;
  font-size: 0.86rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 44px;
}
.topbar__list { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--teal-400); flex: none; }
.topbar a { color: #D6E1EF; }
.topbar a:hover { color: var(--teal-400); }
.topbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #C6D4E8;
}
.topbar__tag svg { width: 15px; height: 15px; color: var(--teal-400); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-stuck { box-shadow: 0 10px 34px rgba(16, 47, 112, 0.09); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand__text { display: none; }
.brand:focus-visible { outline-offset: 6px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.99rem;
  font-weight: 600;
  color: var(--ink);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover { color: var(--navy-700); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--teal-600); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  place-items: center;
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 2px; background: var(--navy-700); border-radius: 2px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: transform var(--transition), top var(--transition);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(8, 26, 62, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 119;
    width: min(340px, 86vw);
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 96px 24px 32px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    /* Menu ferme : hors ecran ET retire de l'ordre de tabulation / des
       lecteurs d'ecran (sinon les 6 liens restent atteignables au clavier). */
    visibility: hidden;
    transition: transform var(--transition), visibility var(--transition);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__link {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--teal-600); }
  .nav__cta { display: inline-flex; }
  .nav .btn { margin-top: 20px; }
  .nav-toggle { display: grid; }
  .header__actions .btn--primary { display: none; }

  /* backdrop-filter cree un « bloc conteneur » pour les descendants en
     position: fixed : sans cette neutralisation, le tiroir #primary-nav (et
     son height: 100%) se dimensionnerait sur l'en-tete (~128 px au lieu de la
     fenetre) et les liens du menu seraient rognes. */
  .site-header { backdrop-filter: none; }
}

@media (max-width: 640px) {
  .topbar__inner { justify-content: center; min-height: 40px; }
  .topbar__list--secondary { display: none; }
  .brand img { height: 38px; }
}

/* -------------------------------- 6. Hero ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-7) 0 var(--sp-6);
  background: var(--navy-900);
  background-image: radial-gradient(circle at 78% 8%, rgba(0, 128, 106, 0.42), transparent 44%),
                    radial-gradient(circle at 12% 92%, rgba(56, 163, 196, 0.24), transparent 46%),
                    linear-gradient(150deg, #081A3E 0%, #0A1F4B 46%, #0B2C57 100%);
  color: #C6D4E8;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  /* Les photos s'alignent sur le haut du titre, pas sur le milieu du texte. */
  align-items: start;
  gap: var(--sp-5);
}
/* Une seule colonne : le contenu est limite pour garder des lignes lisibles. */
.hero__content { max-width: 820px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(47, 183, 155, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(0, 128, 106, 0.16);
  color: #9FE3D2;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__badge span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-teal);
  color: #fff;
  font-size: 0.72rem;
}
.hero h1 { color: #fff; margin-top: var(--sp-3); }
.hero h1 em { font-style: normal; display: block; }
.hero__text {
  max-width: 46ch;
  margin-top: var(--sp-3);
  font-size: 1.1rem;
  color: #B7C7DE;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--sp-4);
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  color: #C6D4E8;
}
.hero__points svg { width: 17px; height: 17px; color: var(--teal-400); flex: none; }

/* Composition photo : alignée sur le haut du titre, dans la colonne de droite.
   Deux portraits côte à côte, puis la vue de chantier en bandeau pleine largeur.
   `height: auto` est indispensable : sans lui, la hauteur des attributs
   width/height des balises <img> primerait sur l'aspect-ratio. */
.hero__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}
.hero__photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 46px rgba(4, 14, 34, 0.42);
}
/* Bandeau : occupe les deux colonnes, cadrage panoramique. */
.hero__photos img:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* ------------------------- 7. Sections de contenu ---------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-6);
}
.split--top { align-items: start; }

.check-list { display: grid; gap: 14px; margin-top: var(--sp-3); }
.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.check-list svg { width: 22px; height: 22px; margin-top: 3px; color: var(--teal-600); }
.check-list b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.02rem; }
.check-list span { font-size: 0.95rem; }

.feature-card {
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 128, 106, 0.35);
  box-shadow: var(--shadow);
}
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--sp-3);
  border-radius: 14px;
  background: var(--bg-mint);
  color: var(--teal-600);
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.96rem; }
.feature-card--on-navy {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #C6D4E8;
}
.feature-card--on-navy .feature-card__icon { background: rgba(47, 183, 155, 0.16); color: var(--teal-400); }

/* Galerie de la section « Nos métiers en images » -------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}
.photo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.photo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 128, 106, 0.35);
  box-shadow: var(--shadow);
}
/* Cadrage des photos : le rapport est imposé par le CSS, `object-fit` évite
   toute déformation de l'image quelle que soit sa taille d'origine.
   `height: auto` est indispensable : sans lui, la hauteur des attributs
   width/height de la balise <img> primerait sur l'aspect-ratio. */
.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--line-soft);
}
.photo-card--wide { grid-column: 1 / -1; }
.photo-card--wide img { aspect-ratio: 16 / 10; }
.photo-card figcaption { padding: var(--sp-3); }
.photo-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-mint);
  color: var(--teal-700);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.photo-card figcaption b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--ink);
}
.photo-card figcaption span:last-child { font-size: 0.94rem; color: var(--body); }


/* ------------------------------ 8. Services ---------------------------- */
.sector-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: var(--sp-3) 0;
}
.sector-strip li {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-700);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: var(--sp-3);
  border-radius: 16px;
  background: var(--bg-mint);
  color: var(--teal-600);
  transition: background var(--transition), color var(--transition);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--grad); color: #fff; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { flex: 1; font-size: 0.96rem; }
.service-card__list { display: grid; gap: 8px; margin: var(--sp-2) 0 var(--sp-3); }
.service-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}
.service-card__num {
  position: absolute;
  right: var(--sp-3);
  top: var(--sp-3);
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--line-soft);
}

.service-detail {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail__aside {
  display: grid;
  place-items: start center;
  gap: var(--sp-2);
}
.service-detail__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.service-detail__icon svg { width: 34px; height: 34px; }
.service-detail__body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.service-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-mint);
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 500;
}
.tag--navy { background: var(--bg-soft); color: var(--navy-700); }

.detail-list {
  display: grid;
  gap: 10px 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--sp-2);
}
.detail-list li { position: relative; padding-left: 20px; font-size: 0.95rem; }
.detail-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}
.detail-list li b { display: block; font-family: var(--font-head); color: var(--ink); }
@media (max-width: 680px) { .detail-list { grid-template-columns: 1fr; } }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--sp-4);
}
.anchor-nav a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--navy-700);
  font-size: 0.9rem;
  font-weight: 500;
}
.anchor-nav a:hover { border-color: var(--teal-400); color: var(--teal-700); }

/* ------------------------------ 9. Méthode ----------------------------- */
.step-grid { counter-reset: step; display: grid; gap: var(--sp-3); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  position: relative;
  padding: var(--sp-4) var(--sp-3);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -25px;
  width: 26px;
  height: 2px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step__num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--bg-mint);
  color: var(--teal-600);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.93rem; }
.section--navy .step { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); }
.section--navy .step__num { background: rgba(47, 183, 155, 0.18); color: var(--teal-400); }
.section--navy .step::after { background: rgba(255, 255, 255, 0.2); }

/* ------------------------------- 10. CTA ------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6) 0;
  border-radius: var(--radius-lg);
  background: var(--navy-800);
  background-image: radial-gradient(circle at 88% 10%, rgba(0, 128, 106, 0.45), transparent 46%),
                    linear-gradient(120deg, #0A1F4B 0%, #123A6E 60%, #00674F 100%);
  color: #C6D4E8;
  box-shadow: var(--shadow);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: var(--sp-5);
  padding: 0 var(--sp-5);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #B7C7DE; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* --------------------------- 11. Pages internes ------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6) 0 var(--sp-5);
  background: var(--navy-800);
  background-image: radial-gradient(circle at 80% 20%, rgba(0, 128, 106, 0.4), transparent 48%),
                    linear-gradient(120deg, #081A3E 0%, #0A1F4B 55%, #0B3358 100%);
  color: #C6D4E8;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 42%, 100% 100%);
  opacity: 0.96;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { max-width: 62ch; color: #B7C7DE; }
.page-hero__inner { position: relative; z-index: 1; max-width: 820px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-2);
  font-size: 0.86rem;
  color: #93A8C6;
}
.breadcrumb a { color: #C6D4E8; }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb span[aria-current] { color: var(--teal-400); }

/* Timeline */
.timeline { position: relative; padding-left: var(--sp-4); }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--navy-700), var(--teal-400));
  opacity: 0.35;
}
.timeline__item { position: relative; padding-bottom: var(--sp-4); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-4) + 1px);
  top: 8px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal-600);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline__year {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-700);
}
.timeline__item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.timeline__item p { font-size: 0.95rem; }

/* Équipe */
.team-card {
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card__avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.team-card h3 { font-size: 1.06rem; margin-bottom: 2px; }
.team-card p { font-size: 0.9rem; color: var(--muted); }

/* Parc matériel */
.equip-list { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.equip-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.94rem;
}
.equip-list svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; }
.equip-list b { color: var(--ink); font-family: var(--font-head); }

/* Cartes de contact */
.info-card {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.info-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--bg-mint);
  color: var(--teal-600);
  flex: none;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p, .info-card a { font-size: 0.94rem; }
.info-card a { display: block; }

/* ------------------------- 12. Formulaire & FAQ ------------------------ */
.form-card {
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field label .req { color: #D64550; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select { appearance: none; background-image: none; cursor: pointer; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 183, 155, 0.14);
}
.form-field .error-msg {
  display: none;
  font-size: 0.84rem;
  font-weight: 500;
  color: #D64550;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #D64550;
  background: #FEF6F6;
}
.form-field.has-error .error-msg { display: block; }
.has-error .error-msg { display: block; }
.form-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
}
.form-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal-600); }
.form-note { font-size: 0.86rem; color: var(--muted); }
.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-mint);
  border: 1px solid rgba(0, 128, 106, 0.3);
  color: var(--teal-700);
  font-size: 0.94rem;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

.faq { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item.is-open { border-color: rgba(0, 128, 106, 0.35); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  width: 100%;
  padding: 20px var(--sp-3);
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--ink);
}
.faq__q svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; transition: transform var(--transition); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 var(--sp-3) 22px; font-size: 0.96rem; }

.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  min-height: 320px;
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.map-frame__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: var(--sp-3);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------ 13. Footer ----------------------------- */
.site-footer {
  position: relative;
  padding-top: var(--sp-6);
  background: var(--navy-900);
  background-image: radial-gradient(circle at 85% 0%, rgba(0, 128, 106, 0.28), transparent 42%);
  color: #A9BCD6;
  font-size: 0.94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
}
.footer__brand {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  margin-bottom: var(--sp-3);
}
.footer__brand img { height: 44px; width: auto; }
.site-footer h3 {
  margin-bottom: var(--sp-2);
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.site-footer a { color: #A9BCD6; }
.site-footer a:hover { color: var(--teal-400); }
.footer__links { display: grid; gap: 11px; }
.footer__links a { display: inline-flex; align-items: center; gap: 9px; }
.footer__links svg { width: 14px; height: 14px; color: var(--teal-500); flex: none; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--teal-400); margin-top: 3px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  color: #8298B8;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #C6D4E8;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.footer__social a:hover { background: var(--teal-600); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; }

/* --------------------- 14. Retour en haut & animations ----------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-700);
  background-image: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* Les apparitions ne sont masquées que lorsque JavaScript est actif :
   sans JS (ou si le script ne se charge pas), le contenu reste visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

/* ---------------------------- 15. Responsive --------------------------- */
@media (max-width: 1080px) {
  :root { --sp-7: 76px; --sp-6: 56px; }
  /* Le hero repasse en une colonne : la composition photo passe sous le texte.
     Trois portraits alignés sont plus compacts que deux colonnes empilées. */
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .hero__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__photos img:last-child { grid-column: auto; aspect-ratio: 3 / 4; }
  .split { grid-template-columns: 1fr; gap: var(--sp-5); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .cta-band__inner { grid-template-columns: 1fr; padding: 0 var(--sp-4); }
  .cta-band__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail { grid-template-columns: 1fr; gap: var(--sp-3); }
  .service-detail__aside { place-items: start; }
}

@media (max-width: 680px) {
  :root { --sp-7: 60px; --sp-6: 46px; --sp-5: 34px; }
  .container, .container--narrow { width: min(1220px, 100% - 32px); }
  /* Sur téléphone, deux portraits puis le bandeau : une rangée de trois
     vignettes serait trop petite pour être lisible. */
  .hero__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__photos img:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .grid--2, .grid--3, .grid--4, .step-grid, .equip-list { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-card--wide img { aspect-ratio: 3 / 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-4) var(--sp-3); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer__bottom { justify-content: center; text-align: center; }
  .to-top { right: 16px; bottom: 18px; }
  .page-hero::after { height: 40px; }
}

/* ------------------------- 16. Préférences & print -------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .to-top, .cta-band { display: none !important; }
  body { color: #000; }
  .section { padding: 18px 0; }
}

/* Fin de la feuille de style — HMTP */









