/* =========================================================
   ROOT & RESET
========================================================= */
:root {
  /* Brand & layout */
  --bg: #ffffff;
  --surface: #f3f4f6;
  
  --border: #e5e7eb;
  --header-height: 72px;

  /* Text */
  --text: #4b5563;
  --muted: #6b7280;
  --muted-light: #e5e7eb;

  /* Brand colors */
  --brand-green: #275317;
  --brand-green-hover: #3a7a22;
  --green-light: #eaf6ea;

  /* Links */
  --link-blue: #2563eb;
  --link-blue-hover: #0D3B4F;

  /* Accents */
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --success: #28a745;

  /* Neutral */
  --white: #ffffff;
  
  

  /* Dark UI */
  --submenu-bg: #444A4F;
  --submenu-hover: #15803d;
  --modal-bg: #111827;

  /* Overlays */
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(0, 0, 0, 0.35);

  /* Slider UI */
  --overlay-ui: rgba(0, 0, 0, 0.45);
  --overlay-ui-hover: rgba(0, 0, 0, 0.65);
  --indicator-idle: rgba(255, 255, 255, 0.45);
  --indicator-hover: rgba(255, 255, 255, 0.75);

  /* Text on dark */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #e5e7eb;

  --z-overlay: 900;
  --z-header: 1000;
  --z-modal: 2000;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
	
}

/* =====================================
   IMAGE QUALITY DEGRADATION (CONTENT ONLY)
===================================== */

main img,
.grid-5x4 img,
.lightbox-image {
  filter: contrast(0.98) brightness(0.98) saturate(0.95);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

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

 html,
 body {
  overflow-x: hidden;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
/* =========================================================
   GLOBAL LINK STYLE
========================================================= */

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

a:hover {
  color: var(--link-blue-hover); /* dark blue */
  text-decoration: underline;
}


/* =========================================================
   HEADER & NAVIGATION
========================================================= */
.header {
  position: fixed;
  height: var(--header-height);
  min-height: var(--header-height);
  inset: 0 0 auto 0;
  background: var(--brand-green);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-header);
}

.header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.nav {
  min-width: max-content;    
  flex-shrink: 0;
}

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

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.tagline {
  font-size: 0.85rem;
  color: var(--muted-light);
}

/* NAV */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  
}

.nav > ul > li {
  position: relative;
}

.nav a,
.nav button.nav-link,
.submenu a {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text-on-dark);
  text-decoration: none; /* underline removed */
}

.nav a:hover,
.nav button.nav-link:hover {
  background: var(--brand-green-hover);
  text-decoration: none;
}

.nav a:focus-visible,
.nav button.nav-link:focus-visible {
  background: var(--brand-green-hover);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  text-decoration: none;
}


.nav-link.active {
  background: var(--brand-green-hover);
  font-weight: 600;
}

/* SUBMENU */
.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--submenu-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: none;
}

.submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted-light);
  text-decoration: none; /* underline removed */
}

.submenu a:hover {
  background: var(--submenu-hover);
  color: var(--text-on-dark);
  text-decoration: none;
}

.submenu a:focus-visible {
  background: var(--submenu-hover);
  color: var(--text-on-dark);
  outline: 2px solid var(--white);
  outline-offset: 2px;
  text-decoration: none;
}


.nav > ul > li.open .submenu {
  display: block;
}


/* =========================================================
   MOBILE NAV
========================================================= */
.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  cursor: pointer;
}

.nav-close {
  display: none;
}

@media (max-width: 800px) {
   .brand-text-group {
    white-space: normal;  /* ← ADD THIS */
  }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--brand-green);
    display: none;
  }

  .nav.is-open { display: block; }

  .nav ul {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  .submenu {
    position: static;
    display: none;
  }

  .nav > ul > li.open .submenu {
    display: block;
  }

  .nav-close {
    display: flex;
    margin-left: auto;
    font-size: 1.4rem;
    color: var(--text-on-dark);
    background: none;
    border: none;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--overlay-light);
    z-index: var(--z-overlay);
  }
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--header-height) 20px 40px;
}

.section {
  margin: 24px 0 40px;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

/* =========================================================
   GRIDS & CARDS
========================================================= */
.grid-2,
.grid-3 {
  display: grid;
  gap: 18px;
}

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

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

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


.grid-1 {
  background: transparent;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px;
}
/* Card image size here */

.card .media {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease; /* Hover zoom animation */

}
/* Hover zoom effect */
.card:hover .media img {
  transform: scale(1.05);
}

.text-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: transparent;
}
/* Horizontal card layout */
.hcard {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--green-light);
}

/* Increase image size here */
.hmedia {
  width: clamp(140px, 25vw, 195px);
  height: clamp(120px, 22vw, 166px);
  flex-shrink: 0;
}


.hmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}


/* ============================
   Inverse text grid (grey section)
   ============================ */

.text-card-inverse {
  background: #5f5f5f;
  color: #fff;
  padding: 1.75rem;
  border-radius: 14px;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.08);

  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.text-card-inverse:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   HORIZONTAL CARD – TEXT ONLY
