/* ═══════════════════════════════════
   MAIN-STYLE.CSS
   Chargé sur TOUTES les pages.
   Contient : tokens, reset, liens,
   header, nav, breadcrumb, footer.
═══════════════════════════════════ */

/* ── TOKENS ─────────────────────── */

:root {
  --white: #ffffff;
  --bg: #f8f7f4;
  --bg-2: #f2f0ec;

  --border: #e0ddd7;
  --border-2: #c8c4bc;

  --text: #1a1916;
  --text-2: #5a5750;
  --text-3: #242017;
  --text-logo: #24c354;

 --accent-black: #000000;
 --accent: #2c5f2e;
  --accent-light: #e8f0e8;
  --accent-2: #1a3d1c;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
}

/* ── RESET ──────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 1540px;
  margin: 0 auto;
}

/* ── LIENS ──────────────────────── */

a {
  color: var(--accent-black);
  text-decoration: none;
  text-align:justify;
  /*border-bottom: 1px solid var(--accent);*/
}

a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

h2{font-size:1.25rem; color:#000;text-align:justify;padding-top:10px;padding-bottom:10px}

/* ═══════════════════════════════════
   HEADER
═══════════════════════════════════ */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  background: #111 url('../images/jaguar.WEBP') center / cover no-repeat;
  height: 200px;
  width: 100%;
  position: relative;
}

.header-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111 10%, transparent 100%);
  pointer-events: none;
}

.header-text { position: relative; z-index: 1; }

.logo-text {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-logo);
  letter-spacing: 0.02em;
}

.logo-text a { border: none; color: var(--text-logo); }

.tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
}

.site-subtitle {
  background: #000;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  padding: 0.65rem 2rem;
  letter-spacing: 0.025em;
  line-height: 1.5;
  border-bottom: 2px solid var(--accent);
}

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */

.site-nav { background: #1e1e2f; }

.site-nav ul { display: flex; list-style: none; }

.site-nav a {
  display: block;
  padding: 14px 20px;
  color: white;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.site-nav a:hover { background: #2e2e4d; }

.site-nav .active > a {
  background: var(--accent);
  color: white;
}

.dropdown { position: relative; }

.dropdown > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  z-index: 200;
  border-top: 2px solid var(--accent);
}

.submenu li { list-style: none; }

.submenu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  border: none;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.submenu li:last-child a { border-bottom: none; }

.submenu li a:hover {
  background: var(--accent-light);
  color: var(--accent-2);
}



.dropdown:hover .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── TROISIÈME NIVEAU ───────────────
   Ex : Timelines > Europe > Expérimentation animale
─────────────────────────────────── */

.submenu li { position: relative; }

/* indicateur → sur les items qui ont un sous-menu */
.submenu li:has(> .submenu) > a::after {
  content: ' ›';
  float: right;
  opacity: 0.5;
}

.submenu .submenu {
  position: absolute;
  top: 0;
  left: 100%;
  border-radius: 0 8px 8px 8px;
  border-top: 2px solid var(--accent);
  transform: translateX(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.submenu li:hover > .submenu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════
   BREADCRUMB
═══════════════════════════════════ */

.breadcrumb {
  padding: 0.75rem 2.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
 gap: 6px;
}

.breadcrumb svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.breadcrumb a { color: var(--text-2); border-bottom: none;font-style:italic }
.breadcrumb a:hover { color: var(--accent);font-weight: 700}
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }


/* ═══════════════════════════════════
   A PROPOS DE L'AUTEUR PHOTO
═══════════════════════════════════ */

.author-doctrinal img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  /* POINT CRUCIAL */
  object-position: 40% 20%;
  border: 1px solid var(--border);
  filter: grayscale(100%) contrast(105%);
}

.card__image-inner {
  filter: grayscale(100%) contrast(105%);
}
/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */

.site-footer {
  background: #0d0d0d url('../images/jaguar.WEBP') center / cover no-repeat;
  padding: 3rem 2.5rem 2rem;
  border-top: 2px solid var(--accent);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.95) 65%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

/* variante index : .footer-brand + .footer-col */
.footer-brand .logo-text { font-size: 1.4rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.65; }

.footer-col h4,
.footer-section h4 {
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  border: none;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--text-logo); }

/* variante articles/timelines : .footer-section */
.footer-section a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  transition: color 0.15s;
}
.footer-section a:hover {
  color: var(--text-logo);
  border-bottom-color: var(--text-logo);
}

.footer-bottom {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════
   RESPONSIVE COMMUN
   Header, nav, breadcrumb, footer
═══════════════════════════════════ */

@media (max-width: 1100px) {
  .site-subtitle { font-size: 0.9rem; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .footer-content { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
  .header-top {
    height: auto;
    min-height: 140px;
    padding: 1.2rem 1.5rem;
    background-size: cover;
  }

  .site-subtitle { font-size: 0.82rem; padding: 0.6rem 1rem; }

  .site-nav ul { flex-wrap: wrap; }
  .site-nav a { padding: 10px 14px; font-size: 0.85rem; }

  .submenu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: none;
    box-shadow: none;
    border-radius: 0;
    min-width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: none;
    background: #2a2a40;
  }
  .submenu li a {
    color: rgba(255,255,255,0.75);
    background: transparent;
    border-color: rgba(255,255,255,0.08);
  }
  .submenu li a:hover { background: rgba(255,255,255,0.07); color: white; }
  .dropdown:hover .submenu { max-height: 400px; pointer-events: auto; }

  .breadcrumb { padding: 0.6rem 1.5rem; }

  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .logo-text { font-size: 1.5rem; }
  .site-subtitle { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 10px 16px; }
  .breadcrumb { padding: 0.6rem 1rem; }
  .footer-bottom { font-size: 0.7rem; }
}

@media (max-width: 360px) {
  html { font-size: 14px; }
  .logo-text { font-size: 1rem; }
  .site-subtitle { font-size: 0.72rem; }
}