/* ═══════════════════════════════════════════════════════════
   OMAR - Design System
   Observatoire Marin de La Réunion
   Phase 1 : Prototype HTML front-office
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Design tokens ─────────────────────────────────────── */
:root {
  /* Palette extraite du logo + extension océanique */
  --c-deep:      #001a3a;   /* Océan profond - hero, footer */
  --c-navy:      #0054b6;   /* Bleu logo - primaire */
  --c-sky:       #11abef;   /* Cyan logo - accents, liens */
  --c-coral:     #fd8500;   /* Orange logo - CTA, badges */

  /* Surfaces */
  --c-foam:      #eef5ff;   /* Fond sections claires */
  --c-white:     #ffffff;
  --c-sand:      #fef9f3;   /* Fond chaud (publications) */

  /* Texte */
  --c-ink:       #0a1628;
  --c-muted:     #46607e;
  --c-light-txt: #8498b4;

  /* Statuts des Actions */
  --s-done:      #16a34a;
  --s-live:      #0369a1;
  --s-future:    #d97706;

  /* Typographie */
  --f-display:   'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body:      'DM Sans', 'Segoe UI', system-ui, sans-serif;

  /* Espacement */
  --max-w:       1280px;
  --pad-x:       clamp(1.25rem, 4vw, 3rem);
  --section-y:   clamp(3rem, 8vw, 3rem);

  /* Rayons */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-pill: 9999px;

  /* Ombres */
  --shadow-sm:   0 2px 8px  rgba(0, 26, 58, .08);
  --shadow-md:   0 6px 24px rgba(0, 26, 58, .12);
  --shadow-lg:   0 12px 48px rgba(0, 26, 58, .16);
  --shadow-blue: 0 8px 32px rgba(0, 84, 182, .22);

  /* Transitions */
  --t-fast:  150ms ease;
  --t-std:   280ms ease;
  --t-slow:  500ms ease;
}

/* ── 2. Reset + base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
fieldset { border: none; }

/* Scrollbar customisée */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-foam); }
::-webkit-scrollbar-thumb { background: var(--c-sky); border-radius: 4px; }

/* ── 3. Typographie ───────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem,   4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2.25rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.375rem); }
h5 { font-size: 1rem; font-weight: 600; }

p { max-width: 68ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--c-muted);
  line-height: 1.7;
}

em { font-style: italic; }
strong { font-weight: 600; }

/* ── 4. Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--section-y);
}

.section--dark {
  background: var(--c-deep);
  color: #fff;
}

.section--foam {
  background: var(--c-foam);
}

.section--sand {
  background: var(--c-sand);
}

.section-header {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-header h2 {
  margin-top: 0.25rem;
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--c-muted);
}

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

/* Grilles */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

/* ── 5. Boutons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--t-std);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--c-navy);
  color: #fff;
}
.btn-primary:hover {
  background: #003d8f;
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}

.btn-coral {
  background: var(--c-coral);
  color: #fff;
}
.btn-coral:hover {
  background: #e07500;
  box-shadow: 0 6px 24px rgba(253,133,0,.35);
  transform: translateY(-1px);
}

.btn-sky {
  background: var(--c-sky);
  color: #fff;
}
.btn-sky:hover {
  background: #0d98d6;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ── 6. Badges / statuts ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-done {
  background: rgba(22, 163, 74, .12);
  color: var(--s-done);
}

.badge-live {
  background: rgba(17, 171, 239, .15);
  color: var(--s-live);
}

.badge-future {
  background: rgba(253, 133, 0, .15);
  color: var(--s-future);
}

.badge-pilier {
  background: rgba(0, 84, 182, .12);
  color: var(--c-navy);
}

/* ── 7. Navigation ────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000; /* au-dessus du panneau mobile (9999) */
  /* Scrim : dégradé sombre → transparent pour lisibilité sur les images */
  background: linear-gradient(to bottom, rgba(0,26,58,.75) 0%, rgba(0,26,58,.30) 60%, transparent 100%);
  transition: background var(--t-std), box-shadow var(--t-std);
}

