/* ============================================================
   Mercerie Rubanbelle — Feuille de styles principale
   Palette : rose poudré · crème · bordeaux · vieux rose
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --rose:       #c9847a;
  --rose-light: #f5e8e5;
  --rose-dark:  #a8574e;
  --cream:      #fdf8f3;
  --ivory:      #f4ede3;
  --bordeaux:   #7a2f35;
  --sage:       #8a9e7e;
  --text:       #3a3330;
  --text-light: #7a6f6b;
  --white:      #ffffff;
  --border:     #e8d8d0;
  --shadow:     rgba(122, 47, 53, 0.10);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.3s ease;
  --max-width:  1200px;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Lato', system-ui, sans-serif;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--rose-dark); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 3px; }
button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-title); font-weight: 700; line-height: 1.25; color: var(--bordeaux); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Accessibilité skip-link -------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--bordeaux);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* --- Layout helpers --------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--ivory); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rose);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

/* --- Boutons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--bordeaux);
  color: var(--white);
  border-color: var(--bordeaux);
}
.btn-primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.btn-outline:hover { background: var(--bordeaux); color: var(--white); text-decoration: none; }
.btn-rose {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: var(--white); text-decoration: none; }
.btn-sm { padding: .5rem 1.2rem; font-size: .85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* --- Badge ------------------------------------------------ */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-fermeture  { background: #fde8e8; color: #c0392b; }
.badge-horaires   { background: #e8f0fe; color: #2c5282; }
.badge-soldes     { background: #fef3e2; color: #c05621; }
.badge-evenement  { background: #e8f5e9; color: #276749; }
.badge-autre      { background: var(--rose-light); color: var(--bordeaux); }

/* --- Header / Navigation ---------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__img {
  height: 56px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}
@media (max-width: 600px) {
  .site-logo__img { height: 44px; max-width: 150px; }
}
/* Nav */
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  padding: .5rem .9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--rose-light);
  color: var(--bordeaux);
}
.nav-cta {
  background: var(--bordeaux) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: .5rem 1.2rem !important;
}
.nav-cta:hover { background: var(--rose-dark) !important; }
/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--bordeaux);
  font-size: 1.6rem;
}
/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
    gap: .1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 1rem; padding: .7rem 1rem; }
}

/* --- Hero -------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--ivory) 50%, #ede0d8 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,132,122,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(122,47,53,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}
.hero-badge {
  display: inline-block;
  background: var(--bordeaux);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero-title { margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow);
  aspect-ratio: 4/3;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-height: 280px; }
  .hero { padding: 3rem 0; }
}

/* --- Bandeau horaires ------------------------------------- */
.hours-banner {
  background: var(--bordeaux);
  color: var(--white);
  padding: 1.2rem 0;
  overflow: hidden;
}
.hours-scroll {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.hours-scroll:hover { animation-play-state: paused; }
.hours-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}
.hours-item strong { font-weight: 700; }
.hours-sep { opacity: .4; font-size: 1.2rem; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Cards événements ------------------------------------- */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.event-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.event-card__image img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.event-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.event-card__date {
  font-size: .82rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.event-card__title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--bordeaux);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.event-card__excerpt { font-size: .9rem; color: var(--text-light); flex: 1; }
.event-card__footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
/* Calendrier compact */
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bordeaux);
  color: var(--white);
  border-radius: 10px;
  padding: .4rem .7rem;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}
.event-date-badge__day   { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-badge__month { font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; }

/* --- Cards actualités ------------------------------------- */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.news-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: .82rem; color: var(--text-light); margin-bottom: .6rem; }
.news-card__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--bordeaux);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.news-card__excerpt { font-size: .92rem; color: var(--text-light); flex: 1; margin-bottom: 1.2rem; }
.news-card a.read-more {
  font-weight: 700;
  font-size: .88rem;
  color: var(--bordeaux);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.news-card a.read-more:hover { color: var(--rose-dark); }

/* --- Section À propos ------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 50px var(--shadow);
  aspect-ratio: 4/3;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-features { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.8rem 0; }
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--rose-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature-text h4 { color: var(--bordeaux); margin-bottom: .2rem; font-size: 1rem; }
.feature-text p  { font-size: .9rem; color: var(--text-light); }
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { max-height: 260px; }
}

/* --- Galerie ----------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  background: var(--rose-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(122, 47, 53, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  transition: background .3s;
}
.gallery-item:hover .gallery-item__overlay { background: rgba(122, 47, 53, 0.5); }
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9990;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: .25rem .5rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: .5rem .8rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }
.lightbox-caption {
  color: var(--white);
  text-align: center;
  margin-top: .75rem;
  font-size: .9rem;
  opacity: .8;
}
@media (max-width: 600px) {
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* --- Partenaires ------------------------------------------ */
.partners-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  max-width: 280px;
  flex: 1;
  min-width: 220px;
}
.partner-card:hover { box-shadow: 0 8px 30px var(--shadow); transform: translateY(-3px); }
.partner-card img { max-height: 70px; width: auto; margin: 0 auto 1rem; object-fit: contain; }
.partner-card h3 { font-size: 1rem; color: var(--bordeaux); margin-bottom: .5rem; }
.partner-card p  { font-size: .88rem; color: var(--text-light); }
.partner-card a  { font-size: .85rem; font-weight: 600; margin-top: .5rem; display: inline-block; }

