/* =========================================================================
   EZ Pro Elec — feuille de style unique
   Charte : bleu #0B3D91 · jaune #FFC72C · encre #102033 · fond #F8FAFC
   ========================================================================= */

/* --- Polices auto-hébergées (aucun appel à un service externe) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/sora-var.woff2') format('woff2');
}

/* --- Variables --- */
:root {
  --bleu: #0B3D91;
  --bleu-clair: #1752c0;
  --bleu-nuit: #102033;
  --jaune: #FFC72C;
  --jaune-fonce: #E5AE14;
  --fond: #F8FAFC;
  --blanc: #FFFFFF;
  --ligne: #D9E2EC;
  --gris-texte: #4A5B70;
  --vert: #2E7D5B;
  --rayon: 16px;
  --rayon-lg: 22px;
  --ombre-1: 0 1px 2px rgba(16, 32, 51, .06), 0 6px 18px rgba(16, 32, 51, .06);
  --ombre-2: 0 10px 30px rgba(11, 61, 145, .14);
  --wrap: 1140px;
  --header-h: 74px;
  --titre: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --texte: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--bleu-nuit);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--titre); color: var(--bleu-nuit); margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.015em; }
h1 { font-size: clamp(1.95rem, 4.6vw, 3.15rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--jaune); color: var(--bleu-nuit); padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Boutons --- */
.btn {
  --btn-bg: var(--bleu);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--texte); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--jaune); color: #1b2a3d; box-shadow: 0 6px 18px rgba(255, 199, 44, .35); }
