/* Aménagement Paul Boisvert inc. — feuille propre au site.
   Caractère « robuste » : en-tête sombre pour le logo blanc et vert, titres Roboto Slab, filets verts nets,
   coins presque droits, photos réelles jamais agrandies au-delà de leur taille (991 px max). */

:root {
  --apb-s1: calc(var(--space-unit) * 0.5);
  --apb-s2: var(--space-unit);
  --apb-s3: calc(var(--space-unit) * 1.5);
  --apb-s4: calc(var(--space-unit) * 2);
  --apb-s6: calc(var(--space-unit) * 3);
  --apb-line: rgba(36, 41, 25, 0.14);
}

html { scroll-padding-top: 140px; }
@media (max-width: 899.98px) { html { scroll-padding-top: 124px; } }
h1, h2, h3 { color: inherit; }
h2 { max-width: 24ch; }
.wc-section-head h2 { max-width: 26ch; }
.wc-section-head > :last-child { margin-bottom: 0; }

/* Étiquette de section : petit filet vert devant le texte */
.wc-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; }
.wc-eyebrow::before { content: ""; flex: none; width: 28px; height: 3px; background: var(--c-brand); }

/* Boutons : coins nets, survol perceptible sans changer les couleurs validées */
.wc-btn { border-radius: var(--radius); letter-spacing: 0.01em; }
.wc-btn--primary:hover, .wc-btn--primary:active { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22); }
.wc-btn svg { fill: currentColor; }

/* ---------- En-tête ---------- */
.apb-header { background: var(--c-dark); color: var(--c-on-dark); border-bottom: 4px solid var(--c-brand); }
.apb-header :focus-visible { outline-color: var(--c-focus-on-dark); }
.apb-topbar { background: rgba(0, 0, 0, 0.24); font-size: 0.9375rem; }
.apb-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--apb-s2); min-height: 40px; }
.apb-topbar__place { margin: 0; color: var(--c-on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apb-topbar__links { display: flex; align-items: center; gap: var(--apb-s3); list-style: none; margin: 0; padding: 0; }
.apb-topbar a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; color: var(--c-on-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.apb-topbar a:hover { text-decoration: underline; }
.apb-topbar svg { width: 1rem; height: 1rem; flex: none; fill: currentColor; }

.apb-header .wc-header__bar { min-height: 76px; }
.apb-header .wc-brand img { height: 52px; max-height: none; width: auto; }
.apb-header__cta-mobile { margin-left: auto; padding-inline: 1rem; }
.apb-header .wc-nav__toggle { background: transparent; color: var(--c-on-dark); border-color: var(--c-on-dark); }
.apb-header .wc-nav__toggle:hover, .apb-header .wc-nav__toggle[aria-expanded="true"] { background: var(--c-on-dark); color: var(--c-dark); }

@media (min-width: 900px) {
  .apb-header__cta-mobile { display: none; }
  .apb-header .wc-nav__list a:not(.wc-btn) { color: var(--c-on-dark); }
  .apb-header .wc-nav__list a:not(.wc-btn):hover { background: rgba(255, 255, 255, 0.1); color: var(--c-on-dark); }
  .apb-header .wc-nav__list a[aria-current="page"] { color: var(--c-on-dark); box-shadow: inset 0 -3px 0 var(--c-brand); }
}
@media (min-width: 900px) and (max-width: 1139.98px) {
  .apb-header .wc-brand img { height: 44px; }
  .apb-header .wc-nav__list a:not(.wc-btn) { padding-inline: 0.5rem; }
  .apb-header .wc-nav__cta { margin-left: 0.25rem; }
  .apb-header .wc-nav__cta .wc-btn { padding-inline: 0.9rem; }
}
@media (max-width: 899.98px) {
  .apb-header .wc-header__bar { min-height: 64px; gap: var(--apb-s1); }
  .apb-header .wc-brand img { height: 42px; }
  .apb-header .wc-nav { color: var(--c-ink); }
  .apb-header .wc-nav :focus-visible { outline-color: var(--c-focus); }
}
@media (min-width: 640px) { .apb-topbar__short { display: none; } }
@media (max-width: 639.98px) {
  .apb-topbar__long { display: none; }
}
@media (max-width: 479.98px) {
  .apb-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .apb-header .wc-nav__toggle { width: 48px; padding: 0; justify-content: center; }
  .apb-header .wc-brand img { height: 38px; }
  .apb-header__cta-mobile { padding-inline: 0.8rem; }
}

/* ---------- Héros d'accueil (mosaïque) ---------- */
.apb-hero { background: var(--c-surface-alt); border-bottom: 1px solid var(--apb-line); }
.apb-hero h1 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3rem); max-width: 21ch; margin-bottom: var(--apb-s2); }
.apb-hero .wc-lead { max-width: 46ch; }
.apb-hero__note { margin: var(--apb-s3) 0 0; padding-top: var(--apb-s2); border-top: 1px solid var(--apb-line); font-size: 0.9375rem; color: var(--c-ink); max-width: 46ch; }
.apb-hero .wc-mosaic { gap: 0.6rem; }
.apb-hero .wc-mosaic img { border-radius: var(--radius-lg); }
.apb-hero .wc-mosaic img:first-child { aspect-ratio: 991 / 439; object-position: 50% 60%; }
.apb-hero .wc-mosaic img:not(:first-child) { aspect-ratio: 4 / 3; }
@media (max-width: 859.98px) {
  .apb-hero { padding-block: var(--apb-s3) var(--apb-s4); }
  .apb-hero .wc-split { gap: var(--apb-s3); }
}

/* ---------- En-tête des pages intérieures ---------- */
.apb-pagehead { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); border-bottom: 4px solid var(--c-brand); }
.apb-pagehead h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); max-width: 20ch; margin-bottom: var(--apb-s2); }
.apb-pagehead .wc-lead { color: var(--c-on-dark); max-width: 52ch; }
.apb-pagehead .wc-actions { margin-top: var(--apb-s3); }
.apb-pagehead__media img { width: 100%; max-width: 991px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }

