/* M2S Ascenseurs — feuille de style unique, polices hébergées localement */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/notosans-latin.woff2) format("woff2");
}

:root {
  --navy: #27348b;
  --navy-700: #1d2768;
  --navy-900: #121845;
  --navy-50: #eef0fa;
  --grey: #878787;
  --ink: #1c1f2b;
  --muted: #5b6070;
  --line: #e3e5ec;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --urgent: #e4572e;
  --success: #1f8a4c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(18, 24, 69, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(18, 24, 69, 0.35);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 0.25vw + 15px, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.4vw + 0.5rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.5rem); font-weight: 750; }
h3 { font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.35rem); font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
:focus-visible { outline: 3px solid #7c8cff; outline-offset: 2px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 0.95em 1.6em; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
/* Sur petit écran, un bouton au libellé long passe à la ligne au lieu d'élargir la page. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--navy-50); border-color: var(--navy-50); color: var(--navy-900); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--urgent { background: var(--urgent); border-color: var(--urgent); }
.btn--urgent:hover { background: #c94420; border-color: #c94420; }
.btn--sm { padding: 0.6em 1.15em; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #dfe3ff; font-size: 0.85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__urgence { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { font-weight: 500; color: #dfe3ff; }
.topbar__links a[aria-current] { color: #fff; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Header / navigation ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
/* Le flou est sur un pseudo-élément : un backdrop-filter sur .header ferait de lui
   le repère du menu mobile (position: fixed), qui déborderait alors à droite de la page. */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18,24,69,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__list > li > a,
.nav__list > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.92rem/1 var(--font-head); color: var(--ink); text-decoration: none;
  padding: 12px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav__list > li > a:hover,
.nav__list > li > button:hover { color: var(--navy); background: var(--navy-50); }
.nav__list a[aria-current] { color: var(--navy); }
.nav__list > li > a[aria-current]::after { content: ""; position: absolute; }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.has-sub > button[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.has-sub > button[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.93rem; }
.sub a:hover, .sub a[aria-current] { background: var(--navy-50); color: var(--navy); }
.nav__mobile-only { display: none; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span:not(.sr-only) { width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .burger { display: inline-flex; }
  .logo img { height: 44px; }
  .header__inner { min-height: 68px; }
  .nav {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(380px, 100%); height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 20px;
    background: #fff; padding: 88px 20px 28px; overflow-y: auto;
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list > li > a, .nav__list > li > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; display: none; min-width: 0; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub > button[aria-expanded="true"] + .sub { display: block; }
  .nav__mobile-only { display: block; }
  .nav .btn { align-self: stretch; }
  .burger { position: relative; z-index: 60; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(18,24,69,.45); z-index: 40; }
  .header { z-index: 55; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18,24,69,.92) 0%, rgba(18,24,69,.75) 45%, rgba(18,24,69,.25) 100%); }
.hero__inner { padding-block: clamp(72px, 12vw, 150px); max-width: 760px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.25rem); color: #e6e9ff; max-width: 60ch; }
.hero--page .hero__inner { padding-block: clamp(56px, 9vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 0.78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; color: var(--navy); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow { color: #aeb8ff; }
.breadcrumb { font-size: 0.85rem; color: #c6ccf5; margin-bottom: 18px; }
.breadcrumb a { color: #fff; }

.hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 48px); margin-top: 44px; justify-content: start; }
.hero__stats strong { display: block; font: 800 clamp(1.6rem, 2.5vw, 2.2rem)/1 var(--font-head); color: #fff; }
.hero__stats span { font-size: 0.88rem; color: #c6ccf5; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #dfe3ff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section__head p { color: #c6ccf5; }
.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
/* min-width: 0 évite qu'un contenu large (bouton, tableau) élargisse la colonne. */
.split > * { min-width: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__media--wide img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__media img { aspect-ratio: 16 / 11; }
}

/* ---------- Cartes ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--navy .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.section--navy .card p { color: #c6ccf5; }
.section--navy .card__icon { background: rgba(255,255,255,.08); color: #aeb8ff; }

.service-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,24,69,0) 30%, rgba(18,24,69,.9) 100%); }
.service-card:hover img { transform: scale(1.06); }
.service-card__body { padding: 24px; }
.service-card h3 { color: #fff; margin-bottom: .3em; }
.service-card span { font: 600 .9rem var(--font-head); color: #c6ccf5; display: inline-flex; gap: 6px; align-items: center; }
.service-card:hover span { color: #fff; }
.service-card:hover { color: #fff; }

/* étapes */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 2.4rem/1 var(--font-head); color: var(--navy-50); -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* listes à cocher */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327348b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checklist--cols { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
@media (max-width: 700px) { .checklist--cols { grid-template-columns: 1fr; } }

/* accordéon (contrats) */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 700 1.05rem var(--font-head); color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--navy); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding: 0 22px 22px; }
.accordion__body h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 1.2em 0 .6em; }
.accordion__body .checklist { font-size: .96rem; }

/* chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font: 800 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-head); color: var(--navy); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline strong { display: block; font: 800 1.15rem var(--font-head); color: var(--navy); }
.timeline p { margin: 0; color: var(--muted); }

/* équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--bg-soft); }
.member h3 { margin-bottom: .1em; }
.member p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team { grid-template-columns: 1fr; } }

/* avis */
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.review__stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.review cite { font: 700 .95rem var(--font-head); font-style: normal; color: var(--navy-900); margin-top: auto; }

/* réalisations */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.work-card__body { padding: 20px 22px 24px; }
.work-card h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.work-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font: 700 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); background: var(--navy-50); padding: 6px 10px; border-radius: 999px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-sm); cursor: zoom-in; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 40px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius); }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 700 1.05rem var(--font-head); color: var(--navy-900); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,30,.92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }

/* partenaires */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; align-items: center; }
.logos li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); height: 96px; display: grid; place-items: center; padding: 16px; }
.logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos { padding: 0; margin: 0; }

