@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

/* ============================================================ */
/*  LOADING SCREEN                                              */
/* ============================================================ */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #b59a5d; /* Header gold */
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle diagonal texture overlay */
.loading-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0,0,0,0.04) 0px,
      rgba(0,0,0,0.04) 1px,
      transparent 1px,
      transparent 12px
    );
  pointer-events: none;
}

/* Floating particles container */
.loading-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.loading-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(110vh) scale(0.6); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-15vh) scale(1); opacity: 0; }
}

/* Main content wrapper */
.loading-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Emblem / logo zone */
.loading-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
}

/* Pulsing glow ring behind the logo */
.loading-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 50px rgba(255, 255, 255, 0.15),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  animation: ringPulse 2.5s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.07); opacity: 1;   }
}

/* Second decorative ring */
.loading-glow-ring::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Eagle logo */
.loading-logo {
  position: relative;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
  animation: logoAppear 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

@keyframes logoAppear {
  from {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.8)) drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)) drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  }
}

/* Title group */
.loading-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loading-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin: 0;
  max-width: none;
}

/* Progress bar */
.loading-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  transition: width 0.15s ease;
}


/* CSS Custom Properties for LGA Dark Theme */
:root {
  /* Core Colors */
  --bg-main: #111111; /* Dark background */
  --bg-white: #1a1a1a; /* Dark gray for cards */
  --bg-glass: rgba(17, 17, 17, 0.85);
  
  /* Imperial Gold & Details */
  --gold-primary: #b59a5d;
  --gold-hover: #cca86b;
  --header-gold: #b59a5d; 
  --alert-red: #ff0b0b;
  
  /* Text */
  --text-dark: #f5f5f5; /* Inverted for dark theme */
  --text-muted: #cccccc;
  --text-light: #ffffff;
  
  /* Typography Mix */
  --font-cinzel: 'Cinzel', serif; /* Majestic Titles */
  --font-garamond: 'EB Garamond', serif; /* Elegant copy/subtitles */
  --font-sans: 'Montserrat', sans-serif; /* Clean UI/Body */
  
  /* Effects */
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-text: 2px 2px 4px rgba(0, 0, 0, 0.5);
  --border-radius: 8px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 50%, rgba(181, 154, 93, 0.05), transparent 70%);
  background-attachment: fixed;
}

/* Base Typography */
h1, .hero-title, .brand {
  font-family: var(--font-cinzel);
  font-weight: 700;
  letter-spacing: 0.05em;
}

h2, h3, h4, .section-title {
  font-family: var(--font-garamond);
  font-weight: 600;
  /* Added margin for smooth fixed header overlap */
  scroll-padding-top: 100px;
}


/* Typography Enhancements */
.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Large unified section titles (DerniÃ¨res VidÃ©os, ActualitÃ©s, etc.) */
.section-title-large {
  font-family: var(--font-garamond);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 3rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 65ch;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

/* Contact Page */
.contact-page-section {
  padding-top: 6rem;
  background-image: 
    linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.6)),
    url('assets/images/imagecontact.jpg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: calc(100vh - 70px);
}



/* Navigation - Solid Gold Style */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background-color: var(--header-gold);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-size: 2rem;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.brand-logo {
  height: 65px !important;
  max-height: 65px !important;
  width: auto !important;
  max-width: 70px !important;
  object-fit: contain;
  display: block;
}
.brand i { color: #ffe599; }
.sr-only { display: none; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-light);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 80%;
}

.header-socials {
  display: flex;
  gap: 0.8rem;
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.header-socials a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: scale(1.1);
}

/* Mobile Toggle - Hidden by default */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--gold-primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(181, 154, 93, 0.25);
  border-color: rgba(181, 154, 93, 0.5);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(181, 154, 93, 0.4);
  border-color: rgba(181, 154, 93, 0.8);
}

/* Hero Section Specifics */
.main-hero {
  padding: 10rem 0 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 80vh;
  margin-top: 70px; /* Space for nav */
}

