/* ============================================================
   SNP44.FR — SOCIÉTÉ NANTAISE DE PRÉHISTOIRE
   Modern Redesign — "Archaeological Modernism"
   ============================================================ */

/* ----------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------- */
:root {
  /* Colors — Earth & Discovery */
  --clr-primary: #C2491D;
  --clr-primary-light: #E8784E;
  --clr-primary-dark: #8B3315;
  --clr-secondary: #1B2D1B;
  --clr-secondary-light: #2D4A2D;
  --clr-accent: #D4A039;
  --clr-accent-light: #E8C36A;
  --clr-bg: #F7F3ED;
  --clr-bg-alt: #EDE7DD;
  --clr-surface: #FFFFFF;
  --clr-dark: #141414;
  --clr-text: #2C2C2C;
  --clr-text-muted: #7A7265;
  --clr-text-light: #A49A8C;
  --clr-border: #D9D2C7;

  /* Typography */
  --ff-display: 'Syne', sans-serif;
  --ff-body: 'Source Serif 4', serif;
  --ff-mono: 'DM Mono', monospace;

  /* Sizes */
  --fs-display: clamp(3rem, 7vw, 5.5rem);
  --fs-h1: clamp(2.2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(212,160,57,0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.8s;
}

/* Dark Mode */
[data-theme="dark"] {
  --clr-bg: #141414;
  --clr-bg-alt: #1C1C1C;
  --clr-surface: #232323;
  --clr-dark: #F7F3ED;
  --clr-text: #E8E0D6;
  --clr-text-muted: #9B9183;
  --clr-text-light: #6B6058;
  --clr-border: #3A352E;
  --clr-primary: #E8784E;
  --clr-primary-light: #F09872;
  --clr-accent: #E8C36A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
}

/* ----------------------------------------
   2. RESET & BASE
   ---------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

[data-theme="dark"] body::after {
  opacity: 0.04;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--clr-primary);
  color: white;
}

/* ----------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--clr-dark);
}

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); font-weight: 600; }

.text-serif {
  font-family: var(--ff-body);
  font-style: italic;
}

.text-mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}

.label {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
}

p + p {
  margin-top: var(--sp-md);
}

/* ----------------------------------------
   4. LAYOUT UTILITIES
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.container-narrow {
  max-width: 800px;
}

.container-wide {
  max-width: 1440px;
}

.section {
  padding: var(--sp-5xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--sp-3xl) 0;
}

.grid {
  display: grid;
  gap: var(--sp-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------
   5. BUTTONS & LINKS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.8rem 1.8rem;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--duration-fast);
  border-radius: inherit;
}

.btn:hover::before {
  opacity: 0.08;
}

.btn-primary {
  background: var(--clr-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cta {
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(212,160,57,0.3);
}

.btn-cta:hover {
  background: var(--clr-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

[data-theme="dark"] .btn-cta {
  color: #141414;
}

.btn-outline {
  border: 2px solid var(--clr-border);
  color: var(--clr-text);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--clr-dark);
  color: var(--clr-bg);
}

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-dark {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}

.btn-lg {
  padding: 1rem 2.4rem;
  font-size: var(--fs-body);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: var(--fs-caption);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-base) var(--ease-out);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Animated underline link */
.link-underline {
  position: relative;
  display: inline;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.link-underline:hover::after {
  width: 100%;
}

/* ----------------------------------------
   6. HEADER & NAVIGATION
   ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: all var(--duration-base) var(--ease-out);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-bg);
  opacity: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity var(--duration-base);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled::before {
  opacity: 0.92;
  border-bottom-color: var(--clr-border);
}

[data-theme="dark"] .site-header.scrolled::before {
  background: var(--clr-dark);
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--clr-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: transform var(--duration-base) var(--ease-out);
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clr-dark);
}

.logo-sub {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation */
.main-nav {
  display: none;
}

@media (min-width: 1100px) {
  .main-nav {
    display: flex;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.45rem 0.85rem;
  font-family: var(--ff-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
  color: var(--clr-primary);
  background: rgba(194, 73, 29, 0.06);
}

[data-theme="dark"] .nav-item > a:hover,
[data-theme="dark"] .nav-item.active > a {
  background: rgba(232, 120, 78, 0.1);
}

.nav-item > a .nav-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform var(--duration-fast);
}

.nav-item:hover > a .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-sm);
  padding-top: calc(var(--sp-sm) + 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

/* Invisible bridge to keep hover active between nav-item and dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--ff-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.dropdown a:hover {
  background: rgba(194, 73, 29, 0.06);
  color: var(--clr-primary);
  padding-left: 1.3rem;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-shrink: 0;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  color: var(--clr-text-muted);
}

.theme-toggle:hover {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ----------------------------------------
   7. MOBILE MENU
   ---------------------------------------- */
.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
  z-index: 1001;
}

@media (min-width: 1100px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle:hover {
  background: var(--clr-bg-alt);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--clr-bg);
  padding: calc(var(--header-height) + var(--sp-xl)) var(--sp-xl) var(--sp-xl);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all var(--duration-slow) var(--ease-out);
}

[data-theme="dark"] .mobile-menu {
  background: var(--clr-dark);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.mobile-nav-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-dark);
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--duration-fast);
}

.mobile-nav-item > a:hover {
  color: var(--clr-primary);
}

.mobile-dropdown {
  display: none;
  padding: var(--sp-sm) 0 var(--sp-md);
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown a {
  display: block;
  padding: 0.5rem 0 0.5rem var(--sp-lg);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--duration-fast);
}

.mobile-dropdown a:hover {
  color: var(--clr-primary);
}

.mobile-menu-footer {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--clr-border);
}

