/* ==========================================================================
   CNAIG — Design System
   ========================================================================== */

:root {
  --green: #168447;
  --green-dark: #075B32;
  --green-darker: #063B25;
  --green-50: #EAF5EE;
  --green-100: #D2EADA;
  --anthracite: #292A2D;
  --gray: #6B7280;
  --gray-light: #F4F6F5;
  --white: #FFFFFF;
  --yellow: #F2C300;
  --red: #D52222;

  --border: #E4E8E6;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 20, 12, 0.04), 0 1px 3px rgba(6, 20, 12, 0.03);
  --shadow-md: 0 8px 24px rgba(6, 20, 12, 0.07);
  --shadow-lg: 0 20px 48px rgba(6, 20, 12, 0.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --container: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--anthracite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--anthracite);
}

p { margin: 0 0 1em; color: var(--gray); }

ul, ol { padding: 0; margin: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

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

section { padding: 88px 0; }

@media (max-width: 1023px) {
  section { padding: 64px 0; }
}
@media (max-width: 767px) {
  section { padding: 48px 0; }
  .container { padding: 0 18px; }
}

/* Eyebrow label styled as a drafting dimension mark: ⊢——⊣. Ties every
   section label back to the measuring/annotation vocabulary of a technical
   drawing rather than a decorative colored bar. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 9px; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 9'%3E%3Cpath d='M1 0V9M1 4.5H27M27 0V9' fill='none' stroke='%23168447' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.hero-home .eyebrow::before,
.cta-dark .eyebrow::before,
.stats-band .eyebrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 9'%3E%3Cpath d='M1 0V9M1 4.5H27M27 0V9' fill='none' stroke='%23F2C300' stroke-width='1.3'/%3E%3C/svg%3E");
}

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:focus-visible { outline: 3px solid var(--green-100); outline-offset: 2px; }

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

.btn-outline-dark { background: transparent; color: var(--anthracite); border-color: var(--border); }
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); background: var(--green-50); }

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

.btn-ghost { background: transparent; color: var(--green-dark); padding: 10px 6px; }
.btn-ghost:hover { color: var(--green); gap: 12px; }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-play {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  backdrop-filter: blur(6px);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.btn-play:hover { background: var(--white); color: var(--green-dark); transform: scale(1.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height 0.3s var(--ease); gap: 12px; }
.site-header.scrolled .container { height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 42px; width: auto; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand img { height: 34px; }

.main-nav { display: flex; align-items: center; gap: 2px; min-width: 0; flex-shrink: 1; }
.main-nav a {
  padding: 9px 11px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.86rem; color: var(--anthracite);
  transition: all 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--green-dark); background: var(--green-50); }
.main-nav a.active { color: var(--green-dark); font-weight: 700; }
.main-nav a.active::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; background: var(--yellow); border-radius: 1px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
.header-actions .btn-sm { padding: 9px 16px; }

.hamburger {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.hamburger span { width: 24px; height: 2px; background: var(--anthracite); border-radius: 2px; transition: all 0.3s var(--ease); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 300;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: none; flex-direction: column;
  overflow-y: auto;
}
/* kept display:none by default — a translated fixed panel still widens scrollWidth even off-screen */
.mobile-panel.visible { display: flex; }
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.mobile-panel-close { width: 40px; height: 40px; border: none; background: var(--gray-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-panel nav { display: flex; flex-direction: column; padding: 12px 24px; gap: 4px; }
.mobile-panel nav a { padding: 16px 4px; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--gray-light); }
.mobile-panel nav a.active { color: var(--green); }
.mobile-panel-footer { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
body.menu-open { overflow: hidden; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray); flex-wrap: wrap; }
.breadcrumb a { color: var(--gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--green-dark); font-weight: 600; }

.page-hero {
  background: var(--gray-light);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.1rem; max-width: 640px; margin-bottom: 20px; }

/* ---------- Cards ----------
   The boxed, shadowed "SaaS card" pattern has been retired site-wide: content
   groups by whitespace, hairline dividers and typography instead of a white
   panel with a border and a hover-lift shadow. `.card` stays only as a
   neutral flex/padding hook for markup already written against it — it no
   longer draws a box. Public-facing collections (articles, partners, values,
   members) each carry their own specific, cardless treatment below. */
.card { transition: all 0.3s var(--ease); }

/* Legend strip: the four/five/six mission-and-value items read as ruled cells
   in a drawing's legend key rather than boxed, shadowed SaaS cards. */
.value-card {
  padding: 34px 30px;
  border: none; border-radius: 0; box-shadow: none;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.value-card:hover { background: var(--green-50); transform: none; box-shadow: none; border-color: var(--border); }
.value-card .icon {
  width: auto; height: auto; border-radius: 0; background: none;
  color: var(--green); margin-bottom: 20px; display: inline-flex;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.value-card p { margin: 0; font-size: 0.94rem; }

.values-grid, .missions-grid {
  display: grid; gap: 0;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.values-grid { grid-template-columns: repeat(4, 1fr); }
.missions-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .values-grid, .missions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid, .missions-grid { grid-template-columns: 1fr; } }

/* Article cards */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1023px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card { overflow: hidden; display: flex; flex-direction: column; }
.article-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .cat-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--white); color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-sm);
}
.article-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card .meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray); flex-wrap: wrap; }
.article-card h3 { font-size: 1.12rem; margin: 0; }

