/* Luxe & Tendance : « Malachite & porcelaine » (pierre impériale de l'Oural, porcelaine de Saint-Pétersbourg).
   Polices (Fonts API Astro) : --lt-serif = Bodoni Moda (titres), --lt-sans = Figtree (texte).
   Rose poudré : fonds et filets uniquement, jamais en texte. Contrastes AA : scripts/contrast.py. */

:root {
  --malachite: #0E4A3C;
  --malachite-clair: #2E7D68;
  --porcelaine: #F4F6F3;
  --porcelaine-2: #E8EEEA;
  --encre: #14201C;
  --etain: #9AA3A0;
  --etain-texte: #4F5C58;
  --rose: #E7C6BE;
  --rose-profond: #8A3A30;
  --filet: #C3CCC8;
  --pied-texte: #D5DDD8;
  --measure-article: 820px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --feuille: 1.6rem 0 1.6rem 0; /* coins asymétriques : facette de pierre */
  --feuille-inv: 0 1.6rem 0 1.6rem;
  --serif: var(--lt-serif, 'Bodoni Moda'), Didot, Georgia, serif;
  --sans: var(--lt-sans, 'Figtree'), Arial, sans-serif;
  --veinage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12'%3E%3Cpath d='M0 6 C14 0 24 12 40 6 S68 0 84 6 S112 12 128 6 S150 1 160 6' fill='none' stroke='%230E4A3C' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M0 8 C16 3 26 12 44 8 S72 3 90 8 S118 12 134 8 S152 4 160 8' fill='none' stroke='%232E7D68' stroke-width='0.9' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.68; color: var(--encre); background: var(--porcelaine); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--malachite); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--rose-profond); }
:focus-visible { outline: 3px solid var(--malachite); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--rose); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--malachite); color: var(--porcelaine); padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { top: 0.5rem; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--malachite); margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- En-tête ---------- */
.site-header { background: var(--malachite); color: var(--porcelaine); border-bottom: 3px solid var(--rose); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: var(--wrap); margin-inline: auto; padding: 0.7rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--porcelaine); text-decoration: none; }
.brand:hover { color: var(--porcelaine); }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 1.5px rgba(231, 198, 190, 0.95)); }
.brand-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.005em; white-space: nowrap; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem 1.4rem; }
.main-nav a { color: var(--porcelaine); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--porcelaine); border-bottom-color: var(--rose); }
.main-nav a[aria-current] { border-bottom-color: var(--rose); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rose); border-radius: 0.4rem; width: 2.8rem; height: 2.5rem; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 1.3rem; height: 2px; background: var(--porcelaine); }

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--malachite); border-bottom: 3px solid var(--rose); padding: 0.5rem var(--gutter) 1.2rem; }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.8rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(244, 246, 243, 0.18); }
}

/* ---------- Hero et images ---------- */
.img-hero, .hero-band { margin: 0; width: 100%; aspect-ratio: 16 / 9; max-height: min(75vh, 44vw); overflow: hidden; background: var(--porcelaine-2); }
.img-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-cover { border-bottom: 6px solid var(--rose); }
.img-card { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelaine-2); border-radius: var(--feuille); }
.img-body { aspect-ratio: 3 / 2; overflow: hidden; margin: 2rem 0; border-radius: var(--feuille); }
.img-portrait { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; max-width: 14rem; }
.img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.img-ph { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--porcelaine-2), var(--porcelaine-2) 12px, var(--porcelaine) 12px, var(--porcelaine) 24px); }
.article-body figure { margin: 0; }
.img-caption { font-size: 0.9rem; color: var(--etain-texte); margin: 0.6rem 0 0; }

/* ---------- Titres de page ---------- */
.page-head { padding-top: 1.6rem; padding-bottom: 1.4rem; }
.page-head h1 { max-width: 22ch; margin-top: 0.8rem; }
.page-head .kicker { margin: 1rem 0 0; font-weight: 600; color: var(--etain-texte); font-size: 1rem; }
.chapeau { font-size: 1.22rem; line-height: 1.55; max-width: 46rem; margin: 1.1rem 0 0; color: var(--encre); }
.page-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; margin: 1.1rem 0 0; font-size: 0.93rem; color: var(--etain-texte); }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; font-size: 0.9rem; color: var(--etain-texte); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--etain); }
.breadcrumbs a { color: var(--etain-texte); }
.breadcrumbs [aria-current] { color: var(--encre); }