.mobile-menu-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

/* ----------------------------------------
   8. HERO SECTIONS
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(194,73,29,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(27,45,27,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(212,160,57,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-bg-alt) 100%);
}

/* Strata lines - geological layers effect */
.hero-strata {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  opacity: 0.08;
}

.hero-strata span {
  position: absolute;
  left: -5%;
  right: -5%;
  height: 2px;
  transform: rotate(-1.5deg);
}

.hero-strata span:nth-child(1) {
  bottom: 30%;
  background: var(--clr-primary);
}

.hero-strata span:nth-child(2) {
  bottom: 45%;
  background: var(--clr-accent);
  height: 3px;
}

.hero-strata span:nth-child(3) {
  bottom: 60%;
  background: var(--clr-secondary);
  height: 1px;
}

.hero-strata span:nth-child(4) {
  bottom: 72%;
  background: var(--clr-primary-light);
  height: 2px;
}

.hero-strata span:nth-child(5) {
  bottom: 85%;
  background: var(--clr-text-muted);
  height: 1px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-xl);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-primary);
  margin-bottom: var(--sp-xl);
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--clr-primary);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--clr-dark);
  max-width: 900px;
}

.hero-title .accent {
  color: var(--clr-primary);
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-top: var(--sp-xl);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  animation: float 3s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollLine {
  0% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0); transform-origin: top; }
  51% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

/* Inner page hero - smaller */
.hero-inner {
  min-height: auto;
  padding: calc(var(--header-height) + var(--sp-4xl)) 0 var(--sp-3xl);
}

.hero-inner .hero-bg-gradient {
  background:
    radial-gradient(ellipse 60% 80% at 30% 100%, rgba(194,73,29,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-bg-alt) 100%);
}

/* Hero with background image */
.hero-has-image {
  min-height: 340px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-has-image .hero-bg-gradient {
  background:
    linear-gradient(180deg, rgba(27,45,27,0.7) 0%, rgba(27,45,27,0.85) 100%);
}

.hero-has-image .hero-title,
.hero-has-image .hero-description {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ----------------------------------------
   9. CARDS & GRID
   ---------------------------------------- */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--clr-bg-alt);
}

.card-body {
  padding: var(--sp-lg);
}

.card-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-primary);
  margin-bottom: var(--sp-sm);
}

.card-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}

.card-text {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.card-footer {
  padding: var(--sp-md) var(--sp-lg);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Feature card (larger) */
.card-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: none;
  background: transparent;
}

.card-feature:hover {
  transform: none;
  box-shadow: none;
}

.card-feature .card-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-alt);
  aspect-ratio: 4/3;
}