/* Featured story: the lead item on a listing page (latest news, next activity,
   latest profession dossier) — an editorial spotlight, not another grid cell. */
.feature-story {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.feature-story .thumb { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.feature-story .thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-story h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 14px; }
.feature-story .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; color: var(--gray); margin-bottom: 4px; }
.feature-story p.excerpt { font-size: 1.02rem; margin-bottom: 20px; }
@media (max-width: 900px) { .feature-story { grid-template-columns: 1fr; gap: 24px; } }

/* Places restantes badge on an activity card */
.spots-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(6,20,12,0.72); color: var(--white); backdrop-filter: blur(4px);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 10px; border-radius: var(--radius-sm);
}
.spots-badge.full { background: rgba(213,34,34,0.85); }
.article-card p { font-size: 0.92rem; margin: 0; flex: 1; }
.article-card .read-more { font-size: 0.88rem; font-weight: 700; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; }

/* Stats band, read as a drawing's data/spec strip: a ruled measuring tape along
   the top edge, figures divided by hairlines like cells in a title block. */
.stats-band { position: relative; background: linear-gradient(120deg, var(--green-dark), var(--green)); color: var(--white); }
.stats-band::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 28px);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
.stat-item { border-right: 1px solid rgba(255,255,255,0.16); }
.stat-item:last-child, .stats-grid > .stat-item:nth-child(2):last-child { border-right: none; }
@media (max-width: 700px) { .stat-item:nth-child(2n) { border-right: none; } }
.stat-item .num { font-family: var(--font-mono); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: -0.01em; }
.stat-item .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.78; margin-top: 8px; }

/* Member registry: large, full-bleed portraits — like plates in a printed
   roll of the order — with plain identification set below, not boxed in a
   card. Three per row keeps each photo large; the matricule is real
   structure (every member of an ordre professionnel is genuinely numbered
   on its roll), not decoration. */
.members-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 22px; }
@media (max-width: 1100px) { .members-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .members-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .members-grid { grid-template-columns: 1fr; gap: 32px; } }

.member-card { display: block; padding: 0; text-align: left; border-radius: 0; background: none; border: none; box-shadow: none; }
.member-card:hover { background: none; border-color: transparent; box-shadow: none; transform: none; }
.member-card .avatar {
  position: relative; width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-sm); margin: 0 0 16px;
  overflow: hidden; border: 1px solid var(--border);
}
.member-card .avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); transition: filter 0.4s var(--ease), transform 0.5s var(--ease); }
.member-card:hover .avatar img { filter: grayscale(0); transform: scale(1.025); }
.member-card .matricule {
  position: absolute; top: 9px; left: 9px; z-index: 1;
  background: var(--white); color: var(--green-dark);
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 4px 7px; border-radius: var(--radius-sm);
}
.member-card .body { padding: 0; }
.member-card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.member-card .role { color: var(--green); font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; font-family: var(--font-mono); }
.member-card .loc { color: var(--gray); font-size: 0.8rem; margin-bottom: 0; display: flex; align-items: center; gap: 6px; }

