:root {
  --blue: #1e5ba8;
  --blue-dark: #14406e;
  --blue-light: #e8f0fa;
  --green: #4a9d5f;
  --green-dark: #357045;
  --ink: #1a1a1a;
  --gray-900: #2a2a2a;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #d5d5d5;
  --gray-100: #f4f4f2;
  --gray-50: #fafaf8;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --max: 1280px;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ================== TOP BAR ================== */
.topbar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.82rem;
  padding: 0.5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--white); }
.topbar-right { display: flex; gap: 1rem; align-items: center; }

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 3px 10px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all .2s;
}
.lang-toggle button.active {
  background: var(--white);
  color: var(--blue-dark);
}

/* ================== HEADER ================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; color: var(--blue); letter-spacing: 0.02em; }
.brand-text .tagline { font-size: 0.68rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.main-nav ul { display: flex; list-style: none; gap: 0.3rem; align-items: center; }
.main-nav a {
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  display: block;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--green);
}

.header-cta { display: flex; gap: 0.5rem; align-items: center; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-light); }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--blue); }

/* ================== HERO ================== */
.hero {
  position: relative;
  height: 620px;
  background:
    linear-gradient(135deg, rgba(20,64,110,0.75) 0%, rgba(74,157,95,0.55) 100%),
    url('https://images.unsplash.com/photo-1600&auto=format') center/cover;
  background-color: var(--blue-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Cpath fill='%23ffffff08' d='M0 300 Q300 200 600 300 T1200 300 V600 H0 Z'/%3E%3Cpath fill='%23ffffff05' d='M0 400 Q300 350 600 420 T1200 400 V600 H0 Z'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.6;
}
.hero-content { position: relative; max-width: 780px; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero p.lead { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; max-width: 620px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: var(--white); color: var(--white); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--blue-dark); }

/* Hero small (interior pages) */
.hero-small {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-small::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74,157,95,0.4) 0%, transparent 70%);
}
.hero-small h1 { color: var(--white); font-size: 2.5rem; }
.hero-small .breadcrumbs {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}
.hero-small .breadcrumbs a { color: rgba(255,255,255,0.8); }
.hero-small .breadcrumbs a:hover { color: var(--white); }
.hero-small p { max-width: 760px; margin-top: 1rem; font-size: 1.05rem; opacity: 0.9; }

/* ================== SECTIONS ================== */
section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head .eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.section-head .see-all { float: right; font-weight: 600; margin-top: 1rem; }

/* ================== STUDY CARDS ================== */
.studies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.study-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-300);
}
.study-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.study-card .thumb {
  height: 220px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  position: relative;
  overflow: hidden;
}
.study-card .thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220'%3E%3Cpath fill='%23ffffff10' d='M0 110 Q100 80 200 110 T400 110 V220 H0 Z'/%3E%3Cg fill='%23ffffff15'%3E%3Ccircle cx='80' cy='80' r='4'/%3E%3Ccircle cx='150' cy='60' r='3'/%3E%3Ccircle cx='240' cy='90' r='5'/%3E%3Ccircle cx='320' cy='70' r='3'/%3E%3Cpath d='M80 80 L150 60 L240 90 L320 70' stroke='%23ffffff20' stroke-width='1' fill='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}
.study-card .thumb.v2 { background: linear-gradient(135deg, var(--green) 0%, var(--blue-dark) 100%); }
.study-card .thumb.v3 { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 100%); }
.study-card .thumb.v4 { background: linear-gradient(135deg, #d68a3e 0%, var(--blue) 100%); }
.study-card .thumb.v5 { background: linear-gradient(135deg, var(--green) 0%, #d68a3e 100%); }
.study-card .thumb.v6 { background: linear-gradient(135deg, var(--blue) 0%, #7a4ec4 100%); }
.study-card .thumb .tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--white);
  color: var(--blue-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.study-card .lock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.study-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.study-card .meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.study-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  line-height: 1.35;
}
.study-card p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 1rem; flex: 1; }
.study-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
  font-size: 0.85rem;
}
.study-card .authors { color: var(--gray-500); }
.study-card .read-more { color: var(--blue); font-weight: 600; }

/* ================== THEMATIQUES ================== */
.thematiques { background: var(--gray-50); }
.themes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.theme-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--gray-300);
  transition: all .25s;
  cursor: pointer;
}
.theme-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.theme-icon {
  width: 64px; height: 64px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--blue);
  font-size: 1.8rem;
}
.theme-card:hover .theme-icon { background: var(--green); color: var(--white); }
.theme-card h3 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.35rem; }
.theme-card .count { color: var(--gray-500); font-size: 0.85rem; }