.card-feature .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card-feature:hover .card-img {
  transform: scale(1.05);
}

.card-feature .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-2xl);
}

/* Stat card */
.stat-card {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--sp-sm);
}

.stat-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
}

/* Activity card */
.activity-card {
  position: relative;
  padding: var(--sp-2xl);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--clr-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--duration-base) var(--ease-out);
}

.activity-card:hover::before {
  transform: scaleY(1);
}

.activity-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.activity-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(194,73,29,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  font-size: 1.4rem;
}

[data-theme="dark"] .activity-card-icon {
  background: rgba(232,120,78,0.12);
}

.activity-card h3 {
  margin-bottom: var(--sp-sm);
}

.activity-card p {
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
}

/* ----------------------------------------
   10. SECTIONS & CONTAINERS
   ---------------------------------------- */
.section-header {
  margin-bottom: var(--sp-3xl);
}

.section-header .label {
  margin-bottom: var(--sp-md);
}

.section-header h2 {
  margin-bottom: var(--sp-md);
}

.section-header p {
  color: var(--clr-text-muted);
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-header.text-center p {
  margin: 0 auto;
}

/* Section with alternate background */
.section-alt {
  background: var(--clr-bg-alt);
}

.section-dark {
  background: var(--clr-secondary);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-dark .label {
  color: var(--clr-accent);
}

.section-dark p {
  color: rgba(255,255,255,0.7);
}

/* Strata divider between sections */
.strata-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.strata-divider::before,
.strata-divider::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  height: 100%;
}

.strata-divider::before {
  top: 0;
  background: var(--clr-bg);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
}

.strata-divider-accent {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  top: 50%;
  background: linear-gradient(90deg, transparent 0%, var(--clr-primary) 20%, var(--clr-accent) 50%, var(--clr-secondary) 80%, transparent 100%);
  opacity: 0.3;
  transform: rotate(-0.5deg);
}

/* Event highlight */
.event-highlight {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-xl);
  align-items: center;
  transition: all var(--duration-base) var(--ease-out);
}

.event-highlight:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.event-date {
  text-align: center;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-primary);
  color: white;
  border-radius: var(--radius-lg);
  min-width: 80px;
}

.event-date-day {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-date-month {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.event-info h3 {
  margin-bottom: var(--sp-xs);
}

.event-meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* CTA Section */
.cta-section {
  background: var(--clr-secondary);
  padding: var(--sp-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(194,73,29,0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(212,160,57,0.15) 0%, transparent 40%);
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--sp-md);
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto var(--sp-2xl);
  font-size: 1.1rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--sp-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-accent), var(--clr-secondary));
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-3xl) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--clr-primary);
  border-radius: 50%;
  border: 3px solid var(--clr-bg);
}

.timeline-year {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-xs);
}

.timeline-item h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--sp-sm);
}

.timeline-item p {
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
}

/* ----------------------------------------
   11. FOOTER
   ---------------------------------------- */
.site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,0.6);
  padding-top: var(--sp-5xl);
}

[data-theme="dark"] .site-footer {
  background: #0A0A0A;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--sp-4xl);
  padding-bottom: var(--sp-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--sp-md);
}

.footer-tagline {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--sp-xl);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--sp-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  color: rgba(255,255,255,0.6);
}

.footer-social a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

.footer-col h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: white;
  margin-bottom: var(--sp-lg);
}

.footer-col li {
  margin-bottom: var(--sp-sm);
}

.footer-col a {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--clr-primary-light);
}

.footer-col li:not(:has(a)) {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-xl) 0;
  font-size: var(--fs-small);
}

.footer-links {
  display: flex;
  gap: var(--sp-xl);
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--duration-fast);
}

.footer-links a:hover {
  color: white;
}

/* ----------------------------------------
   12. FORMS
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  color: var(--clr-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  transition: all var(--duration-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(194,73,29,0.12);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-hint {
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
  margin-top: var(--sp-xs);
}

/* ----------------------------------------
   13. ANIMATIONS & EFFECTS
   ---------------------------------------- */
/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Parallax (applied via JS) */
[data-parallax] {
  will-change: transform;
}

/* Decorative dots */
.dots-pattern {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, var(--clr-primary) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.1;
  pointer-events: none;
}

