/* ================================================================
   COPEF – Cercle Ouest Parisien d'Études Ferroviaires
   Stylesheet – v1.0
   Palette : vert COPEF #2d6b4f, or #c8a84b, crème #f8f5ef
   ================================================================ */

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

:root {
  --green:        #2d6b4f;
  --green-dark:   #1c4a34;
  --green-mid:    #3d8b67;
  --green-light:  #e8f2ed;
  --gold:         #c8a84b;
  --gold-light:   #f0e6c4;
  --cream:        #f8f5ef;
  --white:        #ffffff;
  --text:         #2a2a2a;
  --text-light:   #5a5a5a;
  --border:       #d8d0c4;
  --shadow:       rgba(44, 107, 79, 0.12);
  --shadow-lg:    rgba(44, 107, 79, 0.22);
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.28s ease;
  --header-h:     76px;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }
address { font-style: normal; }

/* === LAYOUT UTILITIES ========================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 52px 0; }
.section--lg { padding: 108px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.section-header .lead { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.divider {
  width: 52px; height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

.divider--left { margin-left: 0; }

/* === ANNOUNCEMENT BAR (bandeau config.php) ==================== */
.announcement-bar {
  width: 100%;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}
/* Styles par type */
.announcement-info    { background: #1a5276; color: #fff; }
.announcement-success { background: var(--green); color: #fff; }
.announcement-warning { background: #d35400; color: #fff; }
.announcement-promo   { background: var(--gold); color: var(--green-dark); }

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.announcement-text { flex: 1; text-align: center; margin: 0; }
.announcement-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.announcement-link:hover { opacity: 0.85; color: inherit; }
.announcement-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--transition);
}
.announcement-close:hover { opacity: 1; }
.announcement-bar.ann-hidden { display: none; }

/* === RAILWAY TRACK DECORATION ================================= */
.header-track, .footer-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 10px;
  overflow: hidden;
}
.track-line {
  height: 1.5px;
  background: rgba(255,255,255,0.25);
}
.header-track { padding: 0 0 2px; }
.footer-track { padding: 2px 0 0; }

/* === SITE HEADER ============================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--green-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img { width: 58px; height: auto; }

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}
.logo-subtitle {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  margin-top: 3px;
  max-width: 200px;
  line-height: 1.3;
}

/* Navigation */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.main-nav .nav-cta {
  background: var(--gold);
  color: var(--green-dark) !important;
  padding: 8px 18px;
  font-weight: 700;
}
.main-nav .nav-cta:hover {
  background: #d4b460;
  color: var(--green-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Page content spacing */
.page-content { padding-top: var(--header-h); }

/* === HERO ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 55%, #3d8b67 100%);
  color: white;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Railway lines décoratives */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 38px,
    rgba(255,255,255,0.06) 38px, rgba(255,255,255,0.06) 40px
  );
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 168, 75, 0.25);
  border: 1px solid rgba(200, 168, 75, 0.5);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-logo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0.9;
}
.hero-logo-side img { width: 110px; height: auto; }
.hero-logo-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 52px;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  margin-top: 6px;
  display: block;
}

/* === BUTTONS ================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #d4b460;
  border-color: #d4b460;
  color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,168,75,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  color: white;
}

.btn-green {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--shadow-lg);
}

.btn-sm { padding: 8px 18px; font-size: 0.87rem; }
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* === INTRO SECTION =========================================== */
.intro-section { background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-text h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 20px; }
.intro-text p { color: var(--text-light); }

.intro-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}
.intro-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.intro-feature-icon {
  width: 40px; height: 40px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.intro-feature-text strong { display: block; color: var(--green-dark); font-weight: 600; margin-bottom: 2px; }
.intro-feature-text span { font-size: 0.9rem; color: var(--text-light); }

.intro-visual {
  position: relative;
}
.intro-card {
  background: var(--green-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.intro-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: rgba(200,168,75,0.15);
  border-radius: 50%;
}
.intro-card-year {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  position: absolute;
  right: 20px;
  bottom: 10px;
}
.intro-card h3 { font-size: 1.4rem; color: var(--gold-light); margin-bottom: 14px; }
.intro-card p { color: rgba(255,255,255,0.82); font-size: 0.97rem; }
.intro-card-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* === ACTIVITIES CARDS ========================================= */
.activities-section { background: var(--cream); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-3px);
  border-color: var(--green-light);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--green);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--text-light); }

/* === HIGHLIGHT BAND =========================================== */
.highlight-band {
  background: var(--green-dark);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.highlight-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 20px,
    rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 22px
  );
}
.highlight-band .container { position: relative; z-index: 1; }

.highlight-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.highlight-content h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--gold-light); margin-bottom: 10px; }
.highlight-content p { color: rgba(255,255,255,0.82); max-width: 500px; }

/* === PRESIDENT PREVIEW ======================================= */
.president-section { background: var(--white); }