/* --- Bloc contact / infos --------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--bordeaux);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-item__body h4 { color: var(--bordeaux); font-size: 1rem; margin-bottom: .2rem; }
.contact-item__body p, .contact-item__body a { font-size: .95rem; color: var(--text-light); }
/* Horaires */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr:nth-child(even) td { background: var(--ivory); }
.hours-table td {
  padding: .55rem .75rem;
  font-size: .92rem;
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child { font-weight: 700; color: var(--bordeaux); width: 110px; }
.hours-today { background: var(--rose-light) !important; }
.hours-today td:first-child { color: var(--rose-dark) !important; }
/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 320px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Popup ------------------------------------------------ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58, 51, 48, .65);
  z-index: 9980;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.popup-overlay.is-open { display: flex; }
.popup-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: popupIn .4s ease;
  position: relative;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-image { aspect-ratio: 16/7; overflow: hidden; }
.popup-image img { width: 100%; height: 100%; object-fit: cover; }
.popup-body { padding: 2rem; }
.popup-body h2 { color: var(--bordeaux); margin-bottom: .75rem; font-size: 1.5rem; }
.popup-body p  { color: var(--text-light); font-size: .95rem; }
.popup-footer { padding: 0 2rem 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.popup-close-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--bordeaux);
  z-index: 2;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.popup-close-btn:hover { background: var(--rose-light); }

/* --- Bannière cookies -------------------------------------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 3px solid var(--bordeaux);
  box-shadow: 0 -4px 30px rgba(0,0,0,.12);
  z-index: 9970;
  padding: 1.25rem 1.5rem;
}
#cookie-banner.is-visible { display: block; }
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text p { font-size: .88rem; color: var(--text-light); margin: 0; }
.cookie-text a { color: var(--bordeaux); font-weight: 600; }
.cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
/* Panneau détail cookies */
#cookie-detail {
  display: none;
  background: var(--ivory);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}
#cookie-detail.is-open { display: block; }
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.cookie-option:last-child { border-bottom: none; }
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background .2s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--bordeaux); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: .5; cursor: not-allowed; }

/* --- Footer ----------------------------------------------- */
#site-footer {
  background: #2d2220;
  color: #c8b8b3;
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: .88rem; margin-top: .75rem; line-height: 1.7; }
.footer-logo-name { font-family: var(--font-title); font-size: 1.4rem; color: var(--white); }
.footer-logo-tag  { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rose); }
.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: #c8b8b3; font-size: .88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--rose); text-decoration: none; }
.footer-col address { font-style: normal; font-size: .88rem; line-height: 1.8; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  transition: background var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--rose); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: #c8b8b3; }
.footer-bottom a:hover { color: var(--rose); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Pages internes : hero slim ---------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--ivory) 100%);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p  { color: var(--text-light); font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: .75rem;
}
.breadcrumb a { color: var(--bordeaux); }
.breadcrumb span::before { content: '›'; margin-right: .5rem; }

/* --- Pagination ------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.pagination a:hover { background: var(--rose-light); border-color: var(--rose); color: var(--bordeaux); }
.pagination .current { background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux); }

/* --- Article page ----------------------------------------- */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h2, .article-content h3 { margin: 2rem 0 .75rem; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: revert; }
.article-content a { color: var(--bordeaux); text-decoration: underline; }
.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-light);
}