/* Resource list */
.resource-item {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 14px; transition: all 0.25s var(--ease);
}
.resource-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.resource-item .file-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--green-50); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.72rem;
}
.resource-item .info { flex: 1; min-width: 0; }
.resource-item h4 { margin: 0 0 4px; font-size: 1rem; }
.resource-item p { margin: 0; font-size: 0.85rem; }
.resource-item .meta { font-size: 0.78rem; color: var(--gray); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { .resource-item { flex-wrap: wrap; } .resource-item .btn { width: 100%; } }

/* Badges / status pills */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-green { background: var(--green-50); color: var(--green-dark); }
.badge-yellow { background: #FFF7DB; color: #8A6D00; }
.badge-red { background: #FBE7E7; color: var(--red); }
.badge-gray { background: var(--gray-light); color: var(--gray); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--anthracite); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-control {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--anthracite);
  transition: all 0.2s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-hint { font-size: 0.8rem; color: var(--gray); margin-top: 6px; }

.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--green); }

.file-drop {
  border: 1.5px dashed var(--border); border-radius: var(--radius-md);
  padding: 28px; text-align: center; color: var(--gray); font-size: 0.9rem;
  transition: all 0.2s var(--ease); cursor: pointer;
}
.file-drop:hover { border-color: var(--green); background: var(--green-50); }

/* ---------- Alerts / Toasts ---------- */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius-md); font-size: 0.92rem; margin-bottom: 20px; }
.alert-success { background: var(--green-50); color: var(--green-dark); border: 1px solid #BCE3CB; }
.alert-error { background: #FBE7E7; color: #9A1C1C; border: 1px solid #F3BFBF; }
.alert-info { background: #EAF2FB; color: #1D4E8C; border: 1px solid #C6DCF3; }

.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--anthracite); color: var(--white);
  padding: 16px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(30px); opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green-darker); }
.toast.error { background: #7A1414; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; background: none; border: none; text-align: left;
  font-size: 1.05rem; font-weight: 600; color: var(--anthracite);
}
.accordion-trigger .plus { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease); }
.accordion-item.open .accordion-trigger .plus { transform: rotate(135deg); background: var(--green); color: var(--white); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.accordion-panel-inner { padding: 0 4px 22px; color: var(--gray); font-size: 0.96rem; max-width: 90%; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,16,10,0.55); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg); max-width: 480px; width: 100%;
  padding: 36px; box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(10px); transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--gray-light); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 600; font-size: 0.9rem; color: var(--anthracite);
  border: 1px solid var(--border); transition: all 0.2s var(--ease);
}
.pagination a:hover { border-color: var(--green); color: var(--green-dark); }
.pagination .active { background: var(--green); border-color: var(--green); color: var(--white); }
.pagination .dots { border: none; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip {
  padding: 10px 20px; border-radius: var(--radius-full); border: 1.5px solid var(--border);
  background: var(--white); font-weight: 600; font-size: 0.88rem; color: var(--gray);
  transition: all 0.2s var(--ease);
}
.filter-chip.active, .filter-chip:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.search-bar { position: relative; }
.search-bar input { padding-left: 48px; }
.search-bar svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--gray); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--green); border: 3px solid var(--green-50);
}
.timeline-item .year { color: var(--green-dark); font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.timeline-item h4 { margin-bottom: 6px; font-size: 1.08rem; }
.timeline-item p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-darker); color: rgba(255,255,255,0.75); padding: 76px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 300px; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.94rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.social-row a:hover { background: var(--green); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

/* Never let content stay invisible when JS doesn't run or animate. */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Skeleton ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--gray-light); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.two-col { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (min-width: 901px) {
  .two-col::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--border); }
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.fig-caption {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray);
}
.fig-caption::before { content: ''; width: 14px; height: 1px; background: var(--gray); opacity: 0.6; }
.bg-light {
  background-color: var(--gray-light);
  background-image: radial-gradient(rgba(22,132,71,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.rounded-img { border-radius: var(--radius-lg); overflow: hidden; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Loading spinner ---------- */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-dark { border: 2.5px solid var(--green-50); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1439px) {
  .main-nav, .header-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 359px) {
  .nav-login-btn span { display: none; }
  .nav-login-btn { padding: 9px 12px; }
}

/* ---------- Home hero ---------- */
.hero-home {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--anthracite);
}
.hero-home .hero-bg { position: absolute; inset: 0; }
.hero-home .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-home .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,20,12,0.55) 0%, rgba(6,20,12,0.35) 40%, rgba(6,59,37,0.88) 100%);
}
/* Signature moment: the CNAIG mark's three-stroke arc, drawn in like a compass
   sweep on load — the one deliberate animated flourish on the site. */