.site-nav.scrolled {
  background: rgba(0, 26, 58, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(17, 171, 239, .2);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

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

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 0.65rem;
}

.nav-logo-text span {
  display: block;
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}

.nav-logo-text span:first-child {
  color: #fff;
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 0.45rem 0.65rem;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.75);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color var(--t-fast);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--c-sky);
}

/* Trait vague cyan au hover */
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 5' preserveAspectRatio='none'%3E%3Cpath d='M0%2C3 C15%2C0 35%2C5.5 50%2C2.5 C65%2C0 85%2C5.5 100%2C2.5' stroke='%2311abef' stroke-width='1.8' fill='none' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.nav-links a.active {
  color: #fff;
  font-weight: 600;
}

/* Trait vague cyan sous le lien actif - plus marqué */
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 5' preserveAspectRatio='none'%3E%3Cpath d='M0%2C3 C15%2C0 35%2C5.5 50%2C2.5 C65%2C0 85%2C5.5 100%2C2.5' stroke='%2311abef' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.nav-agenda {
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── Dropdown nav ─────────────────────────────────────────── */
.has-dropdown {
  position: relative;
}

/* Panel dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: rgba(0, 20, 50, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(17,171,239,.2);
  border-radius: var(--r-lg);
  padding: .5rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  z-index: 200;
  /* Petite flèche */
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: rgba(0,20,50,.97);
  border-left: 1px solid rgba(17,171,239,.2);
  border-top: 1px solid rgba(17,171,239,.2);
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown {
  display: block;
  animation: dropFade .18s ease;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  border-radius: var(--r-md);
  font-size: .83rem;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-dropdown li a:hover {
  background: rgba(17,171,239,.12);
  color: #fff;
}
/* Annuler le soulignement vague sur les items dropdown (pas sur les parents) */
.nav-dropdown li a::after { display: none !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--t-std);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-deep);
}

/* ── Slider images ── */
.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,26,58,.90) 0%, rgba(0,26,58,.60) 45%, rgba(0,26,58,.10) 100%),
    linear-gradient(to top, rgba(0,26,58,.5) 0%, transparent 40%);
  z-index: 1;
}

/* Bioluminescence - halo cyan en bas à droite */
.hero-glow {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 55%;
  height: 240px;
  background: radial-gradient(ellipse at right bottom,
    rgba(17,171,239,.2) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Canvas bulles */
#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  z-index: 1;
}

/* ── Layout interne : texte à gauche ── */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-top: 88px;
  padding-bottom: 5.5rem;
}

.hero-content {
  color: #fff;
  max-width: 680px;
}

