/* ALTARA Rénovation SA — feuille de style unique.
   Direction : sobre, aérée, angles légèrement arrondis. Rouge du logo réservé aux actions importantes.

   Composants adaptés de la galerie Elements d'Uiverse (uiverse.io, licence MIT), recolorés aux couleurs d'ALTARA :
   - Bouton principal  : cssbuttons-io / stale-rattlesnake-87  (.btn--primary)
   - Bouton secondaire : Jedi-hongbin / modern-sloth-8          (.btn--ghost)
   - Carte             : Yaya12085 / little-puma-29             (.card)
   - Case à cocher     : SelfMadeSystem / calm-cat-84           (.check)
   - Champ             : ozgeozkaraa01 / sharp-rattlesnake-74   (.field)
   Icônes : Lucide (lucide.dev, licence ISC). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/newsreader.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf8f5;
  --surface: #f2eee8;
  --paper: #ffffff;
  --ink: #17181b;
  --muted: #5a5c61;
  --line: #e2ddd5;
  --red: #b3241c;
  --red-deep: #8f1b15;
  --red-soft: rgba(179, 36, 28, .14);
  --dark: #131417;
  --on-dark: #f5f2ed;
  --on-dark-muted: #aaacb1;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gut: clamp(22px, 5vw, 64px);
  --head-h: 84px;
  --r-s: 10px;   /* champs, puces */
  --r-m: 16px;   /* cartes */
  --r-l: 24px;   /* photos encadrées */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(23, 24, 27, .05), 0 12px 32px -12px rgba(23, 24, 27, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible { outline-color: #fff; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
.eyebrow { display: inline-block; font: 600 .75rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.on-dark .eyebrow, .hero .eyebrow { color: #fff; }
.h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.025em; }
.h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
.h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.6; }
.stack > * + * { margin-top: var(--gap, 1.25rem); }
.prose p + p { margin-top: 1.1em; }

/* ---------- Boutons ---------- */
/* Bouton principal (Uiverse, cssbuttons-io) : pastille rouge qui se soulève */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 2.1em; font: 600 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, transform .3s ease; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .3s var(--ease); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 15px rgba(0, 0, 0, .12); }
.btn--primary:active { transform: translateY(-1px); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--red-deep); box-shadow: 0 14px 22px rgba(179, 36, 28, .32); transform: translateY(-4px); }
  .btn--primary:hover svg { transform: translateX(4px); }
}
/* Bouton secondaire (Uiverse, Jedi-hongbin) : pastille claire, flèche qui glisse */
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 16px -6px rgba(0, 0, 0, .14); }
.btn--ghost.is-next svg { transform: none; }
@media (hover: hover) {
  .btn--ghost:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .22); }
  .btn--ghost:hover svg { transform: translateX(5px); }
}
.hero .btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); backdrop-filter: blur(6px); }
@media (hover: hover) { .hero .btn--ghost:hover { background: #fff; color: var(--ink); } }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 8px 15px rgba(0, 0, 0, .2); }
@media (hover: hover) { .btn--white:hover { transform: translateY(-4px); box-shadow: 0 14px 22px rgba(0, 0, 0, .3); } }
.btn--sm { min-height: 44px; padding: 0 1.5em; font-size: .75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; transition: color .2s; }
.link > span { padding-bottom: 1px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
/* Lien au fil du texte : soulignement collé aux lettres */
p .link:not(:has(svg)), li .link:not(:has(svg)) { display: inline; padding-bottom: 0; background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
@media (hover: hover) { .link:hover { color: var(--red); } .link:hover svg { transform: translateX(4px); } }

/* ---------- En-tête ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 245, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-bar { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav__link { position: relative; text-decoration: none; font-size: .94rem; font-weight: 500; padding: 8px 0; color: var(--ink); white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.head-cta { min-height: 46px; padding: 0 1.6em; font-size: .75rem; }
.menu-btn { display: none; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn i + i { margin-top: 5px; }
.menu-open .menu-btn i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); overflow: hidden; border-radius: 0 0 var(--r-l) var(--r-l); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); animation: heroZoom 2.4s var(--ease) .05s forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(14,15,17,.8) 0%, rgba(14,15,17,.5) 45%, rgba(14,15,17,.06) 100%), linear-gradient(0deg, rgba(14,15,17,.42), transparent 40%); }
.hero__body { min-height: min(88svh, 820px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 128px 88px; }
.hero__copy { max-width: 760px; }
.hero .lead { color: rgba(255,255,255,.88); margin-top: 28px; }
.hero .btn-row { margin-top: 44px; }
.hero--page .hero__body { min-height: clamp(380px, 52svh, 500px); padding-block: 112px 64px; }
@keyframes heroZoom { to { transform: scale(1); } }

.facts { padding-block: 40px 0; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow); }
.facts__item { padding: 28px 32px; }
.facts__item + .facts__item { border-left: 1px solid var(--line); }
.facts dt { font: 500 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts dd { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 104px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split--flip > :first-child { order: 2; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 760px; }
.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.statement em { font-style: italic; color: var(--red); }

/* Cartes (Uiverse, Yaya12085) : visuel, texte, action avec flèche */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-m); border: 1px solid transparent; box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.card__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 30px 34px; }
.card__no { font: 500 .75rem/1 var(--sans); letter-spacing: .16em; color: var(--red); margin-bottom: 14px; }
.card__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.card__desc { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.card__action { align-self: flex-start; margin-top: auto; padding-top: 28px; }
.card__action span { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 500; padding: 10px 18px; border-radius: 999px; transition: background-color .3s, gap .3s var(--ease); }
.card__action svg { width: 14px; height: 14px; }
.card a.card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card:focus-within { border-color: var(--red); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(23,24,27,.05), 0 28px 48px -16px rgba(23,24,27,.28); }
  .card:hover .card__img img { transform: scale(1.04); }
  .card:hover .card__action span { background: var(--red); gap: 14px; }
}
.card--plain .card__body { padding: 30px; }

/* Bandeau photo */
.hero__media img, .card__img img, .band__media img, .photo img { filter: saturate(.9) contrast(1.02); }
.band { position: relative; isolation: isolate; color: #fff; overflow: hidden; margin-inline: clamp(0px, 2vw, 24px); border-radius: var(--r-l); }
.band__media { position: absolute; inset: -8% 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,15,17,.6); }
.band__body { padding-block: clamp(96px, 13vw, 190px); }
.band .statement { color: #fff; max-width: 21em; }
.band .statement em, .on-dark .statement em { color: #f0766a; }

/* Parcours à deux voies */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 32px); }
.path { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.path--dark { background: var(--dark); color: var(--on-dark); }
.path.path--dark p { color: var(--on-dark-muted); }
.path p { color: var(--muted); max-width: 30em; }
.path .btn-row { margin-top: 18px; }
@media (hover: hover) { .path:hover { transform: translateY(-4px); } }

/* Photos encadrées */
.photo { overflow: hidden; background: var(--surface); border-radius: var(--r-l); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 10; }
.photo--sq { aspect-ratio: 1; }
.caption { margin-top: 12px; font-size: .8rem; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.mosaic .photo { aspect-ratio: 3 / 4; }
.mosaic .photo:nth-child(2) { margin-top: 48px; }
.sticky-photo { position: sticky; top: calc(var(--head-h) + 32px); }

/* Étapes et listes */
.step { display: grid; grid-template-columns: 64px 1fr; gap: 6px 24px; padding-block: 34px; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--red); }
.step h3 { font-size: 1.5rem; }
.step p { grid-column: 2; color: var(--muted); max-width: 34em; }
.dots li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); color: var(--muted); }
.dots li:last-child { border-bottom: 1px solid var(--line); }
.dots li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.dots strong { color: var(--ink); font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .45s var(--ease), background-color .3s, border-color .3s; }
.faq details[open] summary::after { transform: rotate(180deg); background-color: var(--red); border-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (hover: hover) { .faq summary:hover::after { border-color: var(--ink); } .faq details[open] summary:hover::after { border-color: var(--red-deep); } }
@media (hover: hover) { .faq summary:hover { color: var(--red); } }
.faq .faq__a { padding: 0 48px 30px 0; color: var(--muted); max-width: 42em; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* Définitions */
.defs { border-top: 1px solid var(--ink); }
.defs > div { display: grid; grid-template-columns: minmax(150px, 1fr) 2.2fr; gap: 12px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.defs dt { font: 500 .72rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }

/* Clôture */
.closing { background: var(--dark); color: var(--on-dark); padding-block: clamp(88px, 12vw, 170px); margin-top: clamp(40px, 6vw, 80px); border-radius: var(--r-l) var(--r-l) 0 0; }
.closing .statement { max-width: 18em; }
.closing .lead { color: var(--on-dark-muted); margin-top: 24px; }
.closing .btn-row { margin-top: 44px; }

/* ---------- Pied de page ---------- */
.site-foot { background: var(--dark); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.1); padding-block: 80px 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 44px; }
.foot-grid img { height: 70px; width: auto; }
.foot-grid h3 { font: 500 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 22px; }
.foot-grid li + li { margin-top: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-grid address { font-style: normal; }
.foot-lede { margin-top: 20px; color: var(--on-dark-muted); max-width: 22em; font-size: .95rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 68px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: var(--on-dark-muted); }

/* ---------- Case à cocher (Uiverse, SelfMadeSystem) ---------- */
.check { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; user-select: none; transition: border-color .25s, background-color .25s; }
.check + .check { margin-top: 10px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { position: relative; flex: none; width: 1.6rem; height: 1.6rem; margin-top: 1px; border-radius: .4rem; background: transparent; transition: background-color .25s; }
.check__box::after { content: ""; position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; border: .12rem solid #8a8d93; border-radius: .4rem; transition: all .25s, border-width .1s; }
.check input:checked ~ .check__box { background: var(--red); }
.check input:checked ~ .check__box::after { left: .52rem; top: .26rem; width: .5rem; height: .8rem; border-color: transparent #fff #fff transparent; border-width: 0 .17rem .17rem 0; border-radius: 0; transform: rotate(45deg); }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--red); outline-offset: 3px; }
.check__text { line-height: 1.5; }
.check__text strong { font-weight: 500; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 56% / 0% 1.5px; transition: background-size .45s var(--ease), color .35s ease; }
.check input:checked ~ .check__text strong { background-size: 100% 1.5px; color: var(--muted); }
.check__text small { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.check:has(input:checked) { border-color: rgba(179, 36, 28, .45); }
@media (hover: hover) { .check:hover { border-color: var(--ink); } }

.progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.progress__bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: inherit; transition: width .5s var(--ease); }
.progress__txt { font-weight: 500; font-size: .9rem; white-space: nowrap; }
.group-title { margin: 48px 0 16px; font-family: var(--serif); font-size: 1.6rem; }
.group-title:first-of-type { margin-top: 0; }
.panel { background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 44px); }

/* ---------- Formulaire : champs (Uiverse, ozgeozkaraa01) ---------- */
.form { display: grid; gap: 26px; }
.field label, .legend { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 10px; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field__wrap { position: relative; display: flex; align-items: flex-start; }
.field__wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; fill: none; stroke: #8b8e95; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .3s; }
.field__wrap:has(textarea) svg { top: 1rem; transform: none; }
.field__wrap:focus-within svg { stroke: var(--red); }
.input { width: 100%; min-height: 46px; padding: 10px 14px 10px 2.9rem; background-color: #f6f3ee; border: 2px solid transparent; border-radius: var(--r-s); outline: none; color: var(--ink); transition: .4s ease; appearance: none; -webkit-appearance: none; }
textarea.input { min-height: 112px; padding-top: 12px; resize: vertical; line-height: 1.55; }
select.input { padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; }
.input::placeholder { color: #9a9da3; }
.input:hover, .input:focus { border-color: rgba(179, 36, 28, .55); background-color: #fff; box-shadow: 0 0 0 5px var(--red-soft); }
.input[aria-invalid="true"] { border-color: var(--red); background-color: #fff7f6; }
.field__error { margin-top: 8px; font-size: .875rem; color: var(--red-deep); }
.field__hint { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* Puces de choix de prestation */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 8px 14px; background: #f6f3ee; border: 2px solid transparent; border-radius: var(--r-s); font-weight: 500; font-size: .95rem; transition: .3s ease; }
.choice input:checked + span { background: #fff; border-color: var(--red); box-shadow: 0 0 0 5px var(--red-soft); color: var(--red-deep); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
@media (hover: hover) { .choice:hover span { border-color: rgba(179, 36, 28, .45); } }

.extra { display: grid; gap: 26px; padding: 26px; background: var(--surface); border-radius: var(--r-m); animation: faqIn .4s var(--ease); }
.extra[hidden] { display: none; }
.extra h3 { font-size: 1.3rem; }
.extra .input { background-color: #fff; }
.extra .input:hover, .extra .input:focus { background-color: #fff; }
.form-notice { display: flex; gap: 14px; background: #fff; border-radius: var(--r-s); border: 1px solid rgba(179, 36, 28, .35); padding: 18px 20px; font-size: .95rem; }
.form-notice svg { flex: none; width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.6; margin-top: 2px; }
.form__status { min-height: 1.6em; font-size: .95rem; font-weight: 500; }
.form__status[data-state="error"] { color: var(--red-deep); }
.form__status[data-state="ok"] { color: #1f6b3a; }
.sent { text-align: center; padding: clamp(32px, 5vw, 60px) 20px; }
.sent > svg { width: 56px; height: 56px; stroke: #1f6b3a; fill: none; stroke-width: 1.6; margin: 0 auto 20px; }
.sent[hidden], .form[hidden] { display: none; }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.work .photo { aspect-ratio: 4 / 3; }
.work h3 { margin-top: 18px; font-size: 1.5rem; }
.work p { color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags span { font-size: .75rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.empty { text-align: center; max-width: 36em; margin-inline: auto; padding: clamp(24px, 4vw, 60px) 0; }
.empty > svg { width: 52px; height: 52px; stroke: var(--red); fill: none; stroke-width: 1.4; margin: 0 auto 22px; }

/* ---------- Barre d'action mobile ---------- */
.actionbar { display: none; }

/* ---------- Animations discrètes ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, .15s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; transform: none; }
  .js .reveal, .js .rise { opacity: 1; transform: none; transition: none; animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .nav { gap: 18px; }
  .nav__link { font-size: .88rem; }
  .head-cta { display: none; }
}
@media (max-width: 1023px) {
  .intro { gap: 22px; }
  .intro > .stack { display: contents; }
  .intro .eyebrow { order: 0; justify-self: start; }
  .intro .statement { order: 1; }
  .intro .lead { order: 2; }
  .intro .link { order: 3; justify-self: start; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split, .split--even, .paths { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .sticky-photo { position: static; }
  .sticky-photo .photo--tall { aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .mosaic .photo:nth-child(2) { margin-top: 0; }
}
@media (max-width: 899px) {
  :root { --head-h: 70px; }
  .brand img { height: 48px; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: var(--head-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gut) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__link { font-family: var(--serif); font-size: 1.9rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav .nav__cta { margin-top: 32px; }
  .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 900px) { .nav .nav__cta { display: none; } }
@media (min-width: 1100px) { .head-cta { display: inline-flex; } }
@media (max-width: 719px) {
  body { font-size: 1rem; padding-bottom: 82px; }
  .hero { border-radius: 0 0 var(--r-m) var(--r-m); }
  .hero__body { min-height: min(84svh, 720px); padding-block: 100px 52px; }
  .hero::before { background: linear-gradient(0deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.62) 55%, rgba(14,15,17,.3) 100%); }
  .btn-row .btn { flex: 1 1 100%; }
  .defs > div { grid-template-columns: 1fr; gap: 4px; }
  .step { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .faq .faq__a { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .facts { padding-top: 24px; }
  .facts__item { padding: 20px 18px; }
  .facts dd { font-size: 1rem; white-space: nowrap; }
  .band { margin-inline: 12px; border-radius: var(--r-m); }
  .photo { border-radius: var(--r-m); }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .photo, .mosaic .photo:first-child { aspect-ratio: 4 / 3; grid-column: auto; }
  .card__body { padding: 24px; }
  .check { padding: 16px; }
  .extra { padding: 20px; }
  .actionbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(250,248,245,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
  .actionbar.is-on { transform: none; }
  .actionbar .btn { width: 100%; }
  .menu-open .actionbar { display: none; }
}


/* ---------- Portfolio : filtres, galerie par catégorie, visionneuse ---------- */
.pf-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.pf-filters { position: sticky; top: calc(var(--head-h) + 28px); display: flex; flex-direction: column; margin: 0; border-top: 1px solid var(--line); }
.pf-chip { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; min-height: 52px; padding: 14px 2px 14px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: 500 1.05rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.pf-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background-color .3s var(--ease); }
.pf-chip span { font: 500 1rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.pf-chip[aria-pressed="true"] { font-weight: 650; }
.pf-chip[aria-pressed="true"]::before { background: var(--red); }
@media (hover: hover) { .pf-chip:hover { color: var(--red-deep); } }
.pf-section { margin-bottom: clamp(56px, 8vw, 104px); }
.pf-section:last-child { margin-bottom: 0; }
.pf-section[hidden] { display: none; }
.pf-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.pf-count { color: var(--muted); font-size: .9rem; }
.pf-grid { columns: 3 300px; column-gap: clamp(14px, 2vw, 24px); }
.pf-item { break-inside: avoid; margin-bottom: clamp(14px, 2vw, 24px); }
.pf-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); text-align: left; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pf-open img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); filter: saturate(.95); }
.pf-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 18px 16px; color: #fff; background: linear-gradient(0deg, rgba(14,15,17,.72), rgba(14,15,17,0)); font-size: .95rem; line-height: 1.35; }
.pf-cap strong { font-weight: 600; }
.pf-cap small { opacity: .85; font-size: .8rem; }
@media (hover: hover) {
  .pf-cap { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
  .pf-open:hover, .pf-open:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(23,24,27,.05), 0 24px 44px -16px rgba(23,24,27,.3); }
  .pf-open:hover img { transform: scale(1.04); }
  .pf-open:hover .pf-cap, .pf-open:focus-visible .pf-cap { opacity: 1; transform: none; }
}
.pf-item.is-in { animation: pfIn .5s var(--ease); }
@keyframes pfIn { from { opacity: 0; transform: translateY(14px); } }

.pf-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 15, 17, .98); color: #fff; overflow: hidden; outline: none; }
.pf-lightbox:not([open]) { display: none; }
.pf-lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: pfFade .35s var(--ease); }
.pf-lightbox::backdrop { background: rgba(14, 15, 17, .6); }
@keyframes pfFade { from { opacity: 0; } }
.pf-fig { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; padding: 24px 0; }
.pf-fig img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-s); animation: pfZoom .45s var(--ease); }
@keyframes pfZoom { from { opacity: 0; transform: scale(.97); } }
.pf-fig figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: .95rem; color: rgba(255,255,255,.85); text-align: center; padding: 0 12px; }
.pf-fig__n { color: rgba(255,255,255,.55); }
.pf-nav, .pf-x { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; justify-self: center; transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.pf-nav svg, .pf-x svg { width: 22px; height: 22px; }
.pf-x { position: absolute; top: 16px; right: 16px; z-index: 2; width: 46px; height: 46px; }
@media (hover: hover) { .pf-nav:hover, .pf-x:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); } }
.pf-nav[hidden] { visibility: hidden; display: grid; }
@media (max-width: 719px) {
  .pf-lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .pf-nav { position: absolute; bottom: 18px; width: 48px; height: 48px; }
  .pf-prev { left: 18px; }
  .pf-next { right: 18px; }
  .pf-fig { padding: 64px 0 90px; }
  .pf-fig img { max-height: calc(100svh - 220px); border-radius: 0; }
  .pf-layout { grid-template-columns: 1fr; gap: 28px; }
  .pf-filters { position: static; }
  .pf-grid { columns: 2; column-gap: 12px; }
  .pf-item { margin-bottom: 12px; }
  .pf-open { border-radius: var(--r-s); }
  .pf-cap { padding: 28px 12px 10px; font-size: .8rem; }
  .pf-cap small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pf-item.is-in, .pf-lightbox[open], .pf-fig img { animation: none; } }

/* Mode capture (#cap) */
.cap *, .cap *::before, .cap *::after { animation: none !important; transition: none !important; }
.cap .reveal, .cap .rise { opacity: 1 !important; transform: none !important; }
.cap .hero__media img { transform: none !important; }
