/* ═══════════════════════════════════════════
   TERRARIOMAP — style.css
   Structure : variables → reset → composants
               → pages → responsive → cookies
═══════════════════════════════════════════ */

:root {
  --g9: #0d2014;
  --g8: #1a3d28;
  --g7: #245233;
  --g6: #2f6b41;
  --g5: #3d8a54;
  --g4: #5aab70;
  --g3: #82c795;
  --g1: #d4edda;
  --g0: #eef7f1;
  --a5: #e8a020;
  --a4: #f0b84a;
  --a1: #fdf3d7;
  --i9: #0f1a14;
  --i7: #2c3e32;
  --i5: #4a6354;
  --i3: #8aaa96;
  --i1: #d6e4db;
  --i0: #f0f6f2;
  --insect-bg: #c8a800;
  --insect-light: #fff8cc;
  --aqua-bg: #2e9fc9;
  --aqua-light: #d6f0fa;
  --white: #fff;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--fb);
  color: var(--i9);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--i1);
}

.hdr {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--g8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo span {
  color: var(--a5);
}

.hnav {
  display: flex;
  gap: 1.2rem;
  flex: 1;
}

.hnav a {
  color: var(--i5);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}

.hnav a:hover,
.hnav a.active {
  color: var(--g7);
}

.hact {
  display: flex;
  align-items: center;
  gap: .8rem;
}

select.lang {
  border: 1.5px solid var(--i1);
  border-radius: var(--r-sm);
  padding: .3rem .5rem;
  font-family: var(--fb);
  font-size: .85rem;
  cursor: pointer;
  background: var(--white);
  color: var(--i7);
}

.hact-btn {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border-radius: var(--r-sm);
  font-family: var(--fb);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.hact-btn.green {
  background: var(--g7);
  color: var(--white);
  border: 1.5px solid var(--g7);
}

.hact-btn.green:hover {
  background: var(--g8);
  border-color: var(--g8);
}

.hact-btn.outline {
  background: transparent;
  color: var(--g7);
  border: 1.5px solid var(--g4);
}

.hact-btn.outline:hover {
  background: var(--g0);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: var(--r-md);
  font-family: var(--fb);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
}

.btn-green {
  background: var(--g7);
  color: var(--white);
}

.btn-green:hover {
  background: var(--g8);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--g7);
  border: 1.5px solid var(--g4);
}

.btn-outline:hover {
  background: var(--g0);
}

.btn-amber {
  background: var(--a5);
  color: var(--i9);
}

.btn-amber:hover {
  background: var(--a4);
}

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

.btn-sm {
  padding: .35rem .75rem;
  font-size: .8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── HERO (page principale) ── */
.hero {
  background: linear-gradient(140deg, var(--g9) 0%, var(--g7) 55%, var(--g8) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a4);
  margin-bottom: .8rem;
}

.hero h1 {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--a4);
}

.hero p {
  color: var(--g1);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 300;
  font-size: 1.05rem;
}

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

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, .1);
}

.deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
}

.r1 {
  width: 450px;
  height: 450px;
  top: -180px;
  right: -120px;
}

.r2 {
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -60px;
}

/* ── MAP ── */
.map-wrap {
  border-top: 1px solid var(--i1);
}

.map-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1.2rem;
  background: var(--white);
  border-bottom: 1px solid var(--i1);
  flex-wrap: wrap;
}

.map-search {
  flex: 1;
  min-width: 180px;
  padding: .45rem .9rem;
  border: 1.5px solid var(--i1);
  border-radius: var(--r-md);
  font-family: var(--fb);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
}

.map-search:focus {
  border-color: var(--g4);
}

.filters {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.fbtn {
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1.5px solid var(--i1);
  background: var(--white);
  font-family: var(--fb);
  font-size: .8rem;
  cursor: pointer;
  color: var(--i5);
  transition: all .2s;
}

.fbtn:hover {
  border-color: var(--g4);
  color: var(--g7);
}

.fbtn.active {
  background: var(--g7);
  color: var(--white);
  border-color: var(--g7);
}

.fbtn.cat-reptile.active {
  background: var(--g7);
  border-color: var(--g7);
}

.fbtn.cat-insect.active {
  background: var(--insect-bg);
  border-color: var(--insect-bg);
  color: var(--i9);
}

.fbtn.cat-aqua.active {
  background: var(--aqua-bg);
  border-color: var(--aqua-bg);
  color: var(--white);
}

.map-count {
  font-size: .8rem;
  color: var(--i3);
  white-space: nowrap;
  margin-left: auto;
}

#map {
  width: 100%;
  height: 580px;
}

/* ── MAP LEGEND ── */
.map-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .5rem 1.2rem;
  background: var(--white);
  border-top: 1px solid var(--i1);
  flex-wrap: wrap;
}

