/* ============================================================
   BASILIQUE MARIE-REINE-DES-APÔTRES — DESIGN SYSTEM
   Couleurs: Bleu #1E3A8A | Or #D4AF37 | Terre #92400E
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1E3A8A;
  --blue-dark:   #172e6e;
  --blue-hover:  #2d4a9f;
  --gold:        #D4AF37;
  --gold-hover:  #c29d2f;
  --earth:       #92400E;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --radius:      0.625rem;
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --container:   1200px;
  --transition:  150ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--gray-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

.text-gold   { color: var(--gold); }
.text-blue   { color: var(--blue); }
.text-earth  { color: var(--earth); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--gray-600); }
.text-center { text-align: center; }

/* Boutons — définis dans design-system.css (source de vérité unique) */
/* Alias de compatibilité uniquement */
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-white { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); backdrop-filter: blur(4px); }
.btn-outline-white:hover { background: rgba(255,255,255,.2); }
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--stone); }

/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-xl); }
.card-body { padding: 1.5rem; }
.card-header-blue { background: var(--blue); color: var(--white); padding: 1.5rem; }
.card-header-gold { background: var(--gold); color: var(--blue); padding: 1.5rem; }
.card-header-earth { background: var(--earth); color: var(--white); padding: 1.5rem; }
.card-header-gradient { background: linear-gradient(to right, var(--blue), var(--blue-hover)); color: var(--white); padding: 1.5rem; }

/* ---------- GRIDS ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (min-width: 768px) {
  .grid-md-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-md-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- SECTIONS ---------- */
.section        { padding-block: 4rem; }
.section-sm     { padding-block: 2rem; }
.section-lg     { padding-block: 6rem; }
.section-gray   { background: var(--gray-50); }
.section-blue   { background: var(--blue); color: var(--white); }
.section-gradient {
  background: linear-gradient(to right, var(--blue), var(--blue-hover));
  color: var(--white);
}

.section-title       { color: var(--blue); margin-bottom: 1rem; }
.section-subtitle    { color: var(--gray-600); max-width: 640px; margin-inline: auto; font-size: 1.125rem; }
.section-header      { text-align: center; margin-bottom: 3rem; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 500;
}
.badge-gold  { background: var(--gold); color: var(--blue); }
.badge-blue  { background: var(--blue); color: var(--white); }
.badge-earth { background: var(--earth); color: var(--white); }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: .5rem; font-weight: 500; color: var(--gray-700); }

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,138,.12);
}
.form-control::placeholder { color: var(--gray-500); }

select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
@media (min-width: 768px) { .hero { min-height: 600px; } }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.4), rgba(0,0,0,.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
  max-width: 900px;
}

