/* =========================================================
   Amaury Courtes — Plomberie, chauffage, salle de bain
   Palette : ardoise bretonne + porcelaine + couleurs du logo (bleu à l'année, rose en octobre)
   ========================================================= */
:root {
  --ink: #1C2733;          /* ardoise */
  --ink-soft: #384554;
  --muted: #5A6676;
  --porcelain: #F3F5F7;    /* faïence blanche */
  --white: #FFFFFF;
  --grout: #D6DCE3;        /* joints */

  /* Thème bleu (logo de l'année) */
  --brand: #1192D3;        /* bleu du logo : décor, icônes */
  --brand-strong: #0B6FA6; /* boutons, liens, texte (contraste AA) */
  --brand-deep: #08557F;   /* survol */
  --brand-tint: #E4F2FA;
  --sun: #F8E00C;          /* jaune du logo */
  --sun-strong: #C9A800;   /* étoiles sur fond clair */
  --sun-tint: #FEF9D8;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;
  --tile-gap: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Thème rose (Octobre rose) */
[data-theme="rose"] {
  --brand: #EC2A7C;
  --brand-strong: #C8155F;
  --brand-deep: #9E0F4B;
  --brand-tint: #FDE8F1;
  --sun: #F8C800;
  --sun-strong: #C99A00;
  --sun-tint: #FEF5D6;
}
[data-theme="bleu"] .logo-rose, [data-theme="rose"] .logo-bleu { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- Typo ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
h1 {
  font-size: clamp(2.3rem, 4.6vw, 2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -.03em;
}
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 750;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.025em;
}
h3 { font-size: 1.25rem; font-weight: 700; font-variation-settings: "wdth" 104; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .8em 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.link { font-weight: 650; color: var(--brand-strong); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 2px; }
.link:hover { color: var(--brand-deep); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--grout); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 96px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 76px; width: auto; }
@media (max-width: 560px) { .logo { height: 62px; } }
.brand-footer .logo { height: 96px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav-list a:hover { background: var(--porcelain); }
.nav-list .nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav-list .nav-cta:hover { background: var(--brand-strong); }
.nav-toggle { display: none; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone svg { width: 18px; height: 18px; fill: var(--brand); }

@media (max-width: 960px) {
  .header-phone { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--porcelain); cursor: pointer;
  }
  .nav-toggle i { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #fff;
    border-bottom: 1px solid var(--grout);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--porcelain); font-size: 1.1rem; }
  .nav-list .nav-cta { margin: 12px 0 0; text-align: center; border-radius: 999px; padding: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { max-width: 12em; }

/* Fiche d'identité de l'entreprise, posée comme une grille de carreaux */
.fiche {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: clamp(28px, 4vw, 40px) 0 0;
  border-top: 2px solid var(--ink);
}
.fiche > div { padding: 14px 20px 16px 0; border-bottom: 1px solid var(--grout); }
.fiche > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--grout); }
.fiche dt { font-size: .85rem; color: var(--muted); margin-bottom: 2px; }
.fiche dd { margin: 0; font-weight: 600; line-height: 1.35; }

/* Le « comptoir » : téléphone + horaires du jour */
.desk {
  display: grid; grid-template-columns: auto 1fr; align-items: stretch;
  margin-top: 28px; border-radius: var(--radius-m); overflow: hidden;
  background: var(--porcelain);
}
.desk-phone {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 18px 24px; background: var(--brand-strong); color: #fff; text-decoration: none;
  transition: background-color .2s;
}
.desk-phone:hover { background: var(--brand-deep); }
.desk-phone span { font-size: .88rem; opacity: .9; }
.desk-phone b {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; font-variation-settings: "wdth" 112;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.today { padding: 14px 20px 14px; display: grid; gap: 8px; align-content: center; min-width: 0; }
.today-day { font-weight: 650; font-size: .95rem; }
.today-hours { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Frise de la journée : 8h → 19h, créneaux d'ouverture en couleur, repère « maintenant » */
.day-bar { position: relative; height: 10px; border-radius: 999px; background: var(--grout); }
.day-bar .slot { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--brand); }
.day-bar .now {
  position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px;
  background: var(--ink); border-radius: 2px;
}
.day-bar .now::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--ink);
}
.today.is-closed .day-bar .slot { background: #B9C2CC; }

.hero-link {
  display: inline-block; margin-top: 18px; font-weight: 650; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: .3em;
}
.hero-link:hover { color: var(--brand-strong); }

@media (max-width: 560px) {
  .fiche { grid-template-columns: 1fr; }
  .fiche > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .desk { grid-template-columns: 1fr; }
}

/* Le mur de carrelage : l'élément signature du site */
.tile-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "a a b"
    "a a c"
    "d e f";
  gap: var(--tile-gap);
  padding: var(--tile-gap);
  aspect-ratio: 1 / 1;
  background: var(--grout);
  border-radius: var(--radius-m);
}
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; }
.t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; }