/* --- Pages légales ---------------------------------------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.legal-content h3 { margin: 1.5rem 0 .5rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.legal-content table th,
.legal-content table td { border: 1px solid var(--border); padding: .6rem .85rem; text-align: left; }
.legal-content table th { background: var(--rose-light); color: var(--bordeaux); font-weight: 700; }

/* --- Accessibilité ---------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.focus-ring:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

/* --- Utilitaires ------------------------------------------ */
.card-placeholder {
  background: var(--ivory);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--text-light);
}
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.alert-info    { background: #e8f0fe; color: #1a5276; border-left: 4px solid #3498db; }
.alert-success { background: #e8f5e9; color: #155724; border-left: 4px solid #27ae60; }
.alert-warning { background: #fef3e2; color: #856404; border-left: 4px solid #f39c12; }
.alert-danger  { background: #fde8e8; color: #7b1a1a; border-left: 4px solid #e74c3c; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.tag-list { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --- Fil décoratif (SVG pattern) -------------------------- */
.thread-divider {
  text-align: center;
  color: var(--rose);
  font-size: 1.5rem;
  letter-spacing: .5rem;
  margin: 1rem 0;
  opacity: .5;
}

/* --- Responsive global ------------------------------------ */
@media (max-width: 480px) {
  .btn-lg { padding: .8rem 1.6rem; font-size: .95rem; }
  .section { padding: 3rem 0; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-actions .btn { flex: 1; text-align: center; justify-content: center; }
}

/* --- Print ------------------------------------------------ */
@media print {
  #site-header, #site-footer, #cookie-banner, .popup-overlay, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
}

/* ============================================================
   ÉVÉNEMENTS — barre outils + toggle vue
   ============================================================ */
.ev-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ev-view-toggle {
  display: flex;
  border: 1px solid var(--rose-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.ev-toggle-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  font-size: .85rem;
  color: var(--text-light);
  text-decoration: none;
  transition: background .2s, color .2s;
  border: none;
  white-space: nowrap;
}

.ev-toggle-btn:hover {
  background: var(--rose-light);
  color: var(--bordeaux);
}

.ev-toggle-btn.active {
  background: var(--bordeaux);
  color: #fff;
}

.ev-toggle-btn svg {
  flex-shrink: 0;
}

.ev-icon-placeholder {
  min-height: 140px;
}

/* ============================================================
   CALENDRIER
   ============================================================ */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.cal-legend__item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-light);
}

.cal-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-month-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--bordeaux);
  margin: 0;
  text-align: center;
  flex: 1;
}

.cal-wrap {
  border: 1px solid var(--rose-light);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* En-têtes jours */
.cal-cell--header {
  background: var(--bordeaux);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  padding: .6rem .2rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cal-cell--header.cal-cell--weekend {
  background: #5a2228;
}

/* Cellules jours */
.cal-cell--day {
  min-height: 90px;
  padding: .4rem .4rem .5rem;
  border-right: 1px solid var(--rose-light);
  border-bottom: 1px solid var(--rose-light);
  vertical-align: top;
  cursor: default;
  position: relative;
  transition: background .15s;
}

.cal-cell--day:hover {
  background: var(--rose-light);
}

.cal-cell--has-events {
  cursor: pointer;
}

.cal-cell--weekend {
  background: #fdf5f3;
}

.cal-cell--today .cal-day-num {
  background: var(--bordeaux);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cal-cell--empty {
  border-right: 1px solid var(--rose-light);
  border-bottom: 1px solid var(--rose-light);
  background: #faf7f5;
}

.cal-day-num {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted, #888);
  display: block;
  margin-bottom: .3rem;
  line-height: 24px;
}

/* Chips événements dans les cases */
.cal-chip {
  display: block;
  width: 100%;
  font-size: .7rem;
  line-height: 1.3;
  padding: .15rem .35rem;
  margin-bottom: .2rem;
  border: none;
  border-radius: 3px;
  background: color-mix(in srgb, var(--chip-color) 15%, white);
  color: var(--chip-color);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .15s;
  border-left: 3px solid var(--chip-color);
}

.cal-chip:hover {
  opacity: .8;
}

.cal-more {
  font-size: .65rem;
  color: var(--text-light);
  cursor: pointer;
  padding: .1rem .35rem;
  display: block;
}

.cal-more:hover { text-decoration: underline; }

/* Panneau détail */
.cal-detail {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--rose-light);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

.cal-detail[hidden] { display: none; }

.cal-detail__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: 1px solid var(--rose-light);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}

.cal-detail__close:hover {
  background: var(--rose-light);
  color: var(--bordeaux);
}

.cal-detail__badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .6rem;
}

.cal-detail__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--bordeaux);
  margin: 0 0 .4rem;
}

.cal-detail__date {
  font-size: .85rem;
  color: var(--text-light);
  margin: 0 0 .75rem;
}

.cal-detail__desc {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

/* Responsive calendrier */
@media (max-width: 700px) {
  .ev-toolbar { flex-direction: column; align-items: flex-start; }
  .cal-cell--day { min-height: 60px; padding: .25rem; }
  .cal-chip { font-size: .6rem; }
  .cal-day-num { font-size: .7rem; }
  .cal-month-title { font-size: 1.1rem; }
  .ev-toggle-btn { padding: .4rem .7rem; font-size: .8rem; }
}

@media (max-width: 480px) {
  .cal-cell--day { min-height: 48px; }
  .cal-chip { display: none; }
  .cal-cell--has-events::after {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bordeaux);
    margin: 0 auto;
  }
}

/* ================================================================
   BOUTON RETOUR EN HAUT
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(122,47,53,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--rose); }

/* ================================================================
   PAGE CONTACT
   ================================================================ */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-page-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(122,47,53,.07);
  border-left: 4px solid var(--rose);
}
.contact-card h3 { margin: .25rem 0 .5rem; font-size: .95rem; color: var(--bordeaux); }
.contact-card address { font-style: normal; line-height: 1.7; }
.contact-icon { font-size: 1.4rem; margin-bottom: .25rem; }
.map-link { color: var(--bordeaux); font-weight: 600; }

