/* MMI La solution en pneumatique
   Idée directrice : une conduite d'air bleue, comme celles que MMI installe,
   longe toute la page ; chaque section s'y raccorde par une descente. */

:root {
  --noir: #000;
  --marine: #0b2238;
  --bleu: #007fff;          /* bleu du logo */
  --bleu-texte: #0059c9;    /* même teinte, assez foncée pour du texte sur blanc */
  --acier: #e8edf1;
  --blanc: #fff;
  --orange: #ff7a1a;        /* réservé aux appels à l'action et au téléphone */
  --texte: #16222e;
  --texte-doux: #4c5a68;
  --trait: #cfd8df;

  --titres: Bahnschrift, "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --courant: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --marge: 20px;            /* marge extérieure */
  --retrait: 28px;          /* distance entre la conduite et le contenu */
  --conduite: 4px;
  --entete: 72px;
}
@media (min-width: 900px) {
  :root { --marge: 40px; --retrait: 56px; --entete: 88px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--courant);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--blanc);
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--bleu-texte); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--titres);
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.4rem; line-height: 1.2; }

.icone { flex: none; }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--noir); font-weight: 600;
  padding: 10px 16px; text-decoration: none;
}
.evitement:focus { top: 12px; }

/* ---------- La conduite ---------- */
.cadre {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--marge);
}
main .cadre > * { margin-left: var(--retrait); }
main .cadre {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
}
main .cadre::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: var(--marge);
  width: var(--conduite);
  background: var(--bleu);
}
@media (min-width: 900px) {
  main .cadre { padding-top: 104px; padding-bottom: 104px; }
}

/* Descente : le titre de chaque section se raccorde à la conduite. */
.section h2 { position: relative; }
.section .cadre > h2::before,
.section .duo__texte > h2::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: calc(-1 * var(--retrait));
  width: calc(var(--retrait) - 22px);
  height: var(--conduite);
  background: var(--bleu);
}
.section .cadre > h2::after,
.section .duo__texte > h2::after {
  content: "";
  position: absolute;
  top: calc(0.5em - 5px);
  left: -22px;
  width: 14px; height: 14px;
  border: var(--conduite) solid var(--bleu);
  border-radius: 50%;
}
/* Quand la photo est à gauche, le titre est loin de la conduite : pas de descente. */
@media (min-width: 900px) {
  .section .duo--inverse .duo__texte > h2::before,
  .section .duo--inverse .duo__texte > h2::after { display: none; }
}

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--noir);
  color: var(--blanc);
}
.entete__cadre {
  max-width: 1240px; margin: 0 auto;
  padding: 0 var(--marge);
  height: var(--entete);
  display: flex; align-items: center; gap: 16px;
}
.entete__logo { display: block; flex: none; }
.entete__logo img { height: calc(var(--entete) - 16px); width: auto; }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 4px; }
.menu a {
  display: block; padding: 10px 12px;
  color: var(--blanc); text-decoration: none;
  font-size: 0.98rem; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.menu a:hover { border-bottom-color: var(--bleu); }
.entete__tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); text-decoration: none;
  font-family: var(--titres); font-stretch: 80%; font-weight: 700;
  font-size: 1.35rem; white-space: nowrap;
  padding: 8px 0 8px 12px;
}
.entete__tel:hover { text-decoration: underline; }
.entete__bascule { display: none; }