/* Ancres de la page Services */
.apb-anchors { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: var(--apb-s3) 0 0; }
.apb-anchors li { max-width: none; }
.wc-section--dark .apb-anchors a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.95rem; border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius); color: var(--c-on-dark); font-weight: 600; text-decoration: none; transition: background-color 0.18s ease, color 0.18s ease; }
.wc-section--dark .apb-anchors a:hover { background: var(--c-on-dark); color: var(--c-dark); }

/* ---------- Cartes regroupées sur fond doux ---------- */
.apb-cards { display: grid; gap: var(--apb-s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: var(--apb-s4); }
.wc-card { border: 1px solid var(--apb-line); border-top: 3px solid var(--c-brand); border-radius: var(--radius-lg); }
.wc-card h3 { margin-bottom: 0.25rem; }
.wc-card p { color: var(--c-ink); }
.apb-cards--top { align-items: start; }
.wc-card .wc-card__media { border-radius: 0; margin-top: calc(-1 * clamp(1.1rem, 0.9rem + 1vw, 1.75rem)); }
a.wc-card:hover { box-shadow: 0 10px 24px rgba(36, 41, 25, 0.12); }
.apb-more { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--c-brand-ink); }
a.wc-card:hover .apb-more { text-decoration: underline; }

.apb-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.apb-list li::marker { color: var(--c-brand-ink); }
.apb-list li { color: var(--c-ink); }

/* Liste à coches (contenu réel uniquement) */
.apb-checks { list-style: none; margin: var(--apb-s2) 0 0; padding: 0; display: grid; gap: 0.75rem; }
.apb-checks li { position: relative; padding-left: 2rem; font-weight: 600; }
.apb-checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.3em; width: 0.6rem; height: 1rem; border-right: 3px solid var(--c-brand); border-bottom: 3px solid var(--c-brand); transform: rotate(40deg); }

/* Étiquettes de styles */
.apb-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--apb-s3); }
.apb-tags li { padding: 0.35rem 0.85rem; border: 1px solid var(--apb-line); border-left: 3px solid var(--c-brand); background: var(--c-surface); color: var(--c-ink); font-weight: 600; font-size: 0.9375rem; border-radius: var(--radius); }

