/* Azur Climelec, feuille de style unique. Thème clair volontairement fixe. */

:root {
  --ink: #16232d;
  --azur: #0e5a8a;
  --azur-deep: #0b3a57;
  --azur-night: #08283d;
  --cuivre: #c8662b;
  --cuivre-dark: #a44f1c;
  --ground: #f6f7f5;
  --paper: #ffffff;
  --stone: #e2e6e5;
  --muted: #5a6770;
  --on-dark: #eef3f6;
  --on-dark-muted: #b7c6d1;
  --ok: #1e7f4f;
  --err: #b3261e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 1.9rem;
  --step-4: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem);

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 10px 30px rgba(11, 58, 87, 0.10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color-scheme: light;
}

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

a { color: var(--azur); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azur-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-4); font-weight: 700; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; }

p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child { margin-bottom: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 0.9rem;
}
.on-dark .eyebrow { color: #e79b62; }

:focus-visible { outline: 3px solid var(--cuivre); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: 8px 14px; z-index: 100; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--cuivre); color: #fff; }
.btn-primary:hover { background: var(--cuivre-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--azur); border-color: var(--azur); }
.btn-secondary:hover { background: var(--azur); color: #fff; }
.on-dark .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.on-dark .btn-secondary:hover { background: #fff; color: var(--azur-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 66px; height: 40px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { color: var(--azur); }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 0.5rem 0.75rem; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ground); color: var(--azur-deep); }
.nav .has-menu { position: relative; }
.nav .has-menu > a::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav .submenu {
  position: absolute; left: 0; top: 100%; padding-top: 6px; display: none; min-width: 240px;
}
.nav .submenu ul { flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.4rem; gap: 0; }
.nav .submenu a { display: block; padding: 0.55rem 0.8rem; font-weight: 500; }
.nav .has-menu:hover .submenu, .nav .has-menu:focus-within .submenu { display: block; }
.header-phone { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid var(--stone); border-radius: var(--radius);
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-phone { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--stone); box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0.6rem var(--gutter) 1rem; gap: 0; }
  .nav a { display: block; padding: 0.75rem 0.5rem; }
  .nav .submenu { display: block; position: static; padding: 0 0 0 1rem; }
  .nav .submenu ul { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .nav .has-menu > a::after { display: none; }
  .nav .phone-item { margin-top: 0.6rem; }
  .nav .phone-item a { justify-content: center; }
}
@media (min-width: 1001px) { .nav .phone-item { display: none; } }

/* Visuel principal */
.hero {
  position: relative; color: var(--on-dark); background: var(--azur-night);
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 40, 61, 0.92) 0%, rgba(8, 40, 61, 0.78) 45%, rgba(8, 40, 61, 0.35) 100%);
}
.hero .wrap { padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero-inner { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #f0a874; }
.hero p { font-size: var(--step-1); color: var(--on-dark); max-width: 56ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-note { margin-top: 1.6rem; font-size: 0.95rem; color: var(--on-dark-muted); }
.hero-note a { color: #fff; font-weight: 600; }

.page-hero { background: var(--azur-deep); color: var(--on-dark); }
.page-hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lede { color: var(--on-dark-muted); }
.page-hero .eyebrow { color: #e79b62; }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); font-size: 0.9rem; padding: 0.55rem 0.9rem; }
.page-hero .btn-ghost:hover { border-color: #fff; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.breadcrumb { font-size: 0.9rem; color: var(--on-dark-muted); margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumb a { color: var(--on-dark); }

/* Bandeau de réassurance */
.reassurance { background: var(--paper); border-bottom: 1px solid var(--stone); }
.reassurance ul {
  list-style: none; margin: 0; padding: 1.1rem 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem 2rem;
}
.reassurance li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.98rem; }
.reassurance svg { width: 26px; height: 26px; flex: none; color: var(--azur); margin-top: 1px; }
.reassurance strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.reassurance span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); }
.section-alt { background: var(--paper); border-block: 1px solid var(--stone); }
.section-dark { background: var(--azur-deep); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--on-dark); }

/* Cartes de services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.service {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--stone);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service h3 { margin: 0; font-size: 1.3rem; }
.service p { color: var(--muted); margin: 0; }
.service .more { margin-top: auto; padding-top: 0.6rem; font-weight: 700; color: var(--azur); font-family: var(--font-display); font-size: 0.95rem; }
.service .more::after { content: " →"; }

/* Deux colonnes */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split.reverse .split-media { order: -1; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } .split-media img { aspect-ratio: 4 / 3; } }

.values { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.values li { display: grid; grid-template-columns: 30px 1fr; gap: 0.8rem; align-items: start; }
.values svg { width: 26px; height: 26px; color: var(--cuivre); margin-top: 2px; }
.values strong { display: block; font-family: var(--font-display); }
.values span { color: var(--muted); }

/* Galerie */
/* Galerie en colonnes : chaque photo garde son format, portrait ou paysage, sans vide sous les cartes */
.gallery { columns: 3; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 0.75rem 0.95rem; font-size: 0.93rem; color: var(--muted); }
.gallery figcaption strong { color: var(--ink); font-weight: 600; display: block; }
.gallery .tall img { aspect-ratio: 3 / 4; }

/* Avant / après : deux photos côte à côte, étiquette sur chacune */
.section-alt + .section-alt { background: var(--ground); border-top: 0; }
.before-after { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.4rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pair figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair figcaption {
  position: absolute; top: 0.7rem; left: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 3px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(22, 35, 45, 0.82); color: #fff;
}
.pair figcaption.after { background: var(--cuivre); }

/* Zone d'intervention */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.zone-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; }
.zone-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--stone); font-weight: 600; }
.zone-list li small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 800px) { .zone { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .zone-list { grid-template-columns: 1fr; } }

/* Appel à l'action */
.cta { background: var(--azur-night); color: var(--on-dark); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta h2 { color: #fff; margin: 0 0 0.4rem; font-size: var(--step-3); }
.cta p { margin: 0; color: var(--on-dark-muted); max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Étapes (vraie séquence : devis puis chantier puis suivi) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--azur); color: #fff; font-family: var(--font-display); font-weight: 800; margin-bottom: 0.9rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted); margin: 0; }

/* Page service */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside { position: sticky; top: 90px; display: grid; gap: 1rem; }
.aside-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.aside-card h3 { font-size: 1.05rem; margin-bottom: 0.7rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0; }
.aside-card li { padding: 0.45rem 0; border-top: 1px solid var(--stone); }
.aside-card li:first-child { border-top: 0; padding-top: 0; }
.aside-card a { text-decoration: none; font-weight: 600; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.aside-card .tel { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); text-decoration: none; display: block; margin: 0.3rem 0 0.6rem; }
.aside-card p { color: var(--muted); font-size: 0.95rem; }
.service-photo { margin: 1.6rem 0 2rem; }
.service-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.checklist { list-style: none; padding: 0; margin: 0.6rem 0 1.4rem; display: grid; gap: 0.55rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--ok); margin-top: 3px; }
.faq details { border-top: 1px solid var(--stone); padding: 0.2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--stone); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; padding: 0.85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cuivre); font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 0.9rem; max-width: 65ch; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } .aside { position: static; } }

/* Contact et formulaire */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.form { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #c9d1d4; border-radius: var(--radius);
  padding: 0.7rem 0.85rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--azur); outline: 3px solid rgba(14, 90, 138, 0.18); outline-offset: 0; }
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.93rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--azur); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-actions small { color: var(--muted); }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #e6f4ec; color: var(--ok); border: 1px solid #b9dfc8; }
.form-status.err { display: block; background: #fbeae9; color: var(--err); border: 1px solid #f0bcb8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-card { background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-bottom: 1.2rem; }
.contact-card h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.contact-card dt { font-weight: 600; color: var(--muted); }
.contact-card dd { margin: 0; }
.contact-card .tel { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--ink); }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: 3rem 2rem; font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name span { color: #7fc0e8; }
.site-footer .brand-sub { color: var(--on-dark-muted); }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.88rem; }

/* Bouton d'appel mobile */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: 1px solid var(--stone); padding: 0.6rem var(--gutter);
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom)); gap: 0.6rem;
  }
  .call-bar .btn { flex: 1; justify-content: center; padding-inline: 0.8rem; }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service, .btn { transition: none; }
}