/* Decorative circle */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--clr-primary);
  opacity: 0.06;
  pointer-events: none;
}

/* Smooth image placeholder */
.img-placeholder {
  background: linear-gradient(135deg, var(--clr-bg-alt) 0%, var(--clr-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
}

/* ----------------------------------------
   14. PAGE-SPECIFIC STYLES
   ---------------------------------------- */
/* Association - Tabs */
.tabs {
  display: flex;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-2xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 0;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.8rem 1.5rem;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast);
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--clr-text);
}

.tab-btn.active {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-primary);
}

.tab-panel {
  display: none;
  animation: fadeIn var(--duration-base) var(--ease-out);
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Organigramme */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
}

.org-card {
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-base) var(--ease-out);
}

.org-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.org-role {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-primary);
  margin-bottom: var(--sp-sm);
}

.org-name {
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.org-desc {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

/* Publications */
.pub-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-base) var(--ease-out);
}

.pub-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.pub-cover {
  width: 100px;
  height: 140px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-secondary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.5rem;
}

.pub-info h3 {
  margin-bottom: var(--sp-xs);
}

.pub-info .pub-year {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  color: var(--clr-primary);
  margin-bottom: var(--sp-sm);
}

.pub-info p {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.pub-price {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--clr-primary);
  margin-top: var(--sp-sm);
}

/* Archives grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-md);
}

.archive-card {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-sm);
  text-align: center;
  padding: var(--sp-lg);
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}

.archive-card-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-sm);
}

.archive-card h3 {
  font-size: var(--fs-small);
}

.archive-card p {
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
}

/* Adhesion pricing */
.pricing-card {
  padding: var(--sp-2xl);
  border-radius: var(--radius-xl);
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--clr-primary);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-primary);
  color: white;
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-lg);
}

.pricing-amount {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--clr-primary);
  margin: var(--sp-lg) 0;
}

.pricing-amount span {
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  font-weight: 400;
}

.pricing-features {
  text-align: left;
  margin: var(--sp-xl) 0;
}

.pricing-features li {
  padding: var(--sp-sm) 0;
  font-size: var(--fs-small);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  color: var(--clr-text-muted);
}

.pricing-features li::before {
  content: '✓';
  color: var(--clr-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Resource list (Sel, PDFs, etc.) */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.resource-item {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-base) var(--ease-out);
}

.resource-item:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(194,73,29,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-primary);
  font-size: 1.2rem;
}

[data-theme="dark"] .resource-icon {
  background: rgba(232,120,78,0.12);
}

.resource-info {
  flex: 1;
}

.resource-info h4 {
  font-size: var(--fs-small);
  margin-bottom: 2px;
}

.resource-info p {
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
}

/* Content sections for long-form text */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-lg);
}

.content-section h3 {
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
}

.content-section p {
  margin-bottom: var(--sp-md);
  color: var(--clr-text);
  line-height: 1.8;
}

.content-section ul,
.content-section ol {
  margin: var(--sp-md) 0;
  padding-left: var(--sp-xl);
}

.content-section li {
  margin-bottom: var(--sp-sm);
  line-height: 1.7;
  color: var(--clr-text-muted);
  list-style: disc;
}

.content-section ol li {
  list-style: decimal;
}

.content-section blockquote {
  border-left: 3px solid var(--clr-primary);
  padding-left: var(--sp-lg);
  margin: var(--sp-xl) 0;
  font-style: italic;
  color: var(--clr-text-muted);
}

/* ----------------------------------------
   15. RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1099px) {
  .nav-list {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-feature {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-highlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --sp-5xl: 5rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--sp-3xl) 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-content {
    padding: var(--sp-xl);
  }

  .hero-scroll {
    display: none;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }

  .pub-card {
    grid-template-columns: 1fr;
  }

  .pub-cover {
    width: 100%;
    height: 60px;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------
   16. WORDPRESS-SPECIFIC
   ---------------------------------------- */

/* Admin bar offset */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* WordPress alignments */
.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

.alignright {
  float: right;
  margin-left: var(--sp-xl);
  margin-bottom: var(--sp-md);
}