.hero-content .eyebrow {
  color: var(--c-sky);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-content h1 em {
  color: var(--c-sky);
  font-style: italic;
  font-weight: 700;
}

.hero-content .lead {
  color: rgba(255,255,255,.80);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Dots slider - verticaux, côté droit ── */
.hero-slider-dots {
  position: absolute;
  right: clamp(1.5rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: 1.5px solid rgba(255,255,255,.5);
  cursor: pointer;
  transition: all var(--t-std);
  padding: 0;
}

.slider-dot.is-active {
  background: var(--c-sky);
  border-color: var(--c-sky);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(17,171,239,.7);
}

.slider-dot:hover:not(.is-active) {
  background: rgba(255,255,255,.65);
}

/* ── Scroll indicator (cercle + chevron) ── */
.hero-scroll {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  animation: scrollBob 2.2s ease-in-out infinite;
}

.hero-scroll:hover {
  border-color: var(--c-sky);
  background: rgba(17,171,239,.15);
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,.8);
}

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

/* kept for compat */
.hero-scroll-line { display: none; }

/* ── Vague intégrée en bas du hero ── */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
  /* Shadow portée interne bleue sur le bord supérieur de la vague */
  filter: drop-shadow(0 -10px 22px rgba(17, 171, 239, .45))
          drop-shadow(0 -4px  8px  rgba(0,  84, 182, .30));
}

/* ── 9. Séparateurs vague ─────────────────────────────────── */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  margin-block: -1px;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── 10. Compteurs ────────────────────────────────────────── */
.counters-section {
  background: var(--c-deep);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(17,171,239,.15);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.counter-item {
  background: rgba(255,255,255,.03);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: background var(--t-std);
}

.counter-item:hover {
  background: rgba(17,171,239,.07);
}

.counter-value {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 600;
  color: rgba(255,255,255,.88);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.counter-value span {
  color: var(--c-sky);
}

.counter-label {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Responsive 4 colonnes → 2 sur mobile */
@media (max-width: 700px) {
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── 11. Piliers ──────────────────────────────────────────── */
.pillars-section {
  background: var(--c-white);
  padding-block: var(--section-y);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.pillar-card {
  position: relative;
  padding: 2rem 1.25rem 1.75rem;
  border-radius: var(--r-lg);
  text-align: center;
  border: 1.5px solid transparent;
  transition: all var(--t-std);
  /*background: var(--c-foam);*/
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-navy), var(--c-sky));
  opacity: 0;
  transition: opacity var(--t-std);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
  border-color: var(--c-sky);
}

.pillar-card:hover .pillar-letter,
.pillar-card:hover .pillar-name,
.pillar-card:hover .pillar-desc {
  color: #fff;
}

.pillar-letter {
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1;
  margin-bottom: 0.75rem;
  transition: color var(--t-std);
  letter-spacing: -0.04em;
}

.pillar-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: rgba(0, 84, 182, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-std);
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  color: var(--c-navy);
  transition: color var(--t-std);
}

.pillar-card:hover .pillar-icon {
  background: rgba(255,255,255,.2);
}

.pillar-card:hover .pillar-icon svg {
  color: #fff;
}

.pillar-name {
  position: relative;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-navy);
  transition: color var(--t-std);
  margin-bottom: 0.5rem;
}

.pillar-desc {
  position: relative;
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.5;
  transition: color var(--t-std);
}

/* ── 12. Observations - slider + popup ───────────────────── */
.obs-section {
  background: var(--c-deep);
  padding-block: var(--section-y);
  color: #fff;
  overflow: hidden;
}

.obs-inner {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.obs-intro h2 { color: #fff; margin-bottom: 0.75rem; }
.obs-intro p  { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 1.5rem; }

/* Boutons prev / next */
.obs-controls { display: flex; gap: .5rem; margin-bottom: 1.5rem; }

.obs-ctrl {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.obs-ctrl:hover    { background: rgba(255,255,255,.15); color: #fff; }
.obs-ctrl:disabled { opacity: .28; cursor: not-allowed; }

/* Slider */
.obs-slider-wrap  { overflow: hidden; }

.obs-slider-track {
  display: flex;
  gap: 1rem;
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* Carte individuelle */
.obs-slide-card {
  flex: 0 0 calc(33.333% - .67rem);   /* 3 visibles */
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 2px 8px rgba(0,26,58,.08), 0 0 0 1px rgba(0,26,58,.06);
  cursor: pointer;
  transition: transform var(--t-std), box-shadow var(--t-std);
  overflow: hidden;
  position: relative;
}
.obs-slide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,26,58,.13), 0 0 0 1px rgba(17,171,239,.22);
}

.obs-slide-img          { aspect-ratio: 1; overflow: hidden; }
.obs-slide-img img      { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.obs-slide-card:hover .obs-slide-img img { transform: scale(1.05); }

.obs-slide-body         { padding: .9rem 1rem .75rem; }

.obs-slide-species {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--c-deep);
  line-height: 1.25;
  margin-bottom: .1rem;
}

.obs-slide-sci  { font-size: .72rem; color: var(--c-muted); font-style: italic; margin-bottom: .45rem; }
.obs-slide-meta { font-size: .72rem; color: var(--c-muted); }
.obs-slide-date { font-size: .68rem; color: var(--c-light-txt); margin-top: .12rem; }

.obs-slide-badge {
  position: absolute; top: .6rem; right: .6rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  background: rgba(17,171,239,.88);
  color: #fff;
  backdrop-filter: blur(4px);
}
.obs-slide-badge--pending { background: rgba(253,133,0,.85); }

/* ── Popup ── */
.obs-popup {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.obs-popup[hidden] { display: none; }

.obs-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,20,50,.82);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.obs-popup-card {
  position: relative; background: #fff;
  border-radius: calc(var(--r-lg) + 4px);
  max-width: 600px; width: 100%;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,20,50,.4);
  animation: obsPopIn .28s cubic-bezier(.34,1.3,.64,1);
  max-height: 92dvh; overflow-y: auto;
}

@keyframes obsPopIn {
  from { transform: scale(.88) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.obs-popup-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; border: none;
  transition: background var(--t-fast);
}
.obs-popup-close:hover { background: rgba(0,0,0,.78); }

.obs-popup-img         { aspect-ratio: 16/10; overflow: hidden; }
.obs-popup-img img     { width: 100%; height: 100%; object-fit: cover; display: block; }

.obs-popup-body        { padding: 1.4rem 1.5rem 1.75rem; }

.obs-popup-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: .75rem;
}

.obs-popup-species {
  font-family: var(--f-display); font-size: 1.35rem;
  font-weight: 700; color: var(--c-deep); line-height: 1.2;
  margin-bottom: .15rem;
}
.obs-popup-sci  { font-size: .83rem; color: var(--c-muted); font-style: italic; }

.obs-popup-badge {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  padding: .25rem .7rem; border-radius: var(--r-pill);
  background: rgba(17,171,239,.15); color: var(--c-sky);
  flex-shrink: 0; margin-top: .15rem;
}

.obs-popup-desc {
  font-size: .85rem; color: var(--c-muted); line-height: 1.65;
  margin-bottom: 1rem;
  border-top: 1px solid #eef2f7; padding-top: .85rem;
}

.obs-popup-meta     { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.obs-popup-meta-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--c-muted);
}
.obs-popup-meta-item svg { color: var(--c-sky); flex-shrink: 0; }

/* Responsive */
@media (max-width: 860px) {
  .obs-inner { grid-template-columns: 1fr; gap: 2rem; }
  .obs-slide-card { flex: 0 0 calc(50% - .5rem); }
}
@media (max-width: 520px) {
  .obs-slide-card { flex: 0 0 82%; }
}

/* ── 13. Actualités - slider ──────────────────────────────── */
.news-section {
  background: var(--c-white);
  padding-block: var(--section-y);
  overflow: hidden;
}

.news-inner {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.news-intro .eyebrow { color: var(--c-sky); }
.news-intro h2       { margin-bottom: .75rem; }
.news-intro p        { font-size: .875rem; color: var(--c-muted); line-height: 1.7; margin-bottom: 1.75rem; }

/* Bouton outline clair */
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
  padding: .7rem 1.4rem;
  border-radius: var(--r-pill);
  font-size: .875rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-family: var(--f-body);
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
}

/* Zone slider */
.news-slider-area  { position: relative; }
.news-slider-wrap  { overflow: hidden; }

.news-slider-track {
  display: flex;
  gap: .9rem;
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* Cartes portrait */
.news-slide-card {
  flex: 0 0 calc(25% - .68rem);   /* 4 visibles */
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.news-slide-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.news-slide-card:hover img { transform: scale(1.06); }

/* Overlay dégradé */
.news-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,10,30,.92) 0%,
    rgba(0,10,30,.35) 55%,
    transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1rem 3rem;
}

.news-slide-cat {
  font-size: .6rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-sky); margin-bottom: .3rem;
  display: inline-block;
}
.news-slide-cat--alert { color: #fbbf24; }

.news-slide-title {
  font-family: var(--f-display);
  font-size: .82rem; font-weight: 700;
  color: #fff; line-height: 1.3;
}

/* Bouton flèche cyan */
.news-slide-arrow {
  position: absolute; bottom: .8rem; right: .8rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-sky); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.news-slide-arrow:hover { background: #0d91cc; transform: scale(1.1); }

/* Flèche suivant (bord droit) */
.news-next-btn {
  position: absolute;
  right: -1rem; top: 50%;
  transform: translateY(-60%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,26,58,.08);
  border: 1.5px solid rgba(0,26,58,.15);
  color: var(--c-navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.news-next-btn:hover { background: rgba(0,26,58,.12); }

/* Points de pagination */
.news-dots {
  display: flex; justify-content: center;
  gap: .45rem; margin-top: 1.2rem;
}

.news-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,26,58,.2);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--t-fast), width var(--t-fast), border-radius var(--t-fast);
}
.news-dot.is-active {
  background: var(--c-sky);
  width: 22px;
  border-radius: var(--r-pill);
}

/* Responsive */
@media (max-width: 900px) {
  .news-inner       { grid-template-columns: 1fr; gap: 2rem; }
  .news-slide-card  { flex: 0 0 calc(50% - .45rem); }
}
@media (max-width: 520px) {
  .news-slide-card  { flex: 0 0 78%; }
}

/* ── 13b. Section Informations ───────────────────────────── */
.info-section {
  background: var(--c-white);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r-lg);
  border: 1.5px solid #e4edf8;
  background: #fff;
  transition: border-color var(--t-std), box-shadow var(--t-std), transform var(--t-std);
  text-decoration: none;
  color: var(--c-ink);
}
.info-card:hover {
  border-color: var(--c-sky);
  box-shadow: 0 6px 24px rgba(17,171,239,.10);
  transform: translateY(-3px);
}

/* Variante risque */
.info-card--risk { border-color: #fde8d8; }
.info-card--risk:hover { border-color: var(--c-coral); box-shadow: 0 6px 24px rgba(253,133,0,.10); }

/* Icône */
.info-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-std);
}
.info-card-icon--meteo { background: rgba(17,171,239,.1);  color: var(--c-sky); }
.info-card-icon--obs   { background: rgba(0,84,182,.1);    color: var(--c-navy); }
.info-card-icon--risk  { background: rgba(253,133,0,.12);  color: var(--c-coral); }

.info-card:hover .info-card-icon--meteo { background: rgba(17,171,239,.18); }
.info-card:hover .info-card-icon--obs   { background: rgba(0,84,182,.16); }
.info-card--risk:hover .info-card-icon--risk { background: rgba(253,133,0,.2); }

/* Corps texte */
.info-card-body { flex: 1; min-width: 0; }

.info-card-label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-sky); margin-bottom: .2rem;
}
.info-card-label--risk { color: var(--c-coral); }

