:root {
  --accent: #eab308;
  --accent-2: #f59e0b;
  --bg: #0b0b0b;
  --card: #111214;
  --text: #e7e7ea;
  --muted: #b7b7c0;
  --ok: #22c55e;
  --warn: #f97316;
  --danger: #ef4444;
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0a0a0a, #111217 25%, #0c0f14 100%);
}

a {
  color: var(--accent);
  text-decoration: none
}

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

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

/* HEADER / NAV */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, .65);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid #1d1f25
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.brand-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover
}

.brand-name {
  font-weight: 800;
  letter-spacing: .3px
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 700
}

.btn.current {
  outline: 2px solid #fff2
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('../img/img1.png') center/cover no-repeat;
  filter: brightness(.35) saturate(.9);
}

.hero>.container {
  position: relative;
  padding: 84px 20px 56px
}

.pill {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #141824;
  border: 1px solid #262c3a;
  color: var(--muted)
}

.hero h1 {
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.05;
  margin: 12px 0 8px;
  font-weight: 800
}

.lead {
  font-size: clamp(16px, 2.6vw, 20px);
  color: var(--muted);
  max-width: 900px
}

.hero-quick {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px
}

.btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #2a2f3a;
  background: linear-gradient(180deg, #141821, #0f131b);
  color: var(--text);
  font-weight: 700
}

.btn-lg.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111
}

/* SUBNAV */
.subnav {
  position: sticky;
  top: 64px;
  z-index: 500;
  background: #0c0f14;
  border-top: 1px solid #1b1e27;
  border-bottom: 1px solid #1b1e27
}

.subnav-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0
}

.pill.danger {
  border-color: #ef4444;
  color: #efbbbb
}

.pill.warn {
  border-color: #f59e0b;
  color: #ffd9a3
}

/* SECTIONS / CARDS */
section {
  padding: 40px 0
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px
}

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

.card {
  background: linear-gradient(180deg, #12161f, #0e121a);
  border: 1px solid #202634;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow)
}

.card h3 {
  margin: 6px 0 8px
}

.card p {
  color: var(--muted)
}

.small {
  font-size: .9em
}

/* SPECIES GRID */
.species-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.species img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #202634;
  margin-bottom: 10px
}

.species-body h3 {
  margin: 4px 0 8px
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted)
}

.bullets li {
  margin: 6px 0
}

.note {
  margin-top: 8px;
  border: 1px solid #202634;
  border-radius: 12px;
  padding: 10px;
  background: #0f141d
}

/* GALLERIES & GRIDS */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.gallery .card {
  padding: 10px
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #202634;
  margin-bottom: 10px
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

/* LISTS */
.check {
  padding-left: 18px
}

.check li {
  margin: 6px 0
}

/* ALERT */
.alert {
  border: 1px solid #7f1d1d;
  background: linear-gradient(180deg, #1a1111, #140d0d);
  border-radius: var(--radius);
  padding: 18px;
  color: #fca5a5
}

.alert h3 {
  margin: 0 0 8px
}

/* =======================
   FOOTER
======================= */
footer {
  background-color: #222;
  color: #eee;
  padding: 20px 0;
  font-size: 14px;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

footer small {
  color: #bbb;
}

footer a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #fff;
}

footer img {
  height: 45px;
  /* logos plus gros */
  width: 45px;
  /* carré pour arrondi parfait */
  border-radius: 50%;
  /* rend les logos ronds */
  object-fit: cover;
  /* garde le contenu bien cadré */
  margin-left: 10px;
  transition: transform 0.3s;
  cursor: pointer;
}

footer img:hover {
  transform: scale(1.1);
}


/* RESPONSIVE */
@media (max-width:1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:900px) {
  .species-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:800px) {
  .grid-2 {
    grid-template-columns: 1fr
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr)
  }

  .subnav {
    top: 56px
  }
}

@media (max-width:520px) {
  .gallery {
    grid-template-columns: 1fr
  }
}


/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bs-border);
  border-radius: .5rem;
  background: #fff;
  cursor: pointer;
  position: relative
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #2f3d30;
  border-radius: 2px;
  transition: .25s
}

.burger span:nth-child(1) {
  top: 12px
}

.burger span:nth-child(2) {
  top: 20px
}

.burger span:nth-child(3) {
  top: 28px
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg)
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0
}

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg)
}

@media (max-width:768px) {
  .burger {
    display: inline-block
  }

  /* Menu mobile replié */
  #site-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--bs-border);
    padding: .75rem;
    gap: .5rem;
  }

  #site-menu.open {
    display: flex
  }

  #site-menu a {
    padding: .6rem .75rem;
    border-radius: .5rem
  }

  #site-menu a:hover {
    background: rgba(25, 135, 84, .08);
    text-decoration: none
  }
}