/* Celty'Deco : feuille de style du site (toutes les pages).
   Identite : le violet et le turquoise du logo, un papier chaud, les photos des chantiers en grand.
   Polices hebergees sur le site (Fraunces pour les titres, Figtree pour le texte), aucun appel a un service tiers. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #f7f3ec; --bg-2: #ede7db; --card: #fffdf9;
  --ink: #1d1626; --muted: #5f5769; --line: rgba(29, 22, 38, .14);
  --brand: #4d1787; --brand-hover: #3a0f69; --brand-ink: #fff;
  --deep: #1f0b35; --deep-ink: #f3ecfa; --deep-muted: #b9a9cc;
  --accent: #1f6a80; --accent-soft: #6cc4da;
  --r: 14px; --r-sm: 9px;
  --gutter: clamp(20px, 4.2vw, 80px);
  --max: 1840px;
  --gap: clamp(16px, 1.6vw, 32px);
  --sec: clamp(64px, 8vw, 148px);
  --head: 76px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(1rem, .28vw + .93rem, 1.1875rem)/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- titres et textes */
h1, h2, .display { font-family: var(--display); font-weight: 420; letter-spacing: -.018em; line-height: 1.04; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 4.6vw + .6rem, 6.25rem); }
h2 { font-size: clamp(2rem, 2.9vw + .7rem, 4.25rem); }
h3 { font: 600 clamp(1.125rem, .5vw + 1rem, 1.5rem)/1.25 var(--text); letter-spacing: -.005em; }
.t-lead { font-size: clamp(1.125rem, .7vw + .95rem, 1.6rem); line-height: 1.5; max-width: 46ch; }
.t-label { font: 600 .8125rem/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.t-small { font-size: .9375rem; }
.muted { color: var(--muted); }
p { max-width: 70ch; }

/* ---------- conteneur et grille */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.grid--top { align-items: start; }
@media (min-width: 900px) {
  .span-3 { grid-column: auto / span 3; } .span-4 { grid-column: auto / span 4; } .span-5 { grid-column: auto / span 5; } .span-6 { grid-column: auto / span 6; }
  .span-7 { grid-column: auto / span 7; } .span-8 { grid-column: auto / span 8; }
  .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; } .start-9 { grid-column-start: 9; }
}
@media (min-width: 600px) and (max-width: 899px) { .tiles > .tile, .cards > * { grid-column: auto / span 6; } }
.stack > * + * { margin-top: 1em; }

/* ---------- boutons et liens */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 1.6em; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--light { background: #fff; color: var(--deep); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-hover); }
  .btn--secondary:hover { background: var(--ink); color: var(--bg); }
  .btn--light:hover { background: var(--deep-ink); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--accent); transition: text-decoration-color 160ms ease, color 160ms ease; }
.link::after { content: "\2192"; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--brand); text-decoration-color: currentColor; } .link:hover::after { transform: translateX(3px); } }
.prose a, p a:not(.btn, .link, .bigtel), .facts a, .ticks a, .cols a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .prose a:hover, p a:not(.btn, .link, .bigtel):hover, .facts a:hover, .ticks a:hover, .cols a:hover { color: var(--brand); } }

/* ---------- en-tete */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
.head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.head__bar { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 44px); min-height: var(--head); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 clamp(1.3rem, .6vw + 1.1rem, 1.75rem)/1 var(--display); letter-spacing: -.02em; min-height: 44px; }
.logo img { width: 34px; height: 34px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 36px); margin-left: auto; list-style: none; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease-out); }
.menu a[aria-current="page"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .menu a:hover::after { transform: none; } }
.head__cta { display: flex; align-items: center; gap: 14px; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tel svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.head .btn { min-height: 46px; padding: 0 1.2em; }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: transparent; cursor: pointer; align-items: center; justify-content: center; touch-action: manipulation; }
.burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
@media (max-width: 1099px) {
  .burger { display: inline-flex; }
  .head__cta { margin-left: auto; }
  .menu { position: fixed; inset: var(--head) 0 0 0; margin: 0; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms; }
  .head.is-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
  .menu li { border-bottom: 1px solid var(--line); }
  .menu a { min-height: 60px; width: 100%; font: 500 1.5rem/1 var(--display); }
  .menu a::after { display: none; }
}
@media (max-width: 599px) { .head .btn { display: none; } .tel span { display: none; } .tel { width: 46px; height: 46px; justify-content: center; border: 1.5px solid var(--ink); border-radius: var(--r-sm); } .tel svg { stroke: var(--ink); } }

