/*
Theme Name: Paroisse Saint-Benoît
Theme URI: https://paroisesaintbenoit.ca
Author: Paroisse Saint-Benoît
Description: Thème officiel de la Paroisse Saint-Benoît — Ahuntsic, Montréal
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: paroisse-saint-benoit
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --navy:       #1a2b4a;
  --navy-light: #243656;
  --gold:       #b8963e;
  --gold-light: #d4aa55;
  --cream:      #f8f5f0;
  --white:      #ffffff;
  --gray-light: #f0ede8;
  --gray-mid:   #9a9490;
  --gray-dark:  #4a4540;
  --text:       #2d2926;
  --red-accent: #c0392b;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Outfit', sans-serif;

  --radius: 4px;
  --shadow: 0 2px 16px rgba(26,43,74,0.10);
  --shadow-lg: 0 8px 40px rgba(26,43,74,0.18);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { margin-bottom: 1rem; }

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

.divider.left { margin-left: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

.section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section--gray { background: var(--gray-light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream { background: var(--cream); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }

.text-center { text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(26,43,74,0.08), var(--shadow);
}

.header-top {
  background: var(--navy);
  padding: 0.5rem 0;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-top-info {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

.header-top-info a { color: rgba(255,255,255,0.75); }
.header-top-info a:hover { color: var(--gold-light); }

.header-top-social a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-left: 0.8rem;
  transition: color var(--transition);
}
.header-top-social a:hover { color: var(--gold-light); }

.header-main {
  padding: 1.4rem 0;
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  text-align: left;
}

.site-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.site-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* Navigation */
#primary-navigation {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#primary-menu {
  display: flex;
  align-items: center;
}

#primary-menu > li > a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 1rem 1.1rem;
  transition: all var(--transition);
  position: relative;
}

#primary-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
  color: var(--white);
}

#primary-menu > li > a:hover::after,
#primary-menu > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Dropdown */
#primary-menu li { position: relative; }

#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

#primary-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#primary-menu .sub-menu li a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.7rem 1.3rem;
  border-bottom: 1px solid var(--gray-light);
  transition: all var(--transition);
}

#primary-menu .sub-menu li a:hover {
  background: var(--cream);
  color: var(--gold);
  padding-left: 1.7rem;
}

/* Nav search & donate */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
}

.nav-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  transition: color var(--transition);
}
.nav-search-btn:hover { color: var(--white); }

.nav-donate-btn {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-donate-btn:hover { background: var(--gold-light); color: var(--white); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: clamp(420px, 65vh, 680px);
  overflow: hidden;
  background: var(--navy);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active { opacity: 1; }

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
}

.slide-content .eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.slide-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.slide-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  z-index: 10;
}

.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

/* ============================================================
   HOME: INTRO + HORAIRES (DEUX COLONNES)
   ============================================================ */
.home-intro-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .home-intro-wrap { grid-template-columns: 1fr; }
}

/* Intro block */
.intro-block { padding-right: 1rem; }
.intro-block .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* Horaires sidebar — DEUX COLONNES (Saint-André / Saint-Jude) */
.horaires-sidebar {
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.horaires-header {
  background: var(--gold);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.horaires-header h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.horaires-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.horaire-col {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.horaire-col:last-child { border-right: none; }

.horaire-col-title {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.horaire-col-address {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.horaire-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.horaire-day {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.horaire-time {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}

.horaire-time.closed {
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 0.85rem;
}

.horaires-footer {
  padding: 0.8rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.horaires-footer a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   QUICK ACCESS CARDS
   ============================================================ */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.qa-card {
  background: var(--white);
  border: 1px solid rgba(26,43,74,0.08);
  border-radius: 6px;
  padding: 1.8rem 1.2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.qa-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.qa-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background var(--transition);
}

.qa-card:hover .qa-icon { background: var(--gold); }

.qa-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ============================================================
   ACTUALITÉS / NOUVELLES
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--white);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.7rem;
  width: fit-content;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-dark);
  flex: 1;
  margin-bottom: 1rem;
}

.news-card-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gray-mid);
}

/* Mini news list */
.news-mini-list { display: flex; flex-direction: column; gap: 1rem; }

.news-mini-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.news-mini-item:last-child { border-bottom: none; }

.news-mini-img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
}

.news-mini-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.news-mini-date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--gray-mid);
}

/* ============================================================
   DEUX EGLISES SECTION
   ============================================================ */
.churches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 680px) {
  .churches-grid { grid-template-columns: 1fr; }
}

.church-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
}

.church-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transition: filter 0.4s ease;
}

.church-card:hover .church-card-bg { filter: brightness(0.35); }

.church-card-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: var(--white);
}