.info-card-title {
  font-weight: 600; font-size: .9rem;
  color: var(--c-deep); line-height: 1.3;
  margin-bottom: .2rem;
}

.info-card-sub {
  font-size: .75rem;
  color: var(--c-light-txt);
  line-height: 1.4;
}

/* Flèche */
.info-card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-foam);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-navy);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.info-card:hover .info-card-arrow {
  background: var(--c-sky); color: #fff;
  transform: translateX(3px);
}
.info-card--risk:hover .info-card-arrow {
  background: var(--c-coral);
}

@media (max-width: 760px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ── 14. Espèces à la une ─────────────────────────────────── */
.featured-species-section {
  background: var(--c-foam);
  padding-block: var(--section-y);
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.species-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-std);
  display: block;
  text-decoration: none;
}

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

.species-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.species-card-body {
  padding: 1.25rem;
}

.species-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-ink);
  margin-bottom: 0.15rem;
}

.species-card-sci {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-bottom: 0.6rem;
}

.species-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── 15. Cartes Actions (missions) ────────────────────────── */
.action-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-std);
  display: flex;
  flex-direction: column;
}

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

.action-card-img-wrap {
  position: relative;
  overflow: hidden;
}

.action-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.action-card:hover .action-card-img {
  transform: scale(1.06);
}