@media (max-width: 1099px) {
  .entete__tel { margin-left: auto; }
  .entete__bascule {
    order: 3;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    background: none; border: 1px solid #5b6570; border-radius: 4px;
    color: var(--blanc); cursor: pointer;
  }
  .entete__bascule-traits,
  .entete__bascule-traits::before,
  .entete__bascule-traits::after {
    display: block; width: 22px; height: 2px; background: currentColor;
  }
  .entete__bascule-traits { position: relative; }
  .entete__bascule-traits::before, .entete__bascule-traits::after { content: ""; position: absolute; left: 0; }
  .entete__bascule-traits::before { top: -7px; }
  .entete__bascule-traits::after { top: 7px; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--entete);
    margin: 0; background: var(--noir);
    border-top: 1px solid #2a3138;
    padding: 8px var(--marge) 20px;
  }
  .menu--ouvert { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid #2a3138; }
}
@media (max-width: 479px) {
  .entete__tel span { display: none; }
  .entete__tel { border: 1px solid var(--orange); border-radius: 4px; width: 48px; height: 48px; padding: 0; justify-content: center; }
}

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px;
  font-family: var(--courant); font-size: 1.05rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 4px;
  cursor: pointer;
}
.bouton--plein { background: var(--orange); color: var(--noir); border-color: var(--orange); }
.bouton--plein:hover { background: #ff9547; border-color: #ff9547; }
.bouton--contour { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.bouton--contour:hover { background: var(--blanc); color: var(--noir); }

/* ---------- Héro ---------- */
.hero { background: var(--noir); color: var(--blanc); }
.hero .hero__cadre { padding-top: 48px; padding-bottom: 0; }
.hero__texte { padding-bottom: 40px; }
.hero__chapeau { font-size: 1.2rem; line-height: 1.55; color: #d5dde4; max-width: 34em; margin: 24px 0 32px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 900px) {
  .hero .hero__cadre {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px;
    align-items: end; padding-top: 0;
  }
  .hero__texte { padding: 88px 0 96px; align-self: center; }
  .hero__photo { margin-left: 0 !important; align-self: stretch; }
  .hero__photo picture, .hero__photo img { height: 100%; }
  .hero__photo img { aspect-ratio: auto; min-height: 560px; object-position: 28% 20%; }
}

/* ---------- Atouts ---------- */
.atouts { background: var(--acier); }
.atouts .cadre { padding-top: 32px; padding-bottom: 32px; }
.atouts__liste { display: grid; gap: 20px 32px; }
.atouts__liste li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.4; }
.atouts__liste .icone { width: 30px; height: 30px; color: var(--bleu-texte); margin-top: 2px; }
.atouts__liste strong { display: block; font-family: var(--titres); font-stretch: 80%; font-size: 1.2rem; }
@media (min-width: 600px) { .atouts__liste { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .atouts__liste { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.chapeau { font-size: 1.2rem; color: var(--texte-doux); max-width: 40em; margin: 20px 0 0; }
.section--acier { background: var(--acier); }
.section--marine { background: var(--marine); color: #e6edf3; }
.section--noir { background: var(--noir); color: #e6edf3; }
.section--marine h2, .section--noir h2 { color: var(--blanc); }
.section--marine .chapeau, .section--noir .chapeau { color: #c3ced8; }
.section--marine a:not(.bouton), .section--noir a:not(.bouton) { color: #7dbdff; }

/* Services : une liste à deux colonnes séparée par des filets, sans cartes. */
.services { display: grid; margin-top: 48px; border-top: 1px solid var(--trait); }
.service {
  display: flex; gap: 20px; padding: 28px 0;
  border-bottom: 1px solid var(--trait);
}
.service .icone { width: 36px; height: 36px; color: var(--bleu-texte); margin-top: 2px; }
.service__accroche { font-weight: 600; margin: 6px 0 8px; }
.service p:last-child { margin: 0; color: var(--texte-doux); }
@media (min-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

.trio { display: grid; gap: 20px; margin-top: 56px; }
.trio figure { margin: 0; }
.trio img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.trio figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--texte-doux); }
@media (min-width: 700px) { .trio { grid-template-columns: repeat(3, 1fr); } }

/* Texte et photo côte à côte */
.duo { display: grid; gap: 40px; }
.duo__texte h2 { margin-bottom: 24px; }
.duo__texte p { max-width: 38em; }
.duo__photo img { width: 100%; }
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .duo--inverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (max-width: 899px) {
  .duo--inverse .duo__photo { order: 2; }
}

.points { margin: 28px 0 36px; display: grid; gap: 14px; max-width: 38em; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points .icone { color: var(--bleu); margin-top: 3px; }

.logo-partenaire { width: 220px; margin: 0 0 24px; }
.engagement {
  margin-top: 28px; padding-left: 20px;
  border-left: var(--conduite) solid var(--bleu);
  font-family: var(--titres); font-stretch: 80%; font-weight: 600;
  font-size: 1.35rem; line-height: 1.3;
}

/* Villes : des sorties d'air le long d'une ligne */
.villes__titre { margin: 32px 0 16px; }
.villes { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.villes li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: 100px;
  padding: 6px 16px 6px 12px; font-size: 1rem;
}
.villes li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu);
}
.villes .villes__environs { background: none; border-color: transparent; padding-left: 4px; color: var(--texte-doux); }
.villes .villes__environs::before { display: none; }

/* ---------- Contact ---------- */
.section--noir h2 { max-width: 26ch; }
.contact { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
}
.contact__formulaire {
  background: var(--blanc); color: var(--texte);
  padding: 28px 22px; border-radius: 4px;
}
@media (min-width: 600px) { .contact__formulaire { padding: 40px; } }
.contact__formulaire a { color: var(--bleu-texte) !important; }

.champs { display: grid; gap: 20px; margin-bottom: 28px; }
@media (min-width: 600px) {
  .champs { grid-template-columns: 1fr 1fr; }
  .champ--large { grid-column: 1 / -1; }
}
.champ label { display: block; font-weight: 600; margin-bottom: 6px; }
.facultatif { font-weight: 400; color: var(--texte-doux); }
.champ input, .champ textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 12px 14px; min-height: 50px;
  background: var(--blanc);
  border: 1.5px solid #8494a3; border-radius: 4px;
}
.champ textarea { resize: vertical; min-height: 150px; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--bleu); outline-offset: 1px; border-color: var(--bleu-texte); }
.champ__aide { font-size: 0.93rem; color: var(--texte-doux); margin: 6px 0 0; }
.champ--erreur input, .champ--erreur textarea { border-color: #b3261e; border-width: 2px; }
.champ__erreur { color: #b3261e; font-size: 0.95rem; font-weight: 600; margin: 6px 0 0; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: 0.93rem; color: var(--texte-doux); margin: 18px 0 0; }

.avis { padding: 16px 18px; border-left: 5px solid; margin-bottom: 24px; border-radius: 2px; }
.avis--succes { background: #e7f5ec; border-color: #1c7c45; margin-bottom: 0; font-size: 1.1rem; }
.avis--erreur { background: #fdecea; border-color: #b3261e; }

.contact__coordonnees dl { margin: 0; display: grid; gap: 28px; }
.contact__coordonnees dt {
  display: flex; align-items: center; gap: 10px;
  color: #a9b6c2; font-size: 1rem; margin-bottom: 4px;
}
.contact__coordonnees dt .icone { width: 20px; height: 20px; }
.contact__coordonnees dd { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact__coordonnees em { display: block; margin-top: 6px; font-size: 1rem; color: #c3ced8; }
.contact__coordonnees a { color: var(--blanc) !important; }
.contact__coordonnees a.contact__tel {
  color: var(--orange) !important; text-decoration: none;
  font-family: var(--titres); font-stretch: 80%; font-weight: 700;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1.1;
}
.contact__coordonnees a.contact__tel:hover { text-decoration: underline; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: #c3ced8; border-top: 1px solid #2a3138; font-size: 0.98rem; }
.pied a { color: var(--blanc); }
.pied__cadre {
  max-width: 1240px; margin: 0 auto; padding: 40px var(--marge) 24px;
  display: grid; gap: 24px; align-items: center;
}
.pied__logo { width: 180px; }
.pied__bloc p { margin: 0 0 6px; }
@media (min-width: 800px) {
  .pied__cadre { grid-template-columns: auto 1fr auto; gap: 56px; }
  .pied__bloc:last-child { text-align: right; }
}
.pied__bas {
  max-width: 1240px; margin: 0 auto; padding: 16px var(--marge) 28px;
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  border-top: 1px solid #2a3138;
}
.pied__bas p { margin: 0; }

/* ---------- Pages de texte (confidentialité, page introuvable) ---------- */
.page .cadre { padding-top: 64px; padding-bottom: 88px; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.6rem; margin: 36px 0 12px var(--retrait); max-width: none; }
.page p, .page li { max-width: 42em; }
.page ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.page .bouton { margin-top: 16px; }

/* ---------- Consentement et témoins ---------- */
.consentement { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin-bottom: 24px; }
.consentement input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--bleu-texte); }
.consentement .champ__erreur { grid-column: 2; margin: 0; }
.lien-bouton {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.pied__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied__liens .lien-bouton { color: var(--blanc); }

.temoins {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--noir); color: #e6edf3;
  border-top: var(--conduite) solid var(--bleu);
  max-height: 85vh; overflow: auto;
}
.temoins[hidden] { display: none; }
.temoins__cadre {
  max-width: 1240px; margin: 0 auto; padding: 20px var(--marge);
  display: grid; gap: 16px;
}
.temoins h2 { font-size: 1.3rem; color: var(--blanc); margin-bottom: 6px; max-width: none; }
.temoins p { margin: 0; font-size: 0.98rem; max-width: 46em; }
.temoins a { color: #7dbdff; }
.temoins__choix { display: grid; gap: 10px; margin-top: 14px; font-size: 0.98rem; }
.temoins__choix[hidden] { display: none; }
.temoins__choix label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.temoins__choix input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--bleu); }
.temoins__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.temoins__actions .bouton { min-height: 46px; padding: 8px 20px; font-size: 1rem; }
.temoins__actions .bouton[hidden] { display: none; }
@media (min-width: 900px) {
  .temoins__cadre { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

.page table { border-collapse: collapse; width: calc(100% - var(--retrait)); max-width: 46em; margin: 0 0 1em var(--retrait); font-size: 0.98rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--trait); }
.page th { background: var(--acier); }
@media (max-width: 699px) {
  .page table { display: block; overflow-x: auto; font-size: 0.9rem; }
  .page th, .page td { padding: 8px; }
}
.page .mise-a-jour { color: var(--texte-doux); font-size: 0.95rem; }

@media print {
  .temoins { display: none; }
  .entete, .pied, .bouton, form { display: none; }
  main .cadre::before { display: none; }
}
.insecable { white-space: nowrap; }
.bouton { gap: 0.3em; flex-wrap: wrap; }