/* ---------- accueil : ouverture en pleine largeur */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__text { padding: clamp(36px, 6vw, 120px) var(--gutter) clamp(36px, 5vw, 96px) var(--edge); display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 1.8vw, 32px); }
.hero__text h1 { max-width: 11.5ch; }
.hero__media { position: relative; min-height: clamp(380px, 96vw, 620px); background: var(--bg-2); }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; left: clamp(12px, 2vw, 32px); bottom: clamp(12px, 2vw, 32px); max-width: min(360px, calc(100% - 24px)); background: var(--card); border-radius: var(--r); padding: 18px 22px; box-shadow: 0 12px 40px rgba(29, 22, 38, .18); }
.hero__card strong { display: block; font: 500 1.375rem/1.2 var(--display); }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: min(calc(100svh - var(--head)), 980px); }
  .hero__media { min-height: 0; }
}
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proofs > div { padding: clamp(18px, 2vw, 36px) clamp(14px, 1.6vw, 32px); border-left: 1px solid var(--line); }
.proofs > div:nth-child(odd) { border-left: 0; }
.proofs b { display: block; font: 420 clamp(1.9rem, 2.4vw + .8rem, 3.75rem)/1 var(--display); letter-spacing: -.02em; color: var(--brand); }
.proofs span { display: block; margin-top: 8px; color: var(--muted); max-width: 26ch; }
@media (min-width: 900px) { .proofs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .proofs > div:nth-child(odd) { border-left: 1px solid var(--line); } .proofs > div:first-child { border-left: 0; } }

@media (max-width: 599px) { .hero .btn-row .btn, .foot__cta .btn { flex: 1 1 100%; } .hero__card { padding: 12px 16px; } .hero__card strong { font-size: 1.125rem; } }

/* ---------- sections */
.sec { padding: var(--sec) 0; }
.sec--tint { background: var(--bg-2); }
.sec--deep { background: var(--deep); color: var(--deep-ink); }
.sec--deep .muted { color: var(--deep-muted); }
.sec--deep .t-label { color: var(--accent-soft); }
.sec--deep :focus-visible { outline-color: var(--accent-soft); }
.sec--deep .link { text-decoration-color: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .sec--deep .link:hover { color: var(--accent-soft); } }
.sec__head { display: grid; gap: 16px 48px; margin-bottom: clamp(28px, 3.4vw, 64px); align-items: end; }
.sec__head > div > * + * { margin-top: 14px; }
@media (min-width: 900px) { .sec__head { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- prestations : cartes photo */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); list-style: none; }
.cards > * { grid-column: 1 / -1; }
@media (min-width: 600px) and (max-width: 899px) { .cards > * { grid-column: auto / span 6; } }
@media (min-width: 900px) { .cards > * { grid-column: auto / span 4; } .cards > :last-child { grid-column: auto / span 8; } }
@media (min-width: 1300px) { .cards > *, .cards > :last-child { grid-column: auto / span 3; } }
.pcard { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border-radius: var(--r); overflow: clip; border: 1px solid var(--line); }
.pcard__img { position: relative; aspect-ratio: 4 / 3; overflow: clip; background: var(--bg-2); }
.pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.pcard__body { padding: clamp(16px, 1.3vw, 26px); display: grid; gap: 8px; align-content: start; flex: 1; }
.pcard__body p { color: var(--muted); font-size: .9875em; }
.pcard__more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--brand); display: inline-flex; gap: .5em; align-items: center; }
.pcard__more::after { content: "\2192"; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pcard:hover .pcard__img img { transform: scale(1.04); } .pcard:hover .pcard__more::after { transform: translateX(4px); } }
.pcard--cta { background: var(--brand); color: #fff; border-color: transparent; justify-content: space-between; padding: clamp(20px, 1.8vw, 34px); gap: 24px; }
.pcard--cta h3 { font: 420 clamp(1.6rem, 1.6vw + 1rem, 2.6rem)/1.08 var(--display); letter-spacing: -.015em; }
.pcard--cta p { color: #e6d8f5; }

/* ---------- avant / apres */
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: clip; background: #000; --pos: 50%; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 12, 30, .78); color: #fff; font: 600 .8125rem/1 var(--text); letter-spacing: .04em; pointer-events: none; }
.ba__tag--l { left: 14px; } .ba__tag--r { right: 14px; }
.ba__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f0b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(input:focus-visible) { outline: 3px solid var(--accent-soft); outline-offset: 4px; }
.ba--page { max-width: 1200px; }

/* ---------- chantiers : mosaique et tuiles */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.mosaic > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mosaic > :first-child { grid-column: span 2; grid-row: span 2; } .mosaic > :first-child .tile__media { aspect-ratio: auto; height: 100%; min-height: 420px; } .mosaic > :first-child { display: grid; grid-template-rows: minmax(0, 1fr) auto; } }
.tile { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.tile__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: clip; background: var(--bg-2); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.tile:hover .tile__media img { transform: scale(1.04); } a.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; } }
.tile__facts { color: var(--muted); font-size: .9375rem; margin-top: -6px; }
.tile > p:not(.tile__facts) { color: var(--muted); }
.tiles { row-gap: clamp(28px, 3vw, 56px); }
.tiles .tile[hidden] { display: none; }