.hero-arc { position: absolute; top: -70px; right: -50px; width: 440px; height: 440px; z-index: 1; opacity: 0.92; }
.hero-arc circle { fill: none; stroke-linecap: round; transform-origin: 200px 200px; }
.hero-arc-green { stroke: #34A868; stroke-width: 16; stroke-dasharray: 427 641; stroke-dashoffset: 427; transform: rotate(-100deg); animation: draw-hero-arc 1.3s var(--ease) 0.4s forwards; }
.hero-arc-yellow { stroke: var(--yellow); stroke-width: 10; stroke-dasharray: 330 612; stroke-dashoffset: 330; transform: rotate(-85deg); animation: draw-hero-arc 1.3s var(--ease) 0.65s forwards; }
.hero-arc-red { stroke: #E24545; stroke-width: 6; stroke-dasharray: 249 580; stroke-dashoffset: 249; transform: rotate(-70deg); animation: draw-hero-arc 1.3s var(--ease) 0.9s forwards; }
@keyframes draw-hero-arc { to { stroke-dashoffset: 0; } }
@media (max-width: 700px) { .hero-arc { width: 300px; height: 300px; top: -30px; right: -60px; opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .hero-arc circle { animation: none; stroke-dashoffset: 0; } }

.hero-home .container { position: relative; z-index: 2; padding-bottom: 80px; padding-top: 140px; }
.hero-home .eyebrow { color: var(--yellow); }
.hero-home .eyebrow::before { background: var(--white); }
.hero-home h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 820px; color: var(--white); }
.hero-home p { font-size: 1.18rem; max-width: 620px; color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.hero-play { display: flex; align-items: center; gap: 14px; font-weight: 600; }
@media (max-width: 700px) { .hero-home .container { padding-top: 110px; } }

.hero-inner {
  position: relative; padding: 150px 0 60px; color: var(--white); overflow: hidden;
  background: linear-gradient(120deg, var(--green-darker), var(--green-dark));
}
/* Each page's header carries an image of its own subject, tinted in the same
   green as a plain hero-inner so the identity stays consistent — the same
   treatment as the homepage photo hero, applied per page. */
.hero-inner .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-inner .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(4,35,21,0.94), rgba(7,91,50,0.88));
}
/* Signature motif: the three-stroke arc from the CNAIG mark (flag colors), redrawn as
   a drafting-compass sweep rather than the logo itself. Reused as the site's one
   recurring signature graphic instead of a generic decorative circle. */
.hero-inner::after {
  content: ''; position: absolute; z-index: 1; right: -60px; top: -70px; width: 420px; height: 420px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ccircle cx='200' cy='200' r='170' fill='none' stroke='%2334A868' stroke-width='16' stroke-linecap='round' stroke-dasharray='427 641' transform='rotate(-100 200 200)' opacity='0.45'/%3E%3Ccircle cx='200' cy='200' r='150' fill='none' stroke='%23F2C300' stroke-width='10' stroke-linecap='round' stroke-dasharray='330 612' transform='rotate(-85 200 200)' opacity='0.5'/%3E%3Ccircle cx='200' cy='200' r='132' fill='none' stroke='%23E24545' stroke-width='6' stroke-linecap='round' stroke-dasharray='249 580' transform='rotate(-70 200 200)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  pointer-events: none;
}
.hero-inner .container { position: relative; z-index: 2; }
.hero-inner .breadcrumb, .hero-inner .breadcrumb a, .hero-inner .breadcrumb .sep { color: rgba(255,255,255,0.65); }
.hero-inner .breadcrumb .current { color: var(--white); }
.hero-inner h1 { color: var(--white); margin-top: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.hero-inner p { color: rgba(255,255,255,0.8); max-width: 620px; font-size: 1.08rem; }

/* ---------- CTA dark section ---------- */
.cta-dark {
  position: relative; padding: 110px 0; color: var(--white); text-align: center; overflow: hidden;
  background: var(--anthracite);
}
.cta-dark .cta-bg { position: absolute; inset: 0; }
.cta-dark .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-dark .cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,59,37,0.92), rgba(6,20,12,0.85)); }
.cta-dark .container { position: relative; z-index: 2; }
.cta-dark h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 780px; margin: 0 auto 32px; }
.cta-dark .btn-primary { background: var(--white); color: var(--green-dark); }
.cta-dark .btn-primary:hover { background: var(--yellow); color: var(--anthracite); }