/* ---------- Couverture d'accueil (une de magazine) ---------- */
.cover-title { padding-top: 2.2rem; padding-bottom: 1.2rem; }
.cover-title h1 { font-size: clamp(2.6rem, 7.2vw, 6.1rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 16em; }
.cover-title .chapeau { font-size: clamp(1.15rem, 1.6vw, 1.4rem); max-width: 40rem; margin-top: 1.4rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0; }

.btn { display: inline-block; background: var(--malachite); color: var(--porcelaine); border: 1.5px solid var(--malachite); font: 600 1rem var(--sans); padding: 0.75rem 1.7rem; border-radius: 999px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--encre); border-color: var(--encre); color: var(--porcelaine); }
.btn--ghost { background: transparent; color: var(--malachite); }
.btn--ghost:hover { background: var(--malachite); color: var(--porcelaine); border-color: var(--malachite); }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Sections d'accueil ---------- */
.pillars, .latest { padding-top: 2.4rem; padding-bottom: 1.2rem; }
.pillars h2, .latest h2, .pillar-articles h2 { margin-bottom: 1.6rem; }
.pillars h2::after, .latest h2::after, .article-body h2::after, .true-false-title::after { content: ""; display: block; width: 8.5rem; height: 0.75rem; margin-top: 0.55rem; background: var(--veinage) no-repeat left center / contain; }
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.pillar-tile a { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.5rem 1.6rem 1.7rem; background: var(--porcelaine-2); border: 1px solid var(--filet); border-radius: var(--feuille-inv); text-decoration: none; color: var(--encre); transition: background-color 0.2s, color 0.2s; }
.pillar-name { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--malachite); line-height: 1.15; }
.pillar-blurb { font-size: 0.98rem; line-height: 1.5; }
.pillar-tile a:hover { background: var(--malachite); color: var(--porcelaine); border-color: var(--malachite); }
.pillar-tile a:hover .pillar-name { color: var(--porcelaine); }
.latest-more { margin: 1.6rem 0 0; font-weight: 600; }

/* ---------- Cartouches ovales ---------- */
.cartouche { display: inline-block; font: 600 0.88rem/1.2 var(--sans); padding: 0.28rem 0.95rem; background: var(--rose); color: var(--encre); border: 1px solid var(--malachite); border-radius: 999px; box-shadow: inset 0 0 0 2px var(--porcelaine); text-decoration: none; white-space: nowrap; }
a.cartouche:hover { color: var(--porcelaine); background: var(--malachite); }
.cartouche--card { position: absolute; left: 0.9rem; bottom: 0.9rem; }
.house-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1.8rem; }
.house-list-label { font-weight: 600; color: var(--etain-texte); margin-right: 0.3rem; }

/* ---------- Cartes ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.8rem 1.4rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.card[hidden] { display: none; }
.card { background: #fff; border: 1px solid var(--filet); border-radius: var(--feuille); transition: border-color 0.2s; }
.card:hover { border-color: var(--malachite); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--encre); }
.card-link:hover { color: var(--encre); }
.card-body { padding: 1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; }
.card-date { font-size: 0.88rem; color: var(--etain-texte); }
.card-title { font-size: 1.32rem; line-height: 1.2; color: var(--malachite); }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card-summary { margin: 0.2rem 0 0; font-size: 0.97rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Blog : filtre ---------- */
.listing-head { padding-bottom: 0.4rem; }
.listing { padding-top: 1rem; padding-bottom: 2rem; }
.category-filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip { display: inline-block; padding: 0.4rem 1.1rem; border: 1.5px solid var(--malachite); border-radius: 999px; color: var(--malachite); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.chip:hover { background: var(--porcelaine-2); color: var(--malachite); }
.chip.is-active { background: var(--malachite); color: var(--porcelaine); }
.filter-status { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--etain-texte); min-height: 1.4em; }
.filter-empty { color: var(--etain-texte); }

