/* Viva Service24 — feuille de style */

/* Police servie depuis le site lui-même : aucun appel à un serveur tiers */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #002043;
  --navy-3: #13396a;
  --teal: #10a8b3;
  --teal-dark: #0b8a94;
  --teal-soft: #e4f5f6;
  --soft: #f4f7fa;
  --white: #ffffff;
  --text: #1c2b3d;
  --muted: #5b6b7e;
  --line: #e1e7ee;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 32, 67, .06), 0 8px 24px -8px rgba(0, 32, 67, .12);
  --shadow-lg: 0 2px 4px rgba(0, 32, 67, .06), 0 24px 48px -16px rgba(0, 32, 67, .22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* l'iPhone ne grossit pas le texte de lui-même en mode paysage */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* En-tête et barre d'infos : pleine largeur, logo collé à gauche */
.wrap-wide {
  max-width: none;
  padding: 0 clamp(16px, 3vw, 48px);
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }

.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--teal-soft); }

.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Barre d'infos ---------- */

.topbar {
  background: var(--navy);
  color: #c9d6e4;
  font-size: 13.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 42px;
}


.topbar-item,
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar .ico { width: 15px; height: 15px; color: var(--teal); }

.topbar-contact {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.topbar-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-contact a:hover { color: var(--teal); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 32, 67, .25); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 84px;
}