.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table tr { border-bottom: 1px solid var(--rose-light); }
.hours-table th { text-align: left; padding: .35rem 0; font-weight: 600; width: 40%; }
.hours-table td { padding: .35rem 0; color: var(--text-light); }
.hours-table tr.hours-today th,
.hours-table tr.hours-today td { color: var(--bordeaux); font-weight: 700; }

.social-btn {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 20px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  margin: .3rem .3rem 0 0;
  transition: opacity .2s;
}
.social-btn:hover { opacity: .8; }
.social-btn.facebook  { background: #1877f2; color: white; }
.social-btn.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }

.contact-form-wrap { background: white; border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 20px rgba(122,47,53,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; color: var(--bordeaux); }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: .65rem 1rem; border: 1.5px solid #e0d5ce; border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: #fdf8f3; transition: border-color .2s; box-sizing: border-box; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--bordeaux); background: white; }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--text-light); margin-bottom: 1.25rem; }
.form-errors { background: #fdf0f0; border: 1px solid #e8b4b4; border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; color: #7a2f35; }
.form-errors ul { margin: 0; padding-left: 1.25rem; }

.contact-success { text-align: center; padding: 2rem; }
.contact-success__icon { font-size: 3rem; margin-bottom: 1rem; }

.section--map { padding: 0; }
.map-container { width: 100%; line-height: 0; }

/* ================================================================
   PAGE PARTENAIRES / MARQUES
   ================================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.partner-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(122,47,53,.08);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(122,47,53,.15); }
.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--ivory);
  min-height: 120px;
}
.partner-card__logo--placeholder { font-size: 2.5rem; }
.partner-logo { max-height: 80px; max-width: 180px; object-fit: contain; }
.partner-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.partner-card__name { font-size: 1.1rem; color: var(--bordeaux); margin-bottom: .5rem; }
.partner-card__desc { font-size: .9rem; color: var(--text-light); flex: 1; margin-bottom: 1rem; }

/* ================================================================
   PAGE RECHERCHE
   ================================================================ */
.search-form { margin-bottom: 2.5rem; }
.search-input-wrap { display: flex; gap: .75rem; }
.search-input {
  flex: 1;
  padding: .75rem 1.25rem;
  border: 2px solid var(--rose-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color .2s;
}
.search-input:focus { outline: none; border-color: var(--bordeaux); }
.search-btn { white-space: nowrap; }
@media (max-width: 480px) { .search-input-wrap { flex-direction: column; } }

.search-count { color: var(--text-light); margin-bottom: 1.5rem; }
.search-notice, .search-empty { color: var(--text-light); font-style: italic; }
.search-empty a { color: var(--bordeaux); }

.search-results { display: flex; flex-direction: column; gap: 1.25rem; }
.search-result-item {
  display: flex;
  gap: 1.25rem;
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(122,47,53,.07);
  transition: box-shadow .2s;
}
.search-result-item:hover { box-shadow: 0 4px 20px rgba(122,47,53,.13); }
.search-result__thumb { flex-shrink: 0; width: 100px; height: 70px; overflow: hidden; border-radius: 6px; }
.search-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.search-result__type {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--bordeaux);
  background: var(--rose-light);
  padding: .15rem .6rem;
  border-radius: 20px;
  margin-bottom: .4rem;
}
.search-result__title { margin: .3rem 0 .5rem; font-size: 1.1rem; }
.search-result__title a { color: var(--bordeaux); text-decoration: none; }
.search-result__title a:hover { text-decoration: underline; }
.search-result__summary { font-size: .9rem; color: var(--text-light); }
.search-result__date { font-size: .82rem; margin-top: .4rem; }

/* Bouton recherche dans la nav */
.nav-search-btn { font-size: 1.1rem; padding: .25rem .5rem !important; }

/* Crédit développeur footer */
.footer-credit {
  text-align: center;
  padding: .6rem 0 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.footer-credit__link {
  display: inline-flex;
  align-items: center;
  opacity: .75;
  transition: opacity .2s;
}
.footer-credit__link:hover { opacity: 1; }
.footer-credit__logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ================================================================
   RESPONSIVE — Optimisations globales
   Breakpoints : 1024 · 768 · 600 · 480 · 360
   ================================================================ */

/* --- Touch targets minimums (44×44px WCAG 2.5.5) ------------- */
.btn, .nav-toggle, .back-to-top, .lightbox-close,
.lightbox-nav, .cal-detail__close, .popup-close-btn,
.cookie-toggle, #cookie-accept-all, #cookie-reject-all {
  min-height: 44px;
  min-width: 44px;
}
.btn { justify-content: center; }

/* Prévenir le zoom iOS sur les inputs (font-size < 16px) ------- */
input, select, textarea {
  font-size: max(16px, 1rem);
}

/* Empêcher le débordement horizontal global -------------------- */
html, body { max-width: 100%; overflow-x: hidden; }
.container  { padding-left: clamp(.75rem, 4vw, 1.5rem); padding-right: clamp(.75rem, 4vw, 1.5rem); }

/* --- 1024px — tablettes paysage ------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-inner { gap: 2rem; }
  .about-grid { gap: 2.5rem; }
}

/* --- 768px — tablettes portrait ------------------------------ */
@media (max-width: 768px) {
  /* Sections */
  .section { padding: 3.5rem 0; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  .hero-image { max-height: 260px; border-radius: var(--radius); }
  .hero-actions { gap: .75rem; }
  .hero-actions .btn { flex: 1; min-width: 140px; }

  /* Page hero slim */
  .page-hero { padding: 2rem 0; }
  .page-hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  /* Cards grilles */
  .grid-2, .grid-3 { gap: 1.25rem; }

  /* Galerie : 2 colonnes sur tablette */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }

  /* Tableau horaires - colonne jour réduite */
  .hours-table td:first-child { width: 80px; }

  /* Contact form wrap */
  .contact-form-wrap { padding: 1.5rem; }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }

  /* Search results */
  .search-result__thumb { width: 80px; height: 56px; }

  /* Lightbox nav — à l'intérieur de l'image */
  .lightbox-prev { left: .25rem; }
  .lightbox-next { right: .25rem; }

  /* Popup */
  .popup-box { max-height: 90vh; overflow-y: auto; }
  .popup-image { aspect-ratio: 16/6; }

  /* Back-to-top : ne chevauche pas le cookie banner */
  .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 44px; height: 44px; font-size: 1.3rem; }

  /* Footer */
  .footer-bottom { font-size: .75rem; }
}

