/* 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'); }
:root {
  color-scheme: light;
  --ink: #1d1d21;
  --muted: #5a5a63;
  --brand: #e00000;      /* rouge du logo, réservé au monogramme */
  --red: #be1530;        /* rouge d'interface (contraste AA sur blanc) */
  --red-dark: #991127;
  --rose: #fbeef0;
  --canvas: #fff;
  --paper: #f6f5f3;
  --line: #e4e2df;
  --line-strong: #cfccc7;
  --heading: 'Bodoni Moda', Didot, 'Bodoni 72', 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 { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; background: var(--brand); color: #fff; }
.brand-mark::before { content: ''; position: absolute; inset: 4px; border: 1px solid #fff; }
.brand-mark span { font: 500 1.35rem/1 var(--heading); letter-spacing: -.12em; margin-right: .12em; transform: translateY(.04em); }
.brand-text { display: flex; flex-direction: column; gap: .3rem; }
.brand-text strong { font: 500 1.3rem/1 var(--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(--brand); }
.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; align-items: center; color: var(--ink); font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.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-contact { justify-self: end; 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:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }

.text-link { color: var(--red-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .16s; }
.text-link:hover { color: var(--red); text-decoration-color: currentColor; }

/* ---------- Bandeau d'accueil ----------
   Photo calée en bas (bâtiments entiers), titre posé dans le ciel,
   recherche à cheval sur le trottoir : rien ne masque les façades. */
.hero { position: relative; display: grid; background: #3f7fc4; }
.hero-image, .hero-panel { grid-area: 1 / 1; }
.hero-image { position: relative; display: block; height: clamp(480px, 46vw, 680px); overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 36, 66, .42) 0%, rgba(14, 36, 66, .12) 34%, rgba(14, 36, 66, 0) 50%); pointer-events: none; }
.hero-panel { z-index: 1; align-self: start; display: flex; flex-direction: column; align-items: center; padding: clamp(2.25rem, 3.6vw, 3.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 1px 24px rgba(10, 30, 60, .25); }
.hero-panel p { max-width: 60ch; 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: var(--red); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); background: var(--rose); }
.tile-icon svg { width: 1.15rem; height: 1.15rem; }
.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; }
.urgent-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem; color: var(--red-dark); 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 { margin-top: 1rem; font: 500 1.3rem/1.2 var(--heading); letter-spacing: 0; }
.contact-card p, .notice p { margin-top: .5rem; }
.contact-links, .detail-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; }
.contact-links:empty { display: none; }
.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: 500 1.15rem/1.4 var(--heading); }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.profile-grid h3 { font-size: 1rem; }
.detail-links { margin-top: 2rem; }
.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, .related ul { margin: 0; padding-left: 1.1rem; }
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--ink); }
.related li { margin-top: .45rem; }

/* ---------- 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: #ff8a8a; }
.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); }
  .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-contact { height: 40px; padding: 0 .85rem; }
  .hero { display: flex; flex-direction: column; background: #fff; }
  .hero-image { order: 1; height: auto; aspect-ratio: 780 / 300; }
  .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; }
  .header-contact span, .header-contact { font-size: .72rem; }
  .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 (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