.president-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.president-portrait {
  width: 260px;
  flex-shrink: 0;
}
.portrait-frame {
  width: 260px; height: 300px;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 5rem;
  border: 4px solid var(--border);
  position: relative;
  overflow: hidden;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 L40 20 M20 0 L20 40' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
}
.portrait-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(28, 74, 52, 0.9);
  padding: 14px;
  text-align: center;
}
.portrait-name strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; }
.portrait-name span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

.president-info h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 6px; }
.president-info .dates { color: var(--gold); font-weight: 600; margin-bottom: 18px; font-size: 0.95rem; }
.president-info p { color: var(--text-light); margin-bottom: 14px; }
.president-info p strong { color: var(--text); }

/* === VOYAGES PREVIEW ========================================= */
.voyages-section { background: var(--cream); }

.voyages-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}
.voyages-timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, var(--gold) 100%);
}
.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  background: var(--gold);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-era {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item p { font-size: 0.93rem; color: var(--text-light); }

/* === PAGE HERO (inner pages) ================================= */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: white;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 58px,
    rgba(255,255,255,0.04) 58px, rgba(255,255,255,0.04) 60px
  );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { max-width: 700px; }
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: white; margin-bottom: 14px; }
.page-hero .lead { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* === ASSOCIATION PAGE ========================================= */
.assoc-content { background: var(--white); }

.assoc-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.content-body h2 {
  font-size: 1.6rem;
  margin: 36px 0 14px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  color: var(--green-dark);
}
.content-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-body p { color: var(--text-light); margin-bottom: 16px; }
.content-body strong { color: var(--text); }

.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.sidebar-card h3 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.sidebar-card p, .sidebar-card li { font-size: 0.9rem; color: var(--text-light); }
.sidebar-card li { padding: 4px 0 4px 14px; position: relative; }
.sidebar-card li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; }

.membership-box {
  background: var(--green-dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 30px;
}
.membership-box h3 { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 12px; }
.membership-box p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 16px; }

/* === VOYAGES PAGE ============================================= */
.voyages-content { background: var(--white); }

.voyages-era {
  margin-bottom: 64px;
}
.era-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-light);
}
.era-badge {
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
}
.era-title { font-size: 1.4rem; color: var(--green-dark); }

.targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.target-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.target-card:hover {
  background: var(--green-light);
  border-color: var(--green);
  transform: translateX(4px);
}

.target-icon {
  width: 44px; height: 44px;
  background: var(--green);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.target-info h4 { font-size: 0.97rem; color: var(--green-dark); margin-bottom: 4px; }
.target-info p { font-size: 0.86rem; color: var(--text-light); margin: 0; }
.target-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  margin-bottom: 4px;
}

/* === PRESIDENT PAGE ========================================== */
.president-content { background: var(--white); }

.president-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 36px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--green-light);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body p { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.article-body strong { color: var(--text); }

.president-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.aside-portrait {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: white;
  margin-bottom: 20px;
}
.aside-portrait-icon { font-size: 3.5rem; display: block; margin-bottom: 14px; }
.aside-portrait h3 { font-size: 1.2rem; color: white; margin-bottom: 4px; }
.aside-portrait p { font-size: 0.87rem; color: rgba(255,255,255,0.78); margin: 0; }
.aside-portrait .years { color: var(--gold-light); font-weight: 600; margin: 10px 0 0; display: block; font-size: 0.9rem; }

.timeline-mini {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.timeline-mini h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-family: var(--font-sans); margin-bottom: 16px; }

.mini-event {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mini-event:last-child { border-bottom: none; }
.mini-year {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 36px;
}
.mini-event p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* === CONTACT PAGE ============================================= */
.contact-content { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-block h2 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-block h3 { font-size: 1rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-sans); margin: 24px 0 10px; }
.contact-block p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 8px; }
.contact-block a { color: var(--green); font-weight: 600; }
.contact-block a:hover { color: var(--green-dark); text-decoration: underline; }

.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.transport-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.transport-item strong {
  display: block;
  color: var(--green-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.transport-item p { font-size: 0.83rem; color: var(--text-light); margin: 0; line-height: 1.6; }

.map-block {
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
}
.map-placeholder {
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 3rem;
  gap: 12px;
}
.map-placeholder p { font-size: 0.9rem; color: var(--text-light); text-align: center; margin: 0; }
.map-address {
  background: var(--green-dark);
  color: white;
  padding: 16px 20px;
  font-size: 0.9rem;
}

.iban-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.iban-box h3 { color: var(--gold); font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.iban-box p { font-size: 0.87rem; color: var(--text-light); margin-bottom: 8px; }
.iban-box code { font-size: 0.82rem; background: white; padding: 2px 6px; border-radius: 3px; font-family: monospace; color: var(--green-dark); letter-spacing: 0.04em; }

/* === CONTACT PHONE / EMAIL BUTTONS ============================ */
/* Use high-specificity selectors to beat .contact-block a (0,1,1) */
.contact-block a.contact-phone-btn,
a.contact-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--green);
  transition: all var(--transition);
}
.contact-block a.contact-phone-btn:hover,
a.contact-phone-btn:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.contact-block a.contact-email-btn,
a.contact-email-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--cream);
  color: var(--green-dark);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-block a.contact-email-btn span,
a.contact-email-btn span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
}
.contact-block a.contact-email-btn:hover,
a.contact-email-btn:hover {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}