/* --- 600px — grands mobiles ---------------------------------- */
@media (max-width: 600px) {
  /* Typography */
  h1 { font-size: clamp(1.6rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }

  /* Header */
  .header-inner { height: 60px; }
  .site-nav { top: 60px; }

  /* Hero */
  .hero { padding: 2rem 0 1.5rem; }
  .hero-badge { font-size: .72rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Section header */
  .section-header { margin-bottom: 2rem; }
  .section-header p { font-size: .95rem; }

  /* Cards */
  .event-card__body, .news-card__body { padding: 1rem; }

  /* About section */
  .about-features { gap: .85rem; }

  /* Galerie */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }

  /* Article */
  .article-meta { gap: .6rem; font-size: .82rem; }
  .article-content { padding: 0 .1rem; }

  /* Contact page */
  .contact-form-wrap { padding: 1.25rem 1rem; }
  .contact-card { padding: 1rem 1.25rem; }
  .social-btn { font-size: .83rem; padding: .4rem .85rem; }

  /* Search */
  .search-result-item { gap: .75rem; }
  .search-result__thumb { width: 64px; height: 48px; }

  /* Popup */
  .popup-body { padding: 1.25rem; }
  .popup-footer { padding: 0 1.25rem 1.25rem; flex-direction: column; }
  .popup-footer .btn { width: 100%; justify-content: center; }
  .popup-image { aspect-ratio: 16/5; }

  /* Cookie banner */
  .cookie-inner { gap: 1rem; }
  .cookie-text p { font-size: .83rem; }

  /* Footer */
  .footer-grid { gap: 1.5rem; }

  /* Partners : 2 colonnes */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Calendrier toolbar */
  .ev-toolbar { gap: .75rem; }
  .ev-view-toggle { width: 100%; }
  .ev-toggle-btn { flex: 1; justify-content: center; }
}

/* --- 480px — mobiles standard -------------------------------- */
@media (max-width: 480px) {
  /* Container */
  .section { padding: 2.5rem 0; }

  /* Nav burger visible — assurer la nav reste lisible */
  .site-nav a { padding: .8rem 1rem; font-size: 1rem; border-radius: 8px; }
  .site-nav a:active { background: var(--rose-light); }

  /* Badges et meta */
  .badge { font-size: .72rem; }
  .event-card__meta { gap: .5rem; }

  /* Galerie : 2 colonnes sur mobile */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }

  /* Search results : image masquée sur petit mobile */
  .search-result__thumb { display: none; }

  /* Lightbox nav : superposé à l'image */
  .lightbox-inner { max-width: 100vw; }
  .lightbox-inner img { max-width: 100vw; max-height: 75vh; border-radius: 0; }
  .lightbox-prev, .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
  }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
  .lightbox-close { top: .5rem; right: .5rem; font-size: 1.6rem; }

  /* Breadcrumb : wrap autorisé */
  .breadcrumb { flex-wrap: wrap; justify-content: flex-start; row-gap: .2rem; }

  /* Pagination compacte */
  .pagination a, .pagination span { width: 36px; height: 36px; font-size: .82rem; }

  /* Partners : 2 colonnes compactes */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .partner-card__logo { min-height: 80px; padding: 1rem; }
  .partner-logo { max-height: 60px; }

  /* Back-to-top : plus petit */
  .back-to-top { width: 40px; height: 40px; font-size: 1.2rem; bottom: 1rem; right: 1rem; }

  /* Calendrier : cellules encore plus compactes */
  .cal-nav { gap: .5rem; }
  .cal-month-title { font-size: 1rem; }
}