.action-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.action-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.action-card-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
}

.action-card-dates {
  font-size: 0.78rem;
  color: var(--c-light-txt);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.action-card-desc {
  font-size: 0.86rem;
  color: var(--c-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.action-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  transition: color var(--t-fast);
}

.action-card-link:hover { color: var(--c-sky); }

/* ── 16. Page Nos missions ────────────────────────────────── */
.missions-hero {
  background: var(--c-deep);
  padding-top: 120px;
  padding-bottom: 4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.missions-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1583212292454-1fe6229603b7?w=1920&q=40')
    center/cover no-repeat;
  opacity: .12;
}

.missions-hero .container { position: relative; }

.missions-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.missions-hero p {
  color: rgba(255,255,255,.7);
  max-width: 56ch;
}

/* Onglets statut */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.filter-tab {
  padding: 0.55rem 1.4rem;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--c-foam);
  color: var(--c-muted);
  transition: all var(--t-fast);
  background: #fff;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--c-navy);
  background: var(--c-navy);
  color: #fff;
}

.filter-tab[data-filter="realisee"].active { background: var(--s-done); border-color: var(--s-done); }
.filter-tab[data-filter="en-cours"].active { background: var(--s-live); border-color: var(--s-live); }
.filter-tab[data-filter="a-venir"].active  { background: var(--s-future); border-color: var(--s-future); }

/* Filtres thématiques */
.theme-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.theme-pill {
  padding: 0.3rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1.5px solid #dde5f0;
  color: var(--c-muted);
  transition: all var(--t-fast);
  background: #fff;
}

.theme-pill:hover,
.theme-pill.active {
  border-color: var(--c-sky);
  color: var(--c-navy);
  background: rgba(17,171,239,.08);
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.action-card[hidden] { display: none; }

/* ── 17. Page Action (fiche) ──────────────────────────────── */
.action-hero {
  background: var(--c-deep);
  padding-top: 120px;
  padding-bottom: 0;
  color: #fff;
  overflow: hidden;
}

.action-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.action-hero-meta {
  padding-bottom: 3rem;
}

.action-hero-meta h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-block: 0.75rem 1.25rem;
}

.action-hero-meta p {
  color: rgba(255,255,255,.7);
  max-width: 48ch;
}

.action-dates {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.action-date-item {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.action-date-item strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-top: 0.15rem;
  text-transform: none;
  letter-spacing: 0;
}

.action-hero-img {
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  min-height: 320px;
}

.action-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenu fiche */
.action-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.action-content-section {
  padding-bottom: 2.5rem;
  border-bottom: 1.5px solid #e8eff8;
  margin-bottom: 2.5rem;
}

.action-content-section:last-child {
  border-bottom: none;
}

.action-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-navy);
}