========================================================= */

.hcard-text {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  /* min-height removed */
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* None border */
.grid-none .hcard-text {
 border-none: 4px solid var(--brand-green);
 background: transparent;
}

/* Left border */
.grid-left .hcard-text {
 border-left: 4px solid var(--brand-green);
 background: transparent;
}

/* Right border */
.grid-right .hcard-text {
 border-left: 4px solid var(--brand-green);
  background: transparent;
}

/* Bottom border */
.grid-bottom .hcard-text {
 border-bottom: 4px solid var(--brand-green);
 background: transparent;
}

/* Top border */
.grid-top .hcard-text {
 border-top: 4px solid var(--brand-green);
 background: transparent;
}

/* Round border */
.grid-round .hcard-text {
 border: 1px solid var(--border);
 background: transparent;
}

/* Left-Right border */
.grid-leftRight .hcard-text {
 border-left: 4px solid var(--brand-green);
 border-right: 4px solid var(--brand-green);
 background: transparent;
}


.hcard-text .hcontent h3 {
  margin-top: 0;
}

.hcard-text .hcontent p {
  margin: 8px 0 14px;
}

/* =========================================================
   HERO SLIDER
========================================================= */
.hero-fullwidth {
  width: 100vw;
  height: 80vh;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;

  transition:
    opacity 1.5s ease,
    transform 2.8s ease;
}


.hero-slider .slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}


.hero-slider .media {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Show first slide immediately on page load */
.hero-slider .slide:first-child {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* =========================================================
   HERO SPACING FIX (NAV ↔ SLIDER GAP)
   Only affects the hero slider section
========================================================= */

.main > .section.hero-fullwidth {
  padding-top: 0;
  margin-top: 0;
}

/* Fine-tune distance under fixed header */
.hero-fullwidth {
  margin-top: -12px; /* adjust: -8px to -32px */
}

/* =========================================================
   HERO SLIDE TITLE & DESCRIPTION (BOTTOM RIGHT)
========================================================= */

.slide-caption {
  position: absolute;
  bottom: 24px;
  right: 24px;
  max-width: 420px;

  background: var(--overlay-dark);
  color: var(--text-on-dark);

  padding: 16px 18px;
  border-radius: var(--radius-lg);

  z-index: 4;
}

.slide-caption h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.slide-caption p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
}

@media (max-width: 600px) {
  .slide-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}


/* =========================================================
   FORMS
========================================================= */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text-on-dark);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--brand-green);
  color: var(--text-on-dark);
  margin-top: 40px;
}
.footer a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  text-decoration: none;
}
.footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px;
}

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

@media (max-width: 700px) {
  .footer-columns { grid-template-columns: 1fr; }
}
.footer-top {
  display: flex;
  align-items: center; /* ← THIS centers the text vertically */
  gap: 10px;
}

/* =========================================================
   FOOTER SOCIAL MEDIA – WHITE BACKGROUND
========================================================= */

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  background: var(--white);
  color: var(--brand-green); /* matches footer green */

  border-radius: 50%;
  text-decoration: none;

  transition: background 0.25s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   COOKIE BANNER
========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--modal-bg);
  color: var(--text-on-dark);
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  z-index: var(--z-modal);
}
/* =========================================================
   HERO SLIDER NAVIGATION (LEFT / RIGHT)
========================================================= */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  background: var(--overlay-ui);
  color: var(--text-on-dark);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;

  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.25s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: var(--overlay-ui-hover);
  transform: translateY(-50%) scale(1.05);
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Left & right positioning */
.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* Hide arrows on very small screens (optional) */
@media (max-width: 600px) {
  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
}
/* =========================================================
   HERO SLIDER INDICATORS (DOTS)
========================================================= */

.hero-slider .indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;

  display: flex;
  gap: 10px;
}

.hero-slider .indicators button {
  width: 12px;
  height: 12px;
  padding: 0;

  border-radius: 50%;
  border: none;

  background: var(--indicator-idle);
  cursor: pointer;

  transition: transform 0.2s ease, background 0.25s ease;
}

.hero-slider .indicators button:hover {
  transform: scale(1.2);
  background: var(--indicator-hover);
}

.hero-slider .indicators button.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Accessibility */
.hero-slider .indicators button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Slightly larger dots on desktop */
@media (min-width: 900px) {
  .hero-slider .indicators button {
    width: 14px;
    height: 14px;
  }
}
/* =========================================================
   FOOTER MENU – REMOVE BULLETS
========================================================= */

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin: 6px 0;
}

/* ===============================
   FORM FIELD BASE
================================ */
.form-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font: inherit;
}

.form-field:focus {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

.form-field[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fef2f2;
}

.field-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
}


/* ===============================
   Contact Form (Scoped)
================================ */
.hcard .hcontent form {
  width: 100%;
    /* ← visibly wider */
  margin: 0 auto;
}