/* Discord Banner */
.discord-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Page Accueil Background Override */
#page-accueil .main-hero {
  background-image: 
    linear-gradient(
      to bottom, 
      rgba(17, 17, 17, 0.4) 0%, 
      rgba(17, 17, 17, 0.8) 70%, 
      var(--bg-main) 100%
    ), 
    url('assets/images/fondaccueil.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 14rem;
  padding-bottom: 10rem;
  margin-top: -70px;
  min-height: 90vh;
}

.main-hero > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-primary);
  letter-spacing: 4px;
  text-shadow: 4px 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-description {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 800px;
  margin-top: 3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.hero-logo {
  max-width: 90%;
  height: auto;
  max-height: 220px; /* Slightly larger to be majestic */
  margin: 0 auto 3rem auto;
  display: block;
  /* Stronger shadow to stand out against complex backgrounds */
  filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.9)) drop-shadow(0px 0px 40px rgba(181, 154, 93, 0.3));
}

/* Solid Cards (Reverting to Dark Theme Translucent) */
.content-card {
  background: rgba(17, 17, 17, 0.8); /* Darker, translucent background */
  border: 1px solid rgba(181, 154, 93, 0.2);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 20px rgba(181, 154, 93, 0.02), 0 10px 30px rgba(0,0,0,0.5);
  padding: 2.5rem;
  margin: 0 auto;
}

/* Specific Card Layouts */
.bg-light {
    background-color: #1a1a1a;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.news-grid .content-card:not(.newsletter-section) {
  padding: 0;
  overflow: hidden;
  transition: transform var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-grid .content-card:not(.newsletter-section):hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(181, 154, 93, 0.8);
  box-shadow: 0 15px 35px rgba(181, 154, 93, 0.15), 0 10px 30px rgba(0,0,0,0.6);
}

.news-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid var(--gold-primary);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  color: var(--alert-red); /* Title like actuals */
  font-family: var(--font-sans);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
  min-height: 3.36rem; /* Force l'espace pour 2 lignes */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  min-height: 5.3rem; /* Force l'espace pour 3 lignes */
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: bold;
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.news-grid .content-card:hover .card-read-more {
  gap: 0.8rem;
}