.church-card-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.church-card-address {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

/* ============================================================
   BULLETIN PAROISSIAL
   ============================================================ */
.bulletin-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .bulletin-wrap { grid-template-columns: 1fr; }
}

.bulletin-preview {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bulletin-preview-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.bulletin-list { display: flex; flex-direction: column; gap: 0.6rem; }

.bulletin-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: 4px;
  transition: background var(--transition);
  cursor: pointer;
}

.bulletin-item:hover { background: var(--cream); }

.bulletin-item-date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 60px;
}

.bulletin-item-title {
  font-size: 0.88rem;
  color: var(--navy);
}

/* ============================================================
   FAIRE UN DON
   ============================================================ */
.don-block {
  background: linear-gradient(135deg, var(--navy) 60%, #2a3f6e);
  color: var(--white);
  padding: 4rem 2rem;
  border-radius: 8px;
  text-align: center;
}

.don-block h2 { color: var(--white); margin-bottom: 0.5rem; }
.don-block p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; }

.don-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.don-amount-btn {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}

.don-amount-btn:hover,
.don-amount-btn.active {
  background: var(--gold);
  border-color: var(--gold);
}

/* ============================================================
   PETITES ANNONCES
   ============================================================ */
.annonces-grid { display: flex; flex-direction: column; gap: 1rem; }

.annonce-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1.2rem 1.5rem;
  transition: box-shadow var(--transition);
}

.annonce-card:hover { box-shadow: var(--shadow); }

.annonce-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.annonce-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--gray-mid);
  margin-bottom: 0.4rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--navy);
}

.contact-info-content h4 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-form-wrap { background: var(--white); padding: 2rem; border-radius: 6px; box-shadow: var(--shadow); }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26,43,74,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   LOCATION PAGE
   ============================================================ */
.location-intro { max-width: 680px; margin: 0 auto 3rem; text-align: center; }

.salles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.salle-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.salle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.salle-card-img { width: 100%; height: 200px; object-fit: cover; }

.salle-card-body { padding: 1.5rem; }

.salle-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.salle-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.salle-feature-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--cream);
  border-radius: 2px;
  color: var(--navy);
}

/* ============================================================
   PAGE INTÉRIEURE HEADER
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6e 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,150,62,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero .breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumb a:hover { color: var(--gold-light); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #111a2d;
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 4rem 0 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-main { grid-template-columns: 1fr; }
}

.footer-brand .site-name { color: var(--white); font-size: 1.4rem; margin-bottom: 0.3rem; }
.footer-brand .site-tagline { color: var(--gold); }

.footer-description {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin: 1rem 0;
  max-width: 280px;
  line-height: 1.6;
}

.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover { background: var(--gold); color: var(--white); }

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .header-top { display: none; }
  .menu-toggle { display: flex; }

  #primary-navigation { display: none; }
  #primary-navigation.open { display: block; }

  #primary-menu { flex-direction: column; }
  #primary-menu > li > a { padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
  #primary-menu > li > a::after { display: none; }
  #primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: rgba(255,255,255,0.04); }
  #primary-menu .sub-menu li a { color: rgba(255,255,255,0.7); padding-left: 2.5rem; }

  .nav-actions { display: none; }
  .churches-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .horaires-body { grid-template-columns: 1fr; }
  .horaire-col:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .news-mini-item { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }

/* Ajustement format paysage pour les photos d'accueil */
.grid-2 .church-photo-card img {
    width: 100%;
    height: 300px; /* Réduit pour casser l'effet vertical et massif */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Réduction des espaces blancs sur l'accueil */

/* 1. On réduit l'espace sous le header */
#site-header {
    margin-bottom: 20px !important;
}

/* 2. On écrase les marges de la section des photos */
.site-main .section:first-of-type {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

/* 3. On réduit l'espace au-dessus du bloc Intro/Horaires */
.section--cream {
    padding-top: 30px !important;
}

/* ── Ajustement de l'espace global du bandeau de navigation ──────────────── */

.nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Aligne tout le monde à la suite, de gauche à droite */
    width: 100%;
}

#primary-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 35px !important; /* Conserve l'espace identique entre les pages */
}

/* Crée un espace fixe et propre entre le dernier onglet et la loupe */
.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;       /* Espace entre la loupe et le bouton jaune */
    margin-left: 50px !important; /* Repousse la loupe à exactement 50px après "Bulletin paroissial" */
}

/* ── Section des Nouvelles - Layout Hybride Compact ──────────────── */

.news-hybrid-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* La colonne de gauche est plus large */
    gap: 40px;
    align-items: start;
}

/* Carte Vedette (Gauche) */
.featured-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.featured-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.featured-title {
    font-size: 1.4rem;
    margin: 5px 0 12px 0;
}

