/* =========================================================
   Yocodev - feuille de style principale
   Charte graphique officielle : bleu marine, bleu ciel, rose.
   Typographie : Quicksand.
   ========================================================= */

:root {
  /* Couleurs de marque (relevées sur le logo et la charte) */
  --marine: #04386f; /* bleu profond des aplats de la charte */
  --encre: #283772; /* bleu du logotype - titres */
  --ciel: #59c6f2; /* bleu clair - accent principal, boutons */
  --ciel-vif: #7bd4f7;
  --rose: #ea4b95; /* rose - accent de signature, ponctuel */
  --brume: #eef4f9; /* fond des sections alternées */
  --papier: #ffffff;

  --texte: #1d2a4d;
  --texte-doux: #5a6b8c;
  --acier: #7c8ca8;
  --trait: rgba(40, 55, 114, 0.14);
  --trait-clair: rgba(255, 255, 255, 0.18);

  /* Typographie */
  --police: "Quicksand", "Trebuchet MS", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --carte-visible: 400px; /* hauteur de carte laissée libre au-dessus du pied de page */
  --entete: 104px; /* hauteur de l'en-tête en haut de page */
  --entete-reduit: 82px; /* hauteur une fois la page défilée */
  --wrap: 1180px;
  --pad-section: clamp(4.5rem, 9vw, 8rem);
  --radius: 10px;
  --radius-sm: 6px;
  --ombre: 0 20px 50px -30px rgba(4, 56, 111, 0.6);

  /* Frise officielle de la charte (assets/img/frise.png - 2528 x 77) */
  --frise: url("../img/frise.png");
  --fond-frise: #ffffff; /* fond derrière la frise - mettre `transparent` pour revenir au bleu */
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-reduit) + 16px);
}
body {
  margin: 0;
  font-family: var(--police);
  font-weight: 500;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.75;
  color: var(--texte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--police);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--encre);
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
}
h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
}
h3 {
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.32rem);
}
p {
  margin: 0 0 1.1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
strong {
  font-weight: 700;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap.narrow {
  width: min(100% - 2.5rem, 790px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ciel);
  color: var(--marine);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}
:focus-visible {
  outline: 3px solid var(--ciel);
  outline-offset: 3px;
}

/* ---------- Éléments récurrents ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acier);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--rose);
  flex: none;
}
.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}
.eyebrow.light::before {
  background: var(--ciel);
}

.lede {
  font-size: 1.06em;
  color: var(--texte-doux);
  max-width: 63ch;
}
.section-dark .lede {
  color: rgba(255, 255, 255, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--police);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--ciel);
  color: var(--marine);
}
.btn-primary:hover {
  background: var(--ciel-vif);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(89, 198, 242, 0.9);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}

/* Frise - motif signature de la charte.
   Le rapport largeur/hauteur du fichier est conservé : la frise s'étire sur
   toute la largeur sans jamais se déformer ni laisser apparaître de raccord. */
.chevrons {
  width: 100%;
  aspect-ratio: 2528 / 77;
  background-color: var(--fond-frise);
  background-image: var(--frise);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.site-header.is-solid {
  background: rgba(4, 56, 111, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 rgba(89, 198, 242, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--entete);
  transition: min-height 0.3s ease;
}
.site-header.is-solid .header-inner {
  min-height: var(--entete-reduit);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.brand img {
  width: 150px;
}
.brand .baseline {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.nav a:hover,
.nav a.is-active {
  color: #fff;
  border-bottom-color: var(--ciel);
}
.nav .nav-cta {
  border: 2px solid var(--ciel);
  color: var(--ciel);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
}
.nav .nav-cta:hover {
  background: var(--ciel);
  color: var(--marine);
  border-bottom-color: var(--ciel);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span[aria-hidden] {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  margin-inline: auto;
  position: relative;
}
.burger span[aria-hidden]::before,
.burger span[aria-hidden]::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease;
}
.burger span[aria-hidden]::before {
  top: -7px;
}
.burger span[aria-hidden]::after {
  top: 7px;
}
.burger[aria-expanded="true"] span[aria-hidden] {
  background: transparent;
}
.burger[aria-expanded="true"] span[aria-hidden]::before {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span[aria-hidden]::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--entete) + 2.5rem) 0 clamp(4rem, 7vw, 6rem);
  color: #fff;
  overflow: hidden;
  /* Aplat marine avec une montée de lumière derrière l'illustration */
  background: radial-gradient(115% 85% at 76% 22%, #0a4681 0%, var(--marine) 52%, #032a55 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 56, 111, 0.3) 0%, rgba(4, 56, 111, 0) 38%, rgba(3, 42, 85, 0.55) 100%);
}
.hero > .chevrons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background-color: transparent; /* la frise reste posée sur le bleu du hero */
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--wrap));
}

/* Deux colonnes : le discours à gauche, l'illustration à droite */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-visuel img {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  filter: drop-shadow(0 34px 55px rgba(0, 0, 0, 0.42));
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.95rem, 1.15rem + 2.4vw, 2.95rem);
  max-width: 27ch; /* laisse le slogan se répartir sur trois lignes */
  text-wrap: balance; /* égalise la longueur des lignes, sans <br> forcé */
}
.hero h1 .ciel {
  color: var(--ciel);
}
.hero h1 .rose {
  color: var(--rose);
}
.hero-lede {
  max-width: 60ch;
  font-size: 1.06em;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2.2rem 0 0;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.8rem;
  margin-top: 3.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--trait-clair);
}
.hero-facts li {
  position: relative;
  padding-top: 0.95rem;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ciel);
}

