/* DOMDEAU — feuille de style unique
   Palette : marine profond (structure), bleu d'eau (marque), vermillon (risque uniquement) */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --marine: #0c2136;
  --marine-clair: #16344f;
  --eau: #1276bd;
  --eau-fonce: #0f5c93;
  --eau-pale: #edf3f7;
  --risque: #c1281b;
  --encre: #16202b;
  --gris: #5a6674;
  --trait: #d5dfe7;
  --blanc: #ffffff;
  --mesure: 68ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; max-width: var(--mesure); }
a { color: var(--eau-fonce); }
.marge-haute { margin-top: 1.6rem; }
.marge-haute-large { margin-top: 2.5rem; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--eau);
  outline-offset: 2px;
}

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

.enveloppe { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- En-tête ---------- */

.bandeau {
  background: var(--blanc);
  border-bottom: 1px solid var(--trait);
  position: sticky; top: 0; z-index: 50;
}
.bandeau > .enveloppe {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.logo { display: block; flex: 0 0 auto; text-decoration: none; line-height: 0; }
.logo img { width: 188px; height: auto; }

.bouton-menu {
  display: none;
  align-items: center; gap: 0.55rem;
  min-width: 44px; min-height: 44px; padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--trait); border-radius: 999px;
  background: var(--blanc); color: var(--marine);
  font: 600 0.9rem/1 "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
}
.bouton-menu::before {
  content: ""; width: 1.1rem; height: 2px; flex: 0 0 auto;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.bouton-menu[hidden] { display: none !important; }
.bouton-menu:hover { border-color: var(--eau); }
.bouton-menu[aria-expanded="true"] { border-color: var(--eau); color: var(--eau-fonce); }

.nav { min-width: 0; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--marine); text-decoration: none; font-weight: 500;
  font-size: 0.97rem; padding: 0.35rem 0; white-space: nowrap;
}
.nav a:hover { color: var(--eau-fonce); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--eau); }

.tel-entete {
  display: inline-flex; align-items: center; gap: 0.4rem;
  flex: 0 0 auto; white-space: nowrap;
  font-weight: 600; color: var(--marine); text-decoration: none;
  border: 1.5px solid var(--trait); border-radius: 3px; padding: 0.45rem 0.8rem; font-size: 0.95rem;
}
.tel-entete::before {
  content: ""; width: 1.05em; height: 1.05em; flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("images/icone-telephone.svg") center / contain no-repeat;
  mask: url("images/icone-telephone.svg") center / contain no-repeat;
}
.tel-entete:hover { border-color: var(--eau); }
.tel-entete-mobile { display: none; }
.tel-court { display: none; }

@media (max-width: 1120px) {
  .bandeau { position: static; }
  .bandeau > .enveloppe {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 0.45rem 0.6rem; min-height: 64px; padding: 0.35rem 0;
  }
  .logo { grid-column: 1; grid-row: 1; }
  .logo img { width: 108px; }
  .tel-entete-bureau { display: none; }
  .tel-entete-mobile {
    display: inline-flex;
    grid-column: 2; grid-row: 1; justify-self: end;
    white-space: nowrap; font-size: 0.82rem; padding: 0.4rem 0.55rem;
  }
  .navigation-js .bouton-menu {
    grid-column: 3; grid-row: 1; display: inline-flex;
    align-items: center; justify-content: center;
  }
  .nav {
    grid-column: 1 / -1; grid-row: 2; width: 100%;
    border-top: 1px solid var(--trait); padding: 0.35rem 0 0.25rem;
  }
  .navigation-js .nav { display: none; }
  .navigation-js .nav.ouverte { display: block; }
  .nav ul { display: grid; gap: 0; }
  .nav li + li { border-top: 1px solid var(--eau-pale); }
  .nav a { display: block; min-height: 44px; padding: 0.65rem 0.35rem; }
  .nav a[aria-current="page"] { color: var(--eau-fonce); box-shadow: none; }
}