.featured-title a, .sidebar-news-title a {
    color: #1a2b4a;
    text-decoration: none;
    font-weight: 700;
}

.featured-title a:hover, .sidebar-news-title a:hover {
    color: #b8963e;
}

.featured-excerpt {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Liste latérale (Droite) */
.news-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-news-item {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border-left: 3px solid #b8963e; /* Petit rappel or élégant */
}

.sidebar-news-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 3px 0 8px 0;
}

/* Liens et dates communs */
.news-date {
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-link-gold {
    color: #b8963e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link-gold-mini {
    color: #b8963e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .news-hybrid-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ── Réduction de la hauteur du Header et Fix une seule ligne ──────────────── */

/* 1. Compression du bandeau blanc (Logo et Titre du site) */
.header-main {
    padding-top: 15px !important;    
    padding-bottom: 15px !important; 
}

.site-branding {
    margin: 0 !important;
}

.site-name {
    margin-bottom: 2px !important;   
}

/* ── Fix débordement du menu à 100% de zoom ──────────────── */
@media (min-width: 992px) {
    #primary-menu {
        gap: 15px !important; /* On resserre l'espace entre les onglets (de 25px à 15px) */
    }

    #primary-menu li a {
        font-size: 0.85rem !important; /* On diminue un tout petit peu la taille des lettres (ex: de 14px à 13.5px) */
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .nav-donate-btn {
        padding: 8px 12px !important; /* On rend le bouton faire un don un poil plus compact */
        font-size: 0.85rem !important;
    }
}
/* ── Menu Déroulant Élégant (Dropdown) ──────────────── */

/* S'assure que le parent sert de repère au sous-menu */
#primary-menu li.menu-item-has-children {
    position: relative;
}

/* Style de la boîte cachée par défaut */
#primary-menu .sub-menu {
    position: absolute;
    top: 100%; /* Se place pile sous la barre bleue */
    left: -10px;
    background-color: #0f1e36; /* Utilise le bleu très dark officiel du site */
    min-width: 180px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-top: 2px solid #b8963e; /* Ligne de rappel or sous l'élément parent */
    
    /* Configuration de l'animation */
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

/* Animation au survol de la souris */
#primary-menu li.menu-item-has-children:hover .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Remonte en douceur vers sa position finale */
}

/* Style des liens à l'intérieur du sous-menu */
#primary-menu .sub-menu li {
    width: 100%;
    display: block;
}

#primary-menu .sub-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    text-transform: none !important; /* Pas besoin de majuscules agressives dans le sous-menu */
    text-align: left !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Effet de survol sur les liens du sous-menu */
#primary-menu .sub-menu li a:hover {
    background-color: rgba(184, 150, 62, 0.15) !important; /* Fond or très léger au survol */
    color: #b8963e !important; /* Le texte passe couleur or */
}

/* Désactive la barre de survol classique ::after pour les enfants du sous-menu */
#primary-menu .sub-menu li a::after {
    display: none !important;
}

/* ── Menu Déroulant "Nos églises" unique et vertical ──────────────── */

/* On ajuste la largeur pour que le nom de Saint-Simon tienne parfaitement */
#primary-menu .sub-menu {
    min-width: 250px !important;
}

#primary-menu .sub-menu li a {
    display: block !important;
    padding: 12px 20px !important; /* Espace vertical confortable pour le clic */
    color: #ffffff !important;
    font-size: 0.9rem !important;
    text-transform: none !important; 
    text-align: left !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

#primary-menu .sub-menu li a:hover {
    background-color: rgba(184, 150, 62, 0.15) !important; /* Fond or subtil */
    color: #b8963e !important; /* Texte en or au survol */
}

/* ── Ajustements et Finitions de la page Église ──────────────── */

/* 1. Correction du texte invisible dans le Hero */
.church-hero h1 {
    color: #ffffff !important; /* Force le titre en blanc */
    font-size: 3.2rem !important;
    font-weight: 700 !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important; /* Ombre portée pour détacher le texte du fond */
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Assure le centrage parfait des éléments dans le bandeau photo */
.church-hero > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
}

/* 2. Uniformisation des polices et alignements des blocs du bas */
.info-card h3 {
    font-family: inherit !important; /* Force la police propre globale du thème */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

/* Correction mineure pour l'icône de la croix à gauche */
.info-card h3 i {
    font-size: 1.1rem;
    vertical-align: -1px;
}

/* Ajustement de la liste des messes pour un alignement parfait */
.info-card ul li {
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 6px;
}
.info-card ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Correction couleur titre bandeau Services et Équipe */
.services-hero h1, .team-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Effet de survol sur les cartes de services cliquables */
.services-grid a.service-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    background-color: #ffffff !important;
}