/* Apparition du bandeau de chiffres. La classe .anim n'est posee que par
   le script : sans JavaScript, tout reste visible et lisible.
   On passe par des animations et non des transitions : une transition exige
   que l'etat de depart ait ete peint au moins une fois, ce qui n'est pas
   garanti quand les deux classes arrivent dans la meme frame - d'ou des
   apparitions qui se declenchaient une fois sur deux. */
.hero-facts.anim li {
  opacity: 0;
}
.hero-facts.anim li::before {
  transform: scaleX(0);
  transform-origin: left;
}

.hero-facts.anim.est-visible li {
  animation: factMontee 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-facts.anim.est-visible li::before {
  animation: factTrait 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-facts.anim.est-visible li:nth-child(2),
.hero-facts.anim.est-visible li:nth-child(2)::before {
  animation-delay: 0.14s;
}
.hero-facts.anim.est-visible li:nth-child(3),
.hero-facts.anim.est-visible li:nth-child(3)::before {
  animation-delay: 0.28s;
}

@keyframes factMontee {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes factTrait {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.hero-facts strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.hero-facts span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--pad-section) 0;
}
.section-alt {
  background: var(--brume);
}
.section-dark {
  background: var(--marine);
  color: #fff;
  position: relative;
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-dark > .chevrons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.section-head {
  max-width: 70ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.grid-2.reverse .media-frame {
  order: 2;
}
.media-frame {
  position: relative;
}
.media-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 48%;
  height: 40%;
  border: 3px solid var(--ciel);
  border-radius: var(--radius);
  z-index: -1;
}

.facts-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.75rem;
}
.facts-list li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--texte-doux);
  font-size: 0.97em;
}
.facts-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ciel);
  box-shadow: 0 0 0 3px rgba(89, 198, 242, 0.22);
}

