/* Piscine du Nord — design épuré (inspiration Apple) : menu et pied de page gris clair */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --grey: #f5f5f7;
  --grey-2: #e8e8ed;
  --line: #d2d2d7;
  --bg: #fff;
  --blue: #0071e3;
  --blue-ink: #0066cc;
  --water: #2bb3c0;
  --radius: 0;
  --radius-sm: 0;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --nav-h: 60px;
  --nav-bg: #161617;
  --nav-ink: #e8e8ed;
  --foot-bg: #f5f5f7;
  --foot-bg-2: #e8e8ed;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* polices système : aucune connexion à un service tiers (RGPD) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.53 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
img, picture, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 0; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 0; padding: 12px 22px; font: 500 17px/1.2 var(--font); cursor: pointer; transition: background .2s; }
.btn:hover { background: #0077ed; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--blue-ink); }
.btn-ghost:hover { background: var(--blue-ink); color: #fff; }
.link-more { color: var(--blue-ink); font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: center; margin-top: 28px; }

/* ---------- Navigation (barre grise translucide) ---------- */
.gnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(22, 22, 23, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.gnav-in { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.gnav-logo img { height: 50px; width: auto; }
.gnav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; height: 100%; }
.gnav-item { height: 100%; display: flex; align-items: center; }
.gnav-item > a { color: var(--nav-ink); opacity: .8; font-size: 13px; padding: 0 10px; height: 100%; display: flex; align-items: center; transition: opacity .2s; }
.gnav-item > a:hover, .gnav-item.is-current > a { opacity: 1; text-decoration: none; }
.gnav-item.is-current > a { font-weight: 600; }
.gnav-item.gnav-cta > a { opacity: 1; height: auto; margin-left: 10px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); padding: 7px 14px; font-size: 12px; font-weight: 500; letter-spacing: .01em; transition: background .2s, color .2s, box-shadow .2s; }
.gnav-item.gnav-cta > a:hover { background: #fff; color: var(--nav-bg); box-shadow: inset 0 0 0 1px #fff; text-decoration: none; }
.gnav-flyout { position: absolute; left: 0; right: 0; top: var(--nav-h); background: rgba(22, 22, 23, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .22s, transform .22s, visibility 0s .22s; }
.gnav-item.has-sub:hover .gnav-flyout, .gnav-item.has-sub:focus-within .gnav-flyout { visibility: visible; opacity: 1; transform: none; transition-delay: .08s, .08s, 0s; }
.gnav-flyout-in { max-width: 1024px; margin: 0 auto; padding: 28px 22px 36px; }
.gnav-flyout-title { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.gnav-flyout-title a { color: var(--ink-3); }
.gnav-flyout ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; max-width: 620px; }
.gnav-flyout li a { display: block; color: var(--nav-ink); font-size: 21px; font-weight: 600; letter-spacing: -.02em; padding: 4px 0; }
.gnav-flyout li a:hover { color: #fff; text-decoration: none; }
.gnav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 0; cursor: pointer; position: relative; }
.gnav-burger span { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--nav-ink); transition: transform .25s; }
.gnav-burger span:first-child { top: 16px; }
.gnav-burger span:last-child { top: 23px; }
.nav-open .gnav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .gnav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.page-hero .crumbs { justify-content: center; }

/* ---------- En-têtes de page ---------- */
.page-hero { text-align: center; padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 700; letter-spacing: -.028em; max-width: 900px; margin: 0 auto .3em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--ink-2); max-width: 760px; margin: 0 auto; letter-spacing: -.015em; }
.page-hero-media { margin-top: 40px; }
.page-hero-media img { width: 100%; border-radius: 0; max-height: 560px; object-fit: cover; }
.post-hero { text-align: left; }
.post-hero .crumbs { justify-content: flex-start; }
.post-hero h1 { margin-left: 0; font-size: clamp(30px, 4.4vw, 48px); }
.post-meta { color: var(--ink-3); font-size: 14px; }

/* ---------- Accueil ---------- */
.hero { text-align: center; padding: 72px 0 0; }
.eyebrow { color: var(--water); font-weight: 600; font-size: 17px; margin-bottom: 10px; letter-spacing: 0; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; max-width: 980px; margin: 0 auto .25em; }
.hero-media { margin-top: 48px; }
.hero-media img { width: 100%; border-radius: 0; aspect-ratio: 16/8; object-fit: cover; }
.section { padding: 96px 0; }
.section-grey { background: var(--grey); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -.028em; }
.section-head p { font-size: 21px; color: var(--ink-2); line-height: 1.38; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile-big { display: flex; flex-direction: column; background: var(--grey); border-radius: 0; overflow: hidden; color: var(--ink); text-align: center; transition: transform .35s ease; }
.tile-big:hover { text-decoration: none; transform: scale(1.012); }
.tile-text { padding: 40px 28px 24px; }
.tile-text h3 { font-size: 32px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; }
.tile-text p { color: var(--ink-2); font-size: 19px; margin-bottom: 10px; }
.tile-media { margin-top: auto; }
.tile-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Cartes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--bg); border-radius: 0; overflow: hidden; color: var(--ink); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.section:not(.section-grey) .card, .related .card, .wrap > .cards .card { background: var(--grey); box-shadow: none; }
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 34px rgba(0, 0, 0, .1); }
.card-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body h2, .card-body h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.card-body p { color: var(--ink-2); font-size: 15px; margin: 0; }
.card-kicker { font-size: 12px !important; color: var(--ink-3) !important; margin-bottom: 6px !important; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Puces ---------- */
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips-center { justify-content: center; margin-top: 28px; }
.chips a { display: inline-block; background: var(--grey); color: var(--ink); border-radius: 0; padding: 8px 16px; font-size: 14px; transition: background .2s; }
.section-grey .chips a { background: #fff; }
.chips a:hover, .chips a[aria-current] { background: var(--ink); color: #fff; text-decoration: none; }
.chips small { color: var(--ink-3); margin-left: 4px; }

/* ---------- Contenus importés (grille héritée de l'ancien site) ---------- */
.legacy { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 40px; padding-bottom: 72px; }
.legacy > * { grid-column: 1 / -1; }
.legacy .one, .legacy section, .legacy > div:not([class]) { grid-column: 1 / -1; }
.legacy .two-third { grid-column: span 8; }
.legacy .three-fourth { grid-column: span 9; }
.legacy .one-half { grid-column: span 6; }
.legacy > .one-third, .legacy > article.one-third { grid-column: span 4; }
.legacy > .one-fourth { grid-column: span 3; }
.legacy aside { grid-column: span 3; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.legacy h2 { font-size: 32px; font-weight: 700; margin-top: 1.4em; }
.legacy h3 { font-size: 22px; margin-top: 1.3em; }
.legacy h4 { font-size: 19px; margin-top: 1.2em; }
.legacy > :first-child h2:first-child, .legacy > h2:first-child { margin-top: 0; }
.legacy p, .legacy li { color: #333336; }
.legacy img { border-radius: 0; margin: 8px 0 16px; }
.legacy hr { border: 0; height: 1px; background: var(--grey-2); margin: 40px 0; }
.legacy blockquote, .prose blockquote { margin: 28px 0; padding: 22px 28px; background: var(--grey); border-radius: 0; font-size: 19px; color: var(--ink); }
.legacy ul, .prose ul { padding-left: 1.2em; }
.legacy li, .prose li { margin-bottom: .35em; }

/* Grilles de cartes de l'ancien site (portfolio / carrousel) */
.legacy section, .legacy .projects-carousel { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 24px 0; }
.legacy section > article, .legacy .projects-carousel > li { background: var(--grey); border-radius: 0; overflow: hidden; transition: transform .3s; }
.legacy section > article:hover, .legacy .projects-carousel > li:hover { transform: translateY(-3px); }
.legacy section > article > a, .legacy .projects-carousel > li > a { display: block; color: var(--ink); padding-bottom: 20px; height: 100%; }
.legacy section > article > a:hover, .legacy .projects-carousel > li > a:hover { text-decoration: none; }
.legacy section > article img, .legacy .projects-carousel img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; margin: 0 0 16px; background: #fff; }
.legacy .title { display: block; font-size: 19px; font-weight: 600; margin: 0 20px 6px; letter-spacing: -.015em; }
.legacy .categories { display: block; color: var(--ink-2); font-size: 15px; margin: 0 20px; list-style: none; padding: 0; }

/* Barre latérale (sous-menus de rubrique) */
.legacy aside > h2, .legacy aside > h3, .legacy aside .widget-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 10px; font-weight: 600; }
.legacy aside > h2 a, .legacy aside > h3 a { color: var(--ink-3); }
.legacy aside ul { list-style: none; padding: 0; margin: 0 0 28px; background: var(--grey); border-radius: 0; padding: 8px; }
.legacy aside li { margin: 0; color: var(--ink); font-size: 14px; }
.legacy aside li a { display: block; padding: 7px 10px; border-radius: 0; color: var(--ink); font-size: 14px; }
.legacy aside li a:hover { background: #fff; text-decoration: none; }
.legacy aside img { margin: 6px 0; border-radius: 0; }
.legacy aside .arrow ul > li { padding: 6px 10px 0; font-weight: 600; font-size: 13px; }
.cta-inline { margin: 8px 0 28px; }
.cta-inline .btn { width: 100%; text-align: center; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--grey-2); text-align: left; }
th { font-weight: 600; background: var(--grey); }

/* ---------- Articles ---------- */
.prose { padding-bottom: 56px; font-size: 19px; line-height: 1.6; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose img { border-radius: 0; margin: 24px auto; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 0; }
.post-foot { padding-bottom: 64px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--grey-2); padding-top: 24px; }
.post-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.post-nav small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; margin-bottom: 4px; }
.post-nav-next { text-align: right; grid-column: 2; }
.related { padding-bottom: 80px; }
.related h2 { font-size: 32px; margin-bottom: 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 48px 0 80px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; background: var(--grey); color: var(--ink); font-size: 15px; }
.pager span { background: var(--ink); color: #fff; }

/* ---------- Pages ville ---------- */
.local { padding-bottom: 72px; }
.local-card { background: var(--grey); border-radius: 0; padding: 36px 40px; margin-bottom: 32px; }
.local-card h2 { font-size: 28px; }
.steps { margin: 20px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
.local-links h3 { font-size: 19px; margin-bottom: 14px; }
.local-links small { color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding-bottom: 96px; align-items: start; }
.tile { background: var(--grey); border-radius: 0; padding: 28px; }
.contact-info { display: grid; gap: 16px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 21px; }
.big-link { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin: 0 0 16px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 17px var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.field [aria-invalid="true"] { border-color: #e30000; }
.notice { padding: 14px 18px; border-radius: 0; }
.notice-ok { background: #e3f7e8; color: #135c26; }
.notice-err { background: #fdecec; color: #8a1111; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band { background: var(--bg); border-top: 1px solid var(--grey-2); text-align: center; padding: 88px 0; }
.cta-band h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.028em; }
.cta-band p { color: var(--ink-2); font-size: 19px; }
.cta-band .cta-actions { margin-top: 24px; }

/* ---------- Pied de page gris ---------- */
.gfoot { background: var(--foot-bg); color: var(--ink-2); font-size: 12px; line-height: 1.5; padding: 0; overflow: hidden; }
.cta-band + .gfoot .wrap { border-top: 1px solid var(--line); }
.gfoot .wrap { padding-top: 20px; }
.crumbs-foot { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.crumbs-foot a, .crumbs-foot span { color: var(--ink-2); }
.crumbs-home img { height: 20px; width: auto; }
.gfoot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 8px 0 24px; }
.gfoot h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: -.005em; }
.gfoot ul { list-style: none; margin: 0; padding: 0; }
.gfoot li { margin-bottom: 8px; }
.gfoot a { color: var(--ink-2); }
.gfoot a:hover { color: var(--ink); }
.gfoot-contact { border-top: 1px solid var(--line); padding: 16px 0; }
.gfoot-contact p { margin: 0; }
.gfoot-legal { background: var(--foot-bg-2); box-shadow: 0 0 0 100vmax var(--foot-bg-2); clip-path: inset(0 -100vmax); padding: 16px 0 20px; margin-top: 4px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.gfoot-legal p { margin: 0; }
.gfoot-legal ul { display: flex; flex-wrap: wrap; }
.gfoot-legal li { margin: 0; padding: 0 10px; border-left: 1px solid var(--line); }
.gfoot-legal li:first-child { border-left: 0; padding-left: 0; }

/* ---------- Visionneuse photos ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb img { max-height: 90vh; width: auto; border-radius: 0; }
.lb button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 0; font-size: 22px; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }

/* ---------- Responsive ---------- */
@media (max-width: 1068px) {
  .legacy .three-fourth, .legacy .two-third { grid-column: span 8; }
  .legacy aside { grid-column: span 4; }
}
@media (max-width: 860px) {
  :root { --nav-h: 56px; }
  .gnav-logo img { height: 42px; }
  .gnav-burger { display: block; }
  .gnav-menu { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--nav-bg); flex-direction: column; align-items: stretch; height: auto; padding: 16px 32px 40px; gap: 0; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
  .nav-open .gnav-menu { visibility: visible; opacity: 1; transition: opacity .25s; }
  .nav-open { overflow: hidden; }
  .gnav-item { height: auto; flex-direction: column; align-items: stretch; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .gnav-item > a { font-size: 24px; font-weight: 600; opacity: 1; padding: 14px 0; }
  .gnav-flyout { position: static; visibility: visible; opacity: 1; transform: none; background: none; backdrop-filter: none; border: 0; display: none; }
  .gnav-item.is-open .gnav-flyout { display: block; }
  .gnav-flyout-in { padding: 0 0 16px; }
  .gnav-flyout-title { display: none; }
  .gnav-flyout ul { columns: 1; }
  .gnav-flyout li a { font-size: 17px; font-weight: 500; color: #a1a1a6; }
  .gnav-item.gnav-cta { border: 0; padding-top: 24px; }
  .gnav-item.gnav-cta > a { margin: 0; justify-content: center; font-size: 17px; padding: 12px; }
  .legacy { display: block; }
  .legacy aside { position: static; margin-top: 32px; }
  .tiles { grid-template-columns: 1fr; }
  .contact, .form-grid { grid-template-columns: 1fr; }
  .gfoot-cols { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .local-card { padding: 28px 24px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap, .wrap-wide, .wrap-narrow, .gnav-in { padding: 0 16px; }
  .page-hero { padding: 36px 0 28px; }
  .hero { padding-top: 44px; }
  .hero-media img { aspect-ratio: 4/3; }
  .gfoot-cols { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { grid-column: 1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Plan du site ---------- */
.legacy .sitemap { columns: 3 260px; column-gap: 40px; }
.sitemap-block { break-inside: avoid; margin: 0 0 32px; display: block !important; }
.legacy .sitemap h2 { font-size: 19px; margin: 0 0 10px; }
.legacy .sitemap h2 a { color: var(--ink); }
.sitemap ul { list-style: none; padding: 0; margin: 0; }
.sitemap ul ul { padding-left: 14px; margin: 4px 0 6px; border-left: 1px solid var(--grey-2); }
.sitemap li { font-size: 14px; margin: 0 0 5px; }

.gfoot-brand { display: flex; align-items: center; gap: 16px; }
.gfoot-brand img { height: 44px; width: auto; flex: none; }

/* ---------- Galerie Réalisations ---------- */
.legacy .gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; }
.gallery-filter button { font: 500 14px var(--font); background: var(--grey); color: var(--ink); border: 0; padding: 9px 18px; cursor: pointer; }
.gallery-filter button:hover { background: var(--grey-2); }
.gallery-filter button.is-active { background: var(--ink); color: #fff; }
.legacy .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.gallery-item { margin: 0; background: var(--grey); display: flex; flex-direction: column; }
.gallery-item[hidden] { display: none; }
.legacy .gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; transition: opacity .2s; }
.gallery-item > a:hover img { opacity: .88; }
.gallery-item figcaption { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gallery-item figcaption strong { font-size: 15px; line-height: 1.3; color: var(--ink); }
.gallery-item figcaption small { color: var(--ink-3); font-size: 12px; order: 3; }
.gallery-item figcaption .link-more { font-size: 14px; margin-top: auto; padding-top: 6px; order: 4; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-fig img { max-height: 80vh; }
.lb-cap { color: #fff; text-align: center; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.lb-cap a { color: #6cb4ff; font-weight: 500; }

/* ---------- Boutons : coins légèrement arrondis + effet reflet ---------- */
.btn, .gnav-item.gnav-cta > a, .gallery-filter button { border-radius: 6px; position: relative; overflow: hidden; isolation: isolate; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-size: 15px; padding: 12px 22px; background: linear-gradient(180deg, #2a8ff2 0%, #0071e3 52%, #0064cc 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 60, 130, .25); transition: box-shadow .25s, transform .15s, background .25s; }
.btn:hover { background: linear-gradient(180deg, #3a9af5 0%, #0a7aeb 52%, #006ad6 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 4px 14px rgba(0, 90, 190, .3); }
.btn:active { transform: translateY(1px); }
/* reflet : bande de lumière qui traverse le bouton au survol */
.btn::after, .gnav-item.gnav-cta > a::after, .gallery-filter button::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%); transform: skewX(-20deg); transition: left .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none; z-index: 1; }
.btn:hover::after, .gnav-item.gnav-cta > a:hover::after, .gallery-filter button:hover::after { left: 130%; }
.btn-ghost { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(240, 244, 250, .9)); color: var(--blue-ink); box-shadow: inset 0 0 0 1px rgba(0, 102, 204, .45), inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .06); }
.btn-ghost:hover { background: linear-gradient(180deg, #fff, #eaf2fc); color: var(--blue-ink); box-shadow: inset 0 0 0 1px var(--blue-ink), 0 4px 12px rgba(0, 90, 190, .15); }
.btn-ghost::after { background: linear-gradient(115deg, transparent 0%, rgba(0, 113, 227, .14) 50%, transparent 100%); }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.gnav-item.gnav-cta > a { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.gnav-item.gnav-cta > a::after { background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .35) 50%, transparent 100%); }
.gallery-filter button { background: linear-gradient(180deg, #fbfbfd, #ececf0); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), inset 0 1px 0 #fff; }
.gallery-filter button.is-active { background: linear-gradient(180deg, #3a3a3d, #1d1d1f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
/* bouton de la barre latérale : une seule ligne */
.legacy aside .cta-inline .btn, .cta-inline .btn { width: 100%; font-size: 14px; padding: 11px 12px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .btn::after, .gnav-item.gnav-cta > a::after, .gallery-filter button::after { display: none; } }

/* ---------- Style B : bleu compact avec flèche ---------- */
.btn { font-size: 14px; padding: 11px 20px; letter-spacing: .01em; gap: 10px; }
.btn::before { content: "→"; order: 2; display: inline-block; transition: transform .25s ease; position: relative; z-index: 2; }
.btn:hover::before { transform: translateX(3px); }
.btn-sm { font-size: 12px; padding: 7px 14px; gap: 8px; }
/* secondaire : simple lien bleu souligné */
.btn-ghost, .btn-ghost:hover { background: none; box-shadow: none; border-radius: 0; color: var(--blue-ink); padding: 11px 0; border-bottom: 1px solid currentColor; overflow: visible; }
.btn-ghost:hover { color: var(--blue); }
.btn-ghost::before, .btn-ghost::after { content: none; }
/* menu : « Devis gratuit » en bleu compact */
.gnav-item.gnav-cta > a { background: linear-gradient(180deg, #2a8ff2 0%, #0071e3 52%, #0064cc 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 3px rgba(0, 0, 0, .3); padding: 7px 14px; font-size: 12px; }
.gnav-item.gnav-cta > a:hover { background: linear-gradient(180deg, #3a9af5 0%, #0a7aeb 52%, #006ad6 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 8px rgba(0, 113, 227, .45); }
.gnav-item.gnav-cta > a::after { background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%); }

/* Cartes héritées avec image et texte en deux liens séparés (ex. brochures) */
.legacy section > article { display: flex; flex-direction: column; }
.legacy section > article > a { height: auto; padding-bottom: 0; }
.legacy section > article > a:last-child { padding-bottom: 20px; flex: 1; }
.legacy section > article > a + a.project-meta { padding-top: 0; }
.legacy a[href$=".pdf"] img { object-fit: contain; background: #fff; padding: 12px; }

/* ---------- Questions fréquentes (accordéon) ---------- */
.legacy .faq, .prose .faq { grid-column: 1 / -1; margin: 48px 0 8px; display: block; }
.legacy .faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--grey-2); }
.faq details:last-child { border-bottom: 1px solid var(--grey-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 18px; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 300; color: var(--blue-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { margin: 0 0 18px; color: #333336; }
/* encadré « à retenir » */
.legacy .key-facts { grid-column: 1 / -1; background: var(--grey); border-left: 3px solid var(--water); padding: 20px 24px; margin: 24px 0; }
.legacy .key-facts h3 { margin-top: 0; font-size: 18px; }
.legacy .key-facts ul { margin: 0; }

/* ---------- Index alphabétique du glossaire ---------- */
.legacy .az { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin: 0 0 40px; }
.az a, .az span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.az a { background: linear-gradient(180deg, #2a8ff2 0%, #0071e3 52%, #0064cc 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 60, 130, .25); position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s; }
.az a::after { content: ""; position: absolute; top: 0; left: -90%; width: 60%; height: 100%; background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); transition: left .6s; }
.az a:hover { text-decoration: none; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 10px rgba(0, 90, 190, .3); }
.az a:hover::after { left: 130%; }
.az a[aria-current] { background: linear-gradient(180deg, #3a3a3d, #1d1d1f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.az .is-empty { background: var(--grey); color: #c7c7cc; cursor: default; }

/* ---------- Glossaire : index et barre latérale ---------- */
.legacy .glossary-intro { font-size: 19px; color: var(--ink-2); max-width: 760px; margin: 0 0 28px; }
.legacy .glossary-index { grid-column: 1 / -1; columns: 4 200px; column-gap: 32px; }
.glossary-letter { break-inside: avoid; margin: 0 0 28px; display: block !important; }
.legacy .glossary-letter h2 { font-size: 28px; margin: 0 0 8px; color: var(--blue-ink); }
.glossary-letter ul { list-style: none; padding: 0; margin: 0; }
.glossary-letter li { margin: 0 0 6px; font-size: 15px; }
.legacy aside a[aria-current] { background: #fff; font-weight: 600; }
.legacy aside > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 10px; }
.legacy .term-photo { margin: 0 0 24px; }
.legacy .term-photo img { width: auto; max-width: 100%; margin: 0; }

/* ---------- Bandeau de consentement ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 720px; margin: 0 auto; background: rgba(22, 22, 23, .96); color: #e8e8ed; padding: 18px 20px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); font-size: 14px; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: #6cb4ff; }
.consent-actions { display: flex; gap: 10px; }
.consent button { font: 500 14px var(--font); border: 0; border-radius: 6px; padding: 9px 18px; cursor: pointer; }
.consent-no { background: #3a3a3d; color: #fff; }
.consent-yes { background: var(--blue); color: #fff; }
.legacy .dept-cities { grid-column: 1 / -1; margin-top: 40px; }
.legacy .dept-group { display: block !important; margin: 0 0 20px; }
.legacy .dept-group h3 { font-size: 17px; margin: 0 0 10px; }

/* Accueil : grilles calibrées pour les photos d'origine (300×180 et 220×140) */
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-width: 980px; margin: 0 auto; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-width: 980px; margin: 0 auto; }
.card-sm .card-body { padding: 14px 16px 16px; }
.card-sm .card-body h3 { font-size: 16px; margin: 0; }
.sub-head { text-align: center; font-size: 24px; margin: 56px 0 24px; }
.hero .hero-media img { aspect-ratio: auto; max-width: 940px; margin: 0 auto; }
.cta-hours { font-size: 15px; color: var(--ink-3); }

/* Téléphone masqué en dehors des heures d'ouverture (classe posée par le script de l'en-tête) */
.tel-closed .tel-only { display: none !important; }
.legacy .chips { padding-left: 0; }
/* Un bloc pleine largeur placé après une colonne + barre latérale ne doit pas passer sous la barre collante */
.legacy > .three-fourth ~ :not(aside), .legacy > .two-third ~ :not(aside) { position: relative; z-index: 1; background: var(--bg); }
.sitemap details { display: inline; }
.sitemap summary { display: inline; cursor: pointer; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.sitemap summary::-webkit-details-marker { display: none; }
.sitemap summary::after { content: " ▾"; }
.sitemap details[open] summary::after { content: " ▴"; }
.sitemap details ul { margin-top: 6px; }
.sitemap-block p { font-size: 14px; margin: 0; }
