/* Psygnal — feuille de style partagée des pages secondaires
   (articles, contact, pages légales). Reprend la charte de index.html. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso:  #221B13;
  --espresso2: #2E2418;
  --teal:    #5C7E82;
  --tealD:   #3D5C5F;
  --tealSoft:#8AA6A8;
  --tealXL:  #EAF3F4;
  --tealL:   #C4D9DB;
  --ink:     #221B13;
  --cream:   #F8F5F2;
  --warm:    #F3EFE9;
  --sand:    #DAD2C8;
  --sandL:   #EDE8E1;
  --copper:  #A17D58;
  --copperB: #B9854C;
  --copperL: #EFE2D0;
  --white:   #FFFFFF;
  --body:    #5A4F44;
  --muted:   #8A7C6C;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--font-body); background: var(--cream); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.label { font-size: 9px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); }

/* ── NAV ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(248,245,242,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(218,210,200,0.5);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 300; color: var(--ink); text-decoration: none; letter-spacing: .3px; opacity: .72; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]:not(.nav-cta) { border-bottom: 1px solid var(--copper); padding-bottom: 3px; }
.nav-cta { background: var(--tealD); color: var(--white) !important; opacity: 1 !important; padding: 10px 22px; border-radius: 3px; font-weight: 400 !important; letter-spacing: .5px; transition: background .2s; }
.nav-cta:hover { background: var(--ink); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 1.6px; background: var(--ink); display: block; }

/* ── PAGE HEAD ── */
.page-head { padding: 152px 72px 56px; max-width: 1304px; margin: 0 auto; }
.page-head.narrow { max-width: 864px; }
.page-head .label { display: block; margin-bottom: 14px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 300; line-height: 1.1; color: var(--ink); }
.page-head p { margin-top: 18px; font-size: 16px; font-weight: 300; color: var(--body); line-height: 1.8; max-width: 600px; }
.page-body { padding: 0 72px 112px; }

/* ── PROSE (pages légales + articles) ── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--ink); line-height: 1.25; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--tealD); margin: 32px 0 10px; }
.prose p, .prose li { font-size: 16px; font-weight: 300; color: var(--body); line-height: 1.85; }
.prose p { margin-bottom: 16px; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose ul li::marker { color: var(--copper); }
.prose a { color: var(--tealD); text-decoration: underline; text-decoration-color: var(--tealL); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--tealD); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--copper); font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--tealD); }
.prose img { display: block; width: 100%; border-radius: 12px; margin: 28px 0; }
.prose hr { border: 0; border-top: 1px solid var(--sand); margin: 40px 0; }
.legal-meta { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--sand); font-size: 13px; color: var(--muted); font-weight: 300; }
.legal-id { background: var(--white); border: 1px solid var(--sandL); border-radius: 12px; padding: 26px 28px; margin-bottom: 8px; }
.legal-id dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; }
.legal-id dt { font-size: 13px; color: var(--muted); font-weight: 400; }
.legal-id dd { font-size: 15px; color: var(--ink); font-weight: 300; }

/* ── PRESSE ── */
.boilerplate { background: var(--white); border: 1px solid var(--sandL); border-radius: 12px; padding: 22px 24px; margin-bottom: 8px; }
.boilerplate p { margin-bottom: 14px; color: var(--ink); }
.boilerplate .copy { font: inherit; font-size: 13px; color: var(--tealD); background: none; border: 1px solid var(--tealL); border-radius: 3px; padding: 7px 14px; cursor: pointer; }
.boilerplate .copy:hover { border-color: var(--tealD); }
.prose ul.parutions { list-style: none; margin-left: 0; }
.parutions li { padding: 16px 0; border-bottom: 1px solid var(--sand); display: flex; flex-direction: column; gap: 4px; }
.parutions li a:not(.source) { font-family: var(--font-display); font-size: 21px; color: var(--ink); text-decoration: none; }
.parutions .source { font-size: 13px; }

/* ── CONTACT ── */
.contact-layout { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.contact-aside h2 { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin-bottom: 14px; }
.contact-aside p { font-size: 15px; font-weight: 300; color: var(--body); line-height: 1.8; margin-bottom: 18px; }
.contact-aside .direct { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sand); }
.contact-aside .direct a { color: var(--tealD); font-weight: 400; }
.contact-form { background: var(--white); border: 1px solid var(--sandL); border-radius: 16px; padding: 40px; box-shadow: 0 14px 50px rgba(34,27,19,.05); }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-weight: 300; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 300; color: var(--ink);
  background: var(--cream); border: 1px solid var(--sand); border-radius: 8px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px var(--tealXL); }