/* ================== CARTOTHEQUE PREVIEW ================== */
.cartotheque-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.map-mockup {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 40%, rgba(74,157,95,0.35) 0, transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(30,91,168,0.35) 0, transparent 30%),
    linear-gradient(135deg, #e5e9d8 0%, #d9e4d0 100%);
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--gray-300);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-mockup .pin {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px currentColor;
}
.map-mockup .pin.blue { background: var(--blue); color: var(--blue); }
.map-mockup .pin.green { background: var(--green); color: var(--green); }
.map-legend {
  position: absolute;
  bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.map-legend div { display: flex; align-items: center; gap: 0.5rem; margin: 3px 0; }
.map-legend span { width: 10px; height: 10px; border-radius: 50%; }

.cartotheque-preview .content h2 { margin-bottom: 1rem; }
.cartotheque-preview .content p { color: var(--gray-700); margin-bottom: 1.5rem; }
.cartotheque-preview .content ul { list-style: none; margin-bottom: 2rem; }
.cartotheque-preview .content ul li { padding: 0.4rem 0; color: var(--gray-700); position: relative; padding-left: 1.5rem; }
.cartotheque-preview .content ul li::before {
  content: '→'; color: var(--green); position: absolute; left: 0; font-weight: bold;
}

/* ================== MEMBRE CTA ================== */
.membre-cta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.membre-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,157,95,0.4) 0%, transparent 70%);
  border-radius: 50%;
}
.membre-cta::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,157,95,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.membre-cta .container { position: relative; z-index: 2; }
.membre-cta h2 { color: var(--white); margin-bottom: 1rem; }
.membre-cta p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; opacity: 0.95; }
.membre-cta .btn-green { background: var(--green); }

/* ================== ACTUALITÉS ================== */
.actualites-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.actu-card {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
}
.actu-card:hover { box-shadow: var(--shadow-md); }
.actu-card.featured { grid-row: span 2; }
.actu-card .thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-700) 100%);
  position: relative;
}
.actu-card.featured .thumb { height: 320px; }
.actu-card .body { padding: 1.25rem; }
.actu-card .meta { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; margin-bottom: 0.5rem; font-weight: 600; }
.actu-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.actu-card.featured h3 { font-size: 1.4rem; }
.actu-card p { color: var(--gray-700); font-size: 0.9rem; }

/* ================== PARTENAIRES ================== */
.partenaires { background: var(--gray-100); padding: 3rem 0; }
.partners-row { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; }
.partner-logo {
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gray-500);
  font-size: 1.1rem;
  border: 1px solid var(--gray-300);
  letter-spacing: 0.05em;
  min-width: 180px;
  text-align: center;
}
.partner-logo.enviro { color: var(--green-dark); border-color: var(--green); }