/* ---------- Photos ---------- */
.apb-figure { margin: 0; }
.apb-figure img { width: 100%; max-width: 991px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.apb-figure--wide img { aspect-ratio: 991 / 439; }
.apb-figure--natural img { aspect-ratio: auto; object-fit: initial; }
.apb-figure--portrait { max-width: 340px; justify-self: center; }
@media (min-width: 860px) { .apb-figure--portrait { justify-self: end; } }
/* Titre de section suivi directement du texte dans une colonne : même écart que les autres sections */
.wc-split > div > .wc-section-head { margin-bottom: var(--apb-s2); }
.apb-figure--portrait img { aspect-ratio: 340 / 511; }
.apb-photos { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .apb-photos { grid-template-columns: 1fr 1fr; } }
.apb-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.apb-photos--spaced { margin-top: var(--apb-s4); }
.apb-band { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
.apb-figure--machine { max-width: 648px; }
.apb-figure--machine img { aspect-ratio: 648 / 486; }
.apb-after-checks { margin-top: var(--apb-s3); }

/* ---------- Galerie, filtres, visionneuse ---------- */
.wc-gallery { gap: 0.6rem; }
.wc-gallery a, .wc-gallery button { border-radius: var(--radius-lg); }
.wc-gallery img { aspect-ratio: 3 / 2; }
.apb-gallery--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wc-filter button { border-radius: var(--radius); }
.apb-gallery-foot { margin-top: var(--apb-s4); }
.wc-lightbox { width: min(991px, 94vw); border-radius: var(--radius-lg); }
.wc-lightbox__img { width: auto; max-width: 100%; margin-inline: auto; }

/* ---------- Bandeau final ---------- */
.apb-cta__inner { display: grid; gap: var(--apb-s3); align-items: center; }
@media (min-width: 860px) { .apb-cta__inner { grid-template-columns: 1.4fr auto; } }
.apb-cta h2 { margin-bottom: var(--apb-s1); }
.apb-cta p { margin: 0; color: var(--c-on-dark-muted); }
.apb-cta { border-top: 4px solid var(--c-brand); }

/* ---------- Contact ---------- */
.apb-contact { align-items: start; }
.apb-formbox { background: var(--c-surface); border: 1px solid var(--apb-line); border-top: 3px solid var(--c-brand); border-radius: var(--radius-lg); padding: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem); }
.apb-formbox h2 { margin-bottom: var(--apb-s1); }
.apb-formbox > p { color: var(--c-muted); }
.apb-formbox .wc-form { max-width: none; margin-top: var(--apb-s2); }
.apb-form-status { margin: 0; padding: var(--apb-s2) var(--apb-s3); border-left: 4px solid var(--c-brand); background: var(--c-surface-alt); color: var(--c-ink); font-weight: 700; }
.apb-form-status[hidden] { display: none; }
.wc-form [type="submit"]:disabled { opacity: 0.7; cursor: progress; }
.apb-aside { display: grid; gap: var(--apb-s3); }
.apb-aside h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin-bottom: var(--apb-s1); }
.apb-aside .wc-contact a { overflow-wrap: anywhere; }
.apb-note { padding: var(--apb-s2) var(--apb-s3); border-left: 3px solid var(--c-brand); background: var(--c-surface); color: var(--c-ink); margin: 0; }
.apb-crop { margin: 0; }
.apb-crop img { display: block; width: 100%; max-width: 439px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 0 50%; border-radius: var(--radius-lg); }
.apb-badge { display: inline-block; padding: 8px 10px; background: #fff; border-radius: var(--radius); line-height: 0; }
.apb-badge img { width: 230px; max-width: 100%; height: auto; }

/* ---------- Texte long (confidentialité) ---------- */
.apb-prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); margin-top: var(--apb-s4); max-width: 65ch; }
.apb-prose > p { max-width: 65ch; }
.apb-prose h2:first-child { margin-top: 0; }

/* ---------- Pied de page ---------- */
.apb-footer { border-top: 4px solid var(--c-brand); }
.apb-footer__brand { display: inline-block; }
.apb-footer__brand img { height: 56px; width: auto; }
.apb-footer p { color: var(--c-on-dark-muted); }
.apb-footer__text { margin-top: var(--apb-s2); max-width: 34ch; }
.apb-footer ul a { overflow-wrap: anywhere; }
.apb-footer .wc-footer__legal { max-width: none; }
#planification .wc-split, .wc-section > .wc-container > .wc-split--wide-right { align-items: start; }
.apb-footer .wc-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1000px) { .apb-footer .wc-footer__grid { grid-template-columns: 1.2fr 0.8fr 1.5fr 1fr; } }