.tile {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 3px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(10px, 1.6vw, 18px);
  text-decoration: none;
  container-type: inline-size;
}
/* Photo + motif faïence en secours si la photo n'est pas encore déposée */
.tile-photo {
  background-color: #E9EDF1;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.9) calc(50% - 1px), rgba(255,255,255,.9) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(255,255,255,.9) calc(50% - 1px), rgba(255,255,255,.9) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(135deg, #EEF1F4, #DCE3EA);
  background-size: 34% 34%, 34% 34%, cover;
  background-position: center;
}
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo figcaption { position: relative; z-index: 1;
  align-self: flex-start;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: .78rem; font-weight: 600; line-height: 1.3;
  padding: 5px 10px; border-radius: 999px;
}
.t-c figcaption, .t-f figcaption { display: none; }

.tile-rating { background: var(--brand-strong); color: #fff; justify-content: space-between; transition: background-color .2s; }
.tile-rating:hover { background: var(--brand-deep); }
.rating-num { font-size: clamp(2rem, 30cqi, 3.4rem); font-weight: 850; font-variation-settings: "wdth" 115; line-height: 1; letter-spacing: -.03em; }
.tile-rating .stars { color: var(--sun); letter-spacing: 2px; font-size: clamp(.8rem, 11cqi, 1.1rem); }
.rating-sub { font-size: clamp(.72rem, 10cqi, .92rem); font-weight: 600; }

.tile-handibat { background: var(--sun); color: var(--ink); justify-content: space-between; }
.tile-handibat svg { width: clamp(26px, 24cqi, 42px); height: auto; fill: var(--ink); }
.tile-handibat span { font-size: clamp(.68rem, 9cqi, .86rem); line-height: 1.25; }
.tile-handibat b { display: block; font-size: clamp(.78rem, 10.5cqi, 1rem); font-weight: 750; margin-bottom: 2px; }

.tile-year { background: var(--ink); color: #fff; justify-content: space-between; }
.tile-year .year { font-size: clamp(1.6rem, 26cqi, 2.8rem); font-weight: 850; font-variation-settings: "wdth" 120; letter-spacing: -.03em; line-height: 1; color: var(--sun); }
.tile-year span:last-child { font-size: clamp(.68rem, 9cqi, .86rem); line-height: 1.25; }

/* La pose des carreaux au chargement : le seul mouvement automatique du site */
@media (prefers-reduced-motion: no-preference) {
  .tile-wall .tile { animation: pose .7s var(--ease) both; }
  .t-a { animation-delay: .05s !important; } .t-b { animation-delay: .17s !important; }
  .t-c { animation-delay: .29s !important; } .t-d { animation-delay: .41s !important; }
  .t-e { animation-delay: .53s !important; } .t-f { animation-delay: .65s !important; }
}
@keyframes pose {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tile-wall { max-width: 560px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); max-width: 34em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { background: var(--porcelain); }
.service-lead {
  display: grid; grid-template-columns: 1fr 1.1fr;
  background: var(--white); border-radius: var(--radius-m);
  padding: 12px; margin-bottom: 40px;
}
.service-media {
  min-height: 360px;
  background-color: #E5EAEF;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 80px 80px, 80px 80px;
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius-m) - 4px);
  background-position: center;
}
.service-body { padding: clamp(20px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.service-lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; font-variation-settings: "wdth" 112; }
.service-lead p { color: var(--ink-soft); max-width: 34em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-size: .9rem; font-weight: 600; }
@media (max-width: 760px) {
  .service-lead { grid-template-columns: 1fr; }
  .service-media { min-height: 220px; }
}

.service-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.service { padding: 8px 24px 8px 8px; }
.service + .service { padding-left: 24px; border-left: 1px solid var(--grout); }
.service-icon { width: 34px; height: 34px; fill: var(--brand); margin-bottom: 16px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--grout); }
}
@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 24px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--grout); }
}

