/* Direction : maison de peinture haut de gamme. Grandes photos, tout en Figtree (sans serif, image de marque),
   titres semi-gras avec un mot clé en bleu, filets minces. Palette claire ; couleurs JSF : bleu #0a65bd et noir.
   Formes : coins droits (0) partout, sauf les choix du formulaire. */
/* Polices hébergées sur le site (aucun appel à Google, conforme Loi 25) */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #fbfaf7;          /* blanc d'apprêt, à peine chaud */
  --bg-2: #f1efe9;        /* bande grise claire */
  --surface: #ffffff;
  --ink: #151618;         /* noir du logo, adouci */
  --muted: #5d6066;
  --line: #e1ded6;
  --blue: #0a65bd;        /* bleu JSF */
  --blue-ink: #ffffff;
  --blue-soft: #e5eef8;
  --night: #ece8df;       /* bandes de couleur sable et pied de page */
  --night-line: #d8d2c6;
  --on-night: #151618;
  --on-night-muted: #5d6066;
  --ok: #2e7d4f; --warn: #a15c00;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-body);
  --wrap: 90rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
p { margin: 0; max-width: 62ch; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h1 em, h2 em { font-style: normal; color: var(--blue); }
h3 { font-size: 0.84rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; }
.label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.rule { width: 3.5rem; height: 1px; background: currentColor; opacity: 0.5; border: 0; margin: 0; }
.ic { width: 1.6rem; height: 1.6rem; flex: none; }
.ic-lg { width: 2.4rem; height: 2.4rem; color: var(--blue); }
.ic-sm { width: 1rem; height: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(clamp(20px, 3vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(20px, 3vw, 48px), env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.band { background: var(--bg-2); }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.stack-lg { display: grid; gap: 1.8rem; align-content: start; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.4rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 0.9rem; padding: 1.05rem 1.6rem; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--ink); cursor: pointer; font-family: var(--font-body); white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn .ic { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.link-arrow .ic { width: 1.1rem; height: 1.1rem; transition: transform .2s ease; }
.link-arrow:hover .ic { transform: translateX(3px); }
.link-arrow:hover { color: var(--blue); }

/* Bande RBQ (fixe) + en-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
.topband { background: var(--night); color: var(--on-night-muted); font-size: 0.84rem; letter-spacing: 0.06em; }
.topband .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.5rem; padding-block: 0.5rem; }
.topband a { color: var(--on-night); text-decoration: none; }
.topband a:hover { color: var(--blue); text-decoration: underline; }
.topband span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topband .ic { width: 0.95rem; height: 0.95rem; }
.site-header { background: rgb(251 250 247 / 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; transition: box-shadow .25s ease; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5.25rem; transition: height .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgb(20 22 24 / 0.07); }
.site-header.is-scrolled .wrap { height: 4.25rem; }
.site-header .logo { transition: width .25s ease; }
.site-header.is-scrolled .logo { width: 6.2rem; }
.logo { display: block; width: 7.5rem; }
.logo img { width: 100%; height: auto; }
.logo .on-dark-logo { display: none; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blue); }
/* Bouton menu (hamburger) */
.menu-toggle { display: none; align-items: center; gap: 0.7rem; font: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 0.7rem 1rem; cursor: pointer; transition: background .2s ease, color .2s ease; }
.menu-toggle:hover { background: var(--ink); color: var(--bg); }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 1.5px; background: currentColor; }
.burger i:nth-child(2) { width: 70%; justify-self: end; }
@media (max-width: 1320px) { .nav { display: none; } .menu-toggle { display: inline-flex; } }

/* Menu plein écran */
.menu-plein { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.menu-plein[hidden] { display: none; }
.menu-plein.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.menu-plein-top { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 5.25rem; flex-shrink: 0; border-bottom: 1px solid var(--line); }
.menu-close { position: relative; width: 3rem; height: 3rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .2s ease, color .2s ease, transform .3s ease; }
.menu-close span::before, .menu-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.25rem; height: 1.5px; background: currentColor; }
.menu-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-close:hover { background: var(--ink); color: var(--bg); transform: rotate(90deg); }
.menu-plein-body { flex: 1; width: 100%; display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-content: center; padding-block: 2.5rem 3rem; }
.menu-plein-nav { display: grid; align-content: start; }
.menu-plein-nav a { display: block; padding-block: 0.55rem; border-bottom: 1px solid var(--line); text-decoration: none; font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink);
  opacity: 0; transform: translateY(14px); transition: color .2s ease, padding-left .25s ease, opacity .4s ease, transform .4s ease; }
.menu-plein-nav a:hover, .menu-plein-nav a[aria-current="page"] { color: var(--blue); padding-left: 0.5rem; }
.menu-plein.is-open .menu-plein-nav a { opacity: 1; transform: none; }
.menu-plein.is-open .menu-plein-nav a:nth-child(2) { transition-delay: 0s, 0s, .05s, .05s; }
.menu-plein.is-open .menu-plein-nav a:nth-child(3) { transition-delay: 0s, 0s, .1s, .1s; }
.menu-plein.is-open .menu-plein-nav a:nth-child(4) { transition-delay: 0s, 0s, .15s, .15s; }
.menu-plein.is-open .menu-plein-nav a:nth-child(5) { transition-delay: 0s, 0s, .2s, .2s; }
.menu-plein.is-open .menu-plein-nav a:nth-child(6) { transition-delay: 0s, 0s, .25s, .25s; }
.menu-plein-side { display: grid; gap: 2rem; align-content: end; }
.menu-plein-side .btn { justify-content: space-between; }
.menu-plein-contact { list-style: none; margin: 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; font-size: 0.98rem; }
.menu-plein-contact li { display: flex; align-items: center; gap: 0.7rem; }
.menu-plein-contact .ic { width: 1.15rem; height: 1.15rem; color: var(--blue); flex-shrink: 0; }
.menu-plein-contact a { text-decoration: none; }
.menu-plein-contact a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 760px) { .menu-plein-body { grid-template-columns: 1fr; gap: 2.2rem; align-content: start; padding-top: 1.5rem; } .menu-plein-side { align-content: start; } }
@media (prefers-reduced-motion: reduce) { .menu-plein, .menu-plein-nav a { transition: none !important; transform: none !important; } }
body.menu-ouvert { overflow: hidden; }

/* Héros pleine largeur avec photo */
.hero { position: relative; isolation: isolate; color: var(--ink); min-height: min(46rem, 88vh); display: flex; align-items: flex-end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(251 250 247 / 0.94) 0%, rgb(251 250 247 / 0.78) 40%, rgb(251 250 247 / 0) 72%), linear-gradient(0deg, rgb(251 250 247 / 0.7), transparent 35%); }
.hero .wrap { width: 100%; padding-block: 4rem 2.2rem; display: grid; gap: 3.5rem; }
.hero-copy { display: grid; gap: 1.6rem; max-width: 40rem; }
.hero-copy p { font-size: 1.05rem; color: var(--muted); }
.hero .rule { background: var(--ink); }
.hero-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.hero-strip a { color: inherit; text-decoration: none; border-bottom: 1px solid rgb(21 22 24 / 0.3); }
.hero--page { min-height: min(30rem, 62vh); }
.hero--page h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
.breadcrumb { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head { padding-block: clamp(3rem, 6vw, 5rem) 2rem; border-bottom: 1px solid var(--line); }
.page-head .breadcrumb { color: var(--muted); }

/* Trois portes */
.doors { background: var(--surface); border-bottom: 1px solid var(--line); }
.doors .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.door { display: flex; gap: 1.1rem; align-items: center; padding: 1.6rem 1.6rem; text-decoration: none; border-left: 1px solid var(--line); transition: background .2s ease; }
.door:first-child { border-left: 0; padding-left: 0; }
.door .ic { width: 2rem; height: 2rem; color: var(--blue); }
.door b { display: block; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.door span { display: block; font-size: 0.98rem; color: var(--muted); }
.door .ic-go { margin-left: auto; width: 1.1rem; height: 1.1rem; color: var(--ink); transition: transform .2s ease; }
.door:hover .ic-go { transform: translateX(4px); color: var(--blue); }
@media (max-width: 860px) { .doors .wrap { grid-template-columns: 1fr; } .door, .door:first-child { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; } .door:first-child { border-top: 0; } }

/* Galerie des types de travaux */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.gallery > * { min-width: 0; }
.shot { display: grid; gap: 0.9rem; text-decoration: none; }
.shot figure { margin: 0; aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }
.shot h3 { font-size: 0.84rem; }
.shot p { font-size: 0.97rem; color: var(--muted); margin-top: -0.6rem; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Grille de services avec icônes */
.services { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); }
.service { display: grid; justify-items: center; text-align: center; gap: 0.9rem; padding: 2.2rem 1rem; border-left: 1px solid var(--line); text-decoration: none; }
.service:first-child { border-left: 0; }
.service .ic { width: 2.4rem; height: 2.4rem; color: var(--blue); }
.service h3 { font-size: 0.8rem; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(3, 1fr); } .service:nth-child(4) { border-left: 0; } .service:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } .service { border-left: 1px solid var(--line); } .service:nth-child(odd) { border-left: 0; } .service:nth-child(n+3) { border-top: 1px solid var(--line); } }
.center { display: flex; justify-content: center; margin-top: 2.4rem; }

/* Texte + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > * { min-width: 0; }
.split figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split--wide figure { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split figure { aspect-ratio: 4 / 3; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.checks li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checks .ic { width: 1.2rem; height: 1.2rem; color: var(--blue); margin-top: 0.25rem; }

/* Bande foncée des garanties */
.dark { background: var(--night); color: var(--on-night); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { display: flex; gap: 1rem; padding: 2.4rem 1.6rem; border-left: 1px solid var(--night-line); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar .ic { width: 1.9rem; height: 1.9rem; color: var(--on-night); opacity: 0.9; }
.pillar p { font-size: 0.97rem; color: var(--on-night-muted); margin-top: 0.3rem; }
.pillar .mono { font-variant-numeric: tabular-nums; color: var(--on-night); }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-left: 0; padding-left: 0; } .pillar:nth-child(n+3) { border-top: 1px solid var(--night-line); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar:first-child { border-left: 0; padding-inline: 0; border-top: 1px solid var(--night-line); } .pillar:first-child { border-top: 0; } }

/* Processus */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; gap: 0.7rem; padding: 1.8rem 1.4rem 0 0; align-content: start; }
.steps .ic { width: 1.8rem; height: 1.8rem; color: var(--blue); }
.steps p { font-size: 0.98rem; color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Fiche de conformité */
.verify { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.verify > * { min-width: 0; }
@media (max-width: 860px) { .verify { grid-template-columns: 1fr; } }
.card-id { background: var(--surface); border: 1px solid var(--line); padding: 1.8rem; display: grid; gap: 0; }
.card-id .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.85rem; }
.card-id .row + .row { border-top: 1px solid var(--line); }
.card-id dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card-id dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.card-id dd a { color: var(--blue); }

/* Secteurs */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.areas > div { display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.areas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: 1.05rem; line-height: 1.45; }
@media (max-width: 1100px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .areas { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.3rem; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.3rem; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.4rem; color: var(--muted); }

/* Listes de travaux (pages internes) */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.kind { display: grid; gap: 0.9rem; align-content: start; padding: 2rem 1.8rem 0 0; }
.kind + .kind { border-left: 1px solid var(--line); padding-left: 1.8rem; }
.kind ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; color: var(--muted); }
@media (max-width: 860px) { .kinds { grid-template-columns: 1fr; } .kind + .kind { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .kind { padding-bottom: 1.6rem; } }
.factors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 4rem; }
.factors > div { display: grid; gap: 0.5rem; min-width: 0; align-content: start; }
.factors .ic { width: 1.8rem; height: 1.8rem; color: var(--blue); }
.factors p { color: var(--muted); }
@media (max-width: 760px) { .factors { grid-template-columns: 1fr; } }
.note { border-left: 2px solid var(--blue); padding: 0.2rem 0 0.2rem 1.2rem; }

/* Tableau de conformité */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 36rem; }
th, td { text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
td a { color: var(--blue); }

/* Appel final + pied de page */
.site-footer { background: var(--night); color: var(--on-night); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-block: clamp(4rem, 7vw, 6rem) 3rem; }
.footer-top > * { min-width: 0; }
.footer-top h2 { color: var(--on-night); }
.footer-top h3 { color: var(--on-night-muted); margin-bottom: 1rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 1rem; }
.footer-top a { text-decoration: none; color: var(--on-night); }
.footer-top a:hover { color: var(--blue); text-decoration: underline; }
.footer-top .contact li { display: flex; gap: 0.6rem; align-items: center; font-family: var(--font-body); font-size: 0.95rem; }
.footer-top .contact .ic { width: 1.1rem; height: 1.1rem; color: var(--on-night-muted); }
.footer-bottom { border-top: 1px solid var(--night-line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding-block: 1.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-muted); }
.footer-bottom a { color: inherit; }
.footer-logo { width: 10rem; margin-bottom: 1.8rem; margin-left: calc(-10rem * 30 / 252); }   /* le dessin du logo commence à 30/252 de sa largeur : on compense pour l'aligner sur le texte */
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

/* Formulaire de soumission */
.layout-form { display: grid; grid-template-columns: minmax(0, 54rem) 21rem; justify-content: space-between; gap: 3rem 4.5rem; }
.layout-form > * { min-width: 0; }
@media (max-width: 1100px) { .layout-form { grid-template-columns: minmax(0, 54rem); justify-content: start; } }
.form { display: grid; gap: 2.4rem; }
/* Formulaire court au bas des pages */
.quick { border-top: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem 3rem; padding-block: clamp(3.5rem, 6vw, 5.5rem); align-items: stretch; }
.quick-cta { display: grid; gap: 1.2rem; justify-items: start; background: var(--blue); color: var(--blue-ink); padding: clamp(1.6rem, 4vw, 2.6rem); }
.quick-cta h2 { color: var(--blue-ink); margin: 0; }
.quick-cta h2 em { color: var(--blue-ink); font-style: normal; }
.quick-cta p { margin: 0; font-size: 1.08rem; opacity: 0.92; max-width: 34rem; }
.quick-cta-icon { display: grid; place-items: center; width: 4rem; height: 4rem; background: var(--blue-ink); color: var(--blue); }
.quick-cta-icon .ic { width: 2.2rem; height: 2.2rem; }
.quick-cta ul { list-style: none; margin: 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.28); display: grid; gap: 0.7rem; width: 100%; }
.quick-cta li { display: flex; gap: 0.7rem; align-items: center; font-weight: 600; }
.quick-cta li .ic { width: 1.2rem; height: 1.2rem; flex: none; }
.btn--on-blue { background: var(--blue-ink); color: var(--ink); border-color: var(--blue-ink); }
.btn--on-blue:hover { background: var(--ink); color: var(--blue-ink); border-color: var(--ink); }
.quick-form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); align-self: stretch; }
.quick-form h3 { margin: 0; font-size: 1.45rem; display: grid; gap: 0.3rem; }
.quick-form h3 span { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--blue); }
.quick-form textarea { min-height: 6.5rem; }
.quick-form .actions { margin: 0; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: 1fr; } }
.fieldset { border: 0; border-top: 1px solid var(--line); padding: 1.8rem 0 0; margin: 0; display: grid; gap: 1.2rem; min-width: 0; }
.fieldset legend { float: left; width: 100%; display: flex; align-items: center; gap: 0.7rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.4rem; padding: 0; }
.fieldset legend .ic { width: 1.6rem; height: 1.6rem; color: var(--blue); }
.fieldset--focus { background: var(--surface); border: 1px solid var(--blue); padding: 1.6rem; }
.row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.row > * { min-width: 0; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field .label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.field small { color: var(--muted); font-size: 0.95rem; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 0.8rem 0.9rem; width: 100%;
}
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select { height: 3.25rem; line-height: 1.2; }
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue-soft); }
::placeholder { color: var(--muted); opacity: 1; }
.radios { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radios label { display: inline-flex; gap: 0.5rem; align-items: center; border: 1px solid var(--line); background: var(--surface); padding: 0.6rem 1rem; border-radius: 999px; cursor: pointer; font-size: 0.98rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.radios input { accent-color: var(--blue); margin: 0; }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.rooms { display: grid; gap: 1rem; }
.room { display: grid; gap: 1rem; padding: 1.2rem; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.room > * { min-width: 0; }
.room-head { display: flex; gap: 0.8rem; align-items: end; }
.room-head .room-name { flex: 1; }
.room-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; align-items: end; }
.room-dims > * { min-width: 0; }
.room-note { font-size: 0.95rem; color: var(--muted); }
.sub { display: grid; gap: 0.8rem; padding: 1rem; background: var(--surface); border: 1px dashed var(--line); }
.sub-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.sub[hidden], .room-h[hidden] { display: none; }
.list-mur, .list-porte, .list-fenetre { display: grid; gap: 0.8rem; }
.list-porte:empty, .list-fenetre:empty { display: none; }
.line { display: grid; grid-template-columns: 5.6rem repeat(4, minmax(0, 1fr)) auto; gap: 0.7rem; align-items: end; padding-bottom: 0.8rem; border-bottom: 1px dashed var(--line); }
.line > * { min-width: 0; }
.line--porte { grid-template-columns: 5.6rem minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 2.2fr) minmax(0, 0.9fr) auto; }
.line-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); padding-bottom: 1rem; }
.line .opt[hidden] { display: block; visibility: hidden; }
.line-check { display: inline-flex; gap: 0.45rem; align-items: center; height: 3.25rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.line-check input { accent-color: var(--blue); margin: 0; }
.link-btn { justify-self: start; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.link-btn:hover { color: var(--ink); }
.checks-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checks-inline label { display: inline-flex; gap: 0.45rem; align-items: center; border: 1px solid var(--line); background: var(--surface); padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer; font-size: 0.95rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.checks-inline input { accent-color: var(--blue); margin: 0; }
.checks-inline label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.room .area { font-size: 0.97rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 0.8rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .line { grid-template-columns: 1fr 1fr; }
  .line .opt[hidden] { display: none; }
  .line-name { grid-column: 1 / -1; padding-bottom: 0; }
  .line-del { grid-column: 1 / -1; justify-self: start; }
  .line .field:has(select) { grid-column: 1 / -1; }
  .room-dims { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .room-head { flex-wrap: wrap; }
  .fieldset--focus { padding: 1rem; } .room { padding: 0.9rem; } .sub { padding: 0.7rem; }
  .room label, .room .label { letter-spacing: 0.08em; }
}
.totals { display: flex; flex-wrap: wrap; gap: 0.5rem 2.2rem; font-variant-numeric: tabular-nums; background: var(--blue-soft); padding: 0.9rem 1.1rem; }
.totals b { font-size: 1.2rem; }
.icon-btn { font: inherit; font-size: 0.9rem; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 0.75rem 0.8rem; cursor: pointer; }
.btn-small { padding: 0.75rem 1.1rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; }
.consent input { margin-top: 0.35rem; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.dropzone { position: relative; border: 1.5px dashed var(--blue); background: var(--blue-soft); padding: 2.2rem 1rem; text-align: center; display: grid; gap: 0.5rem; justify-items: center; cursor: pointer; }
.dropzone .ic { width: 2.4rem; height: 2.4rem; color: var(--blue); }
.dropzone.is-over { background: var(--surface); border-style: solid; }
.dropzone b { font-size: 1.25rem; font-weight: 700; }
.dropzone span { font-size: 0.98rem; color: var(--muted); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.6rem; }
.thumb { position: relative; aspect-ratio: 1; max-width: 100%; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; width: 1.7rem; height: 1.7rem; cursor: pointer; font-size: 1rem; line-height: 1; }
.form-status { padding: 1rem 1.2rem; font-weight: 600; border-left: 3px solid var(--ok); background: var(--surface); }
.form-status.err { border-left-color: var(--warn); }
.photos-note { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--muted); }
.photos-note.err { color: var(--warn); }
.side-info { display: grid; gap: 2rem; align-content: start; }
.side-info .box { border-top: 1px solid var(--line); padding-top: 1.4rem; display: grid; gap: 0.8rem; }
.side-info ul, .side-info ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.side-info li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.side-info .ic { width: 1.2rem; height: 1.2rem; color: var(--blue); margin-top: 0.2rem; }
.prose { max-width: 52rem; display: grid; gap: 2.2rem; }
.prose h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }

/* Boutons dans des zones qui recolorent les liens */
.nav .btn { color: var(--bg); padding: 0.65rem 1rem; font-size: 0.74rem; letter-spacing: 0.12em; }
.nav .btn:hover { color: var(--blue-ink); }
.footer-top .btn--light, .footer-top .btn--light:hover { color: var(--night); text-decoration: none; }
.footer-top .btn--light:hover { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.footer-top h2 em { color: var(--blue); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(0deg, rgb(251 250 247 / 0.95) 0%, rgb(251 250 247 / 0.82) 55%, rgb(251 250 247 / 0.5) 100%); } }

/* Tableau des enregistrements (page Vérifier) */
.table-wrap:has(.table-reg) { border-top: 0; border: 1px solid var(--line); background: var(--surface); }
.table-reg th, .table-reg td { padding: 1rem 1.2rem; }
.table-reg thead th { background: var(--blue); color: var(--blue-ink); border-bottom: 0; }
.table-reg tbody tr:nth-child(even) { background: var(--blue-soft); }
.table-reg tbody tr { transition: background .2s ease; }
.table-reg tbody tr:hover { background: #d6e5f5; }
.table-reg tbody tr:last-child td { border-bottom: 0; }
.table-reg td:first-child { font-weight: 600; }
.table-reg td.num { color: var(--blue); }
.table-reg td a { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.table-reg td a::after { content: " ↗"; font-size: 0.85em; }
.table-reg td a:hover { color: var(--ink); }
.tag { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: #fdf1dc; color: var(--warn); font-size: 0.86rem; font-weight: 600; white-space: nowrap; }

/* Accueil : slogan à gauche, photos à droite (sans bandeau) */
.intro { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.intro-copy { display: grid; gap: 1.8rem; }
.intro h1 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
.intro h1 em { display: block; }
.intro-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.intro .btn--line .ic { width: 1.05rem; height: 1.05rem; }
.intro-photos { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.8rem; height: clamp(26rem, 42vw, 38rem); }
.intro-photos figure { margin: 0; overflow: hidden; background: var(--bg-2); }
.intro-photos .intro-main { grid-row: 1 / 3; }
.intro-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.intro-photos figure:hover img { transform: scale(1.03); }
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-photos { height: auto; grid-template-rows: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .intro-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 1.6fr 1fr; aspect-ratio: 1 / 1; }
  .intro-photos .intro-main { grid-row: 1; grid-column: 1 / 3; }
}

/* Logos des organismes (RBQ, CCQ, ACQ) */
.accred-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.accred { display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.accred-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem clamp(2.5rem, 6vw, 5rem); }
.accred-logos a { display: block; transition: opacity .2s ease, transform .2s ease; }
.accred-logos a:hover { opacity: 0.75; transform: translateY(-2px); }
.accred-logos img { display: block; height: 4.2rem; width: auto; max-width: 100%; }
.accred-logos li:nth-child(1) img { height: 5.6rem; }   /* logo CCQ, plus haut que large */
.accred-logos .accred-badge img { height: 3.6rem; }   /* badge de vérification RBQ (servi par reparationsresidentielles.ca) */
@media (max-width: 560px) { .accred-logos img { height: 3.4rem; } .accred-logos li:nth-child(1) img { height: 4.6rem; } .accred-logos .accred-badge img { height: 3.2rem; } }

/* Rangée de boutons (appels à l'action) */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.actions .btn--line .ic { width: 1.05rem; height: 1.05rem; }
.about-cta { justify-items: center; text-align: center; }
.about-cta .actions { justify-content: center; }

/* Page À propos */
.about-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.about-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-hero-copy { display: grid; gap: 1.6rem; }
.about-hero-copy .breadcrumb { color: var(--muted); }
.about-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36rem; }
.about-portrait { position: relative; margin: 0 1.2rem 1.2rem 0; justify-self: center; width: min(100%, 15rem); }
.about-portrait::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; background: var(--blue); z-index: 0; }
.about-portrait img { position: relative; z-index: 1; display: block; width: 100%; height: auto; box-shadow: 0 18px 40px rgb(20 22 24 / 0.12); }
.about-portrait figcaption { position: absolute; z-index: 2; left: -1.2rem; bottom: 1.6rem; display: grid; gap: 0.1rem; padding: 0.8rem 1.1rem; background: var(--surface); box-shadow: 0 10px 24px rgb(20 22 24 / 0.12); }
.about-portrait figcaption b { font-size: 1.02rem; }
.about-portrait figcaption span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.about-facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.about-facts > div { display: grid; gap: 0.4rem; justify-items: center; text-align: center; padding: clamp(1.8rem, 3vw, 2.6rem) 1rem; }
.about-facts > div + div { border-left: 1px solid var(--line); }
.about-facts dt { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--blue); }
.about-facts dd { margin: 0; font-size: 1rem; }
.about-story { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-story-text p { font-size: 1.08rem; max-width: 42rem; }
@media (max-width: 860px) {
  .about-hero-grid, .about-story { grid-template-columns: 1fr; }
  .about-portrait { justify-self: center; width: min(78%, 17rem); }
  .about-portrait figcaption { left: -0.6rem; }
}
@media (max-width: 560px) {
  .about-facts { grid-template-columns: 1fr; }
  .about-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .about-facts > div { padding-block: 1.3rem; }
}
.room-color { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.room-color > * { min-width: 0; }
@media (max-width: 560px) { .room-color { grid-template-columns: 1fr; } }
/* Pièces en accordéon : une seule ouverte à la fois */
.room.is-collapsed { gap: 0.6rem; }
.room.is-collapsed > :not(.room-head):not(.area) { display: none; }
.room.is-collapsed .area { border-top: 0; padding-top: 0; color: var(--muted); cursor: pointer; }
.room { position: relative; }
.room-head { padding-right: 3rem; }
.room-toggle { position: absolute; top: 0.8rem; right: 0.8rem; width: 2.3rem; height: 2.3rem; padding: 0; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.room-toggle:hover { border-color: var(--blue); background: var(--blue-soft); }
.room-toggle .chev { width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(2px) rotate(225deg); transition: transform .2s ease; }
.room.is-collapsed .room-toggle .chev { transform: translateY(-2px) rotate(45deg); }
.room:not(.is-collapsed) { background: #d9e9fb; border-color: #9cc3ef; border-left-color: var(--blue); box-shadow: 0 6px 18px rgb(10 101 189 / 0.12); }
.room { transition: background .25s ease, border-color .25s ease; }
.room-del { flex-shrink: 0; width: 3.25rem; height: 3.25rem; padding: 0; display: grid; place-items: center; background: var(--ink); color: #ffffff; border: 1px solid var(--ink); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.room-del svg { width: 1.3rem; height: 1.3rem; }
.room-del:hover { background: #b3261e; border-color: #b3261e; }
/* Tous les boutons « Retirer » : survol rougeâtre */
.line-del, .thumb button { transition: background .2s ease, border-color .2s ease, color .2s ease; }
.line-del:hover, .line-del:focus-visible { background: #fdecea; border-color: #b3261e; color: #b3261e; }
.thumb button:hover, .thumb button:focus-visible { background: #b3261e; color: #ffffff; }
/* Bandeaux de pages : voile plus opaque derrière le texte pour la lisibilité */
.hero::before { background: linear-gradient(90deg, rgb(251 250 247 / 0.97) 0%, rgb(251 250 247 / 0.92) 38%, rgb(251 250 247 / 0.55) 62%, rgb(251 250 247 / 0) 85%), linear-gradient(0deg, rgb(251 250 247 / 0.6), transparent 35%); }
.hero-copy p { color: var(--ink); font-weight: 500; font-size: 1.15rem; }
@media (max-width: 760px) { .hero::before { background: linear-gradient(0deg, rgb(251 250 247 / 0.97) 0%, rgb(251 250 247 / 0.9) 60%, rgb(251 250 247 / 0.7) 100%); } }
.hero > img[src$="entrepreneurs.jpg"] { object-position: 78% center; }   /* garder le peintre visible sur mobile */
/* Sélecteur de langue FR | EN */
.header-tools { display: flex; align-items: center; gap: 0.6rem; }
.lang-switch { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--line); border-radius: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; color: var(--ink); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.lang-switch:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.menu-plein-contact .lang-switch { margin-top: 0.4rem; }
/* Facteur de prix pleine largeur : texte à gauche, photo horizontale mince à droite */
.factors > .factor-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 1rem 4rem; align-items: center; }
.factor-wide > div { display: grid; gap: 0.5rem; align-content: start; }
.factor-fig { margin: 0; }
.factor-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.factor-fig figcaption { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); font-style: italic; }
@media (max-width: 760px) { .factors > .factor-wide { grid-template-columns: 1fr; } }
/* Bouton de soumission du pied de page, un peu plus petit */
.footer-top .btn { padding: 0.75rem 1.15rem; font-size: 0.74rem; gap: 0.7rem; }
/* Sélecteur de langue : carré de la même hauteur que le bouton Menu */
.menu-toggle { height: 2.9rem; padding-block: 0; }
.lang-switch { width: 2.9rem; height: 2.9rem; }
/* À propos : les deux peintres et la ligne du temps */
.about-head .about-lead { max-width: 44rem; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.person { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.person-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.person-photo--empty { display: grid; place-items: center; background: var(--blue-soft); }
.person-photo--empty span { font-size: 3rem; font-weight: 600; letter-spacing: 0.04em; color: var(--blue); }
.person-body { display: grid; gap: 0.5rem; align-content: start; }
.person-role { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.person-name { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; text-transform: none; line-height: 1.15; }
.person-tag { justify-self: start; padding: 0.25rem 0.7rem; background: var(--blue-soft); color: var(--blue); font-size: 0.85rem; font-weight: 700; }
.person-body p:last-child { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--blue); }
.timeline li { position: relative; display: grid; gap: 0.3rem; padding: 0 0 1.8rem 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -0.45rem; top: 0.35rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--bg-2); }
.timeline b { font-size: 1.15rem; color: var(--blue); }
.timeline span { color: var(--ink); max-width: 38rem; }
@media (max-width: 1100px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .person { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; } .person-photo--empty span { font-size: 1.8rem; } .person-name { font-size: 1.3rem; } }
/* Secteurs : épingles et points d'interrogation qui tombent avec un léger rebond */
.drop-band { position: relative; overflow: hidden; isolation: isolate; }
.drop-band .wrap { position: relative; z-index: 1; }
.drop-decor { position: absolute; inset: 0 0 0 50%; z-index: 0; pointer-events: none; }
.drop { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; font-size: var(--s); line-height: 1; color: var(--blue); transform: rotate(var(--r)); }
.drop--pin .ic { width: var(--s); height: var(--s); }
.drop--q { font-weight: 700; color: #7fa9d9; }
.drop-decor.armed .drop { opacity: 0; transform: translateY(-140px) rotate(var(--r)); }
.drop-decor.armed.is-in .drop { animation: drop-bounce 1.1s cubic-bezier(.3, .7, .4, 1) var(--d) forwards; }
@keyframes drop-bounce {
  0%   { opacity: 0; transform: translateY(-140px) rotate(var(--r)); }
  45%  { opacity: 1; transform: translateY(0) rotate(var(--r)); }
  62%  { transform: translateY(-14px) rotate(calc(var(--r) * 0.6)); }
  78%  { transform: translateY(0) rotate(var(--r)); }
  88%  { transform: translateY(-4px) rotate(var(--r)); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}
@media (max-width: 860px) { .drop-decor { inset: 0; opacity: 0.22; } }
@media (prefers-reduced-motion: reduce) { .drop-decor.armed .drop, .drop-decor.armed.is-in .drop { animation: none; opacity: 1; transform: rotate(var(--r)); } }
/* Apparition au défilement (ajoutée par main.js) */
.reveal { opacity: 0; transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.reveal--text { transform: translateY(22px); }
.reveal--img { transform: translateY(30px) scale(.97); }
.reveal.is-visible { opacity: 1; transform: none; }
/* En-tête et menu plein écran : même compensation de la marge interne du logo (30/252 de sa largeur) */
.site-header .logo img, .menu-plein-top .logo img { transform: translateX(calc(-100% * 30 / 252)); }