/* WordPress block editor content */
.entry-content > *:not(.alignfull):not(.alignwide) {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignfull {
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.entry-content > .alignwide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .aligncenter {
  text-align: center;
}

.wp-block-image img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  height: auto;
}

.wp-block-image {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

/* WordPress captions */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
figcaption {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
  text-align: center;
  margin-top: var(--sp-sm);
}

/* WordPress galleries */
.wp-block-gallery {
  gap: var(--sp-md) !important;
}

.wp-block-gallery .wp-block-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Order list (bon de commande) */
.order-list {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--duration-fast);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item:hover {
  background: rgba(194, 73, 29, 0.04);
}

.order-item-price {
  font-family: var(--ff-mono);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--clr-primary);
  white-space: nowrap;
  margin-left: var(--sp-md);
}

/* WordPress navigation (wp_nav_menu) */
.menu-item-has-children {
  position: relative;
}

/* WordPress comments */
.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.comment-author {
  font-family: var(--ff-display);
  font-weight: 600;
}

.comment-meta {
  font-family: var(--ff-mono);
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}

/* WordPress pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-3xl);
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-md);
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-fast);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}

/* WordPress widgets */
.widget {
  margin-bottom: var(--sp-2xl);
}

.widget-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}

/* Screen reader text (WordPress accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--clr-surface);
  clip: auto !important;
  display: block;
  height: auto;
  left: 5px;
  padding: var(--sp-md) var(--sp-xl);
  top: 5px;
  width: auto;
  z-index: 100000;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-2xl);
  border-top: 1px solid var(--clr-border);
}

.post-navigation a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: color var(--duration-fast);
}

.post-navigation a:hover {
  color: var(--clr-primary);
}

.post-navigation .nav-next {
  text-align: right;
}

/* ========================================
   PUBLICATION CARDS — Enhanced
   ======================================== */
.pub-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--sp-xl);
  align-items: start;
  padding: var(--sp-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.pub-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pub-cover-img {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pub-cover-img img {
  width: 100%;
  height: auto;
  display: block;
}

.pub-info h3 {
  margin-bottom: var(--sp-xs);
}

.pub-meta-line {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.pub-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-badge-avail {
  background: rgba(45, 74, 45, 0.15);
  color: #2D4A2D;
}

[data-theme="dark"] .pub-badge-avail {
  background: rgba(45, 74, 45, 0.3);
  color: #8BC38B;
}

.pub-badge-unavail {
  background: rgba(194, 73, 29, 0.15);
  color: #C2491D;
}

[data-theme="dark"] .pub-badge-unavail {
  background: rgba(194, 73, 29, 0.3);
  color: #E8845A;
}

.pub-excerpt {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}

.pub-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.btn-sm {
  padding: var(--sp-xs) var(--sp-md);
  font-size: var(--fs-small);
}

@media (max-width: 600px) {
  .pub-card {
    grid-template-columns: 100px 1fr;
    gap: var(--sp-md);
  }
}

/* ========================================
   CONTACT FORM 7 — Theme Integration
   ======================================== */
.wpcf7 label {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--sp-lg);
  color: var(--clr-text);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: var(--sp-xs);
  padding: var(--sp-md) var(--sp-lg);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(194, 73, 29, 0.15);
}

.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-2xl);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background: var(--clr-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast);
  width: 100%;
  margin-top: var(--sp-md);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--clr-primary-hover, #a83d17);
  transform: translateY(-1px);
}

.wpcf7-response-output {
  margin-top: var(--sp-lg) !important;
  padding: var(--sp-md) var(--sp-lg) !important;
  border-radius: var(--radius-md) !important;
  font-size: var(--fs-small) !important;
}

.wpcf7-mail-sent-ok {
  border-color: #2D4A2D !important;
  background: rgba(45, 74, 45, 0.1) !important;
  color: #2D4A2D !important;
}

.wpcf7-validation-errors {
  border-color: var(--clr-primary) !important;
  background: rgba(194, 73, 29, 0.1) !important;
  color: var(--clr-primary) !important;
}

.wpcf7-not-valid-tip {
  color: var(--clr-primary) !important;
  font-size: var(--fs-small) !important;
  margin-top: var(--sp-xs) !important;
}
