/* ============================================================
   EVENOS TEMPLATE v5.0 — Médiéval Provençal · Responsive
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --ev-pierre-foncee:  #2C2416;
  --ev-pierre:         #5C4A32;
  --ev-pierre-claire:  #8B7355;
  --ev-parchemin:      #F5E6C8;
  --ev-parchemin2:     #EDD89A;
  --ev-or:             #C4973E;
  --ev-or-vif:         #D4A843;
  --ev-rouge:          #8B1A1A;
  --ev-vert:           #2D4A1E;
  --ev-noir:           #0D0A06;
  --ev-encre:          #1A1208;
  --ev-text:           #2C2416;
  --ev-text-clair:     #5C4A32;
  --ev-text-muted:     #7A6550;
  --ev-container:      1200px;
  --ev-radius:         4px;
  --ev-shadow:         0 4px 24px rgba(0,0,0,0.18);
  --ev-shadow-lg:      0 8px 48px rgba(0,0,0,0.28);
  --ev-transition:     all 0.3s ease;
  --ev-font-titre:     'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --ev-font-nav:       'Cinzel', Georgia, serif;
  --ev-font-body:      'Lora', Georgia, serif;
  --ev-header-h:       auto;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ev-font-body);
  color: var(--ev-text);
  background: var(--ev-parchemin);
  line-height: 1.7;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ev-or); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ──────────────────────────────────────────────── */
.ev-container {
  width: 100%;
  max-width: var(--ev-container);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px)  { .ev-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ev-container { padding: 0 2rem; } }

/* ── Ornement supérieur ─────────────────────────────────────── */
.ev-top-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 1rem;
  background: var(--ev-encre);
  gap: 10px;
}
.ev-orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ev-or));
  max-width: 200px;
}
.ev-orn-line:last-child { background: linear-gradient(to left, transparent, var(--ev-or)); }
.ev-orn-symbol { color: var(--ev-or); font-size: 0.75rem; letter-spacing: 0.15em; white-space: nowrap; }

/* ── HEADER ─────────────────────────────────────────────────── */
.ev-header {
  background: var(--ev-gradient-pierre, linear-gradient(180deg, #2C2416 0%, #1A1208 100%));
  background: linear-gradient(180deg, #2C2416 0%, #1A1208 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.ev-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Logo */
.ev-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none !important;
}
.ev-logo-img {
  width: auto;
  height: 52px;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
@media (min-width: 768px)  { .ev-logo-img { height: 64px; max-width: 160px; } }
@media (min-width: 1024px) { .ev-logo-img { height: 72px; max-width: 200px; } }

/* Titre & sous-titre */
.ev-header-brand { flex: 1; min-width: 0; }
.ev-site-title {
  display: block;
  color: var(--ev-parchemin);
  font-family: var(--ev-font-titre);
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  line-height: 1.2;
}
.ev-site-title:hover { color: var(--ev-or); text-decoration: none; }
.ev-title-sub {
  display: block;
  color: var(--ev-or);
  font-family: var(--ev-font-nav);
  font-size: clamp(0.55rem, 1.8vw, 0.75rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fleur de lys droite — masquée sur mobile */
.ev-blason-right { display: none; }
@media (min-width: 640px) {
  .ev-blason-right { display: flex; align-items: center; }
  .ev-fleur-de-lys { color: var(--ev-or); font-size: 1.8rem; opacity: .6; }
}

/* ── Hamburger ──────────────────────────────────────────────── */
.ev-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  gap: 5px;
}
.ev-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ev-or);
  border-radius: 2px;
  transition: var(--ev-transition);
  transform-origin: center;
}
.ev-hamburger.ev-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ev-hamburger.ev-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ev-hamburger.ev-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .ev-hamburger { display: none; } }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.ev-nav-bar {
  background: linear-gradient(180deg, rgba(26,18,8,.95) 0%, rgba(44,36,22,.98) 100%);
  border-top: 1px solid rgba(196,151,62,.25);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.ev-nav-bar.ev-nav-open { max-height: 100vh; }
@media (min-width: 1024px) {
  .ev-nav-bar { max-height: none; overflow: visible; }
}

/* Menu Joomla — reset */
.ev-nav-bar ul { list-style: none; margin: 0; padding: 0; }

/* Mobile : vertical */
.ev-nav-bar > .ev-container > ul {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
}
.ev-nav-bar > .ev-container > ul > li { position: relative; }
.ev-nav-bar > .ev-container > ul > li > a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--ev-parchemin);
  font-family: var(--ev-font-nav);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(196,151,62,.1);
  transition: color 0.2s, padding-left 0.2s;
}
.ev-nav-bar > .ev-container > ul > li > a:hover,
.ev-nav-bar > .ev-container > ul > li.active > a,
.ev-nav-bar > .ev-container > ul > li.current > a {
  color: var(--ev-or);
  padding-left: 1.5rem;
  text-decoration: none;
}

/* Sous-menus mobile */
.ev-nav-bar ul ul {
  background: rgba(0,0,0,.3);
  border-left: 2px solid var(--ev-or);
  margin-left: 1rem;
}
.ev-nav-bar ul ul li a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--ev-parchemin2);
  font-family: var(--ev-font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.ev-nav-bar ul ul li a:hover { color: var(--ev-or); text-decoration: none; }

/* Desktop : horizontal */
@media (min-width: 1024px) {
  .ev-nav-bar > .ev-container > ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0;
  }
  .ev-nav-bar > .ev-container > ul > li > a {
    padding: 0.85rem 1.1rem;
    border-bottom: 2px solid transparent;
    font-size: 0.78rem;
  }
  .ev-nav-bar > .ev-container > ul > li > a:hover,
  .ev-nav-bar > .ev-container > ul > li.active > a,
  .ev-nav-bar > .ev-container > ul > li.current > a {
    color: var(--ev-or);
    border-bottom-color: var(--ev-or);
    padding-left: 1.1rem;
  }
  /* Dropdown desktop */
  .ev-nav-bar ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: linear-gradient(180deg, #2C2416 0%, #1A1208 100%);
    border: 1px solid rgba(196,151,62,.3);
    border-top: 2px solid var(--ev-or);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    margin-left: 0;
    border-left: none;
    display: none;
    z-index: 200;
  }
  .ev-nav-bar ul > li:hover > ul { display: block; }
  .ev-nav-bar ul ul li a {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid rgba(196,151,62,.1);
    font-size: 0.8rem;
  }
  .ev-nav-bar ul ul li:last-child a { border-bottom: none; }
}

