/* menuiserie-aix-en-provence.fr — style « réseau national » : blanc, bleu nuit, accent vert, typographie sans serif, photos réelles. */
:root {
  --bg: #ffffff;
  --soft: #f3f6f9;
  --ink: #0f1c2b;
  --text: #3a4656;
  --muted: #667385;
  --line: #e2e8ef;
  --navy: #0d2440;
  --navy-2: #163a63;
  --blue: #1f5fa8;
  --accent: #12935f;
  --accent-dark: #0c7349;
  --accent-soft: #e4f4ec;
  --star: #f2b23a;
  --shadow: 0 20px 48px -20px rgba(13, 36, 64, .35);
  --shadow-sm: 0 6px 18px -8px rgba(13, 36, 64, .2);
  --title: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --r: 12px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--title); color: var(--ink); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--star); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1 var(--title); text-decoration: none; cursor: pointer; border-radius: 8px; padding: 16px 26px; border: 0; transition: background .15s, transform .15s; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(18, 147, 95, .8); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--small { padding: 12px 18px; font-size: .95rem; }

/* En-tête */
.topbar { background: var(--navy); color: #c9d6e6; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(13,36,64,.02); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.bm-bg { fill: var(--navy); }
.bm-frame { fill: none; stroke: #fff; stroke-width: 2.4; }
.bm-sill { stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.brand-name { font: 600 1.12rem/1.1 var(--title); display: grid; white-space: nowrap; letter-spacing: -0.01em; }
.brand-name b { font-weight: 800; }
.brand-name small { font: 500 .75rem var(--sans); color: var(--muted); margin-top: 3px; letter-spacing: 0; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink); font: 600 .95rem var(--title); padding: 9px 11px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--blue); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font: 700 .95rem var(--title); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 12px; right: 12px; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: grid; box-shadow: var(--shadow); }
.menu nav a { padding: 12px 14px; text-decoration: none; color: var(--ink); border-radius: 8px; font-weight: 600; }
.menu nav a:hover { background: var(--soft); }
@media (max-width: 1180px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 640px) { .site-header .btn { display: none; } .brand-name small { display: none; } }

/* Hero : photo pleine largeur, voile bleu nuit, formulaire à droite */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,25,45,.92) 0%, rgba(9,25,45,.78) 45%, rgba(9,25,45,.35) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.hero-text { display: grid; gap: 18px; align-content: center; }
.hero h1 { color: #fff; }
.hero h1 em { color: #7fe0b4; }
.hero .lead { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 56ch; }
.hero .eyebrow { color: #9fc4ec; }
.hero .eyebrow::before { background: #9fc4ec; }
.hero .checks li { color: #fff; }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; }
.hero--slim { background: var(--soft); color: var(--ink); }
.hero--slim::before { display: none; }
.hero--slim .wrap { padding-block: 52px 40px; }
.hero--slim h1 { color: var(--ink); }
.hero--slim .crumbs, .hero--slim .crumbs a { color: var(--muted); }

.devis-card { background: #fff; color: var(--text); border-radius: 14px; box-shadow: var(--shadow); padding: 22px 22px 16px; border-top: 5px solid var(--accent); min-width: 0; scroll-margin-top: 90px; }
.devis-title { font: 800 1.3rem/1.2 var(--title); color: var(--ink); letter-spacing: -0.01em; }
.devis-sub { font-size: .9rem; color: var(--muted); margin: 4px 0 10px; }
.vud-box { min-height: 520px; }
.vud-box iframe { max-width: 100%; }
.devis-note { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.devis-note svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero::before { background: linear-gradient(180deg, rgba(9,25,45,.9) 0%, rgba(9,25,45,.82) 100%); } }

.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Bandeau de réassurance */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trust li { display: flex; gap: 14px; align-items: center; }
.trust svg { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust span { display: grid; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.trust strong { font: 700 1rem var(--title); color: var(--ink); }
@media (max-width: 900px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: 1fr; } }

/* Sections */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band--paper { background: var(--soft); }
.eyebrow { font: 700 .8rem var(--title); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 66ch; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 780px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 74ch; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }

/* Cartes produits avec photo */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .services { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-body p a { position: relative; z-index: 2; }
.card-more { margin-top: auto; padding: 0 20px 18px; font: 700 .92rem var(--title); color: var(--accent-dark); }

/* Photo dans le texte */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-sm); }
.photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

/* Tableaux, faits, sources */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .8rem var(--title); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--navy); }
tr:nth-child(even) td { background: #fafcfe; }
tr:last-child td { border-bottom: 0; }
td.price { font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.choose td:first-child { font-weight: 600; color: var(--ink); }
.src { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.facts { display: grid; gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 20px; display: grid; gap: 4px; }
.fact strong { font: 800 1.05rem var(--title); color: var(--ink); }
.fact p { color: var(--muted); font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stat b { display: block; font: 800 2rem/1 var(--title); color: var(--navy); letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* Schémas SVG */
.schema-fig { margin: 28px 0 0; }
.schema-fig figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.schema { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.schema .ln { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.schema .thin { fill: none; stroke: #9aa7b6; stroke-width: 1.4; }
.schema .ocre, .schema .acc { fill: var(--accent); }
.schema .olive, .schema .nav { fill: var(--navy); }
.schema .soft { fill: var(--soft); stroke: var(--blue); stroke-width: 1.4; }
.schema .stone { fill: var(--soft); stroke: var(--line); }
.schema .arrow { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.schema .sun { fill: var(--star); }
.schema .lbl { font: 500 11px var(--sans); fill: var(--muted); }
.schema .lbl-w { font: 700 12px var(--title); fill: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--soft); color: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: .92rem; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font: 700 1.05rem var(--title); color: var(--ink); padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font: 400 1.6rem var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text); padding-bottom: 18px; }

.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.related a { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.related a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Bandeau d'appel */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 52px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d6e6; margin-top: 8px; }

/* Pied de page */
.site-footer { background: #0a1c31; color: #b9c7d8; }
.site-footer .wrap { padding-block: 52px 26px; display: grid; gap: 34px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 40px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .brand { color: #fff; }
.foot-brand .bm-bg { fill: var(--blue); }
.foot-brand .brand-name small { color: #8ea3bb; }
.foot-brand p { font-size: .93rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols h3 { font: 700 .82rem var(--title); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a, .foot-legal a { color: #b9c7d8; text-decoration: none; font-size: .94rem; }
.foot-cols a:hover, .foot-legal a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; font-size: .85rem; }
.foot-legal span { margin-right: auto; }

.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(13,36,64,.3); }
.mobile-cta .btn { width: 100%; }
@media (max-width: 760px) { .mobile-cta { display: block; } body { padding-bottom: 76px; } }
@media (max-width: 600px) { .topbar a { display: none; } }

.legal { max-width: 75ch; display: grid; gap: 14px; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