/* ---------- Article et pilier ---------- */
.article-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding-top: 1rem; padding-bottom: 3rem; align-items: start; }
.article-grid--single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 5.5rem; font-size: 0.93rem; line-height: 1.45; }
.toc-title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--malachite); margin: 0 0 0.6rem; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1.5px solid var(--malachite-clair); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; color: var(--encre); text-decoration: none; }
.toc a:hover { color: var(--rose-profond); background: var(--porcelaine-2); }
.article-body { max-width: var(--measure-article); min-width: 0; }
.article-grid--single .article-body { margin-inline: 0; }
.article-body > p, .article-body li { overflow-wrap: break-word; }
.article-body h2 { margin: 2.8rem 0 1rem; }
.article-body h3 { margin: 1.9rem 0 0.5rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.article-body ul > li { position: relative; padding-left: 1.5rem; margin-bottom: 0.45rem; }
.article-body ul > li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 0.5rem; height: 0.5rem; background: var(--malachite-clair); transform: rotate(45deg); }
.article-body ol { counter-reset: n; }
.article-body ol > li { position: relative; padding-left: 2rem; margin-bottom: 0.5rem; counter-increment: n; }
.article-body ol > li::before { content: counter(n); position: absolute; left: 0; top: -0.05em; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--malachite); }
.article-body blockquote { margin: 1.8rem 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 3px solid var(--rose); font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--malachite); }
.article-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.96rem; line-height: 1.45; }
.article-body th { background: var(--malachite); color: var(--porcelaine); text-align: left; font-weight: 600; padding: 0.7rem 0.9rem; white-space: nowrap; }
.article-body td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--filet); min-width: 8rem; }
.article-body tbody tr:nth-child(even) td { background: var(--porcelaine-2); }
.pillar-articles { margin-top: 3rem; }
.pillar-articles h2 { margin-top: 0; }

/* ---------- Encadrés propres au sujet ---------- */
.key-takeaway { margin: 0 0 2rem; padding: 1.1rem 1.4rem 1.2rem; background: var(--porcelaine-2); border-left: 5px solid var(--rose); border-radius: 0 var(--feuille-inv) 0 0; }
.key-takeaway p { margin: 0; }
.kt-title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--malachite); margin-bottom: 0.3rem !important; }

.east-lens { position: relative; margin: 3rem 0 2.2rem; padding: 1.9rem 1.6rem 1.3rem; border: 1.5px solid var(--malachite); border-radius: var(--feuille-inv); background: var(--porcelaine); }
.east-lens p { margin: 0; }
.east-lens p + p { margin-top: 0.8rem; }
.east-lens-title { position: absolute; top: -1rem; left: 1.3rem; margin: 0 !important; padding: 0.3rem 1.1rem; background: var(--rose); color: var(--encre); font: 600 0.95rem/1.2 var(--serif); border: 1px solid var(--malachite); border-radius: 999px; box-shadow: inset 0 0 0 2px var(--porcelaine); }

.true-false { margin: 3rem 0 2rem; }
.article-body .true-false ul { margin: 0; }
.article-body .true-false ul > li { padding: 1.1rem 0; margin: 0; border-top: 1px solid var(--filet); }
.article-body .true-false ul > li::before { display: none; }
.article-body .true-false ul > li:last-child { border-bottom: 1px solid var(--filet); }
.tf-claim { font-weight: 600; margin: 0 0 0.35rem !important; }
.tf-why { margin: 0 !important; }
.tf-verdict { display: inline-block; font: 600 0.88rem/1.2 var(--sans); padding: 0.28rem 0.9rem; margin-right: 0.5rem; border-radius: 999px; background: var(--malachite); color: var(--porcelaine); }
.tf-item--faux .tf-verdict { background: var(--rose-profond); }
.tf-item--nuance .tf-verdict { background: var(--etain-texte); }