/* ---------- Cartes prestations ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ciel), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre);
  border-color: transparent;
}
.card:hover::before {
  transform: scaleX(1);
}
.card p {
  color: var(--texte-doux);
  font-size: 0.97em;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}
.tags li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--brume);
  color: var(--acier);
}

/* ---------- Port & maritime ---------- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 1px;
  background: var(--trait-clair);
  border: 1px solid var(--trait-clair);
  border-radius: var(--radius);
  overflow: hidden;
}
.domain {
  background: var(--marine);
  padding: 2.1rem 1.9rem;
  transition: background 0.25s ease;
}
.domain:hover {
  background: #0a4681;
}
.domain h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.domain h3::before {
  content: "<";
  color: var(--ciel);
  font-weight: 700;
}
.domain h3::after {
  content: ">";
  color: var(--rose);
  font-weight: 700;
}
.domain p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96em;
  margin: 0;
}
.dark-cta {
  margin: 3rem 0 0;
}

/* ---------- Méthode ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.2rem;
}
.steps li {
  border-top: 3px solid var(--brume);
  padding-top: 1.4rem;
  transition: border-color 0.25s ease;
}
.steps li:hover {
  border-top-color: var(--ciel);
}
.step-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--rose);
  display: block;
  margin-bottom: 0.7rem;
}
.steps p {
  color: var(--texte-doux);
  font-size: 0.96em;
  margin: 0;
}

/* ---------- Réalisations ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.9rem;
}
.work {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.work:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre);
  border-color: transparent;
}

/* Bandeau de secteur : la frise de la charte y sert de texture, en filigrane */
.work-secteur {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--marine);
  color: #fff;
  padding: 0.75rem 1.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.work-secteur::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--frise);
  background-size: auto 190%;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
}
.work-corps {
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* Hauteurs plancher : les trois cartes s'alignent ligne à ligne, quelle que
   soit la longueur réelle des textes. Valeurs exprimées en lignes de texte. */
.work h3 {
  margin-bottom: 0.75rem;
  min-height: 2.28em;
} /* 2 lignes */
.work-contexte {
  color: var(--texte-doux);
  font-size: 0.94em;
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--rose);
  min-height: 7em; /* 4 lignes */
}
.work-reponse {
  color: var(--texte);
  font-size: 0.95em;
  margin: 0 0 1.3rem;
  min-height: 10.5em; /* 6 lignes */
}

/* Repères chiffrés ou qualitatifs : c'est le « visuel » de ces projets */
.work-reperes {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.2rem auto;
  width: 100%;
  padding-top: 1.1rem;
  border-top: 1px solid var(--trait);
}
.work-reperes li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.work-reperes strong {
  color: var(--encre);
  font-weight: 700;
}
.work-reperes span {
  color: var(--acier);
}
.work-lien {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
}
.work-lien a {
  font-weight: 700;
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid var(--ciel);
  transition: border-color 0.2s ease;
}
.work-lien a::after {
  content: " \2197";
  color: var(--ciel);
}
.work-lien a:hover {
  border-bottom-color: var(--rose);
}
.work .tags {
  margin-top: auto;
  min-height: 3.6rem;
  align-content: flex-start;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.7rem;
}
.chips li {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--trait);
  color: var(--encre);
}
.section-alt .chips li {
  background: var(--brume);
  border-color: transparent;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--trait);
  padding: 1.2rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--encre);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--rose);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}
.faq p {
  margin: 0.9rem 0 0;
  color: var(--texte-doux);
  font-size: 0.97em;
  max-width: 70ch;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--brume);
}
.grid-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.coords {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.4rem;
}
.coord-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acier);
  margin-bottom: 0.2rem;
}
.coords a {
  text-decoration: none;
  font-weight: 700;
  color: var(--encre);
  border-bottom: 2px solid var(--ciel);
}
.coords a:hover {
  border-bottom-color: var(--rose);
}