.action-section-icon {
  width: 36px;
  height: 36px;
  background: var(--c-foam);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-section-icon svg {
  width: 18px;
  height: 18px;
  color: var(--c-navy);
}

/* Résultats stats */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.result-stat {
  background: var(--c-foam);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-sky);
}

.result-stat-value {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1;
}

.result-stat-label {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: 0.2rem;
}

/* Sidebar */
.action-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-box {
  background: var(--c-foam);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

.sidebar-box h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.sidebar-species {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-species-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.sidebar-species-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.sidebar-pub {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-pub-item {
  font-size: 0.83rem;
  color: var(--c-muted);
  padding-left: 0.75rem;
  border-left: 2px solid var(--c-sky);
  line-height: 1.5;
}

.sidebar-pub-item a {
  color: var(--c-navy);
  font-weight: 600;
}

/* ── 18. Page Espèces ─────────────────────────────────────── */
.species-portal-hero {
  background: linear-gradient(180deg, #0a3a6e 0%, var(--c-deep) 100%);
  padding-top: 120px;
  padding-bottom: 3rem;
  color: #fff;
  text-align: center;
}

.species-portal-hero h1 { margin-bottom: 1rem; }
.species-portal-hero p  { color: rgba(255,255,255,.7); margin-inline: auto; }

.species-search-bar {
  display: flex;
  max-width: 560px;
  margin: 2rem auto 0;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--r-pill);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.species-search-bar input {
  flex: 1;
  background: none;
  border: none;
  padding: 0.9rem 1.5rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.species-search-bar input::placeholder { color: rgba(255,255,255,.5); }

.species-search-bar button {
  background: var(--c-sky);
  color: #fff;
  padding: 0 1.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--t-fast);
}

.species-search-bar button:hover { background: #0d98d6; }

/* Stats atlas */
.atlas-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.atlas-stat {
  text-align: center;
}

.atlas-stat-num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-sky);
}

.atlas-stat-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Grille espèces atlas */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.atlas-thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-std);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.atlas-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.atlas-thumb-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.atlas-thumb-label {
  padding: 0.6rem 0.75rem;
}

.atlas-thumb-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
}

.atlas-thumb-sci {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--c-muted);
}

