:root{
  --primary:#0f7a56;
  --dark: #0f1e16;
  --light: #f7faf8;
  --text: #1b2a22;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 100;
  background: #fff; border: 2px solid var(--primary); padding: 8px 12px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header / Nav */

header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.logo img { width: 40px; height: 40px; border-radius: 6px; }

/* 🔧 Ajout important : aligner verticalement tous les enfants (y compris le <div class="dropdown">) */
.nav-links {
  display: flex; gap: 0px; flex-wrap: wrap;
  align-items: center; /* NEW */
}

/* Style uni pour tous les liens de nav (y compris le .dropdown-toggle) */
.nav-links a {
  padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #0f172a; text-decoration: none;
}
.nav-links a.active,
.nav-links a:hover { 
  background: transparent; /* Enlève l'ombre verte */
}

/* (Optionnel) S’assure que le wrapper dropdown s’aligne correctement */
.nav-links .dropdown { display: flex; align-items: center; }

/* Bouton burger */
.nav-toggle {
  display: none; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer;
}


/* Conteneur global */
.map-embed{
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(8px, 2vw, 16px);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* IFRAME responsive, coins arrondis et ombre */
.map-embed__frame{
  width: 100%;
  /* Aspect ratio natif : parfait pour la réactivité */
  aspect-ratio: 16 / 9;
  /* Sur mobile on affiche plus de hauteur pour mieux lire la carte */
  /* (Voir media query plus bas) */
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #f1f5f9;  /* couleur de fond pendant le lazy-loading */
  display: block;
}

/* Lien "Ouvrir dans Google Maps" stylé comme un bouton discret */
.map-embed__open{
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.map-embed__open:hover{
  border-color: color-mix(in oklab, var(--brand) 30%, var(--border));
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.map-embed__open:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand) 30%, #fff);
  outline-offset: 2px;
}

.map-embed__open:active{
  transform: translateY(0);
}

/* ====== Petits écrans ====== */
@media (max-width: 640px){
  .map-embed__frame{
    /* plus haut sur mobile pour une carte plus confortable */
    aspect-ratio: 4 / 5;         /* ~portrait */
    min-height: 320px;           /* garde-fou si l'aspect-ratio est trop petit */
    border-radius: 14px;
  }
  .map-embed__open{
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 12px 16px;
  }
}

/* ====== Grands écrans ====== */
@media (min-width: 1280px){
  .map-embed{
    max-width: 1200px;
  }
  .map-embed__frame{
    border-radius: 18px;
  }
}

/* ====== Thème sombre auto ====== */
@media (prefers-color-scheme: dark){
  :root{
    --surface: #0b1220;
    --ink: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2937;
    --shadow: 0 10px 30px rgba(0,0,0,.45);
  }
  .map-embed{
    color: var(--ink);
  }
  .map-embed__frame{
    background: #0f172a;
    box-shadow: var(--shadow);
  }
  .map-embed__open{
    background: #0b1220;
    border-color: var(--border);
    color: #93c5fd;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
  }
  .map-embed__open:hover{
    border-color: #334155;
  }
}

/* ====== Accessibilité & confort ====== */
@media (prefers-reduced-motion: reduce){
  .map-embed__open{
    transition: none;
  }
}


/* Footer */
footer.site-footer { background: var(--dark); color: #cbd5e1; padding: 30px 0; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
footer h4 { color: #fff; margin-top: 0; }
footer a { color: #cbd5e1; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; background: rgba(244,179,0,.12); color: #6b4a00; font-weight: 700; }
.small { font-size: 14px; }
hr.sep { border: 0; border-top: 1px solid #e5e7eb; margin: 20px 0; }

/* Réactif */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  .nav-links.open { display: flex; }
  footer .cols { grid-template-columns: 1fr; }
}

/* Nav : jamais de soulignement */
.site-header .nav-links a,
.site-header .nav-links a:visited,
.site-header .nav-links a:hover,
.site-header .nav-links a:focus {
  text-decoration: none;
}

/* (optionnel) garder l'effet de survol sans souligner */
.site-header .nav-links a.active,
.site-header .nav-links a:hover {
  background: rgba(10,107,74,.1);
}

.social-icons {
  margin-top: 20px;
}

.social-icon {
  margin-right: 15px;
  font-size: 24px;
  
}

.social-icon:hover {
  color: #007BFF;
}