/* ── HERO / PAGE D'ACCUEIL ───────────────────────────────────── */
.ev-hero {
  background: linear-gradient(180deg, #1A1208 0%, #2C2416 40%, #3D2E1A 100%);
  min-height: 35vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 0;
}
.ev-hero-inner { min-height: 200px; }

/* Parchemin de bienvenue */
.ev-parchemin {
  background: linear-gradient(135deg, #F5E6C8 0%, #EDD89A 50%, #F5E6C8 100%);
  border: 2px solid var(--ev-or);
  box-shadow: 0 0 0 1px rgba(196,151,62,.2), var(--ev-shadow-lg), inset 0 0 40px rgba(196,151,62,.08);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  max-width: 900px;
  width: calc(100% - 2rem);
  margin: 1.5rem auto;
}
.ev-parchemin-ornament-top,
.ev-parchemin-ornament-bot {
  text-align: center;
  color: var(--ev-or);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.ev-parchemin-ornament-bot { margin-top: 1rem; margin-bottom: 0; }

/* Titres médiévaux */
.ev-titre-medieval {
  font-family: var(--ev-font-titre);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  color: var(--ev-pierre-foncee);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.ev-titre-deco { color: var(--ev-or); margin: 0 0.5rem; }
.ev-sous-titre {
  text-align: center;
  color: var(--ev-pierre);
  font-style: italic;
  font-size: clamp(0.85rem, 2vw, 1rem);
  margin-bottom: 1.2rem;
}

/* Badges */
.ev-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}
.ev-badge {
  background: var(--ev-pierre-foncee);
  color: var(--ev-parchemin);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-family: var(--ev-font-nav);
  letter-spacing: 0.08em;
  border: 1px solid var(--ev-or);
}

/* Séparateurs */
.ev-separateur-or { text-align: center; color: var(--ev-or); margin: 1.2rem 0; }
.ev-separateur-enluminure { text-align: center; color: var(--ev-pierre-claire); margin: 1rem 0; font-size: 1.1rem; }
.ev-sep-sm { margin: 0.6rem 0; }

/* Texte article */
.ev-article-intro { color: var(--ev-text); font-size: clamp(0.9rem, 2vw, 1rem); margin-bottom: 1rem; }
.ev-drop-cap > p:first-child::first-letter {
  float: left; font-size: 3.5em; line-height: 0.75; font-family: var(--ev-font-titre);
  color: var(--ev-or); margin-right: 0.1em; margin-top: 0.05em; font-weight: bold;
}
.ev-liste-medievale { padding-left: 1.5rem; margin: 0.5rem 0 1rem; }
.ev-liste-medievale li { margin-bottom: 0.4rem; }
.ev-note-it { font-style: italic; color: var(--ev-text-muted); font-size: 0.9em; }
.ev-article-section { margin-bottom: 1.2rem; }
.ev-article-h2 {
  font-family: var(--ev-font-nav);
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--ev-pierre-foncee);
  border-bottom: 1px solid rgba(196,151,62,.35);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}
.ev-article-body { color: var(--ev-text); line-height: 1.8; }
.ev-article-cloture { text-align: center; color: var(--ev-text-muted); font-style: italic; font-size: 0.9em; margin-top: 0.5rem; }

/* ── SECTION 3 HAMEAUX ───────────────────────────────────────── */
.ev-hameaux { padding: clamp(2rem, 5vw, 4rem) 0; background: var(--ev-parchemin); }
.ev-section-titre {
  font-family: var(--ev-font-titre);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: var(--ev-pierre-foncee);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.ev-section-orn { color: var(--ev-or); margin: 0 0.5rem; }
.ev-hameaux-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .ev-hameaux-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ev-hameaux-grid { grid-template-columns: repeat(3, 1fr); } }

.ev-hameau-card {
  background: linear-gradient(135deg, #F5E6C8 0%, #EDD89A 100%);
  border: 2px solid var(--ev-or);
  border-radius: 2px;
  padding: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  box-shadow: var(--ev-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ev-hameau-card:hover { transform: translateY(-4px); box-shadow: var(--ev-shadow-lg); }
.ev-hameau-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ev-hameau-titre {
  font-family: var(--ev-font-nav);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--ev-pierre-foncee);
  margin-bottom: 0.3rem;
}
.ev-hameau-badge {
  color: var(--ev-or);
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.ev-hameau-texte { color: var(--ev-text-clair); font-size: clamp(0.85rem, 2vw, 0.95rem); margin-bottom: 1rem; }
.ev-btn-medieval {
  display: inline-block;
  background: var(--ev-pierre-foncee);
  color: var(--ev-parchemin) !important;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--ev-or);
  font-family: var(--ev-font-nav);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.ev-btn-medieval:hover { background: var(--ev-or); color: var(--ev-pierre-foncee) !important; }

/* ── HERO INTERNE ────────────────────────────────────────────── */
.ev-hero-inner { background: linear-gradient(180deg, #1A1208, #2C2416); padding: 2.5rem 0 1.5rem; text-align: center; }
.ev-inner-titre {
  font-family: var(--ev-font-titre);
  font-size: clamp(1.3rem, 5vw, 2rem);
  color: var(--ev-parchemin);
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.ev-breadcrumb-line { color: var(--ev-or); font-size: 0.8rem; margin-top: 0.5rem; letter-spacing: 0.15em; }

/* ── MODULES TOP ─────────────────────────────────────────────── */
.ev-top-modules {
  padding: 2rem 0;
  background: #EDD89A;
  border-bottom: 1px solid rgba(196,151,62,.3);
}
.ev-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .ev-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ev-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ev-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px)  { .ev-grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ── CONTENU PRINCIPAL ───────────────────────────────────────── */
.ev-main {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  min-height: 400px;
}
.ev-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) {
  .ev-with-sidebar { grid-template-columns: 1fr 320px; }
}
.ev-content { min-width: 0; }

/* Contenu Joomla */
.ev-content h1, .ev-content h2, .ev-content h3 {
  font-family: var(--ev-font-nav);
  color: var(--ev-pierre-foncee);
  margin-bottom: 0.75rem;
}
.ev-content h1 { font-size: clamp(1.4rem, 4vw, 2rem); border-bottom: 2px solid var(--ev-or); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.ev-content h2 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.ev-content p { margin-bottom: 1rem; line-height: 1.8; }
.ev-content ul, .ev-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.ev-content img { border-radius: 4px; box-shadow: var(--ev-shadow); margin: 1rem 0; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.ev-sidebar { min-width: 0; }

/* ── MODULES CARD ────────────────────────────────────────────── */
.ev-card {
  background: linear-gradient(135deg, #F5E6C8, #EDD89A);
  border: 1px solid rgba(196,151,62,.4);
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: var(--ev-shadow);
  margin-bottom: 1.5rem;
}

/* ── BOTTOM MODULES ──────────────────────────────────────────── */
.ev-bottom-modules {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  background: linear-gradient(180deg, #EDD89A, #F5E6C8);
  border-top: 1px solid rgba(196,151,62,.3);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.ev-footer {
  background: linear-gradient(180deg, #1A1208 0%, #0D0A06 100%);
  color: var(--ev-parchemin);
  padding-top: 0.5rem;
}
.ev-footer-top-ornament {
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 1rem; gap: 10px;
}
.ev-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
@media (min-width: 640px)  { .ev-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ev-footer-grid { grid-template-columns: repeat(3, 1fr); } }

.ev-footer-col {}
.ev-footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.ev-footer-brand-logo {
  width: auto; height: 40px; max-width: 80px; object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.8);
}
.ev-footer-brand-name {
  font-family: var(--ev-font-titre);
  font-size: 1.1rem; color: var(--ev-parchemin);
}
.ev-footer-desc { color: rgba(245,230,200,.7); font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.75rem; }
.ev-footer-devise { color: var(--ev-or); font-style: italic; font-size: 0.85rem; }
.ev-footer-heading {
  font-family: var(--ev-font-nav);
  font-size: 0.82rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ev-or);
  margin-bottom: 1rem; border-bottom: 1px solid rgba(196,151,62,.3);
  padding-bottom: 0.5rem;
}
.ev-footer-links { list-style: none; }
.ev-footer-links li { margin-bottom: 0.35rem; }
.ev-footer-links a { color: rgba(245,230,200,.75); font-size: 0.85rem; transition: color 0.2s; }
.ev-footer-links a:hover { color: var(--ev-or); text-decoration: none; }
.ev-footer-contact p { color: rgba(245,230,200,.75); font-size: 0.87rem; margin-bottom: 0.5rem; }
.ev-footer-contact a { color: var(--ev-or); }
.ev-footer-geo { margin-top: 1rem; }
.ev-footer-coords { color: var(--ev-or); font-family: var(--ev-font-nav); font-size: 0.75rem; letter-spacing: 0.15em; }
.ev-footer-bottom {
  border-top: 1px solid rgba(196,151,62,.2);
  padding: 1rem 0;
  text-align: center;
}
.ev-footer-bottom p { color: rgba(245,230,200,.5); font-size: 0.78rem; margin-bottom: 0.25rem; }
.ev-footer-credit { color: var(--ev-or) !important; opacity: .7; }

/* ── UTILITAIRES ─────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── POSITIONS SUPPLÉMENTAIRES ──────────────────────────────── */

/* Banner — pleine largeur top */
.ev-pos-banner { width: 100%; background: var(--ev-encre); }

/* Above-nav / Below-nav */
.ev-pos-above-nav,
.ev-pos-below-nav {
  padding: 0.5rem 0;
  background: rgba(26,18,8,.9);
  border-top: 1px solid rgba(196,151,62,.15);
}

/* Search dans le header */
.ev-pos-search {
  padding: 0.4rem 0;
  display: flex;
  justify-content: flex-end;
}

/* Positions accueil */
.ev-pos-accueil-avant,
.ev-pos-accueil-apres {
  padding: 1.5rem 0;
}
.ev-pos-accueil-hameaux-avant,
.ev-pos-accueil-hameaux-apres {
  padding: 1rem 0;
  background: var(--ev-parchemin);
}

/* Breadcrumb */
.ev-pos-breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--ev-text-muted);
  border-bottom: 1px solid rgba(196,151,62,.2);
  margin-bottom: 1rem;
}

/* Top-full / Bottom-full */
.ev-pos-top-full,
.ev-pos-bottom-full {
  width: 100%;
  background: linear-gradient(135deg, #EDD89A, #F5E6C8);
  border-top: 1px solid rgba(196,151,62,.3);
  border-bottom: 1px solid rgba(196,151,62,.3);
}

/* Sidebar left */
.ev-with-sidebar-left { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }
.ev-with-both-sidebars { display: grid; grid-template-columns: 260px 1fr 260px; gap: 2rem; }
@media (max-width: 900px) {
  .ev-with-sidebar-left,
  .ev-with-both-sidebars { grid-template-columns: 1fr; }
}

/* Grid 4 colonnes */
.ev-grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .ev-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ev-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Prefooter */
.ev-pos-prefooter {
  background: linear-gradient(180deg, #2C2416, #1A1208);
  border-top: 2px solid var(--ev-or);
  padding: 2rem 0;
}

/* Footer-top */
.ev-pos-footer-top {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(196,151,62,.2);
  margin-bottom: 1rem;
}

/* Footer-d : 4ème colonne → footer devient 4 colonnes sur grand écran */
@media (min-width: 1100px) {
  .ev-footer-grid:has(.ev-footer-col:nth-child(4)) {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer-bottom */
.ev-pos-footer-bottom {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(196,151,62,.1);
  text-align: center;
}

/* Popup */
.ev-pos-popup {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 400px;
  background: var(--ev-parchemin);
  border: 2px solid var(--ev-or);
  border-radius: 4px;
  box-shadow: var(--ev-shadow-lg);
  padding: 1rem;
}

/* Sticky bottom */
.ev-pos-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: linear-gradient(180deg, #2C2416, #1A1208);
  border-top: 2px solid var(--ev-or);
  padding: 0.5rem 1rem;
  text-align: center;
}
/* Espace pour ne pas cacher le contenu avec sticky-bottom */
body:has(.ev-pos-sticky-bottom) { padding-bottom: 60px; }