/* Fiche espèce */
.species-fiche-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.species-fiche-main {}

.species-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.6rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.species-gallery-main {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.species-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.species-gallery-side img {
  flex: 1;
  object-fit: cover;
}

.species-bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bio-item {
  background: var(--c-foam);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
}

.bio-item-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}

.bio-item-value {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-navy);
}

.bio-item-unit {
  font-size: 0.75rem;
  color: var(--c-light-txt);
}

/* ── 19. Formulaire Participer ────────────────────────────── */
.form-hero {
  background: var(--c-deep);
  padding-top: 120px;
  padding-bottom: 4rem;
  color: #fff;
}

.obs-form {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1.5px solid var(--c-foam);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-sky);
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
}

.form-label span {
  color: var(--c-coral);
  margin-left: 0.15rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde5f0;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--c-ink);
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-sky);
  box-shadow: 0 0 0 3px rgba(17,171,239,.15);
}

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

.file-upload {
  display: block;
  border: 2px dashed #dde5f0;
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--t-std);
  cursor: pointer;
}

.file-upload:hover {
  border-color: var(--c-sky);
  background: var(--c-foam);
}

.file-upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.file-upload p {
  font-size: 0.85rem;
  color: var(--c-muted);
  max-width: none;
}

.file-upload input[type="file"] {
  display: none;
}

.form-submit {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.78rem;
  color: var(--c-muted);
  text-align: center;
  margin-top: 1rem;
}

/* ── 20. Footer ───────────────────────────────────────────── */
.site-footer {
  background: var(--c-deep);
  color: rgba(255,255,255,.75);
  padding-top: 5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 30ch;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
  font-size: 1rem;
}

.social-btn:hover {
  background: var(--c-sky);
  color: #fff;
}