/* === PERMANENCES BOX ========================================== */
.permanence-box {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}
.permanence-box h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 10px; }
.permanence-box p { color: var(--text); font-size: 0.95rem; margin-bottom: 6px; }
.permanence-box strong { color: var(--green-dark); }

/* === PARTNERS PAGE =========================================== */
.partner-featured {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}
.partner-featured::before {
  content: '';
  position: absolute;
  top:-30px; right:-30px;
  width:160px; height:160px;
  background: rgba(200,168,75,0.15);
  border-radius: 50%;
}
.partner-featured-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  gap: 10px;
  font-size: 2.5rem;
}
.partner-logo-acronym {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}
.partner-featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.partner-featured-title {
  font-size: 2rem;
  color: white !important;
  margin-bottom: 14px;
}
.partner-featured-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.97rem;
  margin-bottom: 12px;
  max-width: 680px;
}
.partner-featured-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.partner-type-badge {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.partner-card:hover {
  box-shadow: 0 8px 28px var(--shadow);
  transform: translateY(-3px);
  border-color: var(--green);
}
.partner-logo-box {
  background: var(--green-light);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.8rem;
  border-bottom: 1px solid var(--border);
}
.partner-logo-acronym-sm {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.04em;
}
.partner-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.partner-card-body h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 4px; }
.partner-subtitle { font-size: 0.82rem; color: var(--text-light); font-style: italic; margin-bottom: 12px !important; }
.partner-card-body p { font-size: 0.9rem; color: var(--text-light); flex: 1; }
.partner-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 8px; }
.partner-tags span {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.partner-link { font-size: 0.85rem; color: var(--green); font-weight: 600; text-decoration: none; margin-top: 4px; display: inline-block; }
.partner-link:hover { color: var(--green-dark); text-decoration: underline; }

/* === STATUTS PAGE ============================================ */
.statuts-body { max-width: 820px; margin: 0 auto; }
.statuts-intro {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--text-light);
}
.statuts-intro strong { color: var(--green-dark); }
.statuts-titre {
  margin: 40px 0 20px;
  padding: 14px 20px;
  background: var(--green-dark);
  color: white;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.statuts-article { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.statuts-article:last-child { border-bottom: none; }
.statuts-article h3 { font-size: 1rem; color: var(--green-dark); margin-bottom: 10px; font-family: var(--font-sans); font-weight: 700; }
.statuts-article p { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; text-align: justify; }
.statuts-article ul { margin: 8px 0 8px 20px; list-style: disc; }
.statuts-article ul li { font-size: 0.93rem; color: var(--text-light); padding: 4px 0; }

@media (max-width: 900px) {
  .partner-featured { grid-template-columns: 1fr; }
  .partner-featured-logo { flex-direction: row; padding: 14px 20px; }
}
@media (max-width: 660px) {
  .partners-grid { grid-template-columns: 1fr; }
}

/* === SITE FOOTER ============================================= */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-logo { width: 60px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-since { font-size: 0.8rem; color: var(--gold-light); font-weight: 600; margin-top: 8px; }

.footer-nav h3, .footer-contact h3, .footer-infos h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
}
.footer-nav a:hover { color: white; }
.footer-contact p { font-size: 0.87rem; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,0.82); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-infos p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-iban { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-iban small { display: block; font-size: 0.77rem; color: rgba(255,255,255,0.5); margin-top: 2px; word-break: break-all; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal a { color: rgba(255,255,255,0.65); }
.footer-legal a:hover { color: white; }

/* === HEADER SCROLLED STATE ==================================== */
.site-header.scrolled {
  background: rgba(28, 74, 52, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* === SCROLL REVEAL =========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  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; }

/* === BACK TO TOP ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px var(--shadow-lg);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* === RESPONSIVE ============================================== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-logo-side { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }

  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .intro-visual { order: -1; }

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

  .president-grid { grid-template-columns: 1fr; text-align: center; }
  .portrait-frame { margin: 0 auto; }

  .assoc-grid { grid-template-columns: 1fr; }
  .president-article { grid-template-columns: 1fr; }
  .president-aside { position: static; }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--green-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 12px 0 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 24px; border-radius: 0; border-left: 3px solid transparent; }
  .main-nav a.active, .main-nav a:hover { border-left-color: var(--gold); background: rgba(255,255,255,0.06); }
  .main-nav .nav-cta { margin: 12px 24px 0; border-radius: var(--radius); }

  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .cards-grid { grid-template-columns: 1fr; }
  .targets-grid { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .highlight-content { flex-direction: column; text-align: center; }
  .highlight-content p { max-width: 100%; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .logo-subtitle { display: none; }
}