/* ---------- Adhesion steps ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps-row { grid-template-columns: 1fr; } }
.step-card { text-align: center; padding: 34px 26px; position: relative; }
.step-card .step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
  margin: 0 auto 18px;
}
.step-card h3 { font-size: 1.1rem; }
.step-card p { margin: 0; font-size: 0.92rem; }

.advantages-list { display: flex; flex-direction: column; gap: 16px; }
.advantages-list li { display: flex; align-items: center; gap: 14px; font-size: 0.98rem; color: var(--anthracite); font-weight: 500; }
.advantages-list .check { width: 28px; height: 28px; border-radius: 50%; background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Login page ---------- */
.auth-wrap { min-height: calc(100vh - 88px); display: flex; align-items: center; justify-content: center; background: var(--gray-light); padding: 60px 20px; }
.auth-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 48px 44px; width: 100%; max-width: 440px; }
.auth-box .brand-center { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-box .brand-center img { height: 64px; }
.auth-box h1 { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.auth-box .sub { text-align: center; margin-bottom: 32px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 0.88rem; }
.auth-options a { color: var(--green-dark); font-weight: 600; }
.auth-footer { text-align: center; margin-top: 26px; font-size: 0.92rem; }
.auth-footer a { color: var(--green-dark); font-weight: 700; }
.auth-demo-hint { background: var(--green-50); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.82rem; color: var(--green-dark); margin-top: 22px; text-align: center; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-page .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--green-50); line-height: 1; letter-spacing: -0.04em; }
.error-page h1 { margin-top: -1.2rem; font-size: 1.8rem; }
.error-page p { max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---------- Dashboard layout ---------- */
.dash-shell { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 88px); }
@media (max-width: 1023px) { .dash-shell { grid-template-columns: 1fr; } }

.dash-sidebar { background: var(--green-darker); color: rgba(255,255,255,0.75); padding: 32px 20px; }
@media (max-width: 1023px) { .dash-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; z-index: 300; transform: translateX(-100%); transition: transform 0.35s var(--ease); overflow-y: auto; } .dash-sidebar.open { transform: translateX(0); } }
.dash-sidebar .brand { padding: 0 10px 26px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.94rem; color: rgba(255,255,255,0.72); transition: all 0.2s var(--ease); }
.dash-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.dash-nav a.active { background: var(--green); color: var(--white); font-weight: 700; }
.dash-nav .divider { height: 1px; background: rgba(255,255,255,0.1); margin: 14px 4px; }
.dash-nav .logout { color: #F3A8A8; margin-top: 10px; }

.dash-main { background: var(--gray-light); padding: 36px; min-height: 100%; }
@media (max-width: 700px) { .dash-main { padding: 22px 16px; } }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-topbar h1 { font-size: 1.5rem; margin-bottom: 2px; }
.dash-topbar .sub { color: var(--gray); font-size: 0.94rem; margin: 0; }
.dash-mobile-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); align-items: center; justify-content: center; }
@media (max-width: 1023px) { .dash-mobile-toggle { display: flex; } }
.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-user .avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.dash-user .avatar img { width: 100%; height: 100%; object-fit: cover; }

.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 700px) { .dash-stats { grid-template-columns: 1fr; } }
.dash-stat-card { background: var(--white); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); display: flex; align-items: center; gap: 18px; }
.dash-stat-card .icon { width: 50px; height: 50px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-stat-card .num { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 600; }
.dash-stat-card .label { font-size: 0.86rem; color: var(--gray); margin: 0; }

.dash-panel { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 26px; margin-bottom: 24px; }
.dash-panel-head { display: flex; align-items: center; justify-content: between; justify-content: space-between; margin-bottom: 20px; }
.dash-panel-head h2 { font-size: 1.15rem; margin: 0; }
.dash-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .dash-grid-2 { grid-template-columns: 1fr; } }