/* ---------- l'artisan, les etapes */
.quote { font: 400 italic clamp(1.9rem, 2.6vw + .8rem, 4rem)/1.12 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.quote b { font-weight: 400; color: var(--brand); }
.steps4 { display: grid; gap: var(--gap); list-style: none; counter-reset: s; margin-top: clamp(40px, 5vw, 96px); }
.steps4 li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.steps4 li::before { content: "0" counter(s); font: 420 clamp(1.6rem, 1.4vw + 1rem, 2.5rem)/1 var(--display); color: var(--brand); }
.steps4 p { color: var(--muted); }
@media (min-width: 700px) { .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- cadres photo */
.frame { position: relative; border-radius: var(--r); overflow: clip; background: var(--bg-2); aspect-ratio: 5 / 4; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame__img, .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- communes */
.towns { list-style: none; columns: 2 150px; column-gap: var(--gap); }
.towns li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.towns a { display: flex; align-items: center; min-height: 46px; text-decoration: none; font-weight: 500; transition: color 160ms ease, padding-left 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .towns a:hover { color: var(--brand); padding-left: 6px; } }
@media (min-width: 700px) { .towns { columns: 3 160px; } }
@media (min-width: 1300px) { .towns { columns: 4 170px; } }

/* ---------- questions */
.faq { display: grid; }
.faq > :is(details, .faq__item) { border-bottom: 1px solid var(--line); }
.faq > :first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; padding: 14px 0; font: 600 clamp(1.0625rem, .4vw + 1rem, 1.375rem)/1.3 var(--text); touch-action: manipulation; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq details > :not(summary) { padding-bottom: 22px; color: var(--muted); max-width: 68ch; }
.faq__item { padding: 22px 0; display: grid; gap: 8px; }
.faq__item p { color: var(--muted); max-width: 68ch; }

/* ---------- formulaire */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2vw, 40px); }
.card > * + * { margin-top: 16px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form > :is(.field--full, .btn-row, p, .honey) { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.field :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid rgba(29, 22, 38, .32); border-radius: var(--r-sm); background: #fff; font-size: 1rem; font-weight: 400; transition: border-color 160ms ease, box-shadow 160ms ease; }
.field textarea { padding: 12px 14px; min-height: 132px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(77, 23, 135, .2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-weight: 600; font-size: .9375rem; }
.field__error[hidden] { display: none; }
.form__status { min-height: 1.4em; font-weight: 600; }
.form__status:empty { min-height: 0; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.form .check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.form .honey { position: absolute; left: -9999px; }
@media (max-width: 599px) { .form { grid-template-columns: minmax(0, 1fr); } }
.bigtel { display: inline-flex; align-items: center; min-height: 56px; font: 420 clamp(2rem, 2.4vw + 1rem, 3.75rem)/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--brand); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .bigtel:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; } }

/* ---------- pied de page */
.foot { background: var(--deep); color: var(--deep-ink); padding: clamp(48px, 6vw, 110px) 0 calc(28px + env(safe-area-inset-bottom)); }
.foot :focus-visible { outline-color: var(--accent-soft); }
.foot__cta { display: grid; gap: 24px; align-items: end; padding-bottom: clamp(36px, 4.4vw, 80px); margin-bottom: clamp(36px, 4.4vw, 80px); border-bottom: 1px solid rgba(243, 236, 250, .2); }
.foot__cta h2 { max-width: 16ch; }
.foot__cta p { color: var(--deep-muted); margin-top: 14px; }
@media (min-width: 900px) { .foot__cta { grid-template-columns: minmax(0, 1fr) auto; } }
.foot__grid { display: grid; gap: 36px var(--gap); }
@media (min-width: 700px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot .logo { color: #fff; font-size: clamp(1.75rem, 1.2vw + 1.3rem, 2.5rem); }
.foot .logo img { width: 44px; height: 44px; }
.foot h3 { font: 600 .8125rem/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--deep-muted); margin-bottom: 8px; }
.foot ul { list-style: none; }
.foot li a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--accent-soft); } }
.foot__lede { color: var(--deep-muted); margin-top: 14px; max-width: 34ch; }
.foot__legal { margin-top: clamp(36px, 4vw, 72px); padding-top: 20px; border-top: 1px solid rgba(243, 236, 250, .2); display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; color: var(--deep-muted); font-size: .9375rem; }

/* ---------- pages interieures */
.page-head { padding: clamp(28px, 3.6vw, 72px) 0 clamp(36px, 4.4vw, 88px); }
.page-head__text { display: grid; gap: clamp(14px, 1.3vw, 24px); align-content: center; }
.page-head h1 { font-size: clamp(2.2rem, 3.2vw + .8rem, 4.75rem); max-width: 17ch; }
.page-head__media { aspect-ratio: 4 / 3; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; font-size: .9375rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.blk { padding: clamp(44px, 5.2vw, 104px) 0; }
.blk.ground-surface { background: var(--bg-2); }
.blk > .wrap > * + * { margin-top: clamp(18px, 1.6vw, 28px); }
.blk > .wrap > h2, .qhead h2 { font-size: clamp(1.8rem, 2vw + .9rem, 3.25rem); max-width: 22ch; }
.blk > .wrap > .t-label + h2 { margin-top: 8px; }
.blk > .wrap > h2 + * { margin-top: clamp(24px, 2.4vw, 44px); }
.blk--tail { padding: clamp(28px, 3vw, 56px) 0 clamp(44px, 5vw, 88px); }
.prose > * + * { margin-top: 1em; }
.prose > h2 { font-size: clamp(1.5rem, 1.1vw + 1.1rem, 2.25rem); margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose .t-lead { max-width: 52ch; }
.aside > * + * { margin-top: var(--gap); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks > li { position: relative; padding-left: 28px; }
.ticks > li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; }
.facts dt { color: var(--muted); }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li { padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-size: .9375rem; }
.swatches, .filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.swatches li, .swatches a { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(29, 22, 38, .2); flex: none; }
.filters { gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(29, 22, 38, .28); background: transparent; color: var(--ink); font: 600 .9375rem/1 var(--text); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.rows { list-style: none; display: grid; max-width: 900px; }
.rows > li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.rows__name { font-weight: 700; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px var(--gap); }
.note { padding: 20px 24px; border-radius: var(--r); background: var(--bg-2); border-left: 4px solid var(--accent); }
.ground-surface .note, .ground-surface .meta li { background: var(--bg); }
.pair .frame { aspect-ratio: 4 / 3; }
.communes-list { margin-top: clamp(24px, 3vw, 56px); }
.commune { padding: clamp(20px, 2vw, 36px) 0; border-top: 1px solid var(--line); row-gap: 8px; }
.commune > div > * + * { margin-top: 8px; }
.commune h3 { font: 420 clamp(1.4rem, 1vw + 1.1rem, 2rem)/1.15 var(--display); letter-spacing: -.01em; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.qhead > * + * { margin-top: 12px; }
[id] { scroll-margin-top: calc(var(--head) + 16px); }
.gal { columns: 3 300px; column-gap: var(--gap); }
.gal__item { display: block; margin-bottom: var(--gap); border-radius: var(--r); overflow: clip; break-inside: avoid; background: var(--bg-2); cursor: zoom-in; touch-action: manipulation; }
.gal__item img { width: 100%; transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gal__item:hover img { transform: scale(1.03); } }
.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20, 10, 32, .95); color: #fff; opacity: 0; transition: opacity 150ms var(--ease-out), overlay 150ms allow-discrete, display 150ms allow-discrete; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; opacity: 1; transition-duration: 220ms; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox__img { width: 100%; height: 100%; object-fit: contain; padding: 56px 20px 8px; transform: scale(.97); transition: transform 240ms var(--ease-out); }
.lightbox[open] .lightbox__img { transform: none; }
@starting-style { .lightbox[open] .lightbox__img { transform: scale(.97); } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); }
.lightbox__cap { font-size: .9375rem; }
.lightbox__btns { display: flex; gap: 8px; flex: none; }
.lightbox button { min-width: 46px; min-height: 46px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: transparent; color: inherit; font-weight: 600; padding: 0 16px; cursor: pointer; touch-action: manipulation; transition: background-color 150ms ease, transform 140ms var(--ease-out); }
.lightbox button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .lightbox button:hover { background: rgba(255, 255, 255, .16); } }
@media (max-width: 899px) { .split > .aside { margin-top: 12px; } .facts { grid-template-columns: minmax(0, 1fr); gap: 0; } .facts dd { margin-bottom: 10px; } }

/* ---------- l'arrivee de la page d'accueil : une seule fois, au chargement, courte */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 600ms var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: 60ms; } .hero__text > :nth-child(3) { animation-delay: 120ms; } .hero__text > :nth-child(4) { animation-delay: 180ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
/* mouvement reduit : on garde les fondus et les couleurs, on retire les deplacements et les zooms */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .chip, .link::after, .pcard__more::after, .pcard__img img, .tile__media img, .gal__item img, .lightbox__img, .towns a, .menu, .menu a::after, .faq summary::after { transition-property: color, background-color, border-color, opacity, visibility; }
  .btn:active, .chip:active, .lightbox button:active { transform: none; }
  .pcard:hover .pcard__img img, a.tile:hover .tile__media img, .gal__item:hover img { transform: none; }
  .lightbox__img { transform: none; }
}
