:root {
  --green-deep: #14432A;
  --white: #FFFFFF;
  --paper: #F8F7F4;
  --ink: #1A1A18;
  --ink-soft: rgba(26,26,24,.62);
  --ochre: #C08A28;
  --rule: rgba(26,26,24,.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Poppins', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}
.brand-logo { height: 52px; width: auto; display: block; }
.brand-sub {
  font-weight: 400; font-size: 10.5px; white-space: nowrap;
  letter-spacing: .07em; color: rgba(255,255,255,.66); text-transform: uppercase;
}

nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; white-space: nowrap; gap: 6px;
  padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: #fff;
  letter-spacing: .01em; border-radius: 2px; cursor: pointer;
  transition: background .2s ease;
}
.nav-link:hover, .nav-item.open .nav-link { background: rgba(255,255,255,.1); }
.nav-link svg { transition: transform .2s ease; }
.nav-item.open .nav-link svg { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: #fff; border: 1px solid rgba(20,67,42,.12);
  border-radius: 2px; box-shadow: 0 14px 34px rgba(10,30,20,.18);
  padding: 7px 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none; z-index: 120;
}
.nav-item.open .submenu, .nav-item:hover .submenu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.submenu a {
  padding: 9px 18px; font-size: 13px; font-weight: 400; color: var(--ink);
  transition: background .16s ease, color .16s ease;
}
.submenu a:hover { background: #F4F2ED; color: var(--green-deep); }

main { padding-top: clamp(78px, 6vw, 92px); }

/* Sections */
section { padding: 84px 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 40px;
}
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.01em; color: var(--green-deep); }
.section-head p { margin: 0; max-width: 420px; font-size: 14px; color: var(--ink-soft); }

/* Cartes de revues (page d'accueil) */
.revue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.revue-card {
  display: flex; flex-direction: column; border: 1px solid var(--rule);
  border-radius: 3px; background: #fff; overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.revue-card:hover { box-shadow: 0 18px 40px rgba(20,67,42,.13); transform: translateY(-3px); }
.revue-cover {
  aspect-ratio: 3 / 2; background: #F4F2ED;
  background-image: repeating-linear-gradient(135deg, rgba(20,67,42,.09) 0 2px, transparent 2px 10px);
  border-bottom: 1px solid var(--rule);
}
.revue-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 0; }
.tag-scientific {
  align-self: flex-start; white-space: nowrap; background: #EFEEEA; color: var(--ink-soft);
  font-size: 9.5px; font-weight: 600; letter-spacing: .15em; padding: 5px 9px; border-radius: 2px;
}
.revue-body h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--green-deep); }
.revue-meta { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); letter-spacing: .01em; }
.revue-desc {
  margin: 0; font-size: 14px; line-height: 1.62; color: rgba(26,26,24,.78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.revue-actions {
  margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 20px 22px 22px;
}
.revue-actions a { font-size: 13px; font-weight: 600; color: var(--green-deep); }
.revue-actions a:hover { color: var(--ochre); }
.revue-actions .sep { width: 1px; height: 14px; background: rgba(26,26,24,.2); }
.revue-actions .external { display: flex; align-items: center; white-space: nowrap; gap: 7px; }
.revue-actions svg { flex: none; }

/* À propos */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 52px; align-items: start; }
.about-grid h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.01em; color: var(--green-deep); }
.about-grid p { margin: 0 0 18px; font-size: 15px; line-height: 1.72; color: rgba(26,26,24,.8); }
.facts { display: flex; flex-direction: column; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.fact { background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 5px; }
.fact-label { font-size: 10px; font-weight: 600; letter-spacing: .15em; color: var(--ink-soft); }
.fact-value { font-size: 15px; font-weight: 500; color: var(--ink); }
.fact-value.link { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ochre); }

/* Actualités */
.actualites-section { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 64px 28px; background: #fff; border: 1px dashed rgba(26,26,24,.2); border-radius: 3px;
}
.empty-state p { margin: 0; max-width: 520px; font-size: 14.5px; color: var(--ink-soft); }

/* Footer */
footer { background: var(--green-deep); color: #fff; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 72px 28px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 44px;
}
.footer-brand { font-weight: 700; font-size: 22px; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-line { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: rgba(255,255,255,.76); }
.footer-line svg { margin-top: 2px; flex: none; color: var(--ochre); }
.footer-col span.label { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; color: rgba(255,255,255,.5); }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.82); }
.footer-col a:hover { color: var(--ochre); }
.footer-base { max-width: 1280px; margin: 56px auto 0; padding: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-base p { margin: 0; font-size: 12px; color: rgba(255,255,255,.55); }

/* Page de détail d'une revue */
.revue-hero {
  background: var(--green-deep);
  color: #fff;
  padding: 56px 0 40px;
}
.revue-hero .tag-status {
  display: inline-block; background: rgba(255,255,255,.14); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 5px 11px; border-radius: 2px; margin-bottom: 16px;
}
.revue-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.01em; }
.revue-hero p.subtitle { margin: 0; max-width: 640px; font-size: 15.5px; color: rgba(255,255,255,.82); }
.revue-hero .meta-line { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.7); }

.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.detail-block { margin-bottom: 44px; }
.detail-block:last-child { margin-bottom: 0; }
.detail-block h2 {
  font-size: 20px; font-weight: 600; color: var(--green-deep); margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.detail-block p { font-size: 14.5px; color: rgba(26,26,24,.8); margin: 0 0 12px; }
.detail-block ul { margin: 0 0 12px; padding-left: 20px; }
.detail-block li { font-size: 14.5px; color: rgba(26,26,24,.8); margin-bottom: 6px; }

.info-card {
  border: 1px solid var(--rule); border-radius: 3px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px;
}
.info-row { display: flex; flex-direction: column; gap: 4px; }
.info-row .label { font-size: 10px; font-weight: 600; letter-spacing: .13em; color: var(--ink-soft); }
.info-row .value { font-size: 14px; font-weight: 500; color: var(--ink); }
.cta-button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green-deep); color: #fff; font-size: 14px; font-weight: 600;
  padding: 13px 20px; border-radius: 3px; transition: background .2s ease;
}
.cta-button:hover { background: #1c5636; }

.committee-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 24px; margin: 0;
}
.committee-grid div { font-size: 13.5px; color: rgba(26,26,24,.78); padding: 5px 0; border-bottom: 1px solid rgba(26,26,24,.06); }

.status-note {
  background: var(--paper); border: 1px dashed rgba(26,26,24,.2); border-radius: 3px;
  padding: 22px 24px; font-size: 14px; color: var(--ink-soft);
}

/* Formulaire de contact */
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 3px;
  font-family: inherit; font-size: 14px; color: var(--ink); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-deep); }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .revue-actions { flex-direction: column; align-items: flex-start; }
  .revue-actions .sep { display: none; }
}
