/* SMR Prestige Clean — feuille de styles unique.
   Couleurs relevées sur le logo ; les teintes utilisées pour du texte respectent un contraste AA sur blanc. */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #032A5C;        /* logo « SMR » — texte 14:1 */
  --navy-600: #0A3D7E;
  --blue: #0B6FC4;        /* liens et accents texte — 5,1:1 */
  --sky: #00B2FC;         /* logo « CLEAN » — décoratif uniquement */
  --sky-100: #E3F5FE;
  --sky-50: #F2FAFF;
  --green: #04941C;       /* feuille du logo — décoratif */
  --green-700: #12781F;   /* bouton devis, texte blanc 5,6:1 */
  --green-800: #0E6119;
  --ink: #10223D;
  --muted: #475569;       /* 7,5:1 */
  --line: #D7E3EF;
  --surface: #F4F8FB;
  --blue-bg: #C6E5FA;     /* fond de section bleu clair (texte secondaire 5,9:1) */
  --blue-bg-2: #E2F2FD;
  --header-bg: #032A5C;
  --white: #FFFFFF;
  --danger: #B42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(3 42 92 / 6%), 0 6px 20px rgb(3 42 92 / 7%);
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 80px; } }

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
h1, h2, h3, .h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.todo { background: #FFF4CC; color: #6B4E00; padding: 0 0.3em; border-radius: 4px; font-weight: 600; }

/* --- Boutons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-sm { white-space: nowrap; min-height: 44px; padding: 0.55em 1.1em; font-size: 0.95rem; }
.btn-lg { min-height: 54px; padding: 0.8em 1.7em; font-size: 1.05rem; }
.btn-cta { background: var(--green-700); color: #fff; }
.btn-cta:hover { background: var(--green-800); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.actions-center { justify-content: center; }
@media (max-width: 479px) { .actions .btn-lg { width: 100%; } }

/* --- En-tête --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 3px solid var(--sky);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgb(2 20 46 / 35%); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; background: #fff; border-radius: 12px; padding: 3px; transition: transform 0.3s; }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
@media (min-width: 768px) { .brand img { width: 52px; height: 52px; } }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; white-space: nowrap; }
.brand-smr { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.72rem; font-weight: 700; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.brand-sub span { color: var(--sky); }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.96rem;
  color: #fff; text-decoration: none; background: rgb(255 255 255 / 8%); white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.main-nav a:hover { color: var(--navy); background: #fff; transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.nav-phone { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 700 !important; }
.site-header :focus-visible { outline-color: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 12px;
  background: rgb(255 255 255 / 10%); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }
.main-nav { display: flex; align-items: center; gap: 8px; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--header-bg); border-bottom: 3px solid var(--sky); box-shadow: 0 12px 24px rgb(2 20 46 / 35%);
    padding: 12px var(--gutter) 18px;
  }
  .main-nav.is-open { display: flex; animation: menu-in 0.25s ease-out; }
  .main-nav ul { flex-direction: column; gap: 8px; }
  .main-nav a { padding: 14px 18px; font-size: 1.05rem; background: rgb(255 255 255 / 10%); }
  .nav-phone { margin-top: 8px; }
  .site-header { position: sticky; }
}
.show-xs { display: none; }
@media (max-width: 400px) { .hide-xs { display: none; } .show-xs { display: inline; } .brand-sub { font-size: 0.62rem; } .brand-smr { font-size: 1.25rem; } }

/* --- Sections -------------------------------------------------------------- */
.section { padding-block: clamp(48px, 6vw, 88px); }
.section-alt { background: linear-gradient(180deg, var(--blue-bg) 0%, var(--blue-bg-2) 100%); }
.section-blue { background: linear-gradient(135deg, #0B5FAE 0%, #0B6FC4 45%, #0391D9 100%); color: #fff; }
.section-blue h2, .section-blue .section-head p { color: #fff; }
.section-blue .benefits li { border-color: transparent; box-shadow: 0 10px 30px rgb(2 30 70 / 25%); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: 6px 14px; border-radius: 999px;
  background: var(--sky-100); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.pills .eyebrow { margin: 0; }
.eyebrow-zone { display: inline-flex; align-items: center; gap: 6px; background: #E5F4E8; color: var(--green-800); }
.eyebrow-zone .icon { width: 1.05em; height: 1.05em; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 640px; }

/* Accueil : bannière */
.hero { background: linear-gradient(180deg, var(--sky-50), #fff 85%); padding-block: clamp(32px, 6vw, 80px); }
.hero-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.hero-brand { display: block; color: var(--blue); font-size: 0.5em; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.5em; }
.hero-media { margin: 0; position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%;
  border-radius: 22px; box-shadow: var(--shadow);
}
@media (min-width: 880px) { .hero-media img { aspect-ratio: 4 / 5; max-height: 560px; } }
.hero-media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgb(3 42 92 / 86%); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
/* Bandeau photo plein écran */
.hero-full {
  position: relative; isolation: isolate; overflow: hidden; background: var(--navy);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; padding-block: 56px 88px;
}
.hero-bg { position: absolute; inset: 0; margin: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(2 24 56 / 92%) 0%, rgb(3 42 92 / 80%) 45%, rgb(3 42 92 / 35%) 100%);
}
@media (max-width: 879px) { .hero-full::before { background: linear-gradient(180deg, rgb(2 24 56 / 80%) 0%, rgb(3 42 92 / 88%) 100%); } }
.hero-bg figcaption {
  position: absolute; right: 16px; bottom: 16px;
  background: rgb(255 255 255 / 92%); color: var(--navy); font-size: 0.82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.hero-full .hero-inner { display: block; }
.hero-full .hero-text { max-width: 680px; }
.hero-full h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); }
.hero-full .hero-brand { color: var(--sky); }
.hero-full .lead { color: #E3EEF9; }
.hero-full .eyebrow { background: rgb(255 255 255 / 92%); }
.hero-full .eyebrow-zone { background: #E5F4E8; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 2px solid rgb(255 255 255 / 60%);
}
.hero-scroll .icon { transform: rotate(90deg); width: 22px; height: 22px; }
.hero-scroll:hover { background: rgb(255 255 255 / 15%); color: #fff; }
@media (max-width: 879px) { .hero-bg figcaption { display: none; } }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky-100); color: var(--navy); }

.intro-section { text-align: center; }
.intro-section p { color: var(--muted); font-size: 1.1rem; }

/* Cartes de catégories */
.category-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.category-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.category-card:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.category-card h3 { margin: 0; font-size: 1.08rem; }
.category-card h3 a { color: var(--navy); text-decoration: none; }
.category-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.category-card h3 a:focus-visible { outline: none; }
.category-card:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.category-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.category-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; background: var(--sky-100); color: var(--navy);
}
.category-icon .icon { width: 28px; height: 28px; }
.card-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.category-card-cta { background: var(--navy); border-color: var(--navy); }
.category-card-cta h3, .category-card-cta p { color: #fff; }
.category-card-cta p { opacity: 0.9; }
.category-card-cta .btn { margin-top: auto; align-self: flex-start; }
.category-card-cta:hover { border-color: var(--navy); }

/* Cartes avec photo de chantier en fond : photo et voile derrière le contenu (isolation), lien étiré au-dessus. */
.has-cover { isolation: isolate; overflow: hidden; border-color: transparent; background: var(--navy); }
.has-cover .card-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.has-cover .card-shade { position: absolute; inset: 0; z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .has-cover:hover .card-bg { transform: scale(1.05); } }
.has-cover:hover { border-color: transparent; }
.has-cover h3 a, .has-cover h2 a { color: #fff; }
.has-cover p { color: #E6EEF7; }
.has-cover .card-more { color: #fff; }
.has-cover .category-icon { background: rgb(255 255 255 / 92%); color: var(--navy); }

.category-card.has-cover { min-height: 340px; }
.category-card.has-cover .category-icon { width: 46px; height: 46px; margin-bottom: auto; }
.category-card.has-cover h3 { margin-top: 56px; }
.category-card .card-shade { background: linear-gradient(180deg, rgb(3 42 92 / 0%) 0%, rgb(3 42 92 / 30%) 16%, rgb(3 30 68 / 87%) 38%, rgb(3 30 68 / 96%) 100%); }
.has-cover h3, .has-cover h2, .has-cover p { text-shadow: 0 1px 2px rgb(0 0 0 / 35%); }
.category-card.has-cover .card-more { margin-top: 4px; }

.category-row.has-cover { padding: 28px 24px; min-height: 190px; }
.category-row.has-cover .card-bg { left: auto; width: 55%; }
.category-row.has-cover .category-row-text { max-width: 62%; }
.category-row .card-shade { background: linear-gradient(90deg, rgb(3 30 68 / 100%) 0%, rgb(3 30 68 / 100%) 45%, rgb(3 30 68 / 55%) 62%, rgb(3 30 68 / 0%) 85%); }
@media (max-width: 899px) {
  .category-row.has-cover .category-row-text { max-width: none; }
  .category-row.has-cover .card-bg { width: 100%; }
  .category-row .card-shade { background: linear-gradient(90deg, rgb(3 30 68 / 94%) 0%, rgb(3 30 68 / 80%) 100%); }
}
.category-row.has-cover h2 a, .category-row.has-cover .card-more { color: #fff; }
.category-row.has-cover p { color: #E6EEF7; }
.category-row.has-cover .tag-list li { background: rgb(255 255 255 / 16%); color: #fff; }
@media (max-width: 599px) { .category-row .card-shade { background: rgb(3 30 68 / 88%); } }

/* Avantages */
.benefits { display: grid; gap: 16px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefits li { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.benefits p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.benefit-icon { display: inline-flex; color: var(--green-700); margin-bottom: 12px; }
.benefit-icon .icon { width: 32px; height: 32px; }

/* Étapes */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 84px; border-radius: var(--radius); background: var(--sky-50); }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 1.5rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Bandeau d'appel à l'action */
.cta-band { background: var(--navy); color: #fff; padding-block: clamp(40px, 5vw, 64px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: #D6E4F5; max-width: 620px; }
.cta-band .btn-cta { background: #fff; color: var(--green-800); }
.cta-band .btn-cta:hover { background: var(--sky-100); color: var(--green-800); }

/* --- Galerie --------------------------------------------------------------- */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .photo-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-grid figure { margin: 0; }
.photo-link { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.photo-link img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.25s; }
@media (prefers-reduced-motion: no-preference) { .photo-link:hover img { transform: scale(1.03); } }
.photo-grid figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.photo-grid + .center { margin-top: 2rem; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgb(6 16 32 / 92%); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 56px 12px 12px; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; }
.lightbox-figure figcaption { color: #fff; text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lightbox-count { color: #C9D6E6; font-size: 0.85rem; display: block; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgb(255 255 255 / 14%); color: #fff;
}
.lightbox button:hover { background: rgb(255 255 255 / 26%); }
.lightbox button .icon { width: 26px; height: 26px; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; } .lightbox-inner { padding-bottom: 64px; } }

/* --- Pages intérieures ----------------------------------------------------- */
.page-hero { background: linear-gradient(135deg, var(--blue-bg) 0%, var(--blue-bg-2) 70%); padding-block: 28px clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); max-width: 860px; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }

.category-list { display: grid; gap: 14px; }
.category-row {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-row:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.category-row:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.category-row h2 { font-size: 1.25rem; margin-bottom: 0.25em; }
.category-row h2 a { color: var(--navy); text-decoration: none; }
.category-row h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.category-row h2 a:focus-visible { outline: none; }
.category-row p { margin: 0 0 10px; color: var(--muted); }
.category-row .card-more { color: var(--blue); }
.category-row .card-more .icon { width: 24px; height: 24px; }
@media (max-width: 599px) { .category-row { grid-template-columns: 1fr; } .category-row .card-more { display: none; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: 0.85rem; background: var(--surface); color: var(--ink); padding: 3px 10px; border-radius: 999px; }

.toc { margin-bottom: 2rem; }
.toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a, .link-pills a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.93rem; background: #fff;
}
.toc a:hover, .link-pills a:hover { border-color: var(--navy); }
.link-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.service-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.service { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; background: #fff; }
.service h2 { font-size: 1.25rem; }
.service > p { color: var(--ink); }
.service-meta { margin: 0 0 18px; display: grid; gap: 10px; font-size: 0.95rem; }
.service-meta dt { font-weight: 700; color: var(--navy); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.service-meta dd { margin: 2px 0 0; color: var(--muted); }
.service .btn { margin-top: auto; align-self: flex-start; }

.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 0.6fr; } }
.about-logo { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; }
.about-logo img { margin-inline: auto; }
.check-list { display: grid; gap: 10px; margin-bottom: 1.5rem; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green-700); margin-top: 3px; }
.form-aside .check-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 0.6em; }

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.card-zone { display: flex; gap: 18px; align-items: flex-start; background: var(--sky-50); border-color: var(--sky-100); }
@media (min-width: 768px) { .card-zone { grid-column: 1 / -1; } }
.card-zone p { margin: 0; color: var(--muted); }
.zone-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: #fff; }
.zone-icon .icon { width: 28px; height: 28px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--blue); margin-top: 3px; }
.contact-list .label { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.contact-list a { font-weight: 600; text-decoration: none; }

/* --- Formulaire de devis --------------------------------------------------- */
.section-form { padding-top: 32px; }
.form-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.quote-form, .form-success { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form-success h2 { color: var(--green-700); }
.form-success:focus { outline: none; }
.form-aside { background: var(--surface); border-radius: var(--radius); padding: 24px; }
@media (min-width: 960px) { .form-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.form-section { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form-section > legend { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); padding: 0; margin-bottom: 18px; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.req { color: var(--danger); }
.hint { font-weight: 400; color: var(--muted); font-size: 0.92em; }
.field-help { color: var(--muted); font-size: 0.95rem; margin: -4px 0 14px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #9AB0C6; border-radius: var(--radius-sm);
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.radios { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid #9AB0C6; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500;
}
.radio input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; flex: none; }
.radio:has(input:checked) { border-color: var(--navy); background: var(--sky-50); box-shadow: inset 0 0 0 1px var(--navy); }
.radio:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-radios[aria-invalid="true"] .radio { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.93rem; font-weight: 600; margin: 6px 0 0; }
.form-error-summary { border: 2px solid var(--danger); background: #FEF3F2; color: #7A1A12; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; }
.form-error-summary:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-error-summary p { margin: 0 0 6px; font-weight: 700; }
.form-error-summary ul { list-style: disc; padding-left: 20px; }
.form-error-summary a { color: #7A1A12; }
.privacy-note { font-size: 0.92rem; color: var(--muted); }
.form-submit .btn { width: 100%; }
@media (min-width: 640px) { .form-submit .btn { width: auto; } }
.form-status:not(:empty) { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: #FEF3F2; color: #7A1A12; border: 1px solid #F3B8B2; }
.form-status.is-pending { background: var(--sky-50); color: var(--navy); border-color: var(--line); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Pied de page ---------------------------------------------------------- */
.site-footer { background: #021E44; color: #C9D6E6; padding-top: 56px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.1fr 1.4fr 1fr; } }
.footer-brand img { width: 120px; height: 120px; background: #fff; border-radius: 18px; padding: 8px; margin-bottom: 14px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.site-footer a { color: #E6EEF7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 10px; margin-top: 20px; }
.footer-contact li { display: flex; gap: 8px; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgb(255 255 255 / 12%); padding-block: 20px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }

.page-404 { min-height: 50vh; display: grid; place-items: center; }

/* --- Réalisations : filtres par type de prestation ------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.gallery-filters[hidden] { display: none; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px;
  font: 600 0.95rem var(--font-head); color: var(--navy); cursor: pointer;
  background: #fff; border: 2px solid var(--navy); border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.filter-btn:hover { transform: translateY(-2px); background: var(--sky-100); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.filter-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--sky-100); color: var(--navy); font-size: 0.8rem; }
.filter-btn[aria-pressed="true"] .filter-count { background: var(--sky); color: var(--navy); }
.gallery-group + .gallery-group { margin-top: 3rem; }
.gallery-group-title { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.gallery-group-title::before { content: ""; width: 6px; height: 1.2em; border-radius: 3px; background: var(--sky); }
.is-filtered .gallery-group + .gallery-group { margin-top: 0; }
.gallery-group.is-entering .photo-grid li { animation: fade-up 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }

/* --- Animations ------------------------------------------------------------ */
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: hero-zoom 9s ease-out both; }
  .hero-full .hero-text > * { animation: fade-up 0.8s ease-out both; }
  .hero-full .hero-text > :nth-child(2) { animation-delay: 0.15s; }
  .hero-full .hero-text > :nth-child(3) { animation-delay: 0.3s; }
  .hero-full .hero-text > :nth-child(4) { animation-delay: 0.45s; }
  .hero-scroll { animation: bounce 2s ease-in-out infinite; }

  /* Apparition au défilement : uniquement quand le JavaScript a pris la main (classe ajoutée par js/main.js). */
  .anim [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; transition-delay: calc(var(--i, 0) * 70ms); }
  .anim [data-reveal].is-visible { opacity: 1; transform: none; }

  .btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.2s, box-shadow 0.2s; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(3 42 92 / 22%); }
  .category-card, .benefits li, .service, .card, .steps li { transition: transform 0.25s, box-shadow 0.25s, border-color 0.15s; }
  .category-card:hover, .benefits li:hover, .service:hover, .card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgb(3 42 92 / 14%); }
  .category-card:hover .category-icon { transform: scale(1.1) rotate(-6deg); }
  .category-icon { transition: transform 0.25s; }
  .steps li:hover::before { transform: scale(1.12); }
  .steps li::before { transition: transform 0.25s; }
  .card-more .icon { transition: transform 0.2s; }
  .category-card:hover .card-more .icon, .category-row:hover .card-more .icon { transform: translateX(4px); }
}