/* ================== FOOTER ================== */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
footer ul { list-style: none; }
footer ul li { padding: 0.3rem 0; }
footer a { color: rgba(255,255,255,0.75); }
footer a:hover { color: var(--green); }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }
.footer-brand .brand-text .name { color: var(--white); }
.footer-brand .brand-text .tagline { color: rgba(255,255,255,0.6); }
.socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.socials a:hover { background: var(--green); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================== LISTE ETUDES ================== */
.layout-with-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.filters {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  position: sticky;
  top: 100px;
}
.filters h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-300);
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: color .15s;
}
.filter-group label:hover { color: var(--blue); }
.filter-group label input { accent-color: var(--blue); cursor: pointer; }
.filter-group label .count { margin-left: auto; color: var(--gray-500); font-size: 0.8rem; }
.filters .btn-ghost { width: 100%; margin-top: 0.5rem; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-300);
}
.results-count { color: var(--gray-500); font-size: 0.95rem; }
.results-count strong { color: var(--ink); }
.sort-select {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
}
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a, .pagination span {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ================== FICHE ETUDE ================== */
.etude-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 3rem 0 4rem;
  position: relative;
}
.etude-hero .breadcrumbs { font-size: 0.85rem; opacity: 0.8; margin-bottom: 1rem; }
.etude-hero .breadcrumbs a { color: rgba(255,255,255,0.85); }
.etude-hero .tag-list { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.etude-hero .tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.etude-hero h1 { color: var(--white); max-width: 900px; margin-bottom: 1.5rem; }
.etude-hero .meta-line {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  opacity: 0.9;
  flex-wrap: wrap;
}
.etude-hero .meta-line span strong { display: block; opacity: 0.7; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 2px; }

.etude-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 0;
}
.etude-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--green); display: inline-block; }
.etude-content h2:first-child { margin-top: 0; }
.etude-content p { margin-bottom: 1rem; color: var(--gray-700); font-size: 1.02rem; line-height: 1.75; }
.etude-content .lead { font-size: 1.15rem; color: var(--ink); font-weight: 400; }

.locked-section {
  background: linear-gradient(180deg, transparent 0%, var(--white) 100%);
  position: relative;
  padding: 3rem 2rem;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
}
.locked-section .lock-icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.locked-section h3 { margin-bottom: 0.75rem; }
.locked-section p { margin-bottom: 1.5rem; color: var(--gray-700); }

.etude-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-300);
}
.download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  position: relative;
}
.download-item.locked { opacity: 0.6; }
.download-item .file-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.download-item .file-info { flex: 1; }
.download-item .file-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.download-item .file-size { font-size: 0.78rem; color: var(--gray-500); }
.download-item .lock-mini { color: var(--gray-500); }

.author-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.author-info .name { font-weight: 600; font-size: 0.9rem; }
.author-info .role { font-size: 0.78rem; color: var(--gray-500); }

/* ================== ABONNEMENTS ================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all .3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--green);
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pricing-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.pricing-card .price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-card .price .currency { font-size: 1.5rem; vertical-align: super; }
.pricing-card .period { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 2rem; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 2rem; }
.pricing-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--gray-700);
  padding-left: 1.75rem;
  position: relative;
}
.pricing-card ul li::before {
  content: '✓';
  color: var(--green);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.pricing-card ul li.no::before { content: '✕'; color: var(--gray-500); }
.pricing-card .btn { width: 100%; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.compare-table th {
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table th.highlight { background: var(--green); }
.compare-table td { color: var(--gray-700); font-size: 0.92rem; }
.compare-table tr:hover td { background: var(--gray-50); }
.compare-table .check { color: var(--green); font-weight: bold; font-size: 1.2rem; }
.compare-table .cross { color: var(--gray-500); font-size: 1.2rem; }

.faq { margin-top: 4rem; }
.faq-item {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}
.faq-item summary {
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--gray-50); }
.faq-item .answer { padding: 0 1.25rem 1.25rem; color: var(--gray-700); }

/* ================== L'ATELIER ================== */
.atelier-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.atelier-intro .visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.atelier-intro .visual::before {
  content: 'PHOTO — Équipe AIGU';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}
.atelier-intro h2 { margin-bottom: 1rem; }
.atelier-intro p { color: var(--gray-700); margin-bottom: 1rem; font-size: 1.05rem; }

