/* Villa Roxana — système angulaire : aucun arrondi, filets fins, didone + grotesque. */
/* Polices variables hébergées sur le site (sous-ensemble latin, licence SIL OFL). */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/bodoni-moda.woff2?v=fe710b15e2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/instrument-sans.woff2?v=6219bc4bfd') format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/source-serif-4.woff2?v=8e38e3fbd7') format('woff2'); }
:root {
  color-scheme: light;
  --ink: #1d1d21;
  --muted: #5a5a63;
  --red: #e00000;        /* rouge commun du monogramme et de l’interface */
  --canvas: #fff;
  --paper: #f6f5f3;
  --line: #e4e2df;
  --line-strong: #cfccc7;
  --brand-heading: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --heading: 'Source Serif 4', Georgia, serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 84px;
  --field-h: 48px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 1.5rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--ink); color: #fff; font-weight: 600; }
.shell { width: min(100% - 5rem, 74rem); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2 { font-family: var(--heading); font-weight: 500; font-optical-sizing: auto; letter-spacing: -.01em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
h3 { font: 600 1rem/1.35 var(--body); letter-spacing: -.005em; }
p { text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; color: var(--red); font: 600 .72rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.lead, .page-heading p { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: .85rem; width: fit-content; text-decoration: none; }
.brand-logo { height: 48px; width: auto; }
.brand-mark { display: block; width: 48px; height: 48px; flex: none; }
.brand-mark-bg { fill: var(--red); }
.brand-mark-frame { fill: none; stroke: #fff; stroke-width: 2.0833; }
.brand-mark-ink { fill: #fff; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; }
.brand-text strong { font: 500 1.3rem/1 var(--brand-heading); letter-spacing: .01em; }
.brand-text small { color: var(--muted); font: 500 .66rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- En-tête ---------- */
.site-header { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.site-header::before { content: ''; display: block; height: 3px; background: var(--red); }
.masthead { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.primary-nav { display: flex; align-self: stretch; gap: 2.25rem; }
.primary-nav a { position: relative; display: flex; flex: none; align-items: center; color: var(--ink); font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.primary-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.primary-nav a:hover::after, .primary-nav [aria-current="page"]::after { transform: scaleX(1); }
.primary-nav [aria-current="page"] { color: var(--red); }
.primary-nav a:focus-visible { outline-offset: -2px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.header-tasks-slot { --task-button-size: 42px; position: relative; flex: none; width: var(--task-button-size); height: var(--task-button-size); }
.header-tasks {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: var(--task-button-size);
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .16s;
}
.header-tasks:hover, .header-tasks[aria-current="page"] { box-shadow: inset 0 0 0 1px #fff; }
.header-tasks-icon { display: grid; place-items: center; flex: 0 0 calc(var(--task-button-size) - 2px); }
.header-tasks-label {
  flex: none;
  padding-inline-start: 1.1rem;
  color: inherit;
  font: 600 .78rem/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .header-tasks.task-celebration {
    z-index: 1;
    transform-origin: right center;
    animation: task-header-expand 2.6s ease-in-out;
  }
  .task-celebration .header-tasks-label { animation: task-header-label 2.6s ease-in-out; }
}
@keyframes task-header-expand {
  0%, 88%, 100% { width: var(--task-button-size); transform: none; }
  11%, 75% { width: 11rem; transform: none; }
  92% { transform: scaleX(.91) scaleY(1.04); }
  96% { transform: scaleX(1.04) scaleY(.98); }
}
@keyframes task-header-label {
  0%, 5%, 87%, 100% { opacity: 0; }
  13%, 76% { opacity: 1; }
}
.header-contact { display: inline-flex; align-items: center; gap: .6rem; height: 42px; padding: 0 1.1rem; border: 1px solid var(--ink); color: var(--ink); font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background-color .16s, color .16s; }
.header-contact svg { width: 1rem; height: 1rem; }
.header-contact:hover, .header-contact[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Champs & boutons ---------- */
.input-wrap { display: flex; align-items: center; gap: .7rem; height: var(--field-h); padding: 0 1rem; background: #fff; border: 1px solid var(--line-strong); transition: border-color .16s, box-shadow .16s; }
.input-wrap svg { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.input-wrap input { flex: 1; min-width: 0; width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); }
.input-wrap input::placeholder { color: #8b8a91; }
.input-wrap input:focus, .input-wrap input:focus-visible { outline: none; }
.input-wrap:hover { border-color: var(--muted); }
.input-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: 2px solid var(--red); outline-offset: 3px; }
.input-wrap:focus-within svg { color: var(--red); }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: var(--field-h); padding: 0 1.4rem; border: 1px solid var(--red); background: var(--red); color: #fff; font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .16s, border-color .16s, color .16s; }
button:hover, .button:not(.secondary):hover { box-shadow: inset 0 0 0 1px #fff; }
.button.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }
.button.action { min-height: 44px; max-width: 100%; height: auto; padding: .65rem 1rem; font-size: .91rem; line-height: 1.35; letter-spacing: 0; text-align: center; text-transform: none; white-space: normal; overflow-wrap: anywhere; }

.text-link { color: var(--red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Bandeau d'accueil ----------
   Cour-jardin en perspective centrale : titre posé dans le ciel entre les deux ailes,
   recherche à cheval sur les massifs, au pied du bâtiment du fond. */
.hero { position: relative; display: grid; background: #2c4f86; }
.hero-image, .hero-panel { grid-area: 1 / 1; }
.hero-image { position: relative; display: block; height: clamp(500px, 54vw, 760px); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 28, 52, .62) 0%, rgba(12, 28, 52, .34) 30%, rgba(12, 28, 52, 0) 52%), linear-gradient(0deg, rgba(12, 20, 30, .18) 0%, rgba(12, 20, 30, 0) 30%); pointer-events: none; }
.hero-panel { z-index: 1; align-self: start; display: flex; flex-direction: column; align-items: center; padding: clamp(1.75rem, 2.6vw, 2.5rem) 2.5rem 0; color: #fff; text-align: center; }
.hero-panel .eyebrow { color: #fff; }
.hero-panel .eyebrow::after { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.hero-panel h1 { margin-top: 1.1rem; font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.04; text-shadow: 0 2px 28px rgba(8, 20, 40, .45); }
.hero-panel p { max-width: 52ch; margin-top: .9rem; color: rgba(255, 255, 255, .92); font-size: 1.0625rem; }
.search-form { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translate(-50%, 50%); display: flex; gap: .6rem; width: min(100% - 5rem, 40rem); padding: .75rem; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 24px 44px -26px rgba(20, 20, 30, .5); }
.search-form .input-wrap { flex: 1; }

/* ---------- Sections d'accueil ---------- */
.home-content { padding-top: 6rem; padding-bottom: 5rem; }
.home-section + .home-section { margin-top: 4rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.section-heading .text-link { font-size: .9rem; }

.quick-grid, .topic-grid, .article-grid { display: grid; margin: 0; padding: 0; list-style: none; }
.quick-grid, .topic-grid, .article-grid { gap: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.quick-grid > li, .topic-grid > li, .article-grid > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-grid a, .topic-grid a { position: relative; height: 100%; display: flex; align-items: center; gap: 1rem; text-decoration: none; transition: background-color .16s; }
.quick-grid a::before, .topic-grid a::before, .article-card::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .2s; }
.quick-grid a:hover, .topic-grid a:hover, .article-card:hover { background: var(--paper); }
.quick-grid a:hover::before, .topic-grid a:hover::before, .article-card:hover::before { transform: scaleY(1); }
.quick-grid a:focus-visible, .topic-grid a:focus-visible { outline-offset: -3px; }
.quick-grid a { padding: 1.25rem 1.25rem; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.quick-grid a > svg, .topic-grid a > svg { margin-left: auto; width: 1rem; height: 1rem; color: var(--muted); transition: transform .2s, color .2s; }
.quick-grid a:hover > svg, .topic-grid a:hover > svg { color: var(--red); transform: translateX(3px); }
.tile-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; color: #fff; background: var(--ink); }
.quick-grid .tile-icon, #secours .tile-icon { background: var(--red); }
.tile-icon svg { width: 1.25rem; height: 1.25rem; stroke-width: 1.8; }
.teaser-heading { display: flex; align-items: center; gap: .8rem; }
.topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-grid a { align-items: flex-start; padding: 1.5rem 1.4rem; gap: 1.1rem; }
.topic-grid a > svg { align-self: center; }
.topic-grid p, .article-card p { margin-top: .35rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.audience { display: flex; align-items: center; gap: 1.5rem; padding: 2rem; background: var(--paper); border-top: 3px solid var(--ink); }
.audience h2 { font-size: 1.6rem; }
.audience p { margin-top: .35rem; color: var(--muted); }
.audience-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .75rem; }
.audience-actions .button[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.urgent-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem; color: var(--red); font-weight: 600; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.urgent-link svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Pages intérieures ---------- */
.inner-content { padding-block: 2.25rem 5rem; min-height: 65vh; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 2.5rem; color: var(--muted); font: 500 .72rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb > * + *::before { content: ''; display: inline-block; width: .9rem; height: 1px; margin-right: .6rem; vertical-align: middle; background: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--ink); }
.page-heading { padding-bottom: 2.5rem; }
.page-heading .eyebrow { margin-bottom: 1.1rem; }
.page-heading h1 { max-width: 22ch; }
.page-heading p { max-width: 58ch; margin-top: 1rem; }

.filter-panel { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(10rem, 1fr) minmax(9rem, .85fr) auto; align-items: end; gap: 1.25rem; padding: 1.5rem; background: var(--paper); border-top: 3px solid var(--ink); }
.filter-panel label { display: block; color: var(--ink); font: 600 .72rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.filter-panel .input-wrap, .filter-panel select { margin-top: .6rem; }
.filter-panel select { display: block; width: 100%; height: var(--field-h); padding: 0 2.5rem 0 1rem; appearance: none; color: var(--ink); font: 400 1rem var(--body); letter-spacing: 0; text-transform: none; background: #fff no-repeat right 1rem center / .8rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%231d1d21' stroke-width='1.5'/%3E%3C/svg%3E"); border: 1px solid var(--line-strong); }
.filter-panel select:hover { border-color: var(--muted); }
.filter-panel select:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline-offset: 3px; }
.result-bar { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }

.library-section { margin-top: 3rem; }
.library-section h2 { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; font-size: 1.6rem; }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-card { position: relative; padding: 1.4rem; transition: background-color .16s; }
.article-card a { text-decoration: none; }
.article-card a::after { content: ''; position: absolute; inset: 0; }
.article-card a:focus-visible { outline: none; }
.article-card a:focus-visible::after { outline: 2px solid var(--red); outline-offset: -4px; }
.topic-label { display: block; margin-bottom: .6rem; color: var(--red); font: 600 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.empty { margin-top: 1.5rem; padding: 2rem; background: var(--paper); border-top: 3px solid var(--ink); }
.empty p { margin-block: .6rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.contact-card, .notice { padding: 1.75rem; background: var(--paper); border-top: 3px solid var(--ink); }
.contact-card { display: flex; flex-direction: column; }
.contact-card:target, .profile-grid section:target { border-top-color: var(--red); }
.contact-card h3 { font: 500 1.3rem/1.2 var(--heading); letter-spacing: 0; }
.contact-card p, .notice p { margin-top: .5rem; }
.action-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.action-links.paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-links.paired + .action-links.paired { margin-top: .65rem; }
.supplier-card { border-top-color: var(--red); }
.supplier-card address { font-style: normal; overflow-wrap: anywhere; }
.supplier-card p { margin-top: .85rem; }
.article-note { margin-top: 1rem; }
.muted, .article-sources { color: var(--muted); }
.notice h2 { font-size: 1.5rem; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(16rem, 1fr); gap: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--ink); }
.detail-layout aside h2, .detail-body h2, .related h2 { margin-bottom: 1.1rem; font-size: 1.5rem; }
.steps { margin: 0 0 2.5rem; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 1rem 0 1rem 3.25rem; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps > li:first-child { border-top: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1rem; color: var(--red); font: 600 1.15rem/1.4 var(--body); }
.step-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem .75rem; }
.step-heading + p { margin-top: .3rem; }
.step-progress { flex: none; border: 1px solid var(--line-strong); border-radius: .3rem; padding: .15rem .5rem; color: var(--ink); font: 600 .8rem/1.4 var(--body); }
.step-progress[data-state="done"] { border-color: var(--red); background: var(--red); color: #fff; }
.step-progress[data-state="partial"] { border-color: var(--red); color: var(--red); }
.steps .action-links { margin-top: .7rem; }
.article-info { padding: 1rem 1.25rem; border-top-color: var(--red); }
.detail-body .article-info h2 { margin-bottom: .5rem; font-size: 1.3rem; }
.step-references { margin-top: .75rem; font-size: .92rem; }

/* ---------- Puces angulaires ----------
   Chevron rouge pour une ligne qui mène quelque part, petit carré gris pour une simple information.
   Repère centré sur la première ligne (unité lh), retrait commun pour aligner les textes. */
.step-references, .article-sources ul { margin-bottom: 0; padding-left: 0; list-style: none; }
.step-references > li, .article-sources li { position: relative; padding-left: 1.15rem; }
.step-references > li + li, .article-sources li + li { margin-top: .4rem; }
.step-references > li::before, .article-sources li::before { content: ''; position: absolute; left: .15rem; top: calc(.5lh - 2.5px); width: 5px; height: 5px; background: #9a99a0; }
.step-references > li:has(> a)::before, .article-sources li:has(> a)::before { left: .05rem; top: calc(.5lh - .21rem); width: .42rem; height: .42rem; background: none; border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
.step-references > li:has(> a:hover)::before, .article-sources li:has(> a:hover)::before { transform: translateX(3px) rotate(45deg); }

/* ---------- Schémas « vue d’architecte » ----------
   Trait noir sur papier quadrillé, gris pour les lignes secondaires, rouge pour le repère. */
.plan { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 1rem 2rem; margin: 1.25rem 0 .25rem; padding: 1.5rem 1.5rem 1.25rem; border-top: 3px solid var(--ink); background-color: var(--paper); background-image: linear-gradient(rgba(29, 29, 33, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 29, 33, .045) 1px, transparent 1px); background-size: 16px 16px; background-position: -1px -1px; }
.plan-panel { min-width: 0; }
.plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.plan-panel:last-of-type svg { max-width: 300px; margin-inline: auto; }
.plan-panel:only-of-type { grid-column: 1 / -1; }
.plan-panel:only-of-type svg { max-width: 440px; }
.plan-body { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.plan-line { fill: none; stroke: #a3a2a8; stroke-width: 1; }
.plan-button { fill: #e8e7e4; stroke: var(--ink); stroke-width: 1.2; }
.plan-insert { stroke: var(--ink); stroke-width: 1.2; }
.plan-hatch { stroke: #c2c1c5; stroke-width: .7; }
.plan-hole { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.plan-engraving { fill: #4c4b51; font: 600 7.4px var(--body); letter-spacing: .5px; }
.plan-axis { fill: none; stroke: #b9b8bd; stroke-width: .8; stroke-dasharray: 14 3 2 3; }
.plan-leader { fill: none; stroke: var(--ink); stroke-width: .9; }
.plan-dot { fill: var(--ink); }
.plan-label { fill: var(--ink); font: 600 11.5px var(--body); letter-spacing: .12em; }
.plan-lens { fill: #fff; }
.plan-callout { fill: none; stroke: var(--red); stroke-width: 1.6; }
.plan-callout-dash { stroke-dasharray: 5 3; }
.plan-detail * { vector-effect: non-scaling-stroke; }
.plan-tag circle { fill: var(--red); }
.plan-tag text { fill: #fff; font: 700 12px var(--body); text-anchor: middle; dominant-baseline: central; }
.plan-note { margin-top: .6rem; color: var(--muted); font: 600 .68rem/1.3 var(--body); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.plan-note-accent { color: var(--red); }
.plan figcaption { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .92rem; }
.plan figcaption strong { color: var(--ink); }
@media (max-width: 520px) {
  .plan { grid-template-columns: 1fr; padding: 1.25rem 1rem 1rem; }
  .plan-panel:first-of-type svg { max-width: 320px; margin-inline: auto; }
}
.steps:has(+ .destination-grid) { margin-bottom: 1rem; }
.topic-grid.destination-grid { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); margin-bottom: 2.5rem; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.profile-grid h3 { font-size: 1rem; }
.profile-grid .profile-selected { background: #fff4f3; border-top-color: var(--red); }
.profile-grid .profile-muted { background: #f4f4f4; border-top-color: var(--line-strong); color: var(--muted); }
.article-sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .88rem; }
.article-sources h2 { margin-bottom: .5rem; font: 600 .72rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.article-sources ul { margin: 0; }
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--ink); }

/* ---------- Suivi des démarches ---------- */
.task-status { color: var(--muted); font-size: .94rem; }
.task-status:not(:empty) { margin-block: .75rem; }
.task-start { width: 16rem; max-width: 100%; margin-top: 1rem; }
.task-start-controls { display: grid; }
.task-start [data-task-confirmation] { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.task-start [data-task-confirmation] svg { width: 1rem; height: 1rem; stroke-width: 2.5; }
.task-start button[aria-disabled="true"] { cursor: default; }
.task-start .task-status { margin: .6rem 0 0; font-size: .94rem; }
.task-page-heading { padding-bottom: 1.4rem; }
.tasks-panel { max-width: 54rem; }
.task-list { display: grid; gap: .8rem; }
.task-card { padding: .9rem clamp(.9rem, 2.5vw, 1.25rem); background: var(--paper); border-top: 3px solid var(--red); }
.task-card[data-complete="true"] { border-top-color: var(--ink); }
.task-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .75rem; }
.task-heading h2 { font-size: 1.35rem; line-height: 1.2; }
.task-heading a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.task-state { color: var(--red); font-size: .875rem; font-weight: 700; }
.task-card[data-complete="true"] .task-state { color: var(--ink); }
.task-meter { display: flex; align-items: center; gap: .65rem; margin: .55rem 0 .65rem; }
.task-meter p { color: var(--muted); font-size: .875rem; }
.task-meter progress { flex: 1; min-width: 0; height: .35rem; appearance: none; border: 0; background: var(--line); accent-color: var(--red); }
.task-meter progress::-webkit-progress-bar { background: var(--line); }
.task-meter progress::-webkit-progress-value { background: var(--red); }
.task-meter progress::-moz-progress-bar { background: var(--red); }
.task-checklist { min-width: 0; margin: 0; padding: 0; border: 0; }
.task-step { border-top: 1px solid var(--line); }
.task-step-label { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); align-items: start; gap: .55rem; min-height: 44px; padding: .45rem 0; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.task-step input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--red); }
.task-step-label strong, .task-step-label span span { display: block; }
.task-step-label strong + span { margin-top: .2rem; }
.task-step-label:has(input:checked) { color: var(--muted); }
.task-step-label:has(input:checked) strong { text-decoration: line-through; }
.task-actions { gap: .4rem; margin: 0 0 .5rem; }
.task-step > .task-actions, .task-substeps { margin-left: 1.75rem; }
.task-actions .button.action { min-height: 36px; padding: .4rem .65rem; font-size: .875rem; }
.task-checklist + .task-actions { margin-top: .5rem; }
.task-substeps { margin-bottom: .45rem; }
.task-substeps summary { padding: .25rem 0; color: var(--red); font-size: .875rem; font-weight: 650; cursor: pointer; }
.task-substeps summary span { margin-left: .25rem; color: var(--muted); }
.task-substeps[open] { padding-left: .65rem; border-left: 2px solid var(--line-strong); }
.task-remove { height: auto; gap: .4rem; margin-top: .35rem; padding: .4rem 0; color: var(--muted); background: none; border: 0; font: 600 .875rem/1.4 var(--body); letter-spacing: normal; text-transform: none; text-decoration: underline; text-underline-offset: .2em; }
.task-remove svg { width: .95rem; height: .95rem; }
.task-remove:hover { color: var(--red); box-shadow: none; }
.task-dialog { width: min(100% - 2rem, 29rem); max-height: calc(100% - 2rem); padding: clamp(1rem, 4vw, 1.6rem); border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--canvas); color: var(--ink); }
.task-dialog::backdrop { background: rgb(29 29 33 / .55); }
.task-dialog p { margin-top: .75rem; }
.task-dialog p span { display: block; margin-top: .35rem; color: var(--muted); }
.task-dialog .action-links { justify-content: flex-end; }

/* ---------- Règlement de copropriété ----------
   Feuille blanche posée sur un fond papier, comme un PDF ouvert ; sommaire collant à gauche. */
.doc-intro { min-height: 0; padding-bottom: 2rem; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.doc-actions button svg { width: 1.05rem; height: 1.05rem; }
.doc-actions p { color: var(--muted); font-size: .88rem; }
.doc-band { padding-block: 3rem 5rem; border-top: 1px solid var(--line); background: var(--paper); }
.doc-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); align-items: start; gap: 3rem; }
.doc-toc { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; padding-top: 1rem; border-top: 3px solid var(--ink); font-size: .86rem; }
.doc-toc summary { cursor: pointer; list-style: none; font: 600 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc nav { margin-top: 1rem; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; }
.doc-toc ol ol { margin: .35rem 0 .2rem; padding-left: .85rem; border-left: 1px solid var(--line-strong); }
.doc-toc li + li { margin-top: .4rem; }
.doc-toc a { display: block; color: var(--ink); line-height: 1.35; text-decoration: none; }
.doc-toc > nav > ol > li > a { font-weight: 600; }
.doc-toc ol ol ol a { color: var(--muted); font-size: .82rem; }
.doc-toc a:hover { color: var(--red); }
.doc-sheet { max-width: 50rem; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(20, 20, 30, .45); font: 400 1.02rem/1.72 var(--heading); text-align: justify; hyphens: auto; }
.doc-sheet p { margin: 0; }
.doc-sheet p + p, .doc-sheet .reg-list + p, .doc-sheet p + .reg-list { margin-top: .85rem; }
.doc-sheet strong { font-weight: 600; }
.doc-cartouche { display: flex; align-items: center; gap: .9rem; margin-bottom: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); text-align: left; }
.doc-cartouche .brand-mark { width: 40px; height: 40px; }
.doc-cartouche div { display: flex; flex-direction: column; gap: .25rem; }
.doc-cartouche strong { font: 500 1.15rem/1 var(--brand-heading); }
.doc-cartouche div span { color: var(--muted); font: 500 .66rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.reg-part { margin: .5rem 0 2.5rem; font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.2; text-align: center; }
.reg-chapter { margin: 3.25rem 0 1.5rem; padding: .9rem 0; border-block: 1px solid var(--ink); color: var(--ink); font: 600 .78rem/1.5 var(--body); letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.reg-section { margin: 2.75rem 0 1.25rem; font: 500 1.3rem/1.25 var(--heading); text-align: left; }
.reg-section::before { content: ''; display: block; width: 2rem; height: 3px; margin-bottom: .8rem; background: var(--red); }
.reg-heading { display: flex; align-items: baseline; gap: .7rem; margin: 2.25rem 0 .9rem; font: 600 1rem/1.35 var(--body); text-align: left; }
.reg-subheading { display: flex; align-items: baseline; gap: .55rem; margin: 1.6rem 0 .6rem; font: 600 .93rem/1.35 var(--body); text-align: left; }
.reg-num { flex: none; color: var(--red); font-variant-numeric: tabular-nums; }
.reg-heading .reg-num { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border: 1px solid var(--red); font-size: .82rem; }
.reg-quote { margin: 1.1rem 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--line-strong); background: var(--paper); font-style: italic; }
.reg-quote strong { font-style: normal; }
.reg-list { margin: .85rem 0 0; padding: 0; list-style: none; }
.reg-list li { position: relative; padding-left: 1.2rem; }
.reg-list li + li { margin-top: .35rem; }
.reg-list li::before { content: ''; position: absolute; left: .2rem; top: calc(.5lh - 2.5px); width: 5px; height: 5px; background: #9a99a0; }
.page-mark { display: inline-block; margin: 0 .3rem; padding: 0 .35rem; border: 1px solid var(--line-strong); color: var(--muted); font: 600 .62rem/1.5 var(--body); font-style: normal; letter-spacing: .08em; text-indent: 0; vertical-align: .12em; white-space: nowrap; }
.page-break { display: flex; align-items: center; gap: .75rem; margin: 2.25rem 0 1.25rem; }
.page-break::before, .page-break::after { content: ''; flex: 1; border-top: 1px dashed var(--line-strong); }
.page-break .page-mark { margin: 0; }
.doc-sheet > .page-break:first-of-type { margin-top: 0; }
.page-mark:target { border-color: var(--red); background: var(--red); color: #fff; }
.doc-end { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font: 500 .7rem/1.5 var(--body); letter-spacing: .1em; text-align: center; text-transform: uppercase; }
@media (max-width: 980px) {
  .doc-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .doc-toc { position: static; max-height: none; padding: 1rem 1.25rem; border-top-width: 3px; background: #fff; }
  .doc-toc summary { display: flex; justify-content: space-between; }
  .doc-toc summary::after { content: '+'; font-size: 1rem; line-height: .7; }
  .doc-toc[open] summary::after { content: '–'; }
  .doc-band { padding-block: 1.5rem 3rem; }
}
@media (max-width: 520px) {
  .doc-band .shell { width: 100%; }
  .doc-toc, .doc-sheet { border-inline: 0; }
  .doc-sheet { text-align: left; }
}

/* ---------- Impression ----------
   Toutes les pages : seul le contenu s’imprime. Le règlement sort comme un document A4 paginé. */
@page { size: A4; margin: 18mm 18mm 20mm; }
@page reglement {
  margin: 20mm 20mm 22mm;
  @top-left { content: "Villa Roxana · Règlement de copropriété (extrait)"; font: 500 7.5pt 'Instrument Sans', sans-serif; color: #6b6a70; }
  @bottom-right { content: counter(page) " / " counter(pages); font: 500 7.5pt 'Instrument Sans', sans-serif; color: #6b6a70; }
}
@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .site-footer, .skip-link, .breadcrumb, .doc-actions, .doc-toc, .header-tasks-slot, .action-links { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .shell { width: 100%; }
  .doc-intro { display: none; }
  .doc-band { padding: 0; border: 0; background: none; }
  .doc-layout { display: block; }
  .doc-sheet { page: reglement; max-width: none; padding: 0; border: 0; box-shadow: none; font-size: 10.5pt; line-height: 1.55; }
  .doc-cartouche { margin-bottom: 8mm; }
  .reg-part { margin-bottom: 8mm; }
  .reg-chapter, .reg-section, .reg-heading, .reg-subheading { break-after: avoid; }
  .reg-chapter { margin-top: 9mm; }
  .doc-sheet p, .reg-list li { orphans: 3; widows: 3; }
  .reg-quote { background: none; }
  .page-mark:target { background: none; color: inherit; border-color: #bbb; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #c9c8cc; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-block: 3.5rem 3rem; }
.footer-brand p { margin-top: 1.25rem; font-size: .9rem; line-height: 1.7; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #9d9ca3; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-col h2 { margin-bottom: .4rem; color: #fff; font: 600 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.footer-col a { font-size: .92rem; text-decoration: none; transition: color .16s; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.footer-col .footer-urgent { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .3em; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid #3a3a40; color: #8e8d94; font: 500 .7rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { width: min(100% - 3rem, 74rem); }
  .masthead { gap: 1rem; }
  .primary-nav { gap: 1.25rem; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filter-panel button { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: auto; }
  .shell { width: calc(100% - 2rem); }
  .masthead { grid-template-columns: 1fr auto; gap: 0 1rem; padding-top: 1rem; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; gap: 1.5rem; height: 48px; margin-top: .75rem; overflow-x: auto; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .header-tasks-slot { --task-button-size: 40px; }
  .header-contact { height: 40px; padding: 0 .85rem; }
  .hero { display: flex; flex-direction: column; background: #fff; }
  .hero-image { order: 1; height: auto; aspect-ratio: 4 / 3; }
  .hero-image::after { content: none; }
  .hero-panel { order: 0; align-items: flex-start; padding: 2rem 1rem 1.5rem; color: var(--ink); text-align: left; }
  .hero-panel .eyebrow { color: var(--red); }
  .hero-panel .eyebrow::after { content: none; }
  .hero-panel h1 { text-shadow: none; }
  .hero-panel p { color: var(--muted); }
  .search-form { position: static; order: 2; transform: none; width: auto; margin: 1.25rem 1rem 0; padding: 0; border: 0; box-shadow: none; }
  .home-content { padding-top: 3rem; }
  .audience { flex-wrap: wrap; padding: 1.5rem; }
  .audience-actions { margin-left: 0; }
  .detail-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topic-grid, .article-grid, .quick-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .masthead .brand { gap: .55rem; }
  .header-actions { gap: .4rem; }
  .header-contact span, .header-contact { font-size: .72rem; }
  .header-contact { padding-inline: .6rem; }
  .search-form { flex-direction: column; }
  .search-form .input-wrap { flex: none; }
  .search-form button { width: 100%; }
  .filter-panel { grid-template-columns: 1fr; padding: 1.25rem; }
  .search-field { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 360px) {
  .masthead { column-gap: .55rem; }
  .masthead .brand-mark { width: 40px; height: 40px; }
  .header-contact { gap: .35rem; padding-inline: .45rem; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Préparer un e-mail depuis une fiche */
.request-dialog { --pad: clamp(1.1rem, 4vw, 2.25rem); width: min(46rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0 var(--pad); border: 0; border-top: 3px solid var(--red); background: var(--canvas); color: var(--ink); box-shadow: 0 24px 60px rgb(29 29 33 / .25); }
.request-dialog::backdrop { background: rgb(29 29 33 / .55); }
.request-header { position: sticky; z-index: 2; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-inline: calc(-1 * var(--pad)); padding: calc(var(--pad) * .8) var(--pad) 1rem; background: var(--canvas); border-bottom: 1px solid var(--line); }
.request-header h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); outline-offset: 6px; }
.request-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); transition: border-color .16s, background .16s, color .16s; }
.request-close:hover { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: none; }
.request-close svg { width: 1.1rem; height: 1.1rem; }
.request-mode { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .6rem .85rem; border-left: 2px solid var(--red); background: #fff4f3; color: var(--ink); font-size: .875rem; line-height: 1.4; }
.request-form, .request-review { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.request-section { min-width: 0; margin: 0; padding: 1.5rem; border: 0; border-top: 3px solid var(--ink); background: var(--paper); }
.request-section legend, .request-review-title { float: left; display: flex; align-items: baseline; gap: .7rem; width: 100%; margin: 0 0 1.25rem; padding: 0; font: 500 1.2rem/1.25 var(--heading); letter-spacing: -.005em; }
.request-section legend span, .request-review-title span { color: var(--red); font: 600 .78rem/1 var(--body); letter-spacing: .12em; }
.request-section legend + * { clear: both; }
/* Grille à deux colonnes : libellé, champ et aide occupent des rangées partagées pour rester alignés. */
.request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; row-gap: 0; margin-bottom: -1.1rem; }
.request-field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: .45rem; padding-bottom: 1.1rem; }
.request-field label { align-self: end; color: var(--ink); font: 600 .875rem/1.35 var(--body); }
.request-optional { color: var(--muted); font-weight: 400; }
.request-field small { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.request-field-wide, .request-toggle { grid-column: 1 / -1; }
.request-field input, .request-field select, .request-field textarea { display: block; width: 100%; height: var(--field-h); margin: 0; padding: 0 .95rem; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 400 1rem var(--body); transition: border-color .16s, box-shadow .16s; }
.request-field select { padding-right: 2.5rem; appearance: none; background: #fff no-repeat right 1rem center / .8rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%231d1d21' stroke-width='1.5'/%3E%3C/svg%3E"); }
.request-field select:invalid { color: #8b8a91; }
.request-field select option { color: var(--ink); }
.request-field input[type="date"] { appearance: none; line-height: calc(var(--field-h) - 2px); }
.request-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.request-field textarea { height: auto; min-height: 8.5rem; padding-block: .8rem; line-height: 1.55; resize: vertical; }
.request-field :is(input, select, textarea):hover { border-color: var(--muted); }
.request-field :is(input, select, textarea):focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline-offset: 3px; }
.request-field :is(input, select, textarea):user-invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.request-toggle { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); align-items: start; gap: .75rem; margin-bottom: 1.1rem; padding: .9rem 1rem; border: 1px solid var(--line-strong); background: #fff; font: 600 .9375rem/1.45 var(--body); cursor: pointer; transition: border-color .16s; }
.request-toggle:hover { border-color: var(--muted); }
.request-toggle:has(input:checked) { border-color: var(--ink); }
.request-toggle input { width: 1.15rem; height: 1.15rem; margin: .12rem 0 0; accent-color: var(--red); }
.request-memory { display: grid; gap: .35rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.request-clear-details { justify-self: start; border: 0; padding: .25rem 0; background: transparent; font: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; }
.request-clear-details:hover { box-shadow: none; }
.request-actions { position: sticky; z-index: 2; bottom: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin: 0 calc(-1 * var(--pad)); padding: 1rem var(--pad) calc(var(--pad) * .8); background: var(--canvas); border-top: 1px solid var(--line); }
.request-actions .button { min-width: 12rem; }
.request-status { margin-top: 1.25rem; padding: .85rem 1rem; border-left: 2px solid var(--red); background: var(--paper); font-weight: 600; }
.request-review-title { float: none; margin: 0; outline-offset: 6px; }
.request-message + .request-message { margin-top: 1.5rem; }
.request-envelope { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem 1rem; margin: 0 0 1rem; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.request-envelope dt { font-weight: 600; }
.request-envelope dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.request-message-body { padding: 1.25rem; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Aperçu de l’e-mail : même hiérarchie que le gabarit envoyé. */
.request-email { display: grid; gap: 1.5rem; padding: 1.75rem; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; }
.request-email p { margin: 0; }
.request-email-eyebrow { margin-bottom: .55rem !important; color: var(--red); font: 600 .6875rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.request-email-title { font: 400 1.6rem/1.2 var(--heading); letter-spacing: -.01em; }
.request-email-head > p:last-child { margin-top: .6rem; color: var(--muted); font-size: .9375rem; }
.request-email-head strong { color: var(--ink); }
.request-email-section { display: grid; gap: 1rem; }
.request-email-section-title { font: 500 1.15rem/1.3 var(--heading); }
.request-email-fields { margin: 0; border-bottom: 1px solid var(--line); }
.request-email-fields > div { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--line); }
.request-email-fields dt { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.request-email-fields dd { margin: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.request-email-fields > .is-long { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: .9rem; }
.request-email-fields > .is-long dd { padding-left: .9rem; border-left: 2px solid var(--red); font-weight: 400; line-height: 1.6; white-space: pre-wrap; }
.request-email-contact { padding: 1.25rem 1.4rem; border-top: 3px solid var(--ink); background: var(--paper); }
.request-email-contact .request-email-eyebrow { color: var(--ink); }
.request-email-name { margin-bottom: .6rem !important; font: 400 1.15rem/1.3 var(--heading); }
.request-email-contact-fields { margin: 0; }
.request-email-contact-fields > div { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: .75rem; padding: .15rem 0; }
.request-email-contact-fields dt { color: var(--muted); font-size: .8125rem; }
.request-email-contact-fields dd { margin: 0; font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.request-email-button { display: inline-block; margin-top: 1.1rem; padding: .75rem 1.3rem; background: var(--red); color: #fff; font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.request-email-reply { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
@media (max-width: 600px) {
  .request-fields { grid-template-columns: minmax(0, 1fr); }
  .request-section { padding: 1.1rem; }
  .request-email { padding: 1.1rem; }
  .request-actions .button { flex: 1 1 100%; min-width: 0; }
  .request-envelope { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .request-envelope dd + dt { margin-top: .4rem; }
  .request-email-fields > div, .request-email-contact-fields > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}
