/* ==========================================================================
   PAROISSE ORTHODOXE SAINT GEORGES D'ANGRÉ NOUVEAU CHU
   Patriarcat Grec d'Alexandrie et de toute l'Afrique
   Feuille de style principale - style.css (Version Finale Parchemin & Or)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- VARIABLES CSS --- */
:root {
  /* Couleurs de la Paroisse */
  --color-white: #ffffff;
  --color-gold: #ffd53d;
  --color-gold-hover: #e6be28;
  --color-gold-dark: #b8860b;
  --color-gold-light: #fef5d1;
  --color-gold-glow: rgba(255, 213, 61, 0.4);
  
  --color-black: #0a0a0a;
  --color-dark-surface: #141414;
  --color-dark-card: #1c1c1c;
  --color-dark-border: #2e281e;
  
  --color-red: #c40000;
  --color-red-hover: #a10000;
  --color-red-subtle: rgba(196, 0, 0, 0.08);
  --color-red-light: #fee2e2;

  /* Teintes Parchemin Chaud */
  --bg-primary: #faf6ed;
  --bg-secondary: #f3ebdb;
  --bg-tertiary: #ebdcc3;
  --bg-parchment-warm: #f5eedf;
  --bg-card: #ffffff;

  --text-primary: #1c1917;
  --text-secondary: #4a453e;
  --text-muted: #78716c;
  --border-color: #dfd3bd;
  
  /* Typographie */
  --font-heading: 'Cinzel', Georgia, serif;
  --font-serif: var(--font-sans);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Ombres & Effets */
  --shadow-sm: 0 2px 8px rgba(40, 30, 15, 0.06);
  --shadow-md: 0 6px 20px rgba(40, 30, 15, 0.1);
  --shadow-lg: 0 12px 36px rgba(40, 30, 15, 0.15);
  --shadow-gold: 0 8px 24px rgba(255, 213, 61, 0.35);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

body.cms-loading .hero-bg img,
body.cms-loading [data-featured="poster"] {
  opacity: 0;
}

#homeFeaturedEvent[hidden] {
  display: none !important;
}

.hero-bg img,
[data-featured="poster"] {
  transition: opacity 0.18s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* --- CONTENEUR --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- TYPOGRAPHIE SACRÉE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffd53d 0%, #ffdf6d 50%, #d4a317 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  color: var(--color-gold) !important;
}

.red-accent-text {
  color: var(--color-red);
}

/* --- ORNEMENTS & SYMBOLES BYZANTINS --- */
.orthodox-cross-icon {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.section-divider .line {
  height: 1px;
  width: 70px;
  background: linear-gradient(to right, transparent, var(--color-gold-dark), transparent);
}

.section-divider .cross {
  color: var(--color-gold-dark);
  font-size: 1.2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-gold-light);
  color: #8f6d00;
  border: 1px solid rgba(255, 213, 61, 0.5);
  margin-bottom: 1rem;
}

.section-header .badge-pill.badge-red {
  background-color: var(--color-red-light);
  color: var(--color-red);
  border-color: rgba(196, 0, 0, 0.25);
}

.section-header p {
  max-width: 680px;
  margin: 0.5rem auto 0;
  color: var(--text-secondary);
}

/* --- EN-TÊTE ÉPURÉ BLANC (SANS BANDE NOIRE) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-patriarchate {
  font-size: 0.68rem;
  color: var(--color-red);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color-gold-dark);
  transition: width 0.3s ease;
}

.nav-item:hover {
  color: var(--color-black);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

.nav-item.active {
  color: var(--color-black);
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 1px solid transparent;
}

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-black);
  box-shadow: 0 4px 14px rgba(255, 213, 61, 0.45);
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 213, 61, 0.6);
}

/* Bouton grisé pour page active Intention de Messe */
.btn-gray, .btn-disabled {
  background-color: #e2e8f0 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none !important;
  opacity: 0.85;
}

.btn-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-black:hover {
  background-color: #222222;
  transform: translateY(-2px);
  color: var(--color-gold);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-black);
  border: 1.5px solid var(--color-gold-dark);
}

.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-red {
  background-color: var(--color-red);
  color: var(--color-white);
}

.btn-red:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
}

/* Bouton Burger Mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: 5px;
  border: 1px solid var(--border-color);
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background-color: var(--color-black);
  transition: var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- BANNIÈRE HERO (ACCUEIL) --- */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.84) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 70% 30%, rgba(255, 213, 61, 0.08), transparent 60%),
              linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 32%, rgba(0, 0, 0, 0.16) 68%, rgba(0, 0, 0, 0) 100%),
              linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 213, 61, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #f5eedf;
  margin-bottom: 2.25rem;
  line-height: 1.6;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 213, 61, 0.18);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hero-highlight-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-white);
}

.hero-highlight-text span {
  font-size: 0.8rem;
  color: #ccc;
}

/* --- BANNIÈRE D'EN-TÊTE DE PAGE INTERNE --- */
.page-hero {
  position: relative;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--color-gold);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 213, 61, 0.15), transparent 70%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #ccc;
}

.breadcrumb a {
  color: var(--color-gold);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --- SECTIONS GÉNÉRALES --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-parchment-warm {
  background-color: var(--bg-parchment-warm);
}

#agenda-events {
  padding-bottom: 3rem;
}

.section-yellow {
  background: linear-gradient(135deg, #ffd53d 0%, #f6c823 100%);
  color: var(--color-black);
  padding: 4.5rem 0;
  border-top: 2px solid #e0b820;
  border-bottom: 2px solid #e0b820;
}

.section-yellow h2, .section-yellow h3 {
  color: var(--color-black);
}

.section-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section-dark h2 {
  color: var(--color-gold);
}

.section-dark h3, .section-dark h4 {
  color: var(--color-white);
}

.section-dark .lead {
  color: #e5e5e5;
}

/* --- FORMAT VERTICAL 3:4 --- */
.poster-3-4 {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-dark), 0 0 20px rgba(255, 213, 61, 0.25);
  margin: 0 auto;
  background-color: #111;
}

.poster-3-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.poster-3-4:hover img {
  transform: scale(1.03);
}

/* --- BADGES DATE ET HEURE --- */
.date-time-callout {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.dt-badge {
  background: #141414;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dt-badge.highlight-red {
  border-color: var(--color-red);
  background: #1a0808;
}

.dt-icon {
  font-size: 1.6rem;
  color: var(--color-gold);
}

.dt-badge.highlight-red .dt-icon {
  color: var(--color-red);
}

.dt-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  display: block;
  font-weight: 700;
}

.dt-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.dt-badge.highlight-red .dt-value {
  color: #ffd53d;
}

/* --- PIED DE PAGE (FOOTER) --- */
.site-footer {
  background-color: var(--color-black);
  color: #ccc;
  padding: 5rem 0 2rem;
  border-top: 3px solid var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-logo img {
  width: 64px;
  height: 64px;
}

.footer-brand .brand-title {
  color: var(--color-white);
}

.footer-brand .brand-subtitle {
  color: var(--color-gold);
}

.footer-desc {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #bbb;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bbb;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item svg,
.footer-contact-item .gold {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--color-gold);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* --- ANIMATIONS AU DÉFILEMENT --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.revealed {
  opacity: 1;
  transform: translateY(0);
}