/* bandeau CTA */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 5vw, 64px); background: radial-gradient(circle at 100% 0%, #3a49b8 0%, transparent 55%), var(--navy); color: #e6e9ff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta__actions small { color: #c6ccf5; text-align: center; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* bandeau engagements */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise { display: flex; gap: 14px; align-items: center; font: 700 .98rem var(--font-head); color: var(--navy-900); }
.promise svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 12px; background: var(--navy-50); stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Formulaire ---------- */
.form-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font: 600 .9rem var(--font-head); color: var(--navy-900); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 14px; width: 100%; transition: border-color .15s, background .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(39,52,139,.12); }
.field input[type="file"] { padding: 10px; }
.field .hint { font-size: .8rem; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form__status { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; display: none; }
.form__status.is-ok { display: block; background: #e8f6ee; color: var(--success); }
.form__status.is-error { display: block; background: #fdecea; color: #b42318; }
.form__legal { font-size: .78rem; color: var(--muted); margin-top: 20px; line-height: 1.55; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.contact-card { background: var(--navy-900); color: #dfe3ff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card .big-tel { display: block; font: 800 1.6rem/1.2 var(--font-head); text-decoration: none; margin: 4px 0 18px; }
.contact-card .big-tel--urgent { color: #ff9a7a; }
.contact-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 22px 0; }
.map { margin-top: 20px; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: #1d2768; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pages légales ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal h3 { margin-top: 1.4em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); font-size: .95rem; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-900); margin-bottom: 14px; }
.footer address { font-style: normal; margin-bottom: 1em; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--navy); text-decoration: underline; }
.footer__tel { font: 800 1.15rem var(--font-head); color: var(--navy) !important; }
.footer__tel--urgent { color: var(--urgent) !important; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; margin-top: 48px; border-top: 1px solid var(--line); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer { padding-bottom: 72px; } }

/* bouton d'appel flottant (mobile) */
.call-fab { display: none; }
@media (max-width: 760px) {
  .call-fab { position: fixed; z-index: 45; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 999px; background: var(--urgent); color: #fff; font: 700 1rem var(--font-head); text-decoration: none; box-shadow: 0 12px 30px -10px rgba(228,87,46,.7); }
  .call-fab svg { width: 20px; height: 20px; fill: currentColor; }
  .call-fab:hover { color: #fff; }
  body.menu-open .call-fab { display: none; }
}

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