.hero-title {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-subtitle { color: var(--gold); font-size: 1.2rem; margin-bottom: .5rem; }
.hero-desc { font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-inline: auto; opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Page hero (gradient bleu) */
.page-hero {
  background: linear-gradient(to right, var(--blue), var(--blue-hover));
  color: var(--white);
  padding: 4rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { font-size: 1.125rem; opacity: .9; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: var(--blue);
  color: var(--white);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
/* Fix barre admin WordPress */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
/* Compensation pour le header fixe
   On utilise --adminbar-h (défini dans design-system.css) pour tout centraliser */
body { padding-top: calc(var(--adminbar-h, 0px) + var(--header-h, 80px)); }
/* Pages avec hero custom : pas de padding body, le hero gère l'offset */
body.single-actualite,
body.home {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Éléments qui collent directement sous le header fixe :
   margin-top négatif = annule le padding-top du body */
.hero-main,
.bm-page-banner {
  margin-top: calc(-1 * (var(--adminbar-h, 0px) + var(--header-h, 80px)));
}
/* Leur contenu est décalé vers le bas pour rester visible sous le header */
.hero-main {
  padding-top: calc(var(--adminbar-h, 0px) + var(--header-h, 80px));
}
/* .sa-banner gère son propre offset via padding-top sur .sa-banner-inner
   (body.single-actualite a padding-top: 0, donc pas besoin de margin-top négatif) */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--white);
  transition: opacity var(--transition);
}
.site-logo:hover { opacity: .9; }
.site-logo svg { color: var(--gold); flex-shrink: 0; }

.logo-title  { font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.logo-sub    { font-size: .75rem; color: var(--gold); }
.logo-title-short { font-weight: 600; line-height: 1.2; }

.site-nav {
  border-top: 1px solid var(--blue-hover);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  display: block;
  padding: .75rem 1rem;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
  font-size: .95rem;
}
.site-nav a:hover,
.site-nav a.active { color: var(--gold); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  padding: .5rem;
  color: var(--white);
  border-radius: .5rem;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--blue-hover); }
.nav-toggle svg { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--blue-hover);
  padding-block: 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  display: block;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--blue-hover); color: var(--gold); }
.mobile-nav .btn { margin: 1rem 1rem 0; display: block; text-align: center; }

@media (max-width: 767px) {
  .site-nav     { display: none; }
  .nav-toggle   { display: flex; align-items: center; }
  .header-btn-desktop { display: none !important; }
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* ---------- FOOTER — styles délégués à design-system.css ---------- */
/* Neutralisation des anciennes valeurs sombres */
.site-footer { background: var(--white); color: var(--ink-muted); margin-top: 0; }
.footer-bottom { background: var(--stone); border-top: 1px solid var(--stone-mid); color: var(--ink-muted); }

/* ---------- QUICK ACTIONS (Accueil) ---------- */
/* Styles délégués à design-system.css — on neutralise ici les conflits */
.quick-actions {
  position: relative;
  z-index: 20;
  margin-bottom: 4rem;
}
.quick-card h3    { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.quick-card p     { font-size: .875rem; opacity: .85; }

/* ---------- WELCOME SECTION ---------- */
.welcome-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-box {
  background: rgba(30,58,138,.06);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat-box svg   { color: var(--gold); margin-inline: auto; margin-bottom: .5rem; }
.stat-number    { font-size: 1.75rem; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-label     { font-size: .8rem; color: var(--gray-600); margin-top: .25rem; }

.welcome-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3/4;
}
.welcome-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- EVENT CARDS ---------- */
.event-card { transition: box-shadow var(--transition); }
.event-card:hover { box-shadow: var(--shadow-lg); }
.event-meta { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.event-meta svg { color: var(--gold); flex-shrink: 0; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.cta-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay   { position: absolute; inset: 0; background: rgba(30,58,138,.85); }
.cta-content   { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; padding-inline: 1rem; }
.cta-content h2 { color: var(--white); margin-bottom: 1.25rem; }
.cta-content p  { font-size: 1.125rem; margin-bottom: 2rem; opacity: .9; }

/* ---------- NEWS ---------- */
.news-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  padding: .375rem 1rem;
  border-radius: 9999px;
  font-size: .875rem;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.featured-article { margin-bottom: 3rem; }
.featured-article .featured-image {
  position: relative;
  overflow: hidden;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-badge {
  position: absolute;
  top: 1rem; left: 1rem;
}

.news-article-img  { aspect-ratio: 16/9; overflow: hidden; }
.news-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-article-img:hover img { transform: scale(1.05); }

.article-meta { display: flex; align-items: center; gap: 1rem; font-size: .8125rem; color: var(--gray-600); margin-bottom: .75rem; }
.article-meta svg { color: var(--gold); }

.read-more {
  color: var(--blue);
  font-weight: 500;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color var(--transition);
}
.read-more:hover { color: var(--blue-hover); }
.read-more::after { content: '→'; transition: transform var(--transition); }
.read-more:hover::after { transform: translateX(3px); }

/* ---------- SCHEDULE ---------- */
.info-banner {
  background: rgba(212,175,55,.1);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 3rem;
}
.info-banner-inner { display: flex; gap: .75rem; }
.info-banner svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-banner h3 { font-weight: 600; color: var(--blue); margin-bottom: .375rem; font-size: 1rem; }
.info-banner p  { font-size: .875rem; color: var(--gray-700); }

.mass-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.mass-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.mass-time { font-weight: 700; font-size: 1.125rem; color: var(--blue); }
.mass-type { color: var(--gray-600); font-size: .9rem; }
.mass-items { display: flex; flex-direction: column; gap: .75rem; }

.sunday-card {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(30,58,138,.05), rgba(212,175,55,.05));
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--radius);
}
.sunday-card svg { color: var(--gold); margin-bottom: .5rem; }
.sunday-time { font-weight: 700; font-size: 1.25rem; color: var(--blue); margin-bottom: .25rem; }
.sunday-type { font-size: .875rem; color: var(--gray-600); }

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.activity-item:hover { box-shadow: var(--shadow-md); }
.activity-bar { width: .375rem; background: var(--blue); border-radius: .25rem; flex-shrink: 0; }
.activity-title    { font-weight: 600; color: var(--blue); font-size: .9375rem; margin-bottom: .25rem; }
.activity-schedule { font-size: .875rem; color: var(--gray-600); }

/* ---------- INFO PRATIQUE ---------- */
.info-card { padding: 1.5rem; }
.info-card svg { width: 2rem; height: 2rem; margin-bottom: .75rem; }
.info-card h3 { font-weight: 600; margin-bottom: .375rem; font-size: 1rem; }
.info-card p, .info-card a { font-size: .875rem; color: var(--gray-600); }
.info-card a:hover { text-decoration: underline; }

.map-placeholder {
  height: 24rem;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.map-placeholder svg { color: var(--gold); width: 4rem; height: 4rem; margin-bottom: 1rem; }
.map-placeholder p { color: var(--gray-600); }

.service-icon {
  width: 3rem; height: 3rem;
  background: rgba(30,58,138,.08);
  border-radius: .625rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { color: var(--blue); }

.rule-item { display: flex; gap: .75rem; padding: .5rem 0; }
.rule-check { color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title { color: var(--white); font-weight: 600; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: .5rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  color: var(--white);
  background: rgba(255,255,255,.1);
  border: none;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background var(--transition), color var(--transition);
}
.lightbox-close:hover { background: var(--gold); color: var(--blue); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }

/* ---------- DONATE ---------- */
.donation-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 480px) { .donation-amounts { grid-template-columns: repeat(5, 1fr); } }

.amount-btn {
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: .75rem .5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .9rem;
  transition: all var(--transition);
  background: var(--white);
}
.amount-btn:hover,
.amount-btn.active {
  background: var(--blue);
  color: var(--white);
}

.amount-custom { display: flex; align-items: center; gap: .5rem; }
.amount-custom input { flex: 1; }
.amount-custom span { color: var(--gray-600); white-space: nowrap; }

.donate-type { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.type-btn {
  border: 2px solid var(--blue);
  padding: .75rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all var(--transition);
  background: var(--white);
  color: var(--blue);
}
.type-btn.active, .type-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.faq-item { margin-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 1.5rem; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-item h3 { font-weight: 600; margin-bottom: .5rem; font-size: 1rem; color: var(--gray-900); }
.faq-item p  { font-size: .875rem; color: var(--gray-700); }

/* ---------- NEWSLETTER BANNER ---------- */
.newsletter-banner {
  background: linear-gradient(to right, var(--blue), var(--blue-hover));
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.newsletter-banner h2 { color: var(--white); margin-bottom: 1rem; }
.newsletter-banner p  { opacity: .9; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .75rem; max-width: 420px; margin-inline: auto; }
@media (min-width: 480px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: none;
  color: var(--gray-900);
}
.newsletter-form input:focus { outline: 2px solid var(--gold); }

/* ---------- MISC UTILITIES ---------- */
.flex              { display: flex; }
.flex-col          { flex-direction: column; }
.items-center      { align-items: center; }
.items-start       { align-items: flex-start; }
.justify-center    { justify-content: center; }
.justify-between   { justify-content: space-between; }
.gap-2             { gap: .5rem; }
.gap-3             { gap: .75rem; }
.gap-4             { gap: 1rem; }
.gap-6             { gap: 1.5rem; }
.mb-4              { margin-bottom: 1rem; }
.mb-6              { margin-bottom: 1.5rem; }
.mb-8              { margin-bottom: 2rem; }
.mb-12             { margin-bottom: 3rem; }
.mt-4              { margin-top: 1rem; }
.mt-8              { margin-top: 2rem; }
.mt-12             { margin-top: 3rem; }
.mt-16             { margin-top: 4rem; }
.p-4               { padding: 1rem; }
.p-6               { padding: 1.5rem; }
.p-8               { padding: 2rem; }
.px-4              { padding-inline: 1rem; }
.py-4              { padding-block: 1rem; }
.py-8              { padding-block: 2rem; }
.py-12             { padding-block: 3rem; }
.w-full            { width: 100%; }
.max-w-2xl         { max-width: 672px; }
.max-w-3xl         { max-width: 768px; }
.mx-auto           { margin-inline: auto; }
.rounded           { border-radius: var(--radius); }
.rounded-full      { border-radius: 9999px; }
.overflow-hidden   { overflow: hidden; }
.relative          { position: relative; }
.shadow            { box-shadow: var(--shadow-md); }
.shadow-lg         { box-shadow: var(--shadow-lg); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hidden-mobile  { display: none; }
@media (min-width: 640px) { .hidden-mobile { display: block; } }

/* ---------- WP ALIGNMENT ---------- */
.wp-block-image { margin: 1.5rem 0; }
.entry-content {
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink, #1A1A2E);
}
/* Pages sans Elementor — conteneur centré */
.entry-content:not(.elementor-widget-container .entry-content) {
    max-width: 860px;
    margin-inline: auto;
    padding: 3rem 2rem;
}
/* Pages Elementor — padding de section */
.elementor .elementor-section { padding-inline: 0; }
.elementor-top-section > .elementor-container { padding: 3rem 2rem; }
.entry-content p { margin-bottom: 1.25rem; color: var(--ink-muted, #4A4A6A); }
.entry-content h1 { font-family: var(--font-serif); font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 400; margin: 2rem 0 1rem; color: var(--ink); }
.entry-content h2 { font-family: var(--font-serif); font-size: clamp(1.25rem,3vw,1.75rem); font-weight: 400; margin: 2rem 0 .75rem; color: var(--ink); padding-bottom: .5rem; border-bottom: 2px solid var(--gold, #B8963E); }
.entry-content h3 { font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: var(--ink); }
.entry-content ul, .entry-content ol { margin: 0 0 1.25rem 1.5rem; color: var(--ink-muted, #4A4A6A); }
.entry-content li { margin-bottom: .4rem; }
.entry-content a { color: var(--gold, #B8963E); text-decoration: underline; }
.entry-content a:hover { color: var(--ink); }
.entry-content strong { color: var(--ink); }
.entry-content blockquote { border-left: 3px solid var(--gold,#B8963E); margin: 1.5rem 0; padding: 1rem 1.5rem; background: var(--stone,#F4F1EC); font-style: italic; color: var(--ink-muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border: 1px solid var(--stone-mid,#D8D2C7); text-align: left; }
.entry-content th { background: var(--ink); color: var(--white); font-weight: 600; }
.aligncenter { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   HEADER GLOBAL — blindage toutes pages (anti-Bootstrap)
═══════════════════════════════════════════════════════════ */
#site-header .header-top-bar {
  background: #1A1A2E !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
#site-header .header-nav-bar {
  background: #2C5F8A !important;
  border-bottom: 2px solid #B8963E !important;
  overflow: visible !important;
}
#site-header .header-nav-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  flex-direction: row !important;
}
#site-header .header-nav-list > li > a {
  display: block !important;
  padding: .9375rem 1.125rem !important;
  font-size: .6875rem !important;
  font-weight: 500 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.8) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}
#site-header .header-nav-list > li > a:hover,
#site-header .header-nav-list > li.current > a,
#site-header .header-nav-list > li.current-menu-item > a,
#site-header .header-nav-list > li.current-menu-ancestor > a {
  color: #fff !important;
  background: transparent !important;
}

/* ── Supprimer breadcrumb visaho sur templates custom ── */
.single-actualite .breadcrumb__area,
.single-actualite .bm-page-banner { display: none !important; }