@media (max-width: 480px) {
  .tel-entete-mobile .tel-numero { display: none; }
  .tel-entete-mobile .tel-court { display: inline; }
}

@media (max-width: 360px) {
  .bouton-menu { width: 44px; padding-inline: 0; gap: 0; font-size: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; display: grid; min-height: clamp(440px, 58svh, 620px);
  background: var(--marine); color: var(--blanc);
}
.hero picture { position: absolute; inset: 0; display: block; }
.hero img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.32;
}
.hero .contenu {
  position: relative; z-index: 1; grid-area: 1 / 1; display: flex; align-items: center;
  padding: clamp(2.5rem, 7vh, 5rem) 0;
}
.hero .contenu > div { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.hero h1 { color: var(--blanc); max-width: 16ch; text-shadow: 0 2px 24px rgba(6,20,34,0.55); }
.hero p { font-size: clamp(1.05rem, 1.9vw, 1.3rem); max-width: 44ch; color: #e7eff5; text-shadow: 0 2px 18px rgba(6,20,34,0.6); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

@media (max-width: 480px) {
  .hero .actions { align-items: stretch; flex-direction: column; }
  .hero .actions .bouton { width: 100%; text-align: center; }
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 1rem; padding: 0.85rem 1.5rem; border-radius: 3px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.bouton-plein { background: var(--eau); color: var(--blanc); }
.bouton-plein:hover { background: var(--eau-fonce); }
.bouton-clair { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,0.6); }
.bouton-clair:hover { border-color: var(--blanc); background: rgba(255,255,255,0.1); }
.bouton-contour { background: transparent; color: var(--eau-fonce); border-color: var(--eau); }
.bouton-contour:hover { background: var(--eau-pale); }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-pale { background: var(--eau-pale); }
.section-marine { background: var(--marine); color: #dde7ef; }
.section-marine h2, .section-marine h3 { color: var(--blanc); }

/* ---------- Repérage et questions fréquentes ---------- */

.fil-ariane { margin: 0 0 1.4rem; color: var(--gris); font-size: 0.9rem; }
.fil-ariane ol {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.45rem;
  list-style: none; margin: 0; padding: 0;
}
.fil-ariane li { display: flex; align-items: center; gap: 0.45rem; }
.fil-ariane li + li::before { content: "›"; color: #7b8794; }
.fil-ariane a { color: var(--gris); }

.liste-faq { display: grid; }
.liste-faq article { padding: 1.6rem 0; border-top: 1px solid var(--trait); }
.liste-faq article:first-child { padding-top: 0; border-top: 0; }
.liste-faq h2 { max-width: 38ch; font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.liste-faq p { margin-bottom: 0; }

.titre-section { max-width: 30ch; }
.titre-section::after {
  content: ""; display: block; width: 72px; height: 3px;
  background: var(--eau); margin-top: 0.9rem;
}

/* ---------- Étapes (séquence réelle) ---------- */

.etapes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 3rem; } }
.etapes li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.etapes .num {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.05rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--eau); color: var(--blanc);
}
.etapes h3 { margin-bottom: 0.35rem; }
.etapes p { margin: 0; }

/* ---------- Deux colonnes texte + image ---------- */

.duo { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.duo figure { margin: 0; }
.duo figcaption, .galerie figcaption {
  font-size: 0.9rem; color: var(--gris); margin-top: 0.6rem; max-width: 46ch;
}
.section-marine .duo figcaption, .section-marine .galerie figcaption { color: #a8bccd; }

/* ---------- Galerie ---------- */

.galerie { display: grid; gap: 1.8rem; margin-top: 2.5rem; }
@media (min-width: 780px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
.galerie figure { margin: 0; }
.galerie img { border-radius: 2px; }

/* ---------- Réalisations ---------- */

.introduction-realisations { border-bottom: 1px solid var(--trait); }
.introduction-realisations h1 { max-width: 18ch; }
.liens-realisations {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem;
}
.grille-realisations {
  display: grid; gap: 1rem; margin-top: 2rem;
}
@media (min-width: 760px) {
  .grille-realisations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.resume-realisation {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 100%; padding: clamp(1.25rem, 3vw, 1.8rem);
  background: var(--blanc); border: 1px solid var(--trait); border-top: 3px solid var(--eau);
}
.resume-realisation h3 { color: var(--marine); }
.resume-realisation > a { margin-top: auto; font-weight: 600; }

.repere-realisation {
  margin: 0 0 0.7rem; color: var(--eau-fonce);
  font-family: "Archivo", sans-serif; font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.055em; text-transform: uppercase;
}
.chiffres-realisation {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem; list-style: none; margin: 2rem 0 0; padding: 0;
}
.chiffres-realisation li {
  min-height: 108px; padding: 1rem 1.1rem;
  background: var(--blanc); border: 1px solid var(--trait); border-top: 3px solid var(--eau);
}
.chiffres-realisation strong {
  display: block; color: var(--marine); font-family: "Archivo", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1;
}
.chiffres-realisation span { display: block; margin-top: 0.35rem; color: var(--gris); font-size: 0.94rem; }

.visuel-realisation { width: min(900px, 100%); margin: 2.5rem auto 0; }
.visuel-realisation-portrait { width: min(700px, 100%); }
.visuel-realisation img { width: 100%; border-radius: 2px; }
.visuel-realisation figcaption {
  margin-top: 0.6rem; color: var(--gris); font-size: 0.9rem;
}

.carte-video {
  display: grid; gap: 0; margin-top: 2.5rem; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 3px;
  color: var(--encre); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.carte-video:hover {
  border-color: var(--eau); box-shadow: 0 14px 32px rgba(12,33,54,0.12); transform: translateY(-2px);
}
.apercu-video { position: relative; display: block; min-height: 220px; background: var(--marine); }
.apercu-video img { width: 100%; height: 100%; object-fit: cover; }
.lecture-video {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px;
  border-radius: 50%; background: var(--risque); color: var(--blanc);
  font-size: 1.55rem; box-shadow: 0 6px 22px rgba(12,33,54,0.35);
}
.contenu-video { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.4rem, 4vw, 2.3rem); }
.contenu-video > strong {
  color: var(--marine); font-family: "Archivo", sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.2;
}
.contenu-video > span:not(.repere-realisation):not(.bouton) { margin-top: 0.75rem; max-width: 48ch; }
.contenu-video .bouton { margin-top: 1.2rem; }
.contenu-video small { margin-top: 0.55rem; color: var(--gris); font-size: 0.82rem; }
.carte-video:hover .bouton-contour { background: var(--eau-pale); }

@media (min-width: 800px) {
  .carte-video { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); align-items: stretch; }
}

/* ---------- Tableau comparatif ---------- */

.tableau-defilant {
  max-width: 100%; overflow-x: auto; margin-top: 1rem; padding-bottom: 0.4rem;
  overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch;
}
.indication-tableau { display: none; color: var(--gris); font-size: 0.92rem; margin: 2.2rem 0 0; }
table.comparatif { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.95rem; }
table.comparatif caption { text-align: left; color: var(--gris); font-size: 0.9rem; margin-bottom: 0.8rem; }
table.comparatif th, table.comparatif td {
  border-bottom: 1px solid var(--trait); padding: 0.75rem 0.9rem; text-align: left; vertical-align: top;
}
table.comparatif thead th {
  background: var(--marine); color: var(--blanc);
  font-family: "Archivo", sans-serif; font-size: 0.88rem; line-height: 1.3;
}
table.comparatif tbody th { font-weight: 600; }
table.comparatif .ligne-domdeau > * { background: var(--eau-pale); }
table.comparatif .ligne-domdeau > th { box-shadow: inset 4px 0 0 var(--eau); }
.actions-apres-tableau { margin-top: 1.4rem; }
.sources { color: var(--gris); font-size: 0.95rem; }

@media (max-width: 800px) {
  .indication-tableau { display: block; }
  .tableau-defilant { overflow: visible; }
  table.comparatif, table.comparatif tbody, table.comparatif tr,
  table.comparatif th, table.comparatif td {
    display: block; width: 100%; min-width: 0;
  }
  table.comparatif thead {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  table.comparatif tbody { display: grid; gap: 1rem; }
  table.comparatif tbody tr { border: 1px solid var(--trait); border-radius: 3px; overflow: hidden; }
  table.comparatif tbody th {
    padding: 0.75rem 0.9rem; border: 0;
    background: var(--marine); color: var(--blanc);
  }
  table.comparatif tbody td {
    display: grid; grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.75rem; padding: 0.75rem 0.9rem;
  }
  table.comparatif tbody td::before {
    content: attr(data-label); font-weight: 600; color: var(--marine);
  }
  table.comparatif .ligne-domdeau > th {
    background: var(--eau); box-shadow: none;
  }
}

/* ---------- Encadré risque ---------- */

.alerte {
  border-left: 4px solid var(--risque);
  background: #fdf3f1; padding: 1.1rem 1.3rem; margin: 1.8rem 0;
}
.alerte p { margin: 0; }
.alerte strong { color: var(--risque); }

/* ---------- Zone d'intervention ---------- */

.departements { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.6rem 0 0; }
.departements li {
  border: 1px solid rgba(255,255,255,0.28); border-radius: 3px;
  padding: 0.45rem 0.9rem; font-size: 0.95rem;
}

/* ---------- Appel à l'action ---------- */

.rappel { background: var(--eau-pale); border-top: 3px solid var(--eau); }
.rappel .enveloppe { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.rappel .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.4rem; }

/* ---------- Formulaire ---------- */

.formulaire { display: grid; gap: 1.1rem; max-width: 640px; margin-top: 2rem; }
@media (min-width: 640px) { .paire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; } }
.champ { display: grid; gap: 0.35rem; }
.champ label { font-weight: 600; font-size: 0.95rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-width: 0;
  font: inherit; padding: 0.7rem 0.8rem; border: 1.5px solid #7b8794;
  border-radius: 3px; background: var(--blanc); color: var(--encre);
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: #566574; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ-piege { display: none; }
.information-donnees { color: var(--gris); font-size: 0.9rem; }
.obligatoire { color: var(--risque); }

/* ---------- Coordonnées ---------- */

.coordonnees { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 1000px) { .coordonnees { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.coordonnees dl { margin: 0; }
.coordonnees dt { font-weight: 600; margin-top: 1rem; }
.coordonnees dd { margin: 0.1rem 0 0; }

/* ---------- Pied de page ---------- */

.pied { background: var(--marine); color: #b9cadb; padding: 3rem 0 2rem; font-size: 0.94rem; }
.pied a { color: #dbe8f3; }
.pied .colonnes { display: grid; gap: 2rem; }
@media (min-width: 760px) { .pied .colonnes { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.pied h2 { font-size: 1rem; color: var(--blanc); margin-bottom: 0.7rem; }
.pied .signature {
  width: 240px; margin-bottom: 1rem; padding: 0.6rem;
  background: var(--blanc); border-radius: 3px;
}
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.pied .mentions {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.4rem;
  font-size: 0.85rem; color: #8ea6bb;
}
.pied .mentions p { max-width: none; }

/* ---------- Contenu long (politique de confidentialité) ---------- */

.texte-long h2 { margin-top: 2.4rem; }
.texte-long h2:first-of-type { margin-top: 0; }

.saut-contenu {
  position: absolute; left: -9999px; background: var(--blanc); color: var(--encre);
  padding: 0.7rem 1rem; z-index: 200;
}
.saut-contenu:focus { left: 1rem; top: 1rem; position: fixed; }

@media (min-width: 1121px) {
  main[id], .section[id] { scroll-margin-top: 9rem; }
}