/* Contact & Support specific forms/cards */
.contact-card {
  max-width: 800px;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(181, 154, 93, 0.3);
  border-top: 3px solid var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 3rem 4rem;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-main-card {
  max-width: 800px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.support-icon.patreon { color: #f96854; }
.support-icon.kofi { color: #13C3FF; }

/* Hidden Pages for SPA feel */
.page {
  display: none;
  animation: fadeIn var(--transition-smooth);
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: var(--header-gold);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 2rem;
  transition: transform var(--transition-fast);
}

.social-links a:hover {
  transform: scale(1.15);
}

/* Footer Brand Icon */
.footer-brand {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}
.footer-logo {
  height: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

/* Footer Navigation Links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.4);
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  max-width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.05); /* Darker input */
  border: 1px solid rgba(181, 154, 93, 0.3);
  border-radius: 4px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255,255,255,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Floating Scroll Arrow */
.hero-scroll-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(181, 154, 93, 0.4);
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.hero-scroll-btn:hover {
  background: var(--gold-primary);
  box-shadow: 0 0 25px rgba(181, 154, 93, 0.8);
  transform: translateX(-50%) scale(1.05);
}

.hero-scroll-btn i {
  animation: floatArrow 2s infinite ease-in-out;
}

.hero-scroll-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes floatArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --- Animations au DÃ©filement (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive & Menu Mobile --- */
@media (max-width: 900px) {
  /* Smaller Section Paddings on Mobile/Tablet */
  .section { padding: 4rem 0; }
  .main-hero { padding-top: 10rem; padding-bottom: 6rem; min-height: 80vh; }
  
  /* Typography Scaling */
  h2 { font-size: 2rem; }
  .section-title { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 2rem; }
  .section-title-large { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 2rem; }
  p { font-size: 1rem; }
  
  /* Afficher le bouton Hamburger */
  .mobile-menu-toggle {
    display: block;
    margin-right: 1rem;
    z-index: 1001; /* Above the overlay */
  }
  
  /* Override Brand image size for very small screens */
  .brand-logo { height: 50px !important; max-width: 55px !important; }
  
  /* Cacher les liens et rÃ©seaux sociaux par dÃ©faut sur mobile */
  .nav-links, .header-socials {
    display: none;
  }
  
  /* Style du menu mobile ouvert (manipulÃ© par JS) : Sleek Fullscreen Overlay */
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(17, 17, 17, 0.95), rgba(181, 154, 93, 0.1));
    z-index: 999;
    padding-top: 100px; /* Space for the header */
    box-shadow: none;
    align-items: center;
    justify-content: flex-start;
    animation: slideDown var(--transition-smooth);
    overflow-y: auto;
  }
  
  .nav-links.mobile-active a {
    font-size: 1.5rem;
    padding: 1.2rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(181, 154, 93, 0.1);
  }
  
  .nav-links.mobile-active a:last-child {
    border-bottom: none;
  }
  
  .header-socials.mobile-active {
    display: flex;
    position: relative;
    top: 2rem; /* Spacing below the links */
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  /* Ajustements divers pour mobile */
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    -webkit-text-stroke: 1px #d28c39;
    letter-spacing: 2px;
  }
  .hero-description {
    font-size: 1rem;
    margin-top: 1.5rem;
  }
  .hero-logo {
    max-height: 160px;
  }
  
  .main-hero {
    background-position: center right;
  }
}

/* Extra Small Screens (Phones specifically) */
@media (max-width: 600px) {
  /* Grids */
  .news-grid {
    grid-template-columns: 1fr; /* Force 1 column on small phones since 300px might be too wide with padding */
    gap: 1.5rem;
  }
  
  /* Cards & Forms */
  .content-card {
    padding: 1.5rem;
  }
  .contact-card {
    padding: 2rem 1.5rem;
  }
  .newsletter-section {
    padding: 3.5rem 1.5rem 2rem 1.5rem; /* More compact padding */
  }
  .newsletter-icon-wrap {
    width: 60px;
    height: 60px;
    top: -30px;
    font-size: 1.5rem;
  }
  
  /* Header adjustments */
  .top-bar-notification {
    font-size: 1rem;
    padding: 0.4rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Footer Re-flow */
  footer {
    padding: 3rem 0 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-links span {
    display: none; /* Hide the dots separating links when stacked */
  }
  .social-links {
    gap: 1.2rem;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- YouTube Carousel --- */
.video-carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}

.youtube-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.youtube-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 2rem; /* Add padding to prevent cut-off shadows */
  margin: 0 auto;
}

/* Use JS for auto-scroll. Rectangle video format (16:9) with rounded corners */
.carousel-item {
  flex: 0 0 85%;
  min-width: 280px;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(181, 154, 93, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
}

.carousel-item .video-thumbnail-link {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-item .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item:hover .video-play-overlay {
  opacity: 1;
}

.video-play-overlay i {
  font-size: 3rem;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.carousel-item:hover {
  transform: scale(1.05); /* zoom un tout petit peu vers l'avant */
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  z-index: 10;
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 45%; /* Show 2 items on tablet */
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 30%; /* Show 3 items on desktop */
  }
}

/* --- Article System Styles --- */

/* Loading state */
.articles-loading {
  text-align: center;
  padding: 3rem;
  color: var(--gold-primary);
  font-family: var(--font-garamond);
  font-size: 1.3rem;
}

.articles-loading i {
  margin-right: 0.5rem;
}

.articles-loading.hidden {
  display: none;
}

/* Article cards - clickable */
.news-grid .content-card {
  cursor: pointer;
}

/* Article card date/meta */
.card-date {
  font-size: 0.85rem;
  color: var(--gold-primary);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Back button */
.article-back-btn {
  background: none;
  border: 1px solid rgba(181, 154, 93, 0.4);
  color: var(--gold-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2.5rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-back-btn:hover {
  background: rgba(181, 154, 93, 0.15);
  border-color: var(--gold-primary);
}

/* Bottom Back button */
.article-back-btn-bottom,
.article-back-btn-bottom:link,
.article-back-btn-bottom:visited,
.article-back-btn-bottom:active {
  background-color: var(--gold-primary);
  border: 1px solid rgba(181, 154, 93, 0.5);
  color: var(--text-light) !important;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  margin: 4rem auto 2rem auto;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(181, 154, 93, 0.25);
  text-decoration: none !important;
}

.article-back-btn-bottom:hover {
  background-color: var(--gold-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(181, 154, 93, 0.4);
  border-color: rgba(181, 154, 93, 0.8);
  color: #fff;
}

/* Full article view */
.article-full {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn var(--transition-smooth);
}

.article-full .article-header {
  margin-bottom: 3rem;
  text-align: center;
}

.article-full .article-title {
  font-family: var(--font-cinzel);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-full .article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(181, 154, 93, 0.2);
}

.article-full .article-meta i {
  color: var(--gold-primary);
  margin-right: 0.3rem;
}

.article-full .article-featured-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(181, 154, 93, 0.2);
}

/* WordPress content styling (the HTML from WP) */
.article-full .article-body {
  font-family: var(--font-garamond);
  font-size: 2.0rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.article-full .article-body p {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.article-full .article-body h2,
.article-full .article-body h3,
.article-full .article-body h4 {
  color: var(--gold-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-full .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

.article-full .article-body figure {
  margin: 2rem 0;
  text-align: center;
}

.article-full .article-body figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.article-full .article-body blockquote {
  border-left: 4px solid var(--gold-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(181, 154, 93, 0.05);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

.article-full .article-body a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-full .article-body a:hover {
  color: var(--gold-hover);
}

.article-full .article-body ul,
.article-full .article-body ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-full .article-body li {
  margin-bottom: 0.5rem;
}

/* WordPress embeds (iframes, videos) */
.article-full .article-body iframe {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

.article-full .article-body .wp-block-embed {
  margin: 2rem 0;
}

/* ============================================ */
/* DECORATIVE ELEMENTS                          */
/* ============================================ */
.section-divider {
  width: 100%;
  max-width: 200px;
  margin: 1.5rem auto 2.5rem auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
  opacity: 0.6;
}

.section-divider::after {
  background: linear-gradient(270deg, transparent, var(--gold-primary));
}

.section-divider-icon {
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  transform: rotate(45deg);
  margin: 0 15px;
  box-shadow: 0 0 10px rgba(181, 154, 93, 0.8);
}

/* Subtle card glow on hover */
.news-grid .content-card:hover {
  box-shadow: 0 0 25px rgba(181, 154, 93, 0.15), 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================ */
/* HOME SOUTENIR SECTION (with background)      */
/* ============================================ */
.home-soutenir-section {
  min-height: 60vh;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.9)),
    url('assets/images/souteniraccueil.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
}

/* ============================================ */
/* SOUTENIR PAGE SECTION (with background)      */
/* ============================================ */
.soutenir-page-section {
  min-height: 100vh;
  padding-top: 8rem;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.9)),
    url('assets/images/imagepagesoutenir.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.tipeee-embed-container {
  margin-top: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 154, 93, 0.2);
  border-radius: var(--border-radius);
}

/* ============================================ */
/* NEWSLETTER SECTION                           */
/* ============================================ */
.newsletter-section {
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(181, 154, 93, 0.3);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--border-radius);
  padding: 4.5rem 2.5rem 3.5rem 2.5rem; /* More padding to ensure content breathes completely under the absolute icon */
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: visible !important; /* Force overflow visible to prevent cutting off the absolute icon */
  animation: fadeIn var(--transition-smooth);
}

/* Envelope icon circle */
.newsletter-icon-wrap {
  width: 70px;
  height: 70px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -35px; /* Exactly half the height to center it on the top border */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.8rem;
  color: #ffffff;
  box-shadow: 0 5px 20px rgba(181, 154, 93, 0.5);
}

.newsletter-title {
  font-family: var(--font-cinzel);
  color: var(--gold-primary);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.newsletter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 600px) {
  .newsletter-fields {
    grid-template-columns: 1fr;
  }
}

/* Bottom row: Turnstile captcha + button */
.newsletter-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .newsletter-bottom-row {
    flex-direction: column;
  }
}

.captcha-section {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Cloudflare Turnstile widget */
.captcha-section .cf-turnstile {
  margin: 0;
}

.newsletter-btn {
  white-space: nowrap;
  padding: 0.8rem 2rem;
}

.newsletter-success {
  text-align: center;
  color: #4ade80;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--border-radius);
}

.newsletter-success i {
  margin-right: 0.5rem;
  font-size: 1.3rem;
}

/* ============================================ */
/* CONTACT INFO                                 */
/* ============================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(181, 154, 93, 0.08);
  border: 1px solid rgba(181, 154, 93, 0.2);
  border-radius: var(--border-radius);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  flex-wrap: wrap; /* Ensures long content doesn't force a strict horizontal row on tiny screens */
}

.contact-info-item i {
  color: var(--gold-primary);
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.contact-info-item a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  word-break: break-all;
}

.contact-info-item a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* ============================================ */
/* CUSTOM CURSOR                                */
/* ============================================ */
*, *::before, *::after {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 1 L4 19 L8.5 14.5 L12.5 21 L15 19.5 L11 13 L17 12 Z' fill='%23ffffff' stroke='%23111111' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 1, auto;
}

a, button, .btn, .social-link-btn, .carousel-item, .news-grid .content-card, .scroll-down-arrow, .mobile-menu-toggle, input[type="submit"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='11' fill='none' stroke='%23111111' stroke-width='0.5' opacity='0.5'/%3E%3Ccircle cx='16' cy='16' r='13' fill='none' stroke='%23111111' stroke-width='0.5' opacity='0.5'/%3E%3Ccircle cx='16' cy='16' r='3.5' fill='%23ffffff' stroke='%23111111' stroke-width='0.6'/%3E%3C/svg%3E") 16 16, pointer !important;
}

a *, button *, .btn *, .social-link-btn *, .carousel-item *, .news-grid .content-card *, .scroll-down-arrow *, .mobile-menu-toggle *, input[type="submit"] * {
  cursor: inherit !important;
}

/* ============================================ */
/* CAROUSEL FADE EDGES                          */
/* ============================================ */
.video-carousel-container::before,
.video-carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.video-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, #1a1a1a, transparent);
}

.video-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, #1a1a1a, transparent);
}

/* ============================================ */
/* SOCIAL MEDIA LINKS SECTION                   */
/* ============================================ */
.social-links-section {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  min-height: 200px;
}

.social-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.social-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.75) 0%,
    rgba(17, 17, 17, 0.5) 50%,
    rgba(17, 17, 17, 0.75) 100%
  );
}

.social-links-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.social-links-title {
  font-family: var(--font-garamond);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gold-primary);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.social-buttons-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: rgba(181, 154, 93, 0.15);
  border: 1px solid rgba(181, 154, 93, 0.4);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-link-btn i {
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.social-link-btn:hover {
  background: rgba(181, 154, 93, 0.35);
  border-color: var(--gold-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(181, 154, 93, 0.3);
}

@media (max-width: 600px) {
  .social-buttons-row {
    gap: 0.8rem;
  }
  .social-link-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .social-link-btn span {
    display: none;
  }
  .social-link-btn i {
    font-size: 1.5rem;
  }
}

/* Espacements et styles pour les pages légales (CGU, Mentions, Confidentialité) */
.legal-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
}
.legal-content ul {
    padding-left: 2rem;
}
.legal-content li {
    margin-bottom: 0.5rem;
}