.brand img { height: 62px; width: auto; }

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .2s;
}
.main-nav a:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; }

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  /* tout l'écran, moins la barre d'infos (42px) et l'en-tête (84px) */
  min-height: max(560px, calc(100vh - 126px));
  min-height: max(560px, calc(100svh - 126px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 32, 67, .94) 0%, rgba(0, 32, 67, .82) 42%, rgba(0, 32, 67, .25) 75%, rgba(0, 32, 67, .1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 180px;
}

.hero-kicker {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 13em;
  margin-top: 24px;
  color: #fff;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 34em;
  margin-top: 22px;
  color: #d5e0ec;
  font-size: clamp(16px, 1.5vw, 18.5px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Points forts, à cheval sur la photo */
.assets {
  position: relative;
  z-index: 5;
  list-style: none;
  margin: -124px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.assets li { padding: 26px 30px; }
.assets li + li { border-left: 1px solid var(--line); }

.assets strong { display: block; color: var(--navy); font-size: 17px; line-height: 1.3; }
.assets span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }

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

.section { padding: clamp(72px, 9vw, 110px) 0; }
.section-soft { background: var(--soft); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kicker-light { color: var(--teal); }

.section-intro { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Cartes services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover img { transform: scale(1.04); }

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
  background: #fff;
  border-top: 3px solid var(--teal);
}

.card-body p { margin-top: 10px; color: var(--muted); font-size: 15px; flex: 1; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 18px;
  color: var(--teal-dark);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}
.card-link .ico { width: 16px; height: 16px; transition: transform .2s; }
.card-link:hover .ico { transform: translateX(4px); }

/* ---------- Blocs photo + texte ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split-reverse .split-media { order: 2; }

.split-text > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 16.5px; }

.split-text .btn { margin-top: 32px; }

/* Panneaux solaires */
.solar { background: var(--navy); }
.solar h2 { color: #fff; }
.solar .split-text > p:not(.kicker) { color: #c9d6e4; }

.checklist {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  font-weight: 500;
}

.checklist .ico {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  stroke-width: 3;
}

/* ---------- Pourquoi nous ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.reason {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.reason:hover { box-shadow: var(--shadow); }

.reason p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Étapes (frise verticale) ---------- */

.process {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.process-intro { position: sticky; top: 130px; }
.process-intro > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 16.5px; max-width: 28em; }
.process-intro .btn { margin-top: 32px; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.timeline li {
  position: relative;
  counter-increment: step;
  padding: 0 0 44px 84px;
  min-height: 56px;
}
.timeline li:last-child { padding-bottom: 0; }

/* pastille numérotée */
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--soft);
}
.timeline li:last-child::before { background: var(--teal); }

/* trait qui relie les étapes */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--teal), rgba(16, 168, 179, .25));
}

.timeline h3 { padding-top: 6px; font-size: 21px; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: 15.5px; max-width: 30em; }

/* ---------- Zone ---------- */

.towns {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.towns li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Bandeau d'appel ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.cta-band p { margin-top: 8px; color: #e6fbfc; font-size: 17px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info > p:not(.kicker) { margin-top: 18px; color: var(--muted); font-size: 16.5px; }

.contact-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 16.5px;
  font-weight: 600;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.contact-list small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.contact-list a { color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--teal-dark); }

.quote-form {
  padding: clamp(26px, 3.5vw, 40px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--teal);
}

.form-title { font-size: 22px; margin-bottom: 24px; }

.field { position: relative; display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.field label { color: var(--navy); font-size: 14px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover,
.field textarea:hover { border-color: #aebccb; }

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 168, 179, .2);
}

.field [aria-invalid="true"] { border-color: #c62828; background: #fff6f6; }

/* ---------- Liste déroulante sur mesure ---------- */

/* La liste native reste dans la page pour le formulaire, mais hors de vue.
   « .field » en préfixe : sinon « .field select { width: 100% } » l'emporte
   et la liste cachée déborde de l'écran sur téléphone. */
.field .native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.select { position: relative; }

.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 14px 0 16px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.select-btn:hover { border-color: #aebccb; }
.select-btn:focus-visible,
.select.is-open .select-btn {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 168, 179, .2);
}
.select-btn.is-placeholder .select-value { color: #8494a7; font-weight: 400; }
.select-btn[aria-invalid="true"] { border-color: #c62828; background: #fff6f6; }

.select-btn .ico {
  color: var(--teal-dark);
  transition: transform .2s;
}
.select.is-open .select-btn .ico { transform: rotate(180deg); }

.select-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.select-list:focus { outline: none; }
.select.is-open .select-list { opacity: 1; visibility: visible; transform: none; }

.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}
.select-option .ico { width: 16px; height: 16px; color: var(--teal-dark); stroke-width: 2.5; visibility: hidden; }
.select-option.is-active { background: var(--teal-soft); color: var(--navy); }
.select-option[aria-selected="true"] { color: var(--teal-dark); font-weight: 700; }
.select-option[aria-selected="true"] .ico { visibility: visible; }

.form-error { margin-bottom: 16px; color: #c62828; font-size: 14.5px; font-weight: 600; }

.form-note { margin-top: 14px; color: var(--muted); font-size: 13.5px; text-align: center; }

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

.site-footer {
  background: var(--navy);
  color: #b6c5d6;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand img { height: 76px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 26em; }

.site-footer h4 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b6c5d6; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-credit a { color: #fff; font-weight: 600; }

/* ---------- Pages légales ---------- */

.legal-head {
  background: var(--navy);
  color: #c9d6e4;
  padding: clamp(48px, 7vw, 80px) 0;
}
.legal-head .wrap { max-width: 800px; }
.legal-head h1 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.legal-head p { margin-top: 12px; font-size: 15px; }

.legal {
  max-width: 800px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.legal h2 {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 24px;
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 28px; font-size: 17.5px; }

.legal p,
.legal ul { margin-top: 14px; }
.legal ul { padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal li::marker { color: var(--teal); }
.legal a { font-weight: 600; text-underline-offset: 3px; }

.legal-table {
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 14px 20px;
}
.legal-table div + div { border-top: 1px solid var(--line); }
.legal-table dt { color: var(--muted); font-size: 14.5px; }
.legal-table dd { margin: 0; color: var(--navy); font-weight: 600; }

/* Information pas encore fournie (repérée par l'attribut data-a-completer) */
.pending { color: var(--muted); font-weight: 400; font-style: italic; }

/* ---------- Bouton flottant « Nous contacter » ---------- */

.float-contact {
  position: fixed;
  left: 50%;
  bottom: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(0, 32, 67, .45);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.float-contact.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.float-contact:hover { background: var(--teal-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .assets { grid-template-columns: repeat(2, 1fr); }
  .assets li:nth-child(3) { border-left: 0; }
  .assets li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .topbar-hours { display: none; }

  .header-inner { height: 72px; gap: 16px; }
  .brand img { height: 50px; }
  .header-cta { margin-left: auto; }

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    box-shadow: 0 16px 24px -16px rgba(0, 32, 67, .25);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .split,
  .process,
  .contact-grid { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .split-reverse .split-media { order: 0; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-intro { font-size: 16px; }

  /* Barre d'infos : e-mail et téléphone, centrés */
  .topbar { font-size: 13px; }
  .topbar-inner { justify-content: center; }
  .topbar-inner > .topbar-item { display: none; }
  .topbar-contact { margin: 0; gap: 4px 18px; flex-wrap: wrap; justify-content: center; }

  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .brand img { height: 44px; }

  /* Accueil */
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(0, 32, 67, .82), rgba(0, 32, 67, .9)); }
  .hero-content { padding-top: 48px; padding-bottom: 56px; }
  .hero-kicker { font-size: 11.5px; letter-spacing: .08em; }
  .hero h1 { margin-top: 16px; font-size: 34px; }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { width: 100%; }

  /* Atouts : pas affichés sur téléphone */
  .assets { display: none; }

  /* Services : cartes compactes, photo à gauche */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: 108px 1fr; }
  .card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card img { width: 100%; height: 100%; aspect-ratio: auto; }
  .card:hover img { transform: none; }
  .card-body { padding: 16px 16px 16px 14px; border-top: 0; border-left: 3px solid var(--teal); }
  .card-body h3 { font-size: 17px; }
  .card-body p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
  .card-link { margin-top: 10px; font-size: 14px; white-space: nowrap; }

  .checklist li { font-size: 15.5px; }
  .split-text .btn { width: 100%; }

  .reasons { grid-template-columns: 1fr; gap: 14px; }
  .reason { padding: 22px 20px; }

  .process-intro .btn { width: 100%; }
  .timeline li { padding-left: 68px; padding-bottom: 36px; }
  .timeline li::before { width: 46px; height: 46px; font-size: 17px; }
  .timeline li:not(:last-child)::after { left: 22px; top: 46px; }
  .timeline h3 { padding-top: 2px; }

  .cta-inner { padding-top: 44px; padding-bottom: 44px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }

  /* Formulaire : 16px minimum, sinon l'iPhone zoome à la saisie */
  .quote-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .field input,
  .field select,
  .field textarea,
  .select-btn,
  .select-option { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  .legal-table div { grid-template-columns: 1fr; gap: 2px; }
}

/* Très petits téléphones */
@media (max-width: 360px) {
  .card { grid-template-columns: 88px 1fr; }
  .hero h1 { font-size: 30px; }
}

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