.hcard .hcontent .field {
  margin-bottom: 0.75rem;
}


.hcard .hcontent {
  width: 100%;
  max-width: 900px;   /* ← wider container */
  margin: 0 auto;
}

/* Contact css */
.contact-card {
  background: var(--white);
  max-width: 980px;
  width: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.field:focus-within label {
  color: var(--brand-green);
}

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

button:disabled {
  opacity: 0.6;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ccc;
  border-top-color: var(--success);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.success-modal {
  position: fixed;
  inset: 0;
  background: var(--overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

/* FIX: allow JS hidden attribute to work */
.success-modal[hidden] {
  display: none;
}

.success-content {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
}

/* =========================================================
   ACCESSIBILITY – REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* ==============================
   5 x 4 PHOTO ALBUM GRID
============================== */

.gallery-section {
  padding: 2rem 0;
}

.grid-5x4 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
  isolation: isolate;
}


.grid-5x4::after {
  content: "© Case Togo - Amis de la Nature";
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 2rem;
  color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-30deg);
  z-index: 1;
}

.grid-5x4 img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;

  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;

  filter: blur(0.25px) contrast(0.97) brightness(0.98) saturate(0.95);
  
  position: relative;
  z-index: 0;

}

.grid-5x4 img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ==============================
   RESPONSIVE FALLBACK
============================== */
@media (max-width: 1200px) {
  .grid-5x4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-5x4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-5x4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ==============================
   PHOTO GRID
============================== */

.grid-5x4 img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ==============================
   LIGHTBOX
============================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.lightbox::after {
  content: "© Case Togo - Amis de la Nature";
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-30deg);
  z-index: 2100;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
/* .lightbox-caption hidden by default removed */
.lightbox-caption {
  display: none;
}


/* Close button */
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Focus visibility */
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Navigation arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.lightbox-arrow.prev { left: 24px; }
.lightbox-arrow.next { right: 24px; }

/* Scroll lock */
.no-scroll {
  overflow: hidden;
}

/* =========================================================
  PICTURES GRID
========================================================= */
.photo-grid {
  gap: 1.5rem;
}

.photo-card {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
}

/* Same visual weight as article images */
.photo-card img {
  width: 100%;
  height: 220px; /* match .card .media img */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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


.photo-item:hover img {
  transform: scale(1.05);
}

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


/* ===============================
   FINAL mobile header order
   [ Site Logo ] [ Partner Logo ][ ☰ ]
   =============================== */

/* Partner logo base (mobile only) */
.partner-logo {
  display: none;
  /* hidden by default (desktop) */
  height: 24px;
  width: auto;
}

/* Mobile: show partner logo */
@media (max-width: 768px) {
  .partner-logo {
    display: inline-block;
    height: 45px;
    /* Taille du logo */
    width: auto;

  }

  .header .container {
    justify-content: flex-start;
    gap: 10px;
  }

  .brand {
    margin-right: auto;
  }

  .nav-toggle {
    order: 3;
  }
}


/* Hide partner logo inside nav menu on mobile */
@media (max-width: 768px) {

  nav .partner-logo,
  nav .nav-logo {
    display: none !important;
    height: 45px;
  }
}

/* Mobile menu close button */
.nav-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
}

/* Close button base */
.nav-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Show close button when mobile menu is open */
@media (max-width: 768px) {
  .nav.is-open .nav-close {
    display: block;
    margin-left: auto;
    margin-bottom: 1rem;
  }
}
/* ===============================
   Partner logo – DESKTOP size
   =============================== */
.nav-logo {
  height: 45px;   /* ← change this number to resize */
  width: auto;
}

/* ===============================
   BREVO FORM – COMPACT HEIGHT
================================ */

.sib-form,
.sib-form-container {
  padding: 0 !important;
}

.sib-form .sib-form-block {
  margin-bottom: 8px !important;
}

.sib-form input,
.sib-form textarea,
.sib-form select {
  padding: 6px 8px !important;
  line-height: 1.3 !important;
}

.sib-form label,
.sib-form .entry__specification {
  font-size: 12px !important;
  margin-top: 4px !important;
}

.sib-form button,
.sib-form .sib-form-block__button {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* ===============================
   Reduce space before footer
================================ */

main > .section:last-child {
  margin-bottom: 0;
}

.main {
  padding-bottom: 0;
}

.footer {
  margin-top: 60px;
}

/* ========================
   FORM ERROR STYLES
======================== */
.error-msg {
  color: red;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.form-field.has-error {
  border-color: red;
  box-shadow: 0 0 3px red;
}
.form-field.has-error {
  border-color: red;
  box-shadow: 0 0 3px red;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* =========================================================
   PAGE SCROLL ARROWS 
========================================================= */

/* Base arrow styles */
.page-arrows {
  position: fixed;
  right: 24px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.5);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-arrow:hover {
  transform: scale(1.08);
  background: rgba(40, 40, 40, 0.80);
}

@media (hover: none) and (pointer: coarse) {
    page-arrows {
    display: none; 
  }
}