/* ---------- Réalisations ---------- */
.works { background: var(--ink); color: #fff; }
.works-grid { display: grid; grid-template-columns: minmax(0, 30em) auto; justify-content: center; gap: clamp(32px, 8vw, 128px); align-items: center; }
.works-text { max-width: 30em; }
.works-text > p { color: #B8C1CC; margin: 18px 0 24px; }
.works-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid #3A4554; }
.works-list li { padding: 12px 0 12px 28px; border-bottom: 1px solid #3A4554; position: relative; }
.works-list li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: var(--sun); border-radius: 2px;
}
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }

/* Photos verticales (957 × 2048) recadrées au centre dans un cadre 3:5 */
.ba {
  position: relative; aspect-ratio: 3 / 5;
  height: min(72vh, 620px); max-width: 100%;
  border-radius: var(--radius-m); overflow: hidden;
  background: #2B3542; user-select: none; --pos: 50%;
}
@media (max-width: 860px) {
  .works-grid { grid-template-columns: 1fr; }
  .ba { height: auto; width: min(100%, 360px); justify-self: center; }
}
.ba-pane {
  position: absolute; inset: 0;
}
.ba-after { background-color: #DDE3E9; }
.ba-before { background-color: #8E98A4; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* Motif de secours tant que les photos ne sont pas déposées */
.ba-pane:not(:has(img))::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.55) 49%, rgba(255,255,255,.55) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,.55) 49%, rgba(255,255,255,.55) 51%, transparent 51%);
  background-size: 64px 64px;
}
.ba-before:not(:has(img))::before { background-size: 32px 48px; opacity: .5; }
.ba-tag {
  position: absolute; top: 16px; z-index: 2;
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
  background: rgba(30, 38, 48, .82); color: #fff;
}
.ba-after .ba-tag { right: 16px; background: var(--brand-strong); }
.ba-before .ba-tag { left: 16px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; z-index: 3;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.ba-handle span::before { left: 8px; border-right-color: var(--ink); }
.ba-handle span::after { right: 8px; border-left-color: var(--ink); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 4;
}
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle span { outline: 3px solid var(--sun); }
/* ---------- Avis ---------- */
.reviews-head { display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: center; margin-bottom: 48px; }
.reviews-score {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 28px 20px 20px; border-radius: var(--radius-m); background: var(--sun-tint);
}
.g-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.g-logo svg { width: 30px; height: 30px; }
.score-line { display: flex; align-items: baseline; gap: 10px; }
.score-line b { font-size: 2.6rem; font-weight: 850; font-variation-settings: "wdth" 115; line-height: 1; letter-spacing: -.03em; }
.score-line .stars { color: var(--sun-strong); font-size: 1.3rem; letter-spacing: 2px; }
.score-sub { font-size: .95rem; color: var(--ink-soft); }
.score-sub a { font-weight: 650; }
.reviews-head-text p { color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .reviews-head { grid-template-columns: 1fr; } .reviews-score { justify-self: start; } }

.review-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: var(--grout) transparent;
}
@media (max-width: 960px) { .review-track { grid-auto-columns: minmax(280px, 80%); } }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--radius-m);
  background: var(--porcelain);
  border-top: 4px solid var(--brand-strong);
}
.review .stars { color: var(--sun-strong); letter-spacing: 2px; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review blockquote.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review .more { all: unset; cursor: pointer; color: var(--brand-strong); font-weight: 650; font-size: .92rem; }
.review .more:focus-visible { outline: 2px solid var(--brand-strong); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; flex: none; overflow: hidden; }
.review .avatar img { width: 100%; height: 100%; object-fit: cover; }
.review .who b { display: block; }
.review .who span { color: var(--muted); }
.reviews-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.track-nav { display: flex; gap: 8px; }
.track-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.track-nav button:hover { background: var(--ink); color: #fff; }

/* ---------- Marques ---------- */
.brands { padding: 40px 0 8px; }
.brands-title { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.brand-list { list-style: none; margin: 0; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; border-block: 1px solid var(--grout); }
.brand-list li { font-weight: 700; font-variation-settings: "wdth" 85; font-size: 1.15rem; color: #8A94A1; }

/* ---------- Zone ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.zone-grid > div:first-child > p:not(.small) { color: var(--ink-soft); margin-top: 18px; }
.towns { list-style: none; margin: 28px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 8px 14px; border: 1.5px solid var(--grout); border-radius: 999px; font-weight: 550; font-size: .95rem; }
.towns li:first-child { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--porcelain); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, var(--grout) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--grout) 39px 40px);
}
.map-placeholder::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; margin-bottom: 10px;
  background: var(--brand-strong); box-shadow: 0 0 0 14px color-mix(in srgb, var(--brand) 20%, transparent);
}
.map-placeholder > p:first-child { background: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.map-placeholder .btn { background: #fff; }
.map-placeholder .btn:hover { background: var(--ink); }
.map-placeholder .small { background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 4px; }
@media (max-width: 860px) { .zone-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--porcelain); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 64px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--grout); }
.faq-list details:first-child { border-top: 2px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-weight: 650; font-size: 1.1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--brand-strong), var(--brand-strong)) center / 14px 2px no-repeat,
    linear-gradient(var(--brand-strong), var(--brand-strong)) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-soft); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid > *, .zone-grid > *, .hero-grid > *, .faq-grid > * { min-width: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info > p { color: var(--ink-soft); margin: 16px 0 32px; }
.contact-list { margin: 0 0 32px; display: grid; gap: 16px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); font-size: .95rem; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list dd a { text-decoration-color: var(--brand-strong); text-underline-offset: .2em; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--porcelain); font-weight: 500; }
.hours td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 750; color: var(--brand-strong); }

.form { background: var(--porcelain); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; }
.project-type { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project-type legend { font-weight: 650; margin-bottom: 12px; padding: 0; }
.project-type label { position: relative; }
.project-type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.project-type span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--grout); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.project-type input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.project-type input:focus-visible + span { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-s);
  border: 1.5px solid var(--grout); background: #fff; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-tint); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #C0392B; }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--brand-strong); width: 18px; height: 18px; flex: none; }
.form .btn { justify-self: start; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1F7A46; }
.form-status.err { color: #B0281A; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #C9D0D8; padding: 56px 0 120px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.brand-footer { margin-bottom: 14px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 56px; } }

/* ---------- Barre d'appel mobile ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--grout);
    backdrop-filter: blur(10px);
  }
  .callbar .btn { min-height: 48px; }
  .callbar .btn-ghost { background: #fff; }
}

/* ---------- Page mentions légales ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; font-variation-settings: "wdth" 104; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- Salle de bain clé en main : photo à 4 vues ---------- */
/* Cadre portrait 4:5 */
.service-media { margin: 0; min-height: 0; aspect-ratio: 4 / 5; align-self: start; }
.service-lead { grid-template-columns: minmax(0, .9fr) 1.1fr; align-items: center; }
@media (max-width: 760px) {
  .service-lead { grid-template-columns: 1fr; }
  .service-media { min-height: 0; }
}
.service-media img.fill { opacity: 0; transition: opacity .45s var(--ease); }
.service-media img.fill.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .service-media img.fill { transition: none; } }
/* Points discrets : un clic sur la photo passe aussi à la vue suivante */
.service-media[data-switch] { cursor: pointer; }
.switch-dots {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px;
  background: rgba(20, 28, 36, .35); backdrop-filter: blur(6px);
}
.switch-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  transition: width .25s var(--ease), background-color .2s;
}
.switch-dots button:hover { background: rgba(255, 255, 255, .85); }
.switch-dots button[aria-pressed="true"] { width: 20px; background: #fff; }
.switch-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 60; left: 16px; bottom: 16px;
  width: min(440px, calc(100% - 32px));
  padding: 22px 22px 20px; border-radius: var(--radius-m);
  background: #fff; color: var(--ink);
  box-shadow: 0 12px 40px rgba(20, 30, 40, .22); border-top: 4px solid var(--brand);
}
.cookie-banner[hidden] { display: none; }
.cookie-title { font-weight: 750; font-size: 1.05rem; margin-bottom: 6px; }
.cookie-banner p:not(.cookie-title) { font-size: .92rem; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions .btn { min-height: 46px; padding: .6em 1.3em; }
body.has-consent .callbar { display: none; }
.linklike { all: unset; cursor: pointer; color: #fff; }
.linklike:hover { text-decoration: underline; }
.linklike:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* ---------- Mobile : haut de page allégé ---------- */
@media (max-width: 560px) {
  .hero { padding: 20px 0 64px; }
  .hero-grid { gap: 28px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; }
  .tile-wall { order: 2; }
  .desk { order: 3; margin-top: 0; }
  .hero-link { order: 4; margin-top: 0; justify-self: start; }
  .fiche { display: none; }   /* infos reprises plus bas (services, zone) */
  .desk { grid-template-columns: 1fr; }
  .desk-phone { flex-direction: row; justify-content: space-between; align-items: center; padding: 16px 20px; }
  .today { padding: 16px 20px 18px; gap: 10px; }
  .tile-wall { --tile-gap: 6px; }
  .tile-handibat span { font-size: 0; }
  .tile-handibat b { margin: 0; font-size: clamp(.72rem, 11cqi, .9rem); }
  .tile-year span:last-child { display: none; }
  .t-a figcaption { display: none; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .service-lead .chips { display: none; }
    .cookie-banner { left: 0; right: 0; bottom: 0; width: 100%; border-radius: var(--radius-m) var(--radius-m) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .cookie-actions .btn { flex: 1; }
}