.footer-links h4 {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: #fff; }

.footer-contact h4 {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  max-width: none;
}

.urgence-box {
  margin-top: 1.25rem;
  background: rgba(17,171,239,.15);
  border: 1px solid rgba(17,171,239,.3);
  border-radius: var(--r-md);
  padding: 0.875rem 1rem;
  font-size: 0.82rem;
}

.urgence-box strong {
  color: var(--c-sky);
  font-size: 1rem;
  display: block;
  margin-top: 0.2rem;
}

.footer-bottom {
  padding-block: 1.25rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a { transition: color var(--t-fast); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── 21. Animations ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* Délais en cascade */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ── 22. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  /* Fond toujours visible sur mobile, sans attendre le scroll */
  .site-nav {
    background: rgba(0, 26, 58, .97);
    /* PAS de backdrop-filter ici : cela crée un containing block qui empêche
       les enfants position:fixed de couvrir le viewport */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
  }
  /* Bouton fermeture - masqué sur desktop */
  .nav-close-wrap { display: none; }

  .nav-links     { display: none; }
  .nav-toggle    { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    min-height: 100%;
    background: rgba(0, 12, 36, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 2rem 3rem;
    gap: 0.25rem;
    z-index: 9999;
    overflow-y: auto;
  }
  /* Bouton X dans le panneau ouvert */
  .nav-links.open .nav-close-wrap {
    display: block;
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    list-style: none;
  }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast);
  }
  .nav-close:hover { background: rgba(255,255,255,.2); }

  .nav-links.open > li {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .nav-links.open > li > a {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.9rem 1.2rem;
    border-radius: var(--r-md);
    letter-spacing: .01em;
    white-space: normal;
  }
  .nav-links.open > li > a:hover,
  .nav-links.open > li > a:focus {
    background: rgba(17,171,239,.12);
    color: #fff;
  }
  /* Dropdown mobile : affiché sous le parent, centré */
  .nav-dropdown {
    display: none;
    position: static;
    transform: none;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(17,171,239,.15);
    box-shadow: none;
    border-radius: var(--r-md);
    padding: .4rem;
    margin-top: .3rem;
    min-width: 0;
    backdrop-filter: none;
    text-align: center;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown.open { display: block; animation: none; }
  .nav-dropdown li a {
    font-size: .95rem;
    padding: .6rem 1rem;
    justify-content: center;
    color: rgba(255,255,255,.7);
  }
  .nav-dropdown li a:hover { background: rgba(17,171,239,.12); color: #fff; }
  .has-dropdown:hover > .nav-dropdown { display: none; }
  .has-dropdown:hover > .nav-dropdown.open { display: block; }
  /* Bouton Agenda visible dans le menu mobile */
  .nav-agenda { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .counters-grid { grid-template-columns: 1fr; background: none; gap: 0.5rem; }
  .pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .species-grid  { grid-template-columns: repeat(2, 1fr); }
  .missions-grid { grid-template-columns: 1fr; }
  .obs-inner     { grid-template-columns: 1fr; }
  .news-inner    { grid-template-columns: 1fr; }
  .action-hero-inner { grid-template-columns: 1fr; }
  .action-layout     { grid-template-columns: 1fr; }
  .action-sidebar    { position: static; }
  .species-fiche-layout { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-ctas      { flex-direction: column; }
  .pillars-grid   { grid-template-columns: 1fr; }
  .species-grid   { grid-template-columns: 1fr 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .results-grid   { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 0.5rem; text-align: center; }
  .species-gallery { grid-template-columns: 1fr; }
  .species-gallery-side { display: none; }
  .obs-form { padding: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   23. Adaptations WordPress - thème OMAR
   (ajouté à l'intégration : ne modifie pas le design du prototype)
   ═══════════════════════════════════════════════════════════════ */

/* - Accessibilité : lien d'évitement + texte lecteur d'écran - */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100001;
  width: auto; height: auto;
  clip: auto;
  padding: 0.7rem 1.1rem;
  background: var(--c-navy, #0054b6);
  color: #fff;
  border-radius: var(--r-md, 8px);
  font-weight: 600;
}

/* - Nav opaque hors page d'accueil (pas de hero derrière) - */
.nav-solid .site-nav {
  background: rgba(0, 26, 58, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(17, 171, 239, .2);
}

/* - Décalage du contenu sous la nav fixe (gabarits internes) - */
.nav-solid .site-main { padding-top: 72px; }

/* - Lien de menu actif (classes ajoutées par WordPress) - */
.nav-links > li.current-menu-item > a,
.nav-links > li.current-menu-ancestor > a,
.nav-links > li.current-menu-parent > a,
.nav-links > li.current_page_item > a,
.nav-links > li.current_page_ancestor > a {
  color: #fff;
  font-weight: 600;
}
.nav-links > li.current-menu-item > a::after,
.nav-links > li.current-menu-ancestor > a::after,
.nav-links > li.current_page_item > a::after,
.nav-links > li.current_page_ancestor > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 5' preserveAspectRatio='none'%3E%3Cpath d='M0%2C3 C15%2C0 35%2C5.5 50%2C2.5 C65%2C0 85%2C5.5 100%2C2.5' stroke='%2311abef' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
/* Pas de trait vague sur les items de sous-menu */
.nav-dropdown li.current-menu-item > a::after,
.nav-dropdown li.current_page_item > a::after { display: none !important; }

/* - Widgets du footer : calés sur le style .footer-links - */
.footer-widget { }
.footer-widget-title {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-links .footer-widget + .footer-widget { margin-top: 1.5rem; }
.footer-links .menu,
.footer-links .sub-menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links .menu a,
.footer-links .sub-menu a { font-size: 0.88rem; color: rgba(255,255,255,.65); }
.footer-links .menu a:hover { color: #fff; }
.footer-widget-empty { font-size: 0.82rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-widget-empty a { color: var(--c-sky, #11abef); }

/* - Bas de footer : liens légaux gérés en widget (inline) - */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}
.footer-legal-widget { display: flex; }
.footer-legal .menu,
.footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }
@media (max-width: 640px) {
  .footer-bottom .footer-legal { justify-content: center; }
}