.btn-primary:hover { background: var(--jaune-fonce); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 199, 44, .42); }
.btn-ghost { background: var(--blanc); color: var(--bleu); border-color: var(--ligne); }
.btn-ghost svg { fill: var(--bleu); }
.btn-ghost:hover { border-color: var(--bleu); background: #f1f6ff; }
.btn-outline { background: transparent; color: var(--bleu); border-color: var(--ligne); }
.btn-outline:hover { border-color: var(--bleu); background: #f1f6ff; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 26px; font-size: 1.03rem; }
.btn-block { width: 100%; }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }

/* ============================= EN-TÊTE ============================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--titre); font-weight: 700; font-size: 1.16rem; color: var(--bleu-nuit); letter-spacing: -.02em; }
.brand-text small { font-size: .74rem; color: var(--gris-texte); letter-spacing: .01em; }

.main-nav { margin-left: auto; display: flex; gap: 4px; }
.main-nav a {
  padding: 9px 13px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: #24384f;
  white-space: nowrap; transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: #eef4ff; color: var(--bleu); text-decoration: none; }
.main-nav a.is-active { background: #eef4ff; color: var(--bleu); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.tel-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bleu); font-size: .95rem;
  padding: 8px 10px; border-radius: 10px; white-space: nowrap;
}
.tel-link svg { width: 18px; height: 18px; fill: var(--bleu); }
.tel-link:hover { background: #eef4ff; text-decoration: none; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--ligne); background: var(--blanc);
  border-radius: 12px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--bleu-nuit); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.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); }

/* En-tête compact sur les écrans intermédiaires (évite tout débordement) */
@media (max-width: 1470px) {
  /* l'en-tête doit toujours tenir sur une seule ligne, même à 1280-1470 px */
  .main-nav a { padding: 8px 9px; font-size: .9rem; }
  .header-inner { gap: 12px; }
  .brand-text small { font-size: .68rem; }
}
@media (max-width: 1150px) {
  .tel-link span { display: none; }
  .tel-link { padding: 8px; }
  .brand-text small { display: none; }
}

/* ============================= ACCROCHE ============================= */
.hero { position: relative; padding: 52px 0 44px; background:
  radial-gradient(900px 420px at 88% -10%, #e8f0ff 0%, rgba(232, 240, 255, 0) 70%),
  linear-gradient(180deg, #FFFFFF 0%, var(--fond) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--bleu); margin: 0 0 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 0 4px rgba(255, 199, 44, .25); }
.eyebrow-light { color: #cfe0ff; }

.hero h1 { margin-bottom: 18px; }
.h1-sub {
  display: block; margin-top: .42em; font-size: .5em; font-weight: 600; line-height: 1.3;
  color: var(--bleu); letter-spacing: -.01em; padding-left: 18px; position: relative;
}
.h1-sub::before {
  content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px;
  border-radius: 3px; background: var(--jaune);
}
.lead { font-size: 1.09rem; color: #3b4f66; max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }

.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-points li { display: flex; align-items: center; gap: 9px; font-size: .95rem; color: #33475e; }
.hero-points svg { width: 17px; height: 17px; fill: none; stroke: var(--vert); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; border-radius: var(--rayon-lg); box-shadow: var(--ombre-2); object-fit: cover; aspect-ratio: 4 / 3; }
.hero-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 13px;
  background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 12px 15px;
  box-shadow: 0 8px 24px rgba(16, 32, 51, .18);
}
.hero-card-ico { width: 38px; height: 38px; border-radius: 11px; background: #eef4ff; display: grid; place-items: center; flex: none; }
.hero-card-ico svg { width: 20px; height: 20px; fill: var(--bleu); }
.hero-card strong { display: block; font-family: var(--titre); font-size: .98rem; }
.hero-card em { display: block; font-style: normal; font-size: .85rem; color: var(--gris-texte); }

/* ============================= RÉASSURANCE ============================= */
.trust-strip { background: var(--blanc); border-block: 1px solid var(--ligne); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-block: 30px; }
.trust-item svg { width: 26px; height: 26px; fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { margin: 0; font-size: .9rem; color: var(--gris-texte); }

/* ============================= SECTIONS ============================= */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.section { padding: 76px 0; }
/* Une ancre ne doit jamais s'arrêter sous l'en-tête collant */
section[id], .anchor { scroll-margin-top: calc(var(--header-h) + 16px); }
.section-alt { background: var(--blanc); border-block: 1px solid var(--ligne); }
.section-head { max-width: 46rem; margin-bottom: 38px; }
.section-sub { color: #3b4f66; font-size: 1.02rem; margin: 0; }

/* --- Cartes services --- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 24px 22px; box-shadow: var(--ombre-1); transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: #b9cdee; box-shadow: 0 14px 34px rgba(11, 61, 145, .12); }
.card-ico { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(180deg, #eaf1ff, #dfe9ff); display: grid; place-items: center; margin-bottom: 15px; }
.card-ico svg { width: 23px; height: 23px; fill: none; stroke: var(--bleu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 7px; }
.card p { margin: 0; font-size: .95rem; color: var(--gris-texte); }
/* Une seule couleur d'icône pour tout le bloc : système cohérent */

/* --- Bandeau photo --- */
.photo-band {
  display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 20px; margin-top: 34px;
  grid-auto-rows: 430px; /* les trois photos ont exactement la même hauteur */
}
.photo-band figure { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; background: #0f1a28; height: 100%; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-band figure:hover img { transform: scale(1.04); }
.photo-band figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(180deg, rgba(9, 20, 34, 0) 0%, rgba(9, 20, 34, .82) 62%);
  color: #fff;
}
.photo-band figcaption strong { display: block; font-family: var(--titre); font-size: 1rem; }
.photo-note { margin-top: 16px; font-size: .82rem; color: var(--gris-texte); text-align: right; }
@media (max-width: 620px) { .photo-note { text-align: left; } }
.photo-band figcaption span { display: block; font-size: .87rem; color: #d5e1f2; }
.photo-wide { grid-column: span 1; }

/* ============================= DIAG ============================= */
.diag { background-color: #0a2f70; background-image: linear-gradient(160deg, #0B3D91 0%, #0a2f70 62%, #07224f 100%); color: #fff; padding: 74px 0; position: relative; overflow: hidden; }
.diag::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 44, .16), rgba(255, 199, 44, 0) 65%); pointer-events: none; }
.diag-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; position: relative; }
.diag h2 { color: #fff; }
.diag p { color: #dbe6f8; }
.diag-list { list-style: none; margin: 0 0 26px; padding: 0; }
.diag-list li { position: relative; padding-left: 30px; margin-bottom: 8px; color: #e6eefb; font-size: .97rem; }
.diag-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2.4px solid var(--jaune); border-bottom: 2.4px solid var(--jaune); transform: rotate(-45deg);
}
.diag-note { font-size: .85rem; color: #b8caea; margin: 12px 0 0; }

.diag-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--rayon-lg); padding: 24px; backdrop-filter: blur(4px); }
.diag-card-title { font-family: var(--titre); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: #cfe0ff; margin-bottom: 15px; }
.diag-col { background: rgba(255, 255, 255, .95); border-radius: 13px; padding: 14px 16px; margin-bottom: 11px; border-left: 5px solid var(--ligne); }
.diag-col:last-child { margin-bottom: 0; }
.diag-col h3 { font-size: .98rem; margin-bottom: 3px; color: var(--bleu-nuit); }
.diag-col p { margin: 0; font-size: .87rem; color: var(--gris-texte); }
.diag-red { border-left-color: #d64545; }
.diag-amber { border-left-color: var(--jaune); }
.diag-green { border-left-color: var(--vert); }

/* ============================= FORMULES ============================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-lg);
  padding: 28px 24px 24px; box-shadow: var(--ombre-1);
}
.plan:hover { border-color: #b9cdee; box-shadow: 0 14px 34px rgba(11, 61, 145, .12); }
.plan-index {
  position: absolute; top: -14px; left: 24px; width: 32px; height: 32px; border-radius: 10px;
  background: var(--bleu); color: #fff; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 700; font-size: .95rem; box-shadow: 0 6px 16px rgba(11, 61, 145, .28);
}
.plan h3 { font-size: 1.3rem; margin: 8px 0 4px; }
.plan-tag { font-size: .9rem; color: var(--bleu); font-weight: 500; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { position: relative; padding-left: 27px; margin-bottom: 9px; font-size: .95rem; color: #35495f; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2.4px solid var(--vert); border-bottom: 2.4px solid var(--vert); transform: rotate(-45deg);
}
.plans-note {
  margin: 26px 0 0; background: #fff8e6; border: 1px solid #f2dda4; border-left: 5px solid var(--jaune);
  border-radius: 12px; padding: 16px 18px; font-size: .93rem; color: #4a3c17;
}
.plans-note strong { color: #6a5200; }

/* ============================= FORFAITS ============================= */
.forfaits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.forfait {
  display: flex; flex-direction: column; background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--rayon-lg); padding: 22px 20px 18px; box-shadow: var(--ombre-1);
}
.forfait:hover { border-color: #b9cdee; box-shadow: 0 14px 34px rgba(11, 61, 145, .12); }
.forfait h3 { font-size: 1.04rem; margin: 0 0 8px; color: var(--bleu-nuit); }
.forfait-prix { display: flex; align-items: baseline; gap: 9px; margin: 0 0 10px; }
.forfait-prix strong { font-family: var(--titre); font-size: 2.05rem; line-height: 1; color: var(--bleu); }
.forfait-prix span { font-size: .82rem; color: var(--gris-texte); text-transform: uppercase; letter-spacing: .04em; }
.forfait p { margin: 0; font-size: .9rem; color: #35495f; }
.forfait-offert .forfait-prix strong { color: var(--vert); }
.forfaits-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.tier { background: #f4f8ff; border: 1px solid var(--ligne); border-radius: 14px; padding: 16px 12px; text-align: center; }
.tier strong { display: block; font-family: var(--titre); font-size: 1.45rem; color: var(--bleu); }
.tier span { font-size: .86rem; color: #35495f; }


/* ============================= MÉTHODE ============================= */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.steps li { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 26px 18px 20px; }
.steps li::before {
  content: ""; position: absolute; top: 34px; left: -18px; width: 18px; height: 2px; background: var(--ligne);
}
.steps li:first-child::before { display: none; }
.step-num {
  position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--jaune); color: #1b2a3d; display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: .92rem;
}
.steps h3 { font-size: .99rem; margin-bottom: 6px; margin-top: 4px; }
.steps p { margin: 0; font-size: .88rem; color: var(--gris-texte); }

/* ============================= ZONE ============================= */
.zone-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 22px 0 0; }
.chips li {
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 999px;
  padding: 8px 15px; font-size: .9rem; color: #33475e;
}
.zone-card { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-lg); padding: 26px 24px; box-shadow: var(--ombre-1); }
.zone-card h3 { font-size: 1.15rem; }
.zone-card p { font-size: .95rem; color: var(--gris-texte); }
.zone-lines { margin: 18px 0 20px; }
.zone-lines p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.zone-lines svg { width: 19px; height: 19px; fill: var(--bleu); flex: none; }
.zone-lines a { font-weight: 600; color: var(--bleu-nuit); }
.zone-tiny { font-size: .8rem; color: #75879c; margin: 12px 0 0; }

/* ============================= À PROPOS ============================= */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.about-photo { margin: 0; border-radius: var(--rayon-lg); overflow: hidden; box-shadow: var(--ombre-2); }
.about-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-facts { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ligne); }
.about-facts li { font-size: .95rem; color: #35495f; padding-left: 22px; position: relative; margin-bottom: 7px; }
.about-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; border-radius: 3px; background: #e3ecfb; border: 1px solid #b9cdee; }
.about-facts strong { color: var(--bleu-nuit); }
.legal-line { font-size: .84rem; color: #75879c; margin: 18px 0 0; }
.assurance { background: #eefaf3; border: 1px solid #bfe4d0; border-left: 5px solid var(--vert); border-radius: 12px; padding: 14px 16px; font-size: .92rem; color: #1f5840; }

/* ============================= FAQ ============================= */
.faq-wrap { max-width: 860px; }
.faq details {
  background: var(--fond); border: 1px solid var(--ligne); border-radius: 14px; margin-bottom: 11px; overflow: hidden;
}
.faq details[open] { background: var(--blanc); box-shadow: var(--ombre-1); }
.faq summary {
  cursor: pointer; padding: 17px 20px; font-family: var(--titre); font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--bleu); font-weight: 400; flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; font-size: .96rem; color: var(--gris-texte); }

/* ============================= CONTACT ============================= */
.contact { padding: 78px 0 84px; background:
  radial-gradient(760px 380px at 10% 0%, #e8f0ff 0%, rgba(232, 240, 255, 0) 70%), var(--fond); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-cards { display: grid; gap: 12px; margin-top: 26px; }
.contact-card--info { cursor: default; }
.contact-card {
  display: flex; align-items: center; gap: 14px; background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: 14px; padding: 15px 18px; box-shadow: var(--ombre-1); color: inherit;
}
.contact-card:hover { text-decoration: none; border-color: #b9cdee; transform: translateY(-2px); transition: transform .16s ease; }
.contact-card strong { display: block; font-family: var(--titre); font-size: 1rem; }
.contact-card em { font-style: normal; font-size: .92rem; color: var(--bleu); font-weight: 600; }

.quote-form { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-lg); padding: 28px 26px; box-shadow: var(--ombre-2); }
.quote-form h3 { font-size: 1.25rem; margin-bottom: 6px; }
.form-hint { font-size: .87rem; color: var(--gris-texte); margin-bottom: 20px; }
.field { margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: #2b3f56; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--texte); font-size: .98rem; color: var(--bleu-nuit);
  padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 11px; background: #fcfdff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px rgba(11, 61, 145, .12);
}
.field .invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.form-status { margin: 12px 0 0; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: var(--vert); }
.form-status.err { color: #c02c2c; }
.form-note { font-size: .8rem; color: #75879c; margin: 14px 0 0; }

/* ============================= PIED DE PAGE ============================= */
.site-footer { background: #0d1b2c; color: #b9c8db; padding: 52px 0 26px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #93a7c0; }
.footer-text { margin: 16px 0 0; max-width: 34em; color: #9fb1c7; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #cfdcec; }
.footer-links a:hover { color: var(--jaune); }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0 0 8px; font-size: .84rem; color: #8ea2ba; max-width: 60em; }
.footer-fine { color: #7d90a8 !important; }

/* ============================= DÉTAILS D'INTERACTION ============================= */
/* Le contenu est toujours visible : seuls les survols sont animés, pour rester
   lisible même si le navigateur n'exécute pas le JavaScript. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .contact-card:hover, .photo-band figure:hover img { transform: none; }
}

/* ============================= RESPONSIVE ============================= */
@media (max-width: 1080px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li::before { display: none; }
}

@media (max-width: 940px) {
  :root { --header-h: 66px; }
  .main-nav, .tel-link { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }

  .main-nav.is-open {
    display: flex; flex-direction: column; gap: 2px; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px; padding: 10px; box-shadow: var(--ombre-2);
  }
  .main-nav.is-open a { padding: 13px 14px; border-radius: 11px; font-size: 1rem; }

  .hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  /* sur mobile, le texte passe d'abord : on comprend qui intervient avant de voir la photo */
  .hero-figure img { aspect-ratio: 4 / 3; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .photo-band { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .photo-band .photo-tall { grid-column: span 2; }
  .photo-band img { aspect-ratio: 4 / 3; }
  .photo-band .photo-tall img { aspect-ratio: 16 / 9; }
  .diag-grid, .about-grid, .contact-grid, .zone-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-photo { order: 2; }
  .plans { grid-template-columns: 1fr; gap: 26px; }
  .forfaits, .forfaits-tiers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section, .diag, .contact { padding: 52px 0; }
  .container { padding-inline: 16px; }
  .brand-text small { font-size: .68rem; }
  .cta-row .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .cards-3 { grid-template-columns: 1fr; } /* une seule colonne de cartes sur téléphone */
  .photo-band { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .photo-band .photo-tall { grid-column: span 1; }
  .photo-band img, .photo-band .photo-tall img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .header-actions .btn-sm { display: none; }
  .hero-points { gap: 6px 16px; }
  .zone-card, .quote-form { padding: 22px 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* Mobile : barre d'action fixe (devis / appeler) */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ligne);
  backdrop-filter: blur(8px);
}
.mobile-bar .btn { flex: 1; padding: 13px 10px; font-size: .95rem; }
@media (max-width: 640px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 74px; }
}


/* ===== Bloc « Recevez la grille de prix » (formulaire mail) ===== */
.prix-form {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  color: var(--blanc);
  border-radius: var(--rayon-lg);
  padding: 34px 36px;
  margin: 0 0 40px;
  box-shadow: var(--ombre-2);
}
.prix-form h3 { font-family: var(--titre); font-size: 1.55rem; margin: 0 0 10px; color: var(--blanc); }
.prix-form-txt p { margin: 0; color: rgba(255, 255, 255, .92); line-height: 1.6; }
.prix-form form { display: flex; flex-direction: column; gap: 12px; }
.prix-form input[type="text"], .prix-form input[type="email"] {
  padding: 15px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px;
  font-size: 1rem; font-family: inherit; color: var(--bleu-nuit); background: var(--blanc);
}
.prix-form input::placeholder { color: #7C8CA3; }
.prix-form .consent { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .93); }
.prix-form .consent input { margin-top: 2px; }
.prix-form .botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-envoi {
  background: var(--jaune); color: var(--bleu-nuit); border: 0; border-radius: 10px;
  padding: 16px 22px; font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.btn-envoi:hover { background: var(--jaune-fonce); transform: translateY(-1px); }
.btn-envoi:disabled { opacity: .65; cursor: default; transform: none; }
.form-etat { margin: 0; font-size: .9rem; min-height: 1.25em; line-height: 1.4; }
.form-etat.ok { color: #C8F7D4; }
.form-etat.err { color: #FFD5D5; }
.prestations-titre {
  font-family: var(--titre); font-size: 1.05rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--bleu); margin: 6px 0 20px;
}
.cta-fin { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin: 30px 0 0; }
.cta-fin span { font-size: .95rem; color: var(--gris-texte); }
@media (max-width: 860px) {
  .prix-form { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
  .prix-form h3 { font-size: 1.3rem; }
}