.mission-values { background: var(--gray-50); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.value-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.value-item .icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.value-item h3 { font-family: var(--font-sans); font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-item p { color: var(--gray-700); font-size: 0.95rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.team-card h3 { font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: 0.25rem; }
.team-card .role { color: var(--green-dark); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.5rem; }
.team-card .bio { color: var(--gray-500); font-size: 0.85rem; }

.stats-row {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; }

.timeline { max-width: 800px; margin: 2rem auto 0; position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute; left: 12px; top: 8px; bottom: 8px;
  width: 2px; background: var(--gray-300);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute; left: -34px; top: 4px;
  width: 14px; height: 14px;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
  border-radius: 50%;
}
.timeline-item .year { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: 0.25rem; }
.timeline-item h3 { font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: 0.25rem; }
.timeline-item p { color: var(--gray-700); font-size: 0.95rem; }

/* ================== THEMATIQUES ================== */
.themes-hero-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.theme-big {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
  transition: all .3s;
}
.theme-big:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.theme-big .header {
  padding: 2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  position: relative;
}
.theme-big .header.g2 { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }
.theme-big .header.g3 { background: linear-gradient(135deg, #d68a3e 0%, #b06722 100%); }
.theme-big .header.g4 { background: linear-gradient(135deg, #7a4ec4 0%, #5a3494 100%); }
.theme-big .header .num { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; opacity: 0.4; position: absolute; right: 1.5rem; top: 1rem; }
.theme-big .header h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0; position: relative; z-index: 1; }
.theme-big .header p { opacity: 0.9; font-size: 0.95rem; margin-top: 0.5rem; position: relative; z-index: 1; }
.theme-big .body { padding: 1.5rem 2rem 2rem; }
.theme-big .body .stat { display: flex; gap: 2rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--gray-100); }
.theme-big .body .stat div { flex: 1; }
.theme-big .body .stat strong { display: block; font-family: var(--font-serif); font-size: 1.8rem; color: var(--blue); line-height: 1; }
.theme-big .body .stat span { font-size: 0.82rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.theme-big .body ul { list-style: none; margin-bottom: 1rem; }
.theme-big .body ul li { padding: 0.3rem 0; color: var(--gray-700); font-size: 0.92rem; }
.theme-big .body ul li::before { content: '›'; color: var(--green); margin-right: 0.5rem; font-weight: bold; }
.theme-big .body .btn { width: 100%; }

/* ================== CARTOTHEQUE ================== */
.map-full {
  height: 550px;
  background:
    radial-gradient(circle at 25% 30%, rgba(74,157,95,0.4) 0, transparent 25%),
    radial-gradient(circle at 65% 55%, rgba(30,91,168,0.4) 0, transparent 25%),
    radial-gradient(circle at 45% 75%, rgba(74,157,95,0.35) 0, transparent 22%),
    linear-gradient(135deg, #e5e9d8 0%, #d9e4d0 100%);
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--gray-300);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-full::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.map-full .controls {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 3;
}
.map-full .controls button {
  width: 32px; height: 32px;
  border: none; background: transparent;
  cursor: pointer;
  font-size: 1.1rem; color: var(--blue);
  border-radius: 3px;
}
.map-full .controls button:hover { background: var(--gray-100); }
.map-full .search-box {
  position: absolute; top: 12px; left: 12px;
  background: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.5rem;
  min-width: 260px;
  z-index: 3;
}
.map-full .search-box input {
  border: none; outline: none;
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
}
.map-full .pin {
  position: absolute; z-index: 2;
  width: 24px; height: 24px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--blue);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}
.map-full .pin.green { background: var(--green); }
.map-full .pin.orange { background: #d68a3e; }
.map-full .pin::after {
  content: ''; position: absolute;
  top: 6px; left: 6px;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
}
.map-full .legend-full {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(255,255,255,0.98);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  z-index: 3;
}
.map-full .legend-full h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}
.map-full .legend-full .row { display: flex; align-items: center; gap: 0.5rem; padding: 3px 0; font-size: 0.85rem; }
.map-full .legend-full .row .sq { width: 14px; height: 14px; border-radius: 3px; }

.carto-layers {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.layer-panel {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.layer-panel h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-300);
}
.layer-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}
.layer-panel label input { accent-color: var(--green); }
.layer-group { margin-bottom: 1rem; }

.map-collection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.map-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  transition: all .25s;
}
.map-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.map-item .preview {
  height: 180px;
  background:
    radial-gradient(circle at 40% 40%, rgba(74,157,95,0.4) 0, transparent 30%),
    radial-gradient(circle at 60% 60%, rgba(30,91,168,0.4) 0, transparent 30%),
    linear-gradient(135deg, #e5e9d8 0%, #d9e4d0 100%);
  border-bottom: 1px solid var(--gray-300);
}
.map-item .info { padding: 1rem 1.25rem; }
.map-item .info .cat { font-size: 0.75rem; color: var(--green-dark); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.map-item .info h4 { font-family: var(--font-sans); font-size: 1rem; margin: 0.25rem 0 0.5rem; }
.map-item .info .foot { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray-500); }

/* ================== ACTUALITES LIST ================== */
.actu-list { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.actu-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all .25s;
}
.actu-row:hover { box-shadow: var(--shadow-md); border-color: var(--blue); }
.actu-row .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  border-radius: var(--radius);
}
.actu-row .thumb.v2 { background: linear-gradient(135deg, var(--green) 0%, var(--blue-dark) 100%); }
.actu-row .thumb.v3 { background: linear-gradient(135deg, #d68a3e 0%, var(--blue) 100%); }
.actu-row .thumb.v4 { background: linear-gradient(135deg, #7a4ec4 0%, var(--green) 100%); }
.actu-row .content .meta { font-size: 0.82rem; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.5rem; }
.actu-row .content h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.actu-row .content p { color: var(--gray-700); margin-bottom: 1rem; }
.actu-row .content .foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--gray-500); }

/* ================== ARTICLE DETAIL ================== */
.article-cover {
  height: 400px;
  background:
    linear-gradient(180deg, rgba(20,64,110,0.6) 0%, rgba(20,64,110,0.85) 100%),
    linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
  display: flex;
  align-items: flex-end;
  padding: 3rem 0;
}
.article-cover .meta { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; margin-bottom: 1rem; }
.article-cover h1 { color: var(--white); max-width: 900px; }
.article-body { max-width: 800px; margin: 0 auto; padding: 3rem 0; }
.article-body .lead { font-size: 1.25rem; color: var(--ink); line-height: 1.7; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-300); }
.article-body p { font-size: 1.05rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 1.25rem; }
.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.article-body blockquote {
  border-left: 4px solid var(--green);
  padding: 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--blue-dark);
}
.article-body .img-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-700) 100%);
  border-radius: var(--radius);
  margin: 2rem 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

.share-bar { display: flex; gap: 0.75rem; margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); align-items: center; }
.share-bar strong { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-right: 0.5rem; }
.share-bar a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-weight: 700;
}
.share-bar a:hover { background: var(--blue); color: var(--white); }