/* --- 360px — très petits mobiles ----------------------------- */
@media (max-width: 360px) {
  .container { padding-left: .75rem; padding-right: .75rem; }

  .header-inner { height: 56px; gap: .75rem; }
  .site-logo__img { height: 38px; max-width: 130px; }
  .site-nav { top: 56px; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .btn { padding: .65rem 1.2rem; font-size: .88rem; }
  .btn-lg { padding: .75rem 1.4rem; }

  /* Hero */
  .hero-image { max-height: 200px; }

  /* Gallery : grille 2 colonnes serrée */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .3rem; }

  /* Partners : 1 seule colonne */
  .partners-grid { grid-template-columns: 1fr; }

  /* Calendrier : chipset désactivé, point uniquement */
  .cal-cell--header { font-size: .66rem; padding: .4rem .1rem; letter-spacing: 0; }
  .cal-cell--day { min-height: 44px; padding: .2rem .15rem; }

  /* Footer credit */
  .footer-credit { flex-direction: column; gap: .25rem; }
}

/* --- Améliorations touch / mobile UX ------------------------- */
@media (hover: none) and (pointer: coarse) {
  /* Désactiver les effets hover coûteux sur tactile */
  .event-card:hover,
  .news-card:hover,
  .partner-card:hover,
  .gallery-item:hover img { transform: none; }
  .gallery-item:hover .gallery-item__overlay { background: transparent; }

  /* Tap highlight élégant */
  .btn:active         { opacity: .82; transform: scale(.98); }
  .event-card:active,
  .news-card:active   { box-shadow: 0 4px 16px var(--shadow); }

  /* Scroll momentum iOS */
  .site-nav, .hours-scroll { -webkit-overflow-scrolling: touch; }

  /* Bannière horaires : pause au toucher */
  .hours-scroll { pointer-events: auto; }

  /* Espacement des liens footer */
  .footer-col ul li { margin-bottom: .75rem; }
  .footer-col ul li a { padding: .2rem 0; display: inline-block; }
}