.map-legend-title {
  font-size: .75rem;
  font-weight: 600;
  color: var(--i3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .3rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--i5);
}

.legend-dot {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legend-dot span {
  transform: rotate(45deg);
  font-size: 9px;
  line-height: 1;
}

.legend-dot.reptile {
  background: var(--g7);
}

.legend-dot.insect {
  background: var(--insect-bg);
}

.legend-dot.aqua {
  background: var(--aqua-bg);
}

.legend-dot.past {
  background: var(--i3);
}

/* ── LEAFLET POPUP ── */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18) !important;
  border: none !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 300px !important;
}

.leaflet-popup-tip-container {
  margin-top: -1px;
}

.pop-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--g8);
}

.pop-no-img {
  height: 150px;
  background: linear-gradient(135deg, var(--g8), var(--g7));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: .6;
}

.pop-no-img.insect {
  background: linear-gradient(135deg, #a08000, var(--insect-bg));
}

.pop-no-img.aqua {
  background: linear-gradient(135deg, #1a6e8a, var(--aqua-bg));
}

.pop-body {
  padding: .9rem 1rem;
}

.pop-badges {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.pop-name {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  color: var(--g8);
  margin-bottom: .5rem;
}

.pop-row {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .8rem;
  color: var(--i5);
  margin-bottom: .3rem;
}

.pop-icon {
  flex-shrink: 0;
  font-size: .85rem;
}

.pop-desc {
  font-size: .78rem;
  color: var(--i5);
  margin: .5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pop-btns {
  display: flex;
  gap: .4rem;
  margin: .6rem 0;
  flex-wrap: wrap;
}

.pop-btns a {
  padding: .28rem .75rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--g4);
  color: var(--g7);
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}

.pop-btns a:hover {
  background: var(--g0);
}

.pop-share {
  border-top: 1px solid var(--i1);
  padding-top: .6rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.pop-share-label {
  font-size: .72rem;
  color: var(--i3);
  flex-shrink: 0;
}

.shr {
  background: var(--i0);
  border: 1px solid var(--i1);
  border-radius: var(--r-sm);
  padding: .28rem .4rem;
  cursor: pointer;
  font-size: .8rem;
  transition: background .2s;
  display: flex;
  align-items: center;
}

.shr:hover {
  background: var(--g1);
  color: var(--g8);
}

/* ── BADGES ── */
.pop-badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
}

.badge-upcoming {
  background: var(--g1);
  color: var(--g7);
}

.badge-past {
  background: var(--i1);
  color: var(--i5);
}

.badge-cat-reptile {
  background: var(--g1);
  color: var(--g8);
}

.badge-cat-insect {
  background: var(--insect-light);
  color: #7a6000;
}

.badge-cat-aqua {
  background: var(--aqua-light);
  color: #1a6080;
}

/* ── MARKERS ── */
.tm-marker {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  border: 2.5px solid var(--white);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, filter .2s;
}

.tm-marker:hover {
  transform: rotate(-45deg) scale(1.18);
  filter: brightness(1.1);
}

.tm-marker-inner {
  transform: rotate(45deg);
  font-size: 13px;
  line-height: 1;
}

.tm-marker.cat-reptile {
  background: var(--g7);
}

.tm-marker.cat-insect {
  background: var(--insect-bg);
}

.tm-marker.cat-aqua {
  background: var(--aqua-bg);
}

.tm-marker.past {
  opacity: .65;
  filter: grayscale(.4);
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(120deg, var(--g8) 0%, var(--g7) 100%);
  padding: 3.5rem 1.5rem;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .4rem;
}

.cta-text p {
  color: var(--g1);
  font-size: .95rem;
  max-width: 480px;
}

.cta-section .btn-amber {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── EMBED SECTION ── */
.embed-section {
  padding: 4.5rem 1.5rem;
  background: var(--i0);
}

.embed-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.embed-wrap>p {
  color: var(--i5);
  margin-bottom: 1.2rem;
  font-size: .95rem;
}

.embed-opts {
  display: flex;
  gap: .8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.eopt {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--i7);
  cursor: pointer;
}

.code-box {
  position: relative;
  background: var(--g9);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
}

.code-box pre {
  color: var(--g3);
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: .7rem;
  right: .7rem;
  background: var(--g6);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  padding: .28rem .75rem;
  font-size: .78rem;
  cursor: pointer;
  transition: background .2s;
}

.copy-btn:hover {
  background: var(--g5);
}

.wp-tip {
  background: var(--white);
  border: 1.5px solid var(--i1);
  border-radius: var(--r-md);
  padding: .7rem 1rem;
  font-size: .87rem;
  color: var(--i5);
  margin-top: .8rem;
}

.wp-tip strong {
  color: var(--i9);
}

/* ── FORM (page inscription) ── */
.form-section {
  padding: 4.5rem 1.5rem;
  background: var(--white);
}

.form-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.sec-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sec-tag {
  display: inline-block;
  background: var(--a1);
  color: var(--a5);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}

.sec-head h2 {
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 800;
  color: var(--g9);
  margin-bottom: .4rem;
}

.sec-head p {
  color: var(--i5);
  font-size: .95rem;
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

.fgroup {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.fgroup.full {
  grid-column: 1 / -1;
}

.fsep {
  grid-column: 1 / -1;
  font-family: var(--fd);
  font-size: .9rem;
  font-weight: 700;
  color: var(--g6);
  padding: .6rem 0 .2rem;
  border-bottom: 2px solid var(--g1);
  margin-top: .3rem;
}

label {
  font-size: .83rem;
  font-weight: 500;
  color: var(--i7);
}

label small {
  font-weight: 400;
  color: var(--i3);
  font-size: .75rem;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url],
input[type=date],
input[type=time],
select,
textarea {
  width: 100%;
  padding: .5rem .85rem;
  border: 1.5px solid var(--i1);
  border-radius: var(--r-md);
  font-family: var(--fb);
  font-size: .9rem;
  color: var(--i9);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--g4);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

.file-drop {
  position: relative;
  border: 2px dashed var(--i1);
  border-radius: var(--r-md);
  padding: 1.2rem;
  text-align: center;
  background: var(--i0);
  cursor: pointer;
  transition: all .2s;
}

.file-drop:hover {
  border-color: var(--g4);
  background: var(--g0);
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-hint {
  font-size: .85rem;
  color: var(--i3);
}

.file-chosen {
  font-size: .82rem;
  color: var(--g6);
  font-weight: 500;
  margin-top: .3rem;
}

.chk-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .87rem;
  color: var(--i7);
  cursor: pointer;
}

.chk-row input {
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--g7);
  width: auto;
}

.form-err {
  background: #fff3f3;
  color: #c0392b;
  border: 1px solid #f5b7b1;
  border-radius: var(--r-md);
  padding: .65rem .9rem;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.form-ok {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--g0);
  border-radius: var(--r-lg);
  border: 2px solid var(--g1);
}

.ok-icon {
  width: 52px;
  height: 52px;
  background: var(--g7);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.form-ok h3 {
  font-family: var(--fd);
  font-size: 1.4rem;
  color: var(--g8);
  margin-bottom: .4rem;
}

.form-ok p {
  color: var(--i5);
  font-size: .9rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* ── REGISTER PAGE HERO ── */
.reg-hero {
  background: linear-gradient(140deg, var(--g9) 0%, var(--g7) 100%);
  padding: 3.5rem 1.5rem;
}

.reg-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.reg-hero-text {
  flex: 1;
  min-width: 260px;
}

.reg-hero-text .sec-tag {
  margin-bottom: .6rem;
}

.reg-hero-text h1 {
  font-family: var(--fd);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .8rem;
  line-height: 1.15;
}

.reg-hero-text p {
  color: var(--g1);
  font-size: .95rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.reg-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.reg-perks li {
  font-size: .88rem;
  color: var(--g3);
}

.reg-perks li span {
  color: var(--g1);
}

.reg-hero-deco {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-shrink: 0;
}

.reg-deco-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  text-align: center;
  min-width: 100px;
}

.reg-deco-card.active {
  background: rgba(232, 160, 32, .15);
  border-color: var(--a4);
}

.reg-deco-icon {
  font-size: 1.6rem;
  margin-bottom: .3rem;
}

.reg-deco-label {
  font-size: .75rem;
  color: var(--g1);
  line-height: 1.3;
}

.reg-deco-arrow {
  color: rgba(255, 255, 255, .3);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── LEGAL PAGE ── */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--g6);
  font-size: .88rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}

.legal-back:hover {
  color: var(--g8);
}

.legal-page h1 {
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 800;
  color: var(--g9);
  margin-bottom: .4rem;
}

.legal-subtitle {
  color: var(--i3);
  font-size: .85rem;
  margin-bottom: 2.5rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-family: var(--fd);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--g7);
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--g1);
}

.legal-section p {
  font-size: .9rem;
  color: var(--i5);
  line-height: 1.75;
  margin-bottom: .5rem;
}

.legal-section a {
  color: var(--g6);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--g8);
}

.legal-section ul {
  padding-left: 1.2rem;
  margin: .4rem 0 .5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.legal-section ul li {
  font-size: .9rem;
  color: var(--i5);
  line-height: 1.7;
}

.legal-section ul li strong {
  color: var(--i9);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-top: .5rem;
}

.cookie-table th {
  background: var(--g1);
  color: var(--g8);
  font-weight: 600;
  padding: .5rem .7rem;
  text-align: left;
}

.cookie-table td {
  padding: .5rem .7rem;
  border-bottom: 1px solid var(--i1);
  color: var(--i5);
  vertical-align: top;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.update-date {
  font-size: .78rem;
  color: var(--i3);
  text-align: right;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--i1);
}

.cookie-prefs-box {
  background: var(--g0);
  border: 2px solid var(--g1);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.5rem;
  margin-top: .8rem;
}

.cookie-prefs-box p {
  margin-bottom: .8rem;
}

.cookie-prefs-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--g9);
  color: var(--g3);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.ft-logo {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .4rem;
}

.ft-logo span {
  color: var(--a4);
}

footer p {
  font-size: .85rem;
  margin-bottom: .6rem;
}

.ft-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}

.ft-links a {
  color: var(--g3);
  font-size: .82rem;
  text-decoration: none;
}

.ft-links a:hover {
  color: var(--a4);
}

footer small {
  opacity: .4;
  font-size: .75rem;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--g9);
  color: var(--g1);
  padding: 1.1rem 1.5rem;
  border-top: 2px solid var(--g7);
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .35);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--g1);
}