/* ================== STAGES ================== */
.stages-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.stages-hero-grid .visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.stages-hero-grid .visual::before {
  content: 'PHOTO — Stagiaires sur le terrain';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-serif);
}
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.step {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  position: relative;
  padding-top: 3rem;
}
.step .num {
  position: absolute;
  top: -20px; left: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}
.step h3 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.5rem; }
.step p { color: var(--gray-700); font-size: 0.9rem; }

.stage-offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.offer-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--green);
  transition: all .2s;
}
.offer-card:hover { box-shadow: var(--shadow-md); border-left-color: var(--blue); }
.offer-card .status {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.offer-card .status.closed { background: var(--gray-500); }
.offer-card h3 { font-family: var(--font-sans); font-size: 1.15rem; margin-bottom: 0.5rem; }
.offer-card .details {
  display: flex;
  gap: 1.5rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.offer-card .details span::before { content: '· '; color: var(--green); font-weight: bold; }
.offer-card p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 1rem; }

/* ================== CONTACT ================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,91,168,0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field.check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-700); }
.form-field.check input { width: auto; margin-top: 3px; }

.contact-info h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}
.info-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-block .icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-block .body strong { display: block; margin-bottom: 3px; color: var(--ink); }
.info-block .body { color: var(--gray-700); font-size: 0.92rem; }
.info-block .body a { color: var(--blue); }

.map-contact {
  height: 240px;
  background:
    radial-gradient(circle at 45% 50%, rgba(30,91,168,0.4) 0, transparent 25%),
    linear-gradient(135deg, #e5e9d8 0%, #d9e4d0 100%);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  border: 1px solid var(--gray-300);
  position: relative;
}
.map-contact .pin {
  position: absolute;
  top: 45%; left: 45%;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ================== ESPACE MEMBRE (DASHBOARD) ================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.dash-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  align-self: start;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.dash-user .avatar {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.dash-user .info .name { font-weight: 600; font-size: 0.9rem; }
.dash-user .info .plan { font-size: 0.78rem; color: var(--green-dark); }
.dash-nav { list-style: none; }
.dash-nav li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  color: var(--gray-700);
  font-size: 0.92rem;
  border-radius: var(--radius);
  margin-bottom: 3px;
}
.dash-nav li a:hover, .dash-nav li a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.dash-nav li a .icon { width: 22px; text-align: center; }

.dash-main h2 { margin-bottom: 1.5rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.stat-card-mini {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--green);
}
.stat-card-mini .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-card-mini .lbl { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }

.dash-section {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.dash-section h3 { font-family: var(--font-sans); font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--gray-100); }
.recent-list { list-style: none; }
.recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.recent-list li:last-child { border-bottom: none; }
.recent-list .item-name { font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.recent-list .item-meta { font-size: 0.82rem; color: var(--gray-500); }
.recent-list .item-actions a { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin-left: 0.75rem; }

/* ================== LOGIN ================== */
.login-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: var(--gray-50);
}
.login-box {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--green);
}
.login-box h1 { font-size: 1.6rem; text-align: center; margin-bottom: 0.5rem; }
.login-box .sub { text-align: center; color: var(--gray-500); margin-bottom: 2rem; font-size: 0.95rem; }
.login-box .btn { width: 100%; margin-top: 0.5rem; }
.login-box .form-links { display: flex; justify-content: space-between; font-size: 0.85rem; margin: 1rem 0; }
.login-box .divider {
  display: flex; align-items: center;
  color: var(--gray-500); font-size: 0.85rem;
  margin: 1.5rem 0;
}
.login-box .divider::before, .login-box .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-300);
}
.login-box .divider::before { margin-right: 1rem; }
.login-box .divider::after { margin-left: 1rem; }
.login-box .footer-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-700); }

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .studies-grid { grid-template-columns: repeat(2, 1fr); }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .cartotheque-preview { grid-template-columns: 1fr; }
  .actualites-grid { grid-template-columns: 1fr 1fr; }
  .actu-card.featured { grid-row: auto; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .etude-layout { grid-template-columns: 1fr; }
  .etude-sidebar { position: static; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .filters { position: static; }
  .atelier-intro, .stages-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .team-grid, .values-grid, .process-steps, .stat-cards, .themes-hero-grid, .map-collection { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .carto-layers, .dashboard-layout { grid-template-columns: 1fr; }
  .layer-panel, .dash-sidebar { position: static; }
  .actu-row { grid-template-columns: 200px 1fr; }
  .stage-offers { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .topbar-links { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem; }
  .main-nav a { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-100); }
  .menu-toggle { display: block; }
  .header-cta .btn-outline { display: none; }
  .studies-grid, .themes-grid, .actualites-grid, .results-grid, .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-text .tagline { display: none; }
  .brand img { height: 44px; }
  .hero { height: 500px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  section { padding: 3rem 0; }
}