.form-card {
  background: var(--papier);
  border: 1px solid var(--trait);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 3vw, 2.5rem);
  box-shadow: var(--ombre);
}
.field {
  margin-bottom: 1.15rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acier);
  margin-bottom: 0.4rem;
}
.field label span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--police);
  font-weight: 500;
  font-size: 1rem;
  color: var(--texte);
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 2px solid var(--trait);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ciel);
  box-shadow: 0 0 0 4px rgba(89, 198, 242, 0.22);
  outline: none;
}
.field.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.4rem 0 1.7rem;
}
.field.consent input {
  width: auto;
  margin-top: 0.3rem;
  flex: none;
  accent-color: var(--ciel);
}
.field.consent label {
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--texte-doux);
  line-height: 1.55;
  margin: 0;
}
.field.is-error input,
.field.is-error textarea {
  border-color: #c0392b;
}
.field .error-msg {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c0392b;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.35rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok {
  color: #12795a;
}
.form-status.ko {
  color: #c0392b;
}

/* ---------- Bandeau carte + pied de page ---------- */
.map-band {
  position: relative;
  background: #f2f2f2;
  min-height: 470px;
  overflow: hidden;
  display: flow-root; /* isole la marge haute du pied de page à l'intérieur du bandeau */
}
.map-band > .chevrons {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  background-color: var(--brume); /* teinte de la section contact, juste au-dessus */
}
/* Débord de 2 px de chaque côté : les arrondis de calcul de largeur laissaient
   apparaître un liseré du fond du bandeau sur les bords gauche et droit. */
.map-canvas {
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
}
.map-canvas.is-idle {
  background: linear-gradient(160deg, #f4f4f4, #e4e4e4);
}
.map-fallback {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: #fff;
  text-align: center;
}

.map-band .site-footer {
  position: relative;
  z-index: 3;
  margin-top: var(--carte-visible);
  background: var(--marine);
  border-top: 3px solid var(--ciel); /* arête franche entre la carte et le bandeau */
  color: rgba(255, 255, 255, 0.75);
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer-brand {
  margin: 0;
  display: flex;
  align-items: center;
}
.footer-brand img {
  width: 130px;
}
.footer-legal {
  margin: 0;
  font-size: 0.85rem;
}
.footer-links {
  margin: 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  margin-left: 1.3rem;
  font-weight: 600;
}
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--ciel);
}
.footer-legal a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--rose);
}

/* Commande de zoom de la carte */
.zoom-carte {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  /* Ancrée en haut à droite par l'API, mais repoussée jusqu'au bas de la
     portion de carte laissée visible par le pied de page. */
  margin: calc(var(--carte-visible) - 78px) 1.1rem 0 0;
}
.zoom-carte button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.055);
  color: #6e6e6e;
  font-family: var(--police);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.zoom-carte button:hover {
  background: rgba(0, 0, 0, 0.13);
  color: #3f3f3f;
}

/* Étiquette du marqueur de carte */
.map-pin-label {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ciel);
  color: var(--marine);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.8);
}

/* ---------- Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Carte de prestation renvoyant vers une page dediee */
.card h3 a {
  color: inherit;
  text-decoration: none;
}

/* Zone cliquable etendue a toute la carte */
.card h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card h3 a::after {
  content: " \2192";
  display: inline-block;
  color: var(--ciel);
  transition: transform 0.22s ease;
}

.card:hover h3 a::after {
  transform: translateX(4px);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-visuel img {
    max-width: 430px;
    margin-inline: auto;
  }
  .grid-2,
  .grid-contact {
    grid-template-columns: 1fr;
  }
  .grid-2.reverse .media-frame {
    order: 0;
  }
  .media-frame img {
    aspect-ratio: 16/10;
  }
  :root {
    --carte-visible: 340px;
  }
}
@media (max-width: 820px) {
  .burger {
    display: block;
  }
  .brand .baseline {
    display: none;
  }
  .brand img {
    width: 128px;
  }
  :root {
    --entete: 78px;
    --entete-reduit: 70px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: #04386f;
    background: var(--marine);
    padding: calc(var(--entete) + 2rem) 2rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;

    /* Un seul "transform", qui cumule le decalage hors-ecran ET la couche
       de composition dediee (translateZ(0)) demandee pour Safari iOS.
       -webkit-transform et transform sont la MEME propriete sous WebKit :
       les declarer separement fait que la seconde ecrase la premiere,
       ce qui annulait le decalage et laissait le menu visible en
       permanence. Tout doit donc tenir dans une seule declaration. */
    transform: translateX(100%) translateZ(0);
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
  }
  .nav.is-open {
    transform: translateZ(0); /* revient a 0 sur l'axe X, couche conservee */
    box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.8);
  }
  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
  .nav a {
    font-size: 1.05rem;
  }

  .site-header {
    background: rgba(4, 56, 111, 0.95);
  }
  .hero {
    padding-top: calc(var(--entete) + 1.5rem);
    min-height: auto;
  }
  .hero-visuel img {
    max-width: 340px;
  }
  .hero-facts {
    gap: 1.6rem 2.2rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links a {
    margin: 0 1.3rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