.cookie-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  padding: .4rem 1rem;
  border-radius: var(--r-md);
  font-family: var(--fb);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}

.cookie-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

.cookie-btn.accept {
  background: var(--g5);
  color: var(--white);
}

.cookie-btn.necessary {
  background: transparent;
  color: var(--g3);
  border: 1.5px solid var(--g6);
}

.cookie-btn.refuse {
  background: transparent;
  color: var(--i3);
  border: 1.5px solid var(--i5);
}

.cookie-legal-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: .4rem;
  font-size: .75rem;
  color: var(--i3);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-legal-link:hover {
  color: var(--g3);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* Tablette ≤ 900px */
@media (max-width: 900px) {
  .hnav {
    gap: .8rem;
  }

  .hnav a {
    font-size: .82rem;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  #map {
    height: 500px;
  }

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

  .cta-inner {
    gap: 1.2rem;
  }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
  .hnav {
    display: none;
  }

  .hdr {
    padding: 0 1rem;
    gap: .6rem;
    height: 56px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .hact {
    gap: .5rem;
  }

  select.lang {
    font-size: .78rem;
    padding: .25rem .4rem;
  }

  .btn {
    padding: .42rem .85rem;
    font-size: .82rem;
  }

  .btn-lg {
    padding: .42rem .85rem;
    font-size: .82rem;
  }

  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero-eyebrow {
    font-size: .72rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero p {
    font-size: .95rem;
    margin-bottom: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: .6rem;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .deco-ring {
    display: none;
  }

  .map-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding: .7rem 1rem;
  }

  .map-search {
    min-width: unset;
    width: 100%;
  }

  .filters {
    justify-content: center;
  }

  .fbtn {
    font-size: .78rem;
    padding: .28rem .7rem;
  }

  .map-count {
    text-align: center;
    margin-left: 0;
  }

  #map {
    height: 380px;
  }

  .map-legend {
    gap: .6rem;
    padding: .5rem 1rem;
  }

  .map-legend-title {
    width: 100%;
  }

  .leaflet-popup-content {
    width: 260px !important;
  }

  .pop-no-img {
    height: 120px;
    font-size: 2.5rem;
  }

  .pop-img {
    height: 120px;
  }

  .pop-body {
    padding: .75rem .85rem;
  }

  .pop-name {
    font-size: .9rem;
  }

  .form-section {
    padding: 3rem 1rem;
  }

  .sec-head h2 {
    font-size: 1.6rem;
  }

  .fgrid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .fgroup.full {
    grid-column: 1;
  }

  .fsep {
    grid-column: 1;
  }

  .btn-full {
    font-size: .95rem;
    padding: .65rem 1rem;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-text h2 {
    font-size: 1.3rem;
  }

  .cta-section .btn-amber {
    width: 100%;
    justify-content: center;
  }

  .reg-hero {
    padding: 2.5rem 1rem;
  }

  .reg-hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .reg-hero-text h1 {
    font-size: 1.7rem;
  }

  .reg-hero-deco {
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
  }

  .reg-deco-card {
    min-width: 80px;
    padding: .7rem .8rem;
  }

  .reg-deco-icon {
    font-size: 1.2rem;
  }

  .reg-deco-arrow {
    display: none;
  }

  .embed-section {
    padding: 3rem 1rem;
  }

  .embed-opts {
    flex-direction: column;
    gap: .5rem;
  }

  .code-box {
    padding: .9rem 1rem;
  }

  .code-box pre {
    font-size: .72rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .ft-links {
    flex-direction: column;
    gap: .6rem;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .7rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-btn {
    font-size: .78rem;
    padding: .35rem .8rem;
  }

  .cookie-legal-link {
    text-align: left;
  }
}

/* Très petit ≤ 380px */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  #map {
    height: 320px;
  }

  .hact .btn {
    display: none;
  }
}