.simple-list { display: flex; flex-direction: column; }
.simple-list li, .simple-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.simple-list li:last-child, .simple-row:last-child { border-bottom: none; padding-bottom: 0; }
.simple-row .left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.simple-row .file-icon-sm { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.simple-row .title { font-weight: 600; font-size: 0.93rem; margin: 0; }
.simple-row .date { font-size: 0.8rem; color: var(--gray); margin: 0; }

.notif-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; flex-shrink: 0; }
.notif-item p { margin: 0 0 4px; font-size: 0.9rem; color: var(--anthracite); }
.notif-item span { font-size: 0.78rem; color: var(--gray); }

/* Data table -> card on mobile */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--white); }
.table-wrap .data-table { border: none; }
@media (max-width: 700px) {
  .table-wrap { border: none; overflow: visible; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 14px; padding: 6px 4px; }
  .data-table td { border: none; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; }
  .data-table td::before { content: attr(data-label); font-weight: 700; color: var(--gray); font-size: 0.78rem; text-transform: uppercase; }
}

/* Progress bar */
.progress-bar { width: 100%; height: 8px; border-radius: var(--radius-full); background: var(--gray-light); overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--green); border-radius: var(--radius-full); transition: width 0.6s var(--ease); }

.training-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; margin-bottom: 16px; }
.training-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.training-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.training-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.84rem; color: var(--gray); margin-bottom: 14px; }
.training-meta span { display: flex; align-items: center; gap: 6px; }

.settings-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.settings-tabs button { padding: 14px 4px; margin-right: 26px; background: none; border: none; font-weight: 600; color: var(--gray); border-bottom: 2px solid transparent; white-space: nowrap; }
.settings-tabs button.active { color: var(--green-dark); border-bottom-color: var(--green); }
.settings-panel { display: none; }
.settings-panel.active { display: block; }

.profile-header { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; flex-wrap: wrap; }
.profile-header .avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; border: 4px solid var(--green-50); flex-shrink: 0; }
.profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
@media (max-width: 600px) { .profile-info-grid { grid-template-columns: 1fr; } }
.info-item .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray); margin-bottom: 4px; }
.info-item .v { font-size: 0.98rem; font-weight: 600; color: var(--anthracite); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 14px; border-radius: var(--radius-full); background: var(--green-50); color: var(--green-dark); font-size: 0.82rem; font-weight: 600; }

/* Map */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); position: relative; aspect-ratio: 16/8; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h4 { margin: 0 0 4px; font-size: 0.98rem; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

/* Legal / policy pages */
.legal-content { padding: 10px 0 40px; }
.legal-content h2 { font-size: 1.2rem; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--anthracite); line-height: 1.8; margin-bottom: 14px; }
.legal-content a { color: var(--green-dark); text-decoration: underline; }
.legal-list { margin: 0 0 14px; padding-left: 20px; }
.legal-list li { color: var(--anthracite); line-height: 1.8; margin-bottom: 6px; }

/* Partenaires — mur de logos sans encadrés : chaque logo s'estompe en niveaux
   de gris et reprend sa couleur au survol (le "fondu" demandé), sans la
   carte à ombre portée utilisée auparavant. */
.partner-category { margin-bottom: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.partner-category:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 1100px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

.partner-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px; border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease);
}
.partner-tile:hover { background: var(--green-50); }
.partner-logo {
  width: 100%; height: 68px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.partner-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: 0.55;
  transition: filter 0.4s var(--ease), opacity 0.4s var(--ease);
}
.partner-tile:hover .partner-logo img { filter: grayscale(0); opacity: 1; }
.partner-logo span { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.partner-tile h4 { font-size: 0.94rem; margin-bottom: 4px; }
.partner-tile p { font-size: 0.82rem; color: var(--gray); margin-bottom: 6px; }
.partner-tile .read-more { font-size: 0.82rem; }