.field-check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 26px; }
.field-check input { margin-top: 4px; accent-color: var(--tealD); width: 16px; height: 16px; flex-shrink: 0; }
.field-check label { font-size: 13px; font-weight: 300; color: var(--body); line-height: 1.6; }
.field-check a { color: var(--tealD); }
.notice-health { font-size: 13px; font-weight: 300; color: #7A5A37; background: #FBF6EF; border: 1px solid var(--copperL); border-radius: 8px; padding: 12px 14px; margin-bottom: 22px; line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { background: var(--tealD); color: var(--white); border: 0; cursor: pointer; padding: 15px 34px; border-radius: 3px; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: .5px; transition: background .2s; }
.btn-submit:hover { background: var(--ink); }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.form-status { margin-bottom: 24px; padding: 16px 18px; border-radius: 8px; font-size: 14px; line-height: 1.6; display: none; }
.form-status.ok { display: block; background: #EEF5EC; border: 1px solid #C9E0C3; color: #2F5A2C; }
.form-status.err { display: block; background: #FBEEEC; border: 1px solid #EDC9C3; color: #8A2F22; }

/* ── ARTICLES ── */
.articles-wrap { max-width: 1160px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { font: inherit; font-size: 13px; font-weight: 300; color: var(--body); background: transparent; border: 1px solid var(--sand); border-radius: 20px; padding: 7px 16px; cursor: pointer; transition: all .2s; }
.filters button:hover, .filters a:hover { border-color: var(--tealD); color: var(--tealD); }
.filters button[aria-pressed="true"], .filters a[aria-current] { background: var(--tealD); border-color: var(--tealD); color: var(--white); }
.filters a { font-size: 13px; font-weight: 300; color: var(--body); text-decoration: none; border: 1px solid var(--sand); border-radius: 20px; padding: 7px 16px; transition: all .2s; }
.article-lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--espresso); border-radius: 18px; overflow: hidden; text-decoration: none; margin-bottom: 40px; }
.article-lead .cover { min-height: 340px; background: linear-gradient(150deg, var(--tealD), var(--espresso)); position: relative; overflow: hidden; }
.article-lead .cover svg, .article-lead .cover img, .thumb svg, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, var(--tealD), var(--espresso)); margin-bottom: 18px; }
.article-lead .txt { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.article-lead .meta { color: var(--tealSoft); }
.article-lead h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1.2; color: var(--cream); margin: 14px 0 16px; }
.article-lead p { font-size: 15px; font-weight: 300; color: #C9BBA9; line-height: 1.8; }
.article-lead .more { margin-top: 26px; color: var(--copperB); font-size: 13px; }
.article-lead:hover h2 { color: var(--white); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.article-card { text-decoration: none; display: flex; flex-direction: column; }
.article-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--ink); margin: 10px 0 10px; transition: color .2s; }
.article-card p { font-size: 14px; font-weight: 300; color: var(--body); line-height: 1.75; }
.article-card:hover h3 { color: var(--tealD); }
.meta { font-size: 12px; font-weight: 400; color: var(--copper); letter-spacing: .3px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); font-weight: 300; }

.article-head { max-width: 720px; margin: 0 auto; padding: 152px 0 40px; }
.article-head .back { font-size: 13px; color: var(--tealD); text-decoration: none; border-bottom: 1px solid var(--tealL); }
.article-head h1 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 56px); font-weight: 300; line-height: 1.12; margin: 26px 0 18px; }
.article-head .chapo { font-size: 18px; font-weight: 300; color: var(--body); line-height: 1.75; }
.article-head .meta { display: block; margin-top: 22px; }
.article-cover { max-width: 960px; margin: 0 auto 48px; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; }
.article-foot { max-width: 720px; margin: 56px auto 0; padding: 32px; background: var(--white); border: 1px solid var(--sandL); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.article-foot p { font-family: var(--font-display); font-size: 21px; line-height: 1.4; }

/* ── FOOTER ── */
footer.site-footer { background: var(--espresso); padding: 56px 72px 40px; color: var(--white); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand img { height: 64px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; font-weight: 300; color: #9A8C7A; line-height: 1.7; max-width: 290px; }
.footer-brand .legal { margin-top: 12px; font-size: 11px; color: #7A6E5E; }
.footer-col h4 { font-size: 9px; letter-spacing: 3px; color: #8A7C6C; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; font-weight: 300; color: #B8AB99; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 11px; font-weight: 300; color: #7A6E5E; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav.site-nav { padding: 0 28px; }
  .page-head { padding-left: 40px; padding-right: 40px; }
  .page-body, footer.site-footer { padding-left: 40px; padding-right: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  nav.site-nav { padding: 0 20px; height: 64px; }
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: rgba(248,245,242,.98); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--sandL); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--sandL); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-burger { display: flex; }
  .page-head, .page-head.narrow { padding: 112px 24px 36px; max-width: none; }
  .page-body { padding: 0 24px 80px; }
  footer.site-footer { padding: 48px 24px 32px; }
  .article-head { padding: 112px 24px 32px; }
  .article-cover, .article-foot { margin-left: 24px; margin-right: 24px; }
  .prose { padding: 0; }
  .article-lead { grid-template-columns: 1fr; }
  .article-lead .cover { min-height: 200px; }
  .article-lead .txt { padding: 30px 26px; }
  .article-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 22px; }
  .legal-id dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-id dd { margin-bottom: 12px; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