.sources-box { margin: 3rem 0 1.5rem; padding: 1.2rem 1.4rem 1.3rem; border: 1px solid var(--filet); background: #fff; border-radius: var(--feuille); font-size: 0.95rem; line-height: 1.5; }
.article-body .sources-box h2 { font-size: 1.35rem; margin: 0 0 0.5rem; }
.article-body .sources-box h2::after { display: none; }
.sources-box p { margin: 0 0 0.5rem; color: var(--etain-texte); }
.article-body .sources-box ul { margin: 0; }
.related ul { margin: 0; }
.counterfeit-note { margin: 2.2rem 0 0 !important; padding-top: 0.9rem; border-top: 1px solid var(--filet); font-size: 0.9rem; line-height: 1.5; color: var(--etain-texte); }

/* ---------- FAQ ---------- */
.faq { margin-top: 3rem; }
.faq-item { border-top: 1px solid var(--filet); }
.faq-item:last-of-type { border-bottom: 1px solid var(--filet); }
.faq-item h3 { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.faq-item button { width: 100%; text-align: left; background: none; border: 0; padding: 1rem 2.6rem 1rem 0; font: inherit; color: var(--malachite); cursor: pointer; position: relative; }
.faq-item button:hover { color: var(--rose-profond); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.9rem; height: 2px; background: currentColor; }
.faq-plus::after { transform: rotate(90deg); transition: transform 0.2s; }
.faq-item.open .faq-plus::after { transform: rotate(0); }
.faq-answer p { margin: 0 0 1.1rem; }

/* ---------- Formulaire de contact ---------- */
.contact-form { display: grid; gap: 1.1rem; max-width: 36rem; margin-top: 1.4rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.contact-form .req { font-weight: 400; color: var(--etain-texte); font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 1rem var(--sans); padding: 0.7rem 0.8rem; border: 1.5px solid var(--malachite); border-radius: 0.3rem; background: #fff; color: var(--encre); width: 100%; }
.form-note { margin: 0; font-size: 0.92rem; color: var(--etain-texte); }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-ok { color: var(--malachite); }
.form-status.is-error { color: var(--rose-profond); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: 3rem; background: var(--encre); color: var(--pied-texte); }
.footer-body { max-width: var(--wrap); margin-inline: auto; padding: 2.6rem var(--gutter) 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.4rem; }
.footer-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--porcelaine); margin: 0 0 0.6rem; }
.footer-note { margin: 0; font-size: 0.95rem; line-height: 1.55; max-width: 28rem; }
.footer-title { font-family: var(--serif); font-size: 1.15rem; color: var(--porcelaine); margin: 0 0 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.site-footer a { color: var(--porcelaine); text-decoration-color: var(--rose); }
.site-footer a:hover { color: var(--rose); }
.footer-copy { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(244, 246, 243, 0.2); font-size: 0.88rem; }

/* ---------- Réactif ---------- */
@media (max-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .toc { display: none; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { font-size: 100%; }
  .pillar-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .brand-name { font-size: 1.4rem; }
  .chapeau { font-size: 1.1rem; }
  .article-body h2 { margin-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Interviews : questions du journaliste (le blockquote d'article global ne doit pas les écraser) */
blockquote.journalist-question, .article-body blockquote.journalist-question { margin: 1.8rem 0 0.6rem; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 3px solid var(--malachite-clair); font-family: var(--sans) !important; font-size: 1rem !important; font-style: normal !important; font-weight: 600; line-height: 1.6 !important; color: var(--malachite); }
blockquote.journalist-question p { margin: 0; }
/* Encart « Le regard de l'Est » */
.encart-regard-est { margin: 2.2rem 0; padding: 1.3rem 1.5rem; background: var(--porcelaine-2); border-left: 4px solid var(--rose); border-radius: var(--feuille-inv); }
.encart-regard-est h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.25rem; color: var(--malachite); }
.encart-regard-est p { margin: 0; }
/* Vrai ou faux : item, corps de pilier, bloc marque du pied de page */
.tf-item { margin: 0 0 1.1rem; padding: 0.9rem 1.1rem; background: var(--porcelaine-2); border-radius: var(--feuille-inv); list-style: none; }
.pillar-body { max-width: var(--measure-article); }
.footer-brand { min-width: 0; }
