:root {
        --ensam-blue: #0055A5;
        --bright-orange: #FF6F00;
        --teal-green: #00B4A6;
        --gold: #FFD700;
        --red: #E63946;
        --purple: #9B5DE5;
        --white: #FFFFFF;
        --gray-100: #f8fafc;
        --gray-600: #4b5563;
        --gray-800: #1f2937;
        --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.2);
        --gradient-blue-orange: linear-gradient(135deg, var(--ensam-blue), var(--bright-orange));
        --gradient-orange-teal: linear-gradient(135deg, var(--bright-orange), var(--teal-green));
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { 
      font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
      direction: rtl;
      background-color: #f9fafb; /* Blanc cassé doux */
    color: #1e293b;
      overflow-x: hidden;
      background: var(--gray-100);
      text-align: initial;
      padding: 0;
      max-width: none;
      color: var(--gray-800);
      
    }


    .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
    .loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #FFFEF7 0%, #F1F5F9 50%, #E2E8F0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1.2s ease-out, visibility 1.2s ease-out;
  perspective: 1000px;
  overflow: hidden;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Animated Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(235, 243, 246, 0.95), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(232, 228, 237, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(72, 222, 236, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(229, 110, 70, 0.2), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(240, 157, 48, 0.868), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.geometric-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: linear-gradient(45deg, rgba(103, 181, 223, 0.979), rgba(237, 124, 58, 0.925));
  border-radius: 50%;
  animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
  width: 30px;
  height: 30px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 40px;
  height: 40px;
  top: 20%;
  right: 15%;
  animation-delay: -2s;
}

.shape-3 {
  width: 50px;
  height: 50px;
  bottom: 20%;
  left: 20%;
  animation-delay: -4s;
}

.shape-4 {
  width: 50px;
  height: 50px;
  bottom: 30%;
  right: 10%;
  animation-delay: -6s;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 5%;
  animation-delay: -8s;
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}
/* Make logo and rings bigger, especially on mobile */
.logo-3d-container {
    height: 260px;
}
.logo-3d-wrapper {
    width: 200px;
    height: 200px;
}
.logo-face {
    width: 200px;
    height: 200px;
}
.club-logo {
    width: 160px;
    height: 160px;
}
.ring-1 { width: 260px; height: 260px; }
.ring-2 { width: 320px; height: 320px; }
.ring-3 { width: 380px; height: 380px; }

@media (max-width: 768px) {
    .logo-3d-container {
        height: 220px;
    }
    .logo-3d-wrapper {
        width: 160px;
        height: 160px;
    }
    .logo-face {
        width: 160px;
        height: 160px;
    }
    .club-logo {
        width: 130px;
        height: 130px;
    }
    .ring-1 { width: 200px; height: 200px; }
    .ring-2 { width: 250px; height: 250px; }
    .ring-3 { width: 300px; height: 300px; }
}

@media (max-width: 480px) {
    .logo-3d-container {
        height: 250px;
    }
    .logo-3d-wrapper {
        width: 200px;
        height: 200px;
    }
    .logo-face {
        width: 200px;
        height: 200px;
    }
    .club-logo {
        width: 200px;
        height: 200px;
    }
    .ring-1 { width: 170px; height: 170px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 230px; height: 230px; }
}
/* Main Loading Container */
.loading-container {
  text-align: center;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  z-index: 10;
  position: relative;
}

/* 3D Logo Container */
.logo-3d-container {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  perspective: 1000px;
}

.logo-3d-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: logo3DRotate 8s linear infinite;
}

.logo-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: logoTilt 4s ease-in-out infinite alternate;
}

.logo-face {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-front {
  background: linear-gradient(135deg, rgba(255, 254, 247, 0.95), rgba(248, 250, 252, 0.9));
  border: 2px solid rgba(70, 173, 229, 0.947);
  box-shadow: 
    0 0 30px rgba(229, 118, 70, 0.92),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateZ(20px);
}

.logo-back {
  background: linear-gradient(135deg, rgba(76, 174, 227, 0.8), rgba(225, 147, 30, 0.92));
  transform: translateZ(-20px) rotateY(180deg);
  overflow: hidden;
}

.logo-back-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.back-pattern {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 2px, transparent 2px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 15px 15px;
  animation: patternMove 10s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}



.club-logo {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 5px 15px rgba(79, 70, 229, 0.3));
}

/* Orbital Rings */
.orbital-ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: rgba(63, 208, 227, 0.6);
  border-right-color: rgba(230, 137, 31, 0.993);
  animation: orbitRotate 6s linear infinite;
}

.ring-1 {
  width: 180px;
  height: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 8s;
}

.ring-2 {
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 12s;
  animation-direction: reverse;
  border-top-color: rgb(249, 163, 15);
  border-right-color: rgba(70, 157, 229, 0.936);
}

.ring-3 {
  width: 260px;
  height: 260px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 16s;
  border-top-color: rgba(58, 180, 237, 0.966);
  border-right-color: rgba(237, 151, 14, 0.936);
}

@keyframes logo3DRotate {
  0% { transform: rotateY(0deg) rotateX(0deg); }
  25% { transform: rotateY(90deg) rotateX(0deg); }
  50% { transform: rotateY(0deg) rotateX(0deg); }
  75% { transform: rotateY(90deg) rotateX(0deg); }
  100% { transform: rotateY(0deg) rotateX(0deg); }
}

@keyframes logoTilt {
  0% { transform: rotateX(0deg) rotateZ(0deg); }
  100% { transform: rotateX(0deg) rotateZ(0deg); }
}

@keyframes orbitRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Loading Text */
.loading-text {
  margin-bottom: 3rem;
  animation: textSlideUp 1s ease-out 0.5s both;
}

.title-3d {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(to right, #2ab4ef, #f86002);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 8px rgba(229, 229, 234, 0.3);
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.subtitle-animated {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1rem;
  animation: subtitlePulse 2s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #46c8e5, #e28819);
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes subtitlePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Advanced Progress Bar */
.progress-container {
  width: 100%;
  animation: progressFadeIn 1s ease-out 1s both;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #46d5e5, #17e4b197, #eba00a, #4653e5);
  background-size: 300% 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progressShimmer 2s ease-in-out infinite;
  position: relative;
}

.progress-glow {
  position: absolute;
  top: -2px;
  left: 0;
  height: 10px;
  width: 0%;
  background: linear-gradient(90deg, transparent, rgba(27, 178, 243, 0.92), transparent);
  border-radius: 10px;
  filter: blur(4px);
  transition: width 0.3s ease;
}

.progress-percentage {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f9b744;
  text-shadow: #000000;
  margin-top: 0.5rem;
}

@keyframes progressFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes progressShimmer {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}
/* Responsive Design */
@media (max-width: 768px) {
  
  
  .loading-container {
    padding: 1rem;
  }
  
  .logo-3d-container {
    height: 160px;
    margin-bottom: 2rem;
  }
  
  .logo-3d-wrapper {
    width: 120px;
    height: 120px;
  }
  
  .logo-face {
    width: 120px;
    height: 120px;
  }
  
  .club-logo {
    width: 100px;
    height: 100px;
  }
  
  .ring-1 { width: 150px; height: 150px; }
  .ring-2 { width: 180px; height: 180px; }
  .ring-3 { width: 210px; height: 210px; }
  
  .title-3d {
    font-size: 1.8rem;
  }
  
  .subtitle-animated {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2.5em;
  }
  
  #app {
    padding: 1rem;
  }
  
  .card {
    padding: 1.5em;
  }
}

@media (max-width: 480px) {
  .logo-3d-container {
    height: 140px;
  }
  
  .logo-3d-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .logo-face {
    width: 100px;
    height: 100px;
  }
  
  .club-logo {
    width: 80px;
    height: 80px;
  }
  
  .ring-1 { width: 130px; height: 130px; }
  .ring-2 { width: 160px; height: 160px; }
  .ring-3 { width: 190px; height: 190px; }
  
  .title-3d {
    font-size: 1.5rem;
  }
  
  .subtitle-animated {
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 2em;
  }
  
  
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  .logo-3d-wrapper,
  .orbital-ring,
  .floating-particles,
  .shape,
  .progress-fill,
  .loading-dots span,
  .club-logo .sparkles circle {
    animation: none;
  }
  
  .logo-3d {
    animation: none;
  }
  
  .title-3d {
    animation: none;
    background: #4F46E5;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@media (prefers-contrast: high) {
  .loading-screen {
    background: #FFFFFF;
  }
  
  .title-3d {
    background: #000000;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .subtitle-animated {
    color: #000000;
  }
}

/* GPU Acceleration */
.logo-3d-wrapper,
.orbital-ring,
.floating-particles,
.progress-fill {
  will-change: transform;
  transform: translateZ(0);
}
    .header {
        position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        transition: background 0.4s ease;
        pointer-events: auto;
    }
    .header.scrolled { background: rgba(255, 255, 255, 0.98); }
    .header.hidden-nav { transform: translateY(-100%); }
    .header-content { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
    .logo { display: flex; align-items: center; gap: 15px; }
    .logo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; transition: transform 0.4s ease; }
    .logo:hover img { transform: rotate(360deg) scale(1.1); }
    .logo-text h1 { color: var(--ensam-blue); font-size: 1.4rem; font-weight: 800; margin-bottom: 5px; }
    .logo-text p { color: var(--gray-600); font-size: 1rem; font-weight: 500; }
    .nav { display: flex; gap: 30px; list-style: none; }
    .nav a { text-decoration: none; color: var(--gray-600); font-weight: 400; font-size: 1rem; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); position: relative; padding: 10px 0; }
    .nav a:hover { color: var(--bright-orange); transform: translateY(-2px); }
    .nav a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--bright-orange), var(--teal-green)); transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); border-radius: 2px; }
    .nav a:hover::after { width: 100%; }
    .hero { min-height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--ensam-blue) 0%, var(--bright-orange) 50%, var(--teal-green) 100%); }
    .hero-3d-elements { position: absolute; inset: 0; perspective: 1000px; transform-style: preserve-3d; }
    .floating-cube { position: absolute; width: 100px; height: 100px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; animation: float3d 8s ease-in-out infinite; }
    .cube-1 { top: 20%; right: 10%; animation-delay: 0s; }
    .cube-2 { top: 60%; left: 15%; animation-delay: -2s; }
    .cube-3 { bottom: 30%; right: 20%; animation-delay: -4s; }
    .hero-particles { position: absolute; inset: 0; opacity: 0.6; }
    .particle { position: absolute; width: 4px; height: 4px; background: rgba(255, 255, 255, 0.8); border-radius: 50%; animation: particleFloat 6s linear infinite; }
    .hero-content { position: relative; z-index: 10; text-align: center; color: white; max-width: 900px; margin: 0 auto; padding: 0 20px; }
    .hero-content h1 { font-size: 4.5rem; font-weight: 900; margin-bottom: 25px; animation: heroSlideIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) both; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
    .hero-content h2 { font-size: 2.2rem; margin-bottom: 25px; opacity: 0.95; animation: heroSlideIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s both; }
    .hero-content p { font-size: 1.4rem; margin-bottom: 50px; line-height: 1.8; opacity: 0.9; animation: heroSlideIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.6s both; }
    .hero-buttons { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; animation: heroSlideIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.9s both; }
    .btn-3d { padding: 18px 35px; border: none; border-radius: 50px; font-size: 1.2rem; font-weight: 700; cursor: pointer; position: relative; overflow: hidden; transform-style: preserve-3d; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
    .btn-primary-3d { background: linear-gradient(135deg, var(--bright-orange), #ff8f00); color: white; box-shadow: 0 10px 30px rgba(255, 111, 0, 0.4); }
    .btn-primary-3d:hover { transform: translateY(-5px) rotateX(15deg); box-shadow: 0 20px 50px rgba(255, 111, 0, 0.6); }
    .btn-secondary-3d { background: rgba(255, 255, 255, 0.2); color: white; border: 2px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); }
    .btn-secondary-3d:hover { background: rgba(255, 255, 255, 0.9); color: var(--ensam-blue); transform: translateY(-5px) rotateX(15deg); box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3); }
    .section-title { text-align: center; margin-bottom: 80px; }
    .section-title h3 {
  font-size: 3.5rem;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
  font-weight: 900;
}
h1,
h2,
p,
.btn,
.btn-3d,
.featured-badge,
.caption,
.submit-btn{
  font-family: 'Amiri', serif;
}
/* Apply the Amiri font you’ve already loaded */
.title-3d,
.progress-percentage,
.subtitle-animated {
  font-family: 'Amiri', serif;
}
/* Apply Amiri to the navigation links */
.nav,
.nav a {
  font-family: 'Montserrat', serif;
  font-weight: bold;
}
.btn-glow.primary,
.btn-glow.secondary {
  font-family: 'Amiri', serif;
}


    .section-title h2 { font-size: 3.5rem; background: linear-gradient(135deg, var(--ensam-blue), var(--bright-orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 25px; font-weight: 900; }
    .section-title p { font-size: 1.3rem; color: var(--gray-600); max-width: 700px; margin: 0 auto; line-height: 1.8; }
    .hero {
  padding-top: 100px; /* Ajuste selon la hauteur réelle du header */
}
/* 1) Use sticky instead of fixed, and shrink height */
@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100px;               /* reduce header height */
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, height 0.3s ease;
    z-index: 1000;
  }
  .header .logo-text h1 {
    font-size: 1.2rem;
  }
  .header .nav {
    display: none;              /* hide full menu on mobile */
  }
  /* you can add a hamburger icon here */
}

/* 2) Auto-hide on scroll-down, show on scroll-up */
.header.hidden {
  transform: translateY(-100%);
}
 

    
    /* Magazine Section */
    .magazine {
  padding: 40px 0;
  background: linear-gradient(to right, #5d88e4, #f0820c); /* Bleu → orange doux */
  color: white;
  position: relative;
  overflow: hidden;
}

.magazine::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.15;
}

.magazine .section-title h2 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.magazine .section-title p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.magazine-featured {
  margin-top: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.featured-card {
  background: linear-gradient(135deg, #f0f4f8, #e8f5e9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 1000px;
  margin: 0 auto;
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.featured-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px; 
  background: transparent;
}

.featured-image img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}


.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  background: linear-gradient(135deg, #ff6a00, #ff9800);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.featured-content h3 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 15px;
  font-weight: 800;
}

.featured-meta {
  color: #666;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.featured-description {
  color: #444;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.magazine-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-glow {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-glow.primary {
  background: linear-gradient(135deg, #ff6a00, #ff9800);
  color: white;
  box-shadow: 0 0 15px rgba(255, 111, 0, 0.3);
}

.btn-glow.primary:hover {
  box-shadow: 0 0 30px rgba(255, 111, 0, 0.6);
  transform: translateY(-2px);
}

.btn-glow.secondary {
  background: transparent;
  color: #003366;
  border: 2px solid #003366;
}

.btn-glow.secondary:hover {
  background: #003366;
  color: white;
  box-shadow: 0 0 20px rgba(0, 51, 102, 0.4);
}
.footer-enhanced {
            background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
            color: white;
            font-family: 'Cairo', sans-serif;
            padding: 3rem 1.5rem;
            position: relative;
            overflow: hidden;
        }
        
        .footer-enhanced::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #f6b93b, #e55039, #f6b93b);
        }
        
        .footer-top {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto 2rem;
            position: relative;
            z-index: 2;
        }
        
        .footer-brand {
            flex: 1;
            min-width: 300px;
            text-align: right;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .footer-brand h2 {
            font-family: 'El Messiri', sans-serif;
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #f6b93b;
            position: relative;
            display: inline-block;
        }
        
        .footer-brand h2::after {
            content: "";
            position: absolute;
            bottom: -8px;
            right: 0;
            width: 70%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #f6b93b);
            border-radius: 3px;
        }
        
        .footer-brand p {
            font-size: 1.05rem;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.9);
            margin-top: 1.2rem;
        }
        
        .footer-verse {
            flex: 1;
            min-width: 300px;
            text-align: center;
            padding: 25px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .verse-text {
            font-family: 'Amiri', serif;
            font-size: 2.2rem;
            line-height: 1.6;
            color: #f6b93b;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            margin-bottom: 1rem;
        }
        
        .verse-reference {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.8);
            font-style: italic;
            padding: 8px 20px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 20px;
            display: inline-block;
        }
        
        .footer-bottom {
            max-width: 1200px;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            position: relative;
            z-index: 2;
        }
        
        .copyright {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.8);
        }
        
        .credit {
            font-size: 0.95rem;
            color: #f6b93b;
            text-decoration: underline;
            font-style: italic;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
        }
        
        .credit:hover {
            color: #ffffff;
            transform: translateX(-5px);
        }
        
        
        
        .footer-pattern {
            position: absolute;
            opacity: 0.03;
            font-family: 'Amiri', serif;
            font-size: 8rem;
            transform: rotate(-15deg);
            z-index: 1;
            user-select: none;
        }
        
        .pattern-1 {
            top: 20%;
            right: 5%;
        }
        
        .pattern-2 {
            bottom: 20%;
            left: 5%;
        }
        
        /* Responsive design */
        @media (max-width: 900px) {
            .footer-top {
                flex-direction: column;
                align-items: center;
            }
            
            .footer-brand, .footer-verse {
                min-width: 100%;
                text-align: center;
            }
            
            .footer-brand h2::after {
                left: 50%;
                transform: translateX(-50%);
                width: 40%;
            }
            
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
        }
        
        @media (max-width: 600px) {
            .header h1 {
                font-size: 2.2rem;
            }
            
            .verse-text {
                font-size: 1.8rem;
            }
            
            .footer-pattern {
                font-size: 5rem;
            }
        }
.footer-enhanced {
  /* force full viewport width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;

  /* optional: remove rounding if you want sharp corners edge-to-edge */
  border-radius: 0;
}


    
    /* Enhanced Magazine Slider */
    .magazine-slider { position: relative; width: 100%; height: 550px; perspective: 2500px; margin-top: 20px; }
    .magazine-slider h3 { text-align: center; margin-bottom: 20px; color: white; font-size: 2.5rem; font-weight: 900; position: relative; z-index: 10; }
    .slider-container { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
    .magazine-card { position: absolute; left: 0; right: 0; margin: auto; width: 350px; height: 500px; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-radius: 25px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.3); -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0003); }
    .magazine-card-image { height: 450px; overflow: hidden; position: relative; }
    .magazine-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
    .magazine-card:hover img { transform: scale(1.1); }
    .magazine-card-content { padding: 30px; }
    .magazine-card h4 { font-size: 1.5rem; color: var(--ensam-blue); margin-bottom: 15px; font-weight: 800; transition: color 0.3s ease; }
    .magazine-card:hover h4 { color: var(--bright-orange); }
    .magazine-card-meta { color: var(--gray-600); font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
    .magazine-card p { color: var(--gray-600); line-height: 1.6; font-size: 1rem; }
    .slider-nav { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; z-index: 100; }
    .slider-btn { width: 60px; height: 60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); color: white; font-size: 2rem; line-height: 56px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); user-select: none; }
    .slider-btn:hover { background: white; color: var(--ensam-blue); transform: scale(1.1); }
    
    .about-section {
  padding: 60px 0 40px;
  background: var(--light-bg, #f9f9f9);
}

.about-section .section-title h2 {
  font-size: 2rem;
  color: var(--ensam-blue);
  text-align: center;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
  direction: rtl;
}
.about-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  direction: rtl;
}

.about-text {
  flex: 1 1 45%;
  text-align: right;
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  order: 1;
}

.about-video {
  flex: 1 1 50%;
  text-align: center;
  order: 2;
}

/* Style commun aux vidéos */
.about-video video {
  width: auto;
  height: 600px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  display: block;        /* Pour que margin fonctionne */
  margin: 0 auto;
}


/* Par défaut : mobile */
.about-video-pc {
  display: none;
}
.about-video-mobile {
  display: block;
  
}

/* Sur écran large (PC) */
@media (min-width: 769px) {
  .about-video-pc {
    display: block;
    transform-origin: center;
  }

  .about-video-mobile {
    display: none;
  }
}

.decale-gauche {
  position: relative;
  right: -40px; /* décale vraiment vers la gauche */
}

.section-title {
  color: var(--ensam-blue);
  font-size: 2rem;
  margin-bottom: 15px;
}
.section {
            padding: 80px 0;
        }
        
        .section-title2 {
            text-align: center;
            font-size: 2.8rem;
            margin-bottom: 60px;
            position: relative;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            text-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 0 rgba(0,0,0,0.08);
            background: linear-gradient(to right, #e50c0c, #5ec1ff);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            padding-bottom: 20px;
            font-family: 'Noto Naskh Arabic', serif;
        }

        /* Apply Noto Naskh Arabic to all main titles */
        .section-title,
        .section-title h2,
        .section-title h3,
        .section-title2,
        .glow-main-title,
        .glow-section-title,
        .holographic-title,
        .branch-title,
        .product-content h3,
        .featured-content h3,
        .contact-header h2,
        .footer-brand h2 {
            font-family: 'Noto Naskh Arabic', serif;
        }
        
        .section-title2::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            transform: translateX(50%);
            width: 120px;
            height: 4px;
            background: linear-gradient(to right, #ff9966, #ff5e62);
            border-radius: 2px;
        }
        
        /* Gallery Filters */
        .gallery-filters {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: transparent;
            border: 2px solid var(--ensam-blue);
            color: var(--ensam-blue);
            padding: 0.8rem 1.5rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--ensam-blue);
            color: var(--white);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
        }

        .gallery-item {
            height: 250px;
            background-size: cover;
            background-position: center;
            border-radius: 15px;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 85, 165, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .gallery-overlay i {
            color: var(--white);
            font-size: 2rem;
        }
        
        /* Enhancements Only */
        .gallery-item {
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .gallery-item:hover {
            transform: scale(1.03);
            box-shadow: 0 12px 30px rgba(0, 85, 165, 0.25);
            z-index: 2;
        }
        
        .gallery-overlay {
            background: linear-gradient(135deg, rgba(0, 85, 165, 0.85), rgba(255, 111, 0, 0.7));
            flex-direction: column;
            justify-content: flex-end;
            padding: 20px;
        }
        
        .gallery-overlay-content {
            text-align: right;
            width: 100%;
        }
        
        .gallery-category {
            color: #ffd700;
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .gallery-title {
            color: white;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 8px;
        }
        
        .gallery-date {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
        }
        
        .gallery-overlay i {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.2);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .gallery-overlay i:hover {
            background: var(--bright-orange);
            transform: scale(1.1);
        }
        
        .gallery-item.video .gallery-overlay i {
            background: rgba(230, 57, 70, 0.7);
        }
        
        .gallery-item.video .gallery-overlay i:hover {
            background: var(--red);
        }
        
        
        /* Enhanced Mobile Gallery Grid */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }
    
    .gallery-item {
        height: 180px;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .gallery-item:hover {
        transform: scale(1.03);
        z-index: 1;
    }
    
    .gallery-overlay {
        padding: 15px;
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 85, 165, 0.9), transparent 60%);
    }
    
    .gallery-overlay-content {
        transform: translateY(0);
        opacity: 1;
    }
    
    .gallery-category {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
    
    .gallery-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .gallery-date {
        font-size: 0.75rem;
    }
    
    .gallery-overlay i {
        top: 10px;
        left: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Animation effects for mobile */
    .gallery-item {
        animation: fadeIn 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Staggered animation */
    .gallery-item:nth-child(2n) { animation-delay: 0.1s; }
    .gallery-item:nth-child(3n) { animation-delay: 0.2s; }
    .gallery-item:nth-child(4n) { animation-delay: 0.3s; }
    
    /* Stacked card effect on hover */
    .gallery-item:hover {
        box-shadow: 0 12px 25px rgba(0, 85, 165, 0.3);
    }
}
    .branches {
    padding: 100px 0;
    background: linear-gradient(135deg, #eef5fa 0%, #dceaf5 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.branches::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="softdots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="rgba(0,85,165,0.02)" /></pattern></defs><rect width="100" height="100" fill="url(%23softdots)" /></svg>');
    opacity: 0.1;
    z-index: 0;
}

    .branches-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 50px;
        position: relative;
        z-index: 1;
    }
    .branch-card {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 40px 30px 30px;
        text-align: center;
        box-shadow: var(--shadow);
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        position: relative;
        overflow: hidden;
        transform: translateY(30px);
        opacity: 0;
        animation: slideUp 0.6s forwards;
        border: 2px solid transparent;
    }
    .branch-card:nth-child(1) { animation-delay: 0.1s; }
    .branch-card:nth-child(2) { animation-delay: 0.2s; }
    .branch-card:nth-child(3) { animation-delay: 0.3s; }
    .branch-card:nth-child(4) { animation-delay: 0.4s; }
    .branch-card:nth-child(5) { animation-delay: 0.5s; }
    .branch-card:nth-child(6) { animation-delay: 0.6s; }
    .branch-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }
    .branch-logo {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: -65px auto 20px;
        position: relative;
        z-index: 2;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 3px solid white;
        transition: all 0.3s ease-in-out;
    }
    .branch-logo i {
        font-size: 2.5rem;
        transition: all 0.3s ease-in-out;
    }
    .branch-card:hover .branch-logo {
        transform: scale(1.1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    .branch-card:hover .branch-logo i {
        transform: scale(1.2);
    }
    .branch-title {
        font-size: 1.8rem;
        color: var(--gray-800);
        margin-bottom: 20px;
        font-weight: 800;
        position: relative;
        padding-bottom: 15px;
    }
    .branch-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--ensam-blue);
        border-radius: 2px;
        transition: width 0.3s ease;
    }
    .branch-card:hover .branch-title::after {
        width: 100px;
    }
    .branch-description {
        color: var(--gray-600);
        line-height: 1.8;
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    /* Branch Colors */
    .branch-card.media { border-top: 5px solid var(--bright-orange); }
    .branch-card.media .branch-logo { background: var(--bright-orange); color: white; }
    .branch-card.media:hover { border-color: var(--bright-orange); box-shadow: 0 20px 50px rgba(255, 111, 0, 0.2); }
    .branch-card.masjid { border-top: 5px solid var(--teal-green); }
    .branch-card.masjid .branch-logo { background: var(--teal-green); color: white; }
    .branch-card.masjid:hover { border-color: var(--teal-green); box-shadow: 0 20px 50px rgba(0, 180, 166, 0.2); }
    .branch-card.culturelle { border-top: 5px solid var(--ensam-blue); }
    .branch-card.culturelle .branch-logo { background: var(--ensam-blue); color: white; }
    .branch-card.culturelle:hover { border-color: var(--ensam-blue); box-shadow: 0 20px 50px rgba(0, 85, 165, 0.2); }
    .branch-card.sociale { border-top: 5px solid var(--red); }
    .branch-card.sociale .branch-logo { background: var(--red); color: white; }
    .branch-card.sociale:hover { border-color: var(--red); box-shadow: 0 20px 50px rgba(230, 57, 70, 0.2); }
    .branch-card.finance { border-top: 5px solid var(--gold); }
    .branch-card.finance .branch-logo { background: var(--gold); color: var(--gray-800); }
    .branch-card.finance:hover { border-color: var(--gold); box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2); }
    @media (min-width: 768px) {
            .branches-accordion {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 25px;
            }
            
            .accordion-item {
                display: flex;
                flex-direction: column;
                height: auto;
                border-right: none;
                border-top: 5px solid #0c2461;
            }
            
            .accordion-header {
                cursor: default;
            }
            
            .accordion-header:hover {
                background: transparent;
            }
            
            .accordion-content {
                max-height: 500px !important;
                padding: 0 0 20px !important;
            }
            
            .accordion-arrow {
                display: none;
            }
            
            .accordion-description {
                padding: 0 25px 20px;
            }
            
            /* Color borders for desktop */
            .accordion-item.media { border-top-color: #ff6f00; }
            .accordion-item.masjid { border-top-color: #00b4a6; }
            .accordion-item.culturelle { border-top-color: #0c2461; }
            .accordion-item.sportive { border-top-color: #e63946; }
            .accordion-item.logistique { border-top-color: #6a0dad; }
            .accordion-item.partenariat { border-top-color: #ffd700; }
        }
        
        /* Animation for mobile */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .accordion-item {
            animation: fadeIn 0.5s ease-out;
            animation-fill-mode: both;
        }
        
        .accordion-item:nth-child(1) { animation-delay: 0.1s; }
        .accordion-item:nth-child(2) { animation-delay: 0.2s; }
        .accordion-item:nth-child(3) { animation-delay: 0.3s; }
        .accordion-item:nth-child(4) { animation-delay: 0.4s; }
        .accordion-item:nth-child(5) { animation-delay: 0.5s; }
        .accordion-item:nth-child(6) { animation-delay: 0.6s; }
      /* — Enhanced Button Base — */
.branch-card .btn {
  position: relative;
  display: inline-block;
  margin: 20px 8px 0;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0) 100%
  ),
  var(--ensam-blue);
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.4s ease;
}

/* — Animated Underline — */
.branch-card .btn::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 3px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: width 0.4s ease, left 0.4s ease;
}

/* — Hover / Active States — */
.branch-card .btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.branch-card .btn:hover::after {
  width: 60%;
  left: 20%;
}
.branch-card .btn:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* — Branch-Specific Gradients — */
.branch-card.gestion .btn {
  background: 
    var(--ensam-blue)     100%
  ;
}

.branch-card.masjid .btn {
  background: 
    var(--teal-green)      100%
  ;
}

.branch-card.culturelle .btn {
  background:
    var(--ensam-blue)      100%
  ;
}

.branch-card.sociale .btn {
  background: 
    var(--red)             100%;
}

.branch-card.media .btn {
  background:    var(--bright-orange)   100%;
}

.branch-card.finance .btn {
  background: 
    var(--gold)            100%;
}

.back-home-button {
            position: fixed;
            top: 25px;
            left: 25px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 24px;
            background: rgba(255, 254, 247, 0.85);  /* very soft ivory */
  color: #51a0ea;                         /* club blue text */
  border: 1px solid rgba(0, 85, 165, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            animation: bounce 1s ease 0.5s;
        }
        
        [dir="rtl"] .back-home-button {
            left: auto;
            right: 25px;
        }
        
        .back-home-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
background: linear-gradient(
    90deg,
    rgba(0, 85, 165, 0.1) 0%,
    rgba(255, 111, 0, 0.1) 100%
  );           
   z-index: -1;
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        
        .back-home-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25), 
                        0 0 20px rgba(70, 192, 229, 0.3);
            padding-right: 30px;
            padding-left: 30px;
        }
        
        [dir="rtl"] .back-home-button:hover {
            padding-right: 24px;
            padding-left: 30px;
        }
        
        .back-home-button:hover::before {
            opacity: 1;
        }
        
        .back-home-button:hover .icon {
            transform: translateX(-10px);
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
        }
        
        [dir="rtl"] .back-home-button:hover .icon {
            transform: translateX(10px);
        }
    /* Products Section */
    /* Grid container */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Card */
.product-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  direction: rtl;
  text-align: right;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* Image area */
/* ajuste le crop et le positionnement juste pour la "right-image" */
/* cible uniquement la 4ᵉ carte (ou toute carte dont tu ajoutés la classe .right-image) */
.product-image-wrapper.right-image {
  width: 100%;          /* prends toute la largeur de la carte */
  height: 180px;        /* même hauteur que tes autres wrappers */
  overflow: hidden;
}

.product-image-wrapper.right-image img {
  width: 100%;          /* plein cadre */
  height: 100%;         /* plein cadre */
  object-fit: cover;    /* crop centrée et uniforme */
  object-position: center center;
  transition: transform .5s ease;
}

.product-image-wrapper.right-image:hover img {
  transform: scale(1.1);
}


.product-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
  object-position: center; 
}
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-image-wrapper:hover img {
  transform: scale(1.1);
}

/* Wishlist button */
.wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.8);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.wishlist:hover {
  background: var(--bright-orange);
  transform: scale(1.1);
}
.wishlist i {
  color: #555;
  font-size: 1rem;
}

/* Info section */
.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.1rem;
  color: var(--ensam-blue);
  margin: 0 0 .5rem;
  font-weight: 700;
}

/* Rating and reviews */
.product-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.rating i {
  color: #FFD700;
  font-size: .9rem;
}
.reviews {
  font-size: .8rem;
  color: #777;
}

/* Category */
.product-category {
  font-size: .85rem;
  color: #888;
  margin-bottom: .75rem;
}

/* Description */
.product-description {
  flex: 1;
  font-size: .9rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Buy row */
.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.current {
  font-size: 1rem;
  color: var(--bright-orange);
  font-weight: 700;
}
.old {
  font-size: .8rem;
  color: #aaa;
  text-decoration: line-through;
}

/* Add to cart button */
.add-to-cart {
  background: var(--ensam-blue);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.add-to-cart:hover {
  background: #00457c;
  transform: scale(1.1);
}
.add-to-cart i {
  font-size: 1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .product-image-wrapper {
    height: 160px;
  }
  .product-info {
    padding: .75rem;
  }
  .product-title {
    font-size: 1rem;
  }
  .product-description {
    font-size: .85rem;
    margin-bottom: .75rem;
  }
  .add-to-cart {
    width: 32px;
    height: 32px;
  }
}


    /* Footer */
    
    
    
    
    /* Animations */
    @keyframes ripple { to { transform: scale(4); opacity: 0; } }
    @keyframes heroSlideIn { from { opacity: 0; transform: translateY(50px) rotateX(20deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
    @keyframes float3d { 0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); } 33% { transform: translateY(-30px) rotateX(20deg) rotateY(120deg); } 66% { transform: translateY(-15px) rotateX(-15deg) rotateY(240deg); } }
    @keyframes particleFloat { 0% { transform: translateY(100vh) translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) translateX(100px); opacity: 0; } }
    @keyframes glowPulse { 0%, 100% { box-shadow: 0 0 30px rgba(255, 111, 0, 0.4); } 50% { box-shadow: 0 0 60px rgba(255, 111, 0, 0.8); } }
    @keyframes yearPulse { 0%, 100% { opacity: 0.08; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.15; transform: translate(-50%, -50%) scale(1.05); } }
    @keyframes ccsFloat { 0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.12; } 50% { transform: translateY(-20px) rotate(5deg); opacity: 0.2; } }
    @keyframes circleFloat1 { 0%, 100% { transform: translateY(0px) rotateZ(0deg); } 50% { transform: translateY(-30px) rotateZ(180deg); } }
    @keyframes circleFloat2 { 0%, 100% { transform: translateY(0px) rotateZ(0deg); } 50% { transform: translateY(-25px) rotateZ(-180deg); } }
    @keyframes circleFloat3 { 0%, 100% { transform: translateY(0px) rotateZ(0deg); } 50% { transform: translateY(-20px) rotateZ(360deg); } }
    @keyframes circleFloat4 { 0%, 100% { transform: translateY(0px) rotateZ(0deg); } 50% { transform: translateY(-35px) rotateZ(-360deg); } }
    @keyframes slideUp { to { transform: translateY(0); opacity: 1; } }
    
    /* Responsive */
    @media (max-width: 1200px) {
        .hero-content h1 { font-size: 3rem; }
        .hero-content h2 { font-size: 1.8rem; }
        .section-title h2 { font-size: 2.8rem; }
    }
    
    @media (max-width: 992px) {
        .featured-card { grid-template-columns: 1fr; }
        .featured-content { padding: 40px; }
        .magazine-slider { height: 480px; }
        .magazine-card { width: 300px; height: 430px; }
        .magazine-card-image { height: 380px; }
        
        .branches-grid { gap: 40px; }
        .branch-card { padding: 35px 25px 25px; }
    }
    
    @media (max-width: 768px) {
        .nav { display: none; }
        .hero-content h1 { font-size: 3rem; }
        .hero-content h2 { font-size: 1.6rem; }
        .hero-content p { font-size: 1.2rem; }
        .activities-grid, .products-grid { grid-template-columns: 1fr; gap: 30px; }
        .magazine-slider { height: 420px; }
        .magazine-card { width: 250px; height: 400px; }
        .magazine-card-image { height: 350px; }
        
        .circle-1, .circle-2, .circle-3, .circle-4 { width: 120px; height: 120px; }
      
        .branches { padding: 80px 0; }
        .section-title h2 { font-size: 2.5rem; }
        .section-title p { font-size: 1.1rem; }
        .branches-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
        .branch-title { font-size: 1.6rem; }
        .branch-description { font-size: 1rem; }
    }
    
    @media (max-width: 576px) {
        .section-title h2 { font-size: 2rem; }
        .section-title p { font-size: 1rem; }
        .branches-grid { grid-template-columns: 1fr; }
        .branch-card { padding: 40px 25px 25px; }
        .branch-title { font-size: 1.5rem; }
    }
    
    @media (prefers-reduced-motion: reduce) { 
        *, *::before, *::after { animation: none !important; transition: none !important; } 
        .branch-card { transform: none !important; opacity: 1 !important; }
    }

    #club-members {
  padding: 80px 0;
background: linear-gradient(145deg, #f2f6fa 0%, #e6f0f8 50%, #d8e9f0 100%);
  text-align: center;
  position: relative;
  z-index: 1;
}

#club-members::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="rgba(0,0,0,0.05)" /></pattern></defs><rect width="100" height="100" fill="url(%23dots)" /></svg>');
  opacity: 0.1;
  z-index: -1;
}

#club-members .section-title {
  font-size: 2.5rem;
  color: var(--ensam-blue);
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}


.wrapper {
  width: 100%;
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.inner {
  --w: 160px; /* largeur plus grande */
  --h: 220px; /* hauteur plus grande */
  --translateZ: calc((var(--w) + var(--h)) + 0px);
  --rotateX: -15deg;
  --perspective: 1000px;
  position: absolute;
  width: var(--w);
  height: var(--h);
  top: 25%;
  left: calc(50% - (var(--w) / 2));
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(var(--perspective));
}

.card {
  position: absolute;
  width: 160px;
  height: 250px;
  border-radius: 15px;
  padding: 10px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.4s ease;
  
  /* Frosted-glass tinted by your color */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Base shadows + colored glow */
  box-shadow:
    var(--shadow-primary),
    0 0 20px rgba(var(--color-card), 0.25),
    0 0 40px rgba(var(--color-card), 0.15);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--light-blue));
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    var(--shadow-hover),
    0 0 30px rgba(var(--color-card), 0.3);
  z-index: 5;
}

.card:hover::before {
  opacity: 1;
}

.img {
  width: 100%;
  height: 190px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.5s ease;
  
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: contrast(1.1) saturate(1.2);
}

.card:hover .img img {
  transform: scale(1.08) rotateZ(0.5deg);
  filter: contrast(1.15) saturate(1.25);
}

:root {
  /* your standard shadows */
  --shadow-primary: 0 10px 30px rgba(2, 12, 27, 0.7);
  --shadow-hover: 0 15px 40px rgba(100, 255, 218, 0.25);

  /* three accent RGB triples you can swap in */
  --accent-teal:   100, 255, 218;
  --accent-orange: 255, 159,  67;
  --accent-purple: 153, 102, 255;
}

/* base caption, uses whatever --accent is set to */
.caption {
  --accent: var(--accent-teal);
  --text-dark: #ffffff; /* for teal: very dark teal */
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);

  background: rgba(var(--accent), 0.85);
  border:     1px solid rgba(var(--accent), 0.50);
  border-radius: 8px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
box-shadow:
    var(--shadow-hover),
    0 0 40px rgba(var(--accent), 0.30),
    0 0 60px rgba(var(--accent), 0.20);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
  z-index: 2;
}

.caption::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(255,255,255,0.4),
    transparent 70%
  );
  
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.caption:hover {
  transform: translateY(-2px);

  background: rgba(var(--accent), 0.95);
  border:     1px solid rgba(var(--accent), 0.80);
  box-shadow:
    var(--shadow-hover),
    0 0 40px rgba(var(--accent), 0.30),
    0 0 60px rgba(var(--accent), 0.20);

  color: #fff;
}
.caption:hover::before {
  opacity: 0.5;
}

/* ——— now the three flavour classes ——— */

.caption.teal {
  --accent:    var(--accent-teal);
  --text-dark: rgba(  3,  50,  45, 1);
}

.caption.orange {
  --accent:    var(--accent-orange);
  --text-dark: rgba( 60,  30,   0, 1);
}

.caption.purple {
  --accent:    var(--accent-purple);
  --text-dark: rgba( 31,   0,  55, 1);
}


/* Rotate buttons styled as in example */
.rotate-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-blue), var(--dark-teal));
  border: 1px solid var(--card-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.rotate-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(var(--color-card), 0.4);
}

.rotate-left  { left: 20px; }
.rotate-right { right: 20px; }


.contact-container {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 50px;
            margin:auto;
        }
        
        .contact-header {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .contact-header h2 {
            font-size: 3.2rem;
            color: var(--ensam-blue);
            margin-bottom: 15px;
            font-weight: 800;
            position: relative;
            display: inline-block;
        }
        
        .contact-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            right: 50%;
            transform: translateX(50%);
            width: 100px;
            height: 5px;
            background: linear-gradient(to right, var(--ensam-blue), var(--bright-orange));
            border-radius: 3px;
        }
        
        .contact-header p {
            font-size: 1.2rem;
            color: var(--gray-600);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.8;
        }
        
        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }
        
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        .contact-item {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px;
            display: flex;
            align-items: flex-start;
            gap: 20px;
            transition: var(--transition);
            border: 1px solid rgba(0, 85, 165, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        .contact-item::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 5px;
            height: 100%;
            background: var(--ensam-blue);
            transition: var(--transition);
        }
        
        .contact-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .contact-item:hover::before {
            background: var(--bright-orange);
            width: 8px;
        }
        
        .contact-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, var(--ensam-blue), var(--teal-green));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: white;
            box-shadow: 0 5px 15px rgba(0, 85, 165, 0.3);
            flex-shrink: 0;
        }
        
        .contact-details {
            flex: 1;
        }
        
        .contact-details h4 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--ensam-blue);
        }
        
        .contact-details p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--gray-600);
        }
        
        .contact-form-container {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            border: 1px solid rgba(0, 85, 165, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        .contact-form-container::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to left, var(--ensam-blue), var(--bright-orange));
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-size: 1.1rem;
            color: var(--ensam-blue);
            font-weight: 600;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            border-radius: 12px;
            border: 1px solid rgba(0, 85, 165, 0.2);
            background: rgba(255, 255, 255, 0.7);
            color: var(--gray-800);
            font-size: 1.1rem;
            font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
            transition: var(--transition);
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--bright-orange);
            box-shadow: 0 0 15px rgba(255, 111, 0, 0.2);
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }
        
        .submit-btn {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--ensam-blue), var(--bright-orange));
            color: white;
            font-size: 1.2rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 5px 15px rgba(0, 85, 165, 0.3);
            font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
            position: relative;
            overflow: hidden;
        }
        
        .submit-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }
        
        .submit-btn:hover::before {
            transform: translateX(100%);
        }
        
        .submit-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 85, 165, 0.4);
        }
        
        .social-section {
            text-align: center;
            padding: 30px 0;
        }
        
        .social-title {
            font-size: 1.5rem;
            color: var(--ensam-blue);
            margin-bottom: 25px;
            font-weight: 700;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 25px;
            flex-wrap: wrap;
        }
        
        .social-link {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--ensam-blue), var(--teal-green));
            color: white;
            font-size: 1.8rem;
            transition: var(--transition);
            text-decoration: none;
            box-shadow: 0 5px 15px rgba(0, 85, 165, 0.3);
        }
        
        .social-link:hover {
            transform: translateY(-10px) scale(1.1);
            background: linear-gradient(135deg, var(--bright-orange), #ff8f00);
            box-shadow: 0 15px 30px rgba(255, 111, 0, 0.3);
        }
        
        .map-container {
            border-radius: 20px;
            overflow: hidden;
            height: 300px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 85, 165, 0.1);
            margin-top: 20px;
        }
        
        .map-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .contact-footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid rgba(0, 85, 165, 0.1);
            font-size: 1.1rem;
            color: var(--gray-600);
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .contact-content {
                grid-template-columns: 1fr;
            }
            
            .contact-header h2 {
                font-size: 2.8rem;
            }
        }
        
        @media (max-width: 768px) {
            .contact-header h2 {
                font-size: 2.4rem;
            }
            
            .contact-item {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .contact-icon {
                margin-bottom: 15px;
            }
            
            .social-links {
                gap: 15px;
            }
            
            .social-link {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .contact-header h2 {
                font-size: 2rem;
            }
            
            .contact-header p {
                font-size: 1rem;
            }
            
            .contact-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
            
            .contact-details h4 {
                font-size: 1.2rem;
            }
            
            .contact-details p {
                font-size: 1rem;
            }
            
            .contact-form-container {
                padding: 25px;
            }
            
            .form-group input,
            .form-group textarea {
                padding: 12px;
                font-size: 1rem;
            }
            
            .submit-btn {
                padding: 14px;
                font-size: 1.1rem;
            }
        }



.glow-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex: 0 0 260px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
}

.glow-card--center {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
  z-index: 10;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glow-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1);
}

.glow-card--center:hover {
  transform: translateY(-8px) scale(1.07);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 255, 255, 0.2);
}

.glow-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.glow-main-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.glow-card-section {
  margin-bottom: 5rem;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e0f2fe 60%, #dbeafe 100%);
  padding: 4rem 0rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glow-card-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='25' cy='25' r='1.5'/%3E%3Ccircle cx='75' cy='25' r='1.5'/%3E%3Ccircle cx='25' cy='75' r='1.5'/%3E%3Ccircle cx='75' cy='75' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.4;
}

.glow-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #1e293b;
  letter-spacing: -0.015em;
  text-align: center;
}

.glow-scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
}

.glow-cards-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
}

.glow-cards-container {
  display: flex;
  gap: 2.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  will-change: transform;
  cursor: grab;
}
.glow-cards-container {
  align-items: stretch; /* au lieu de flex-start */
}

.glow-card {
  display: flex;
  flex-direction: column;
  height: 440px; /* ajuste la hauteur commune */
}

.glow-card-image {
  flex: 1 1 auto;
  height: auto; /* enlève la hauteur fixe */
}

.glow-card-content {
  margin-top: auto;
  min-height: 84px; /* réserve toujours la même place pour le bandeau noir */
}
@media (max-width: 768px) {
  .glow-card { height: 400px; }
  .glow-card-content { min-height: 76px; }
}

@media (max-width: 480px) {
  .glow-card { height: 360px; }
  .glow-card-content { min-height: 72px; }
}

.glow-cards-container::-webkit-scrollbar {
  display: none;
}

.glow-cards-container:active {
  cursor: grabbing;
}

.glow-card-wide {
  flex: 0 0 400px;
}

.glow-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, 
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.05) 75%,
      rgba(255, 255, 255, 0.15) 100%
  );
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.glow-card:hover::before,
.glow-card:focus-within::before {
  opacity: 1;
}

.glow-card:hover::after,
.glow-card:focus-within::after {
  opacity: 1;
}

.glow-card.highlighted {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 50px rgba(255, 111, 0, 0.25);
  z-index: 10;
  border-color: rgba(255, 111, 0, 0.3);
}

.glow-card:active {
  transform: translateY(-4px) scale(1.01);
}

.glow-card-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.glow-card-wide .glow-card-image {
  height: 240px;
}

.glow-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.9) contrast(1.1);
}

.glow-card:hover .glow-card-image img {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2);
}

.glow-card-content {
  padding: 1.5rem;
  background: linear-gradient(180deg, 
      rgba(0, 0, 0, 0.8) 0%, 
      rgba(0, 0, 0, 0.9) 100%
  );
  position: relative;
}

.glow-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.glow-card-subtitle {
  font-size: 0.9rem;
  color: #a0a0a0;
  font-weight: 400;
}

.glow-scroll-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 6, 6, 0.918);
  color: #74c6e9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(241, 237, 237, 0.772);
  z-index: 10;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glow-scroll-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.2) 100%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-scroll-btn:hover::before {
  opacity: 1;
}

.glow-scroll-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(255, 255, 255, 0.1);
}

.glow-scroll-btn:active {
  transform: scale(0.95);
}

/* Media queries restent inchangés */
/* Mobile Styles */
@media (max-width: 768px) {
    .glow-container {
        padding: 1rem 0.5rem;
    }
    
    .glow-scroll-container {
        gap: 0.5rem;
    }
    
    .glow-scroll-btn {
        display: none;
    }
    
    .glow-cards-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .glow-cards-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .glow-cards-container {
        padding: 1rem;
        gap: 1.5rem;
        cursor: default;
    }
    
    .glow-card {
        flex: 0 0 240px;
    }
    
    .glow-card-wide {
        flex: 0 0 320px;
    }
    
    .glow-main-title {
        margin-bottom: 2rem;
    }
    
    .glow-section-title {
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .glow-card {
        flex: 0 0 200px;
    }
    
    .glow-card-wide {
        flex: 0 0 280px;
    }
    
    .glow-card-image {
        height: 240px;
    }
    
    .glow-card-wide .glow-card-image {
        height: 180px;
    }
    
    .glow-card-content {
        padding: 1rem;
    }
    
    .glow-card-title {
        font-size: 1.1rem;
    }
    
    .glow-card-subtitle {
        font-size: 0.85rem;
    }
}

/* Enhanced Loading Animation */
.glow-card-image img {
    opacity: 0;
    animation: glowFadeInScale 0.8s ease forwards;
}

@keyframes glowFadeInScale {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Focus styles for accessibility */
.glow-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

.glow-scroll-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .glow-card,
    .glow-card-image img,
    .glow-scroll-btn,
    .glow-cards-container {
        transition: none;
        animation: none;
    }
    
    .glow-card:hover {
        transform: none;
    }
    
    .glow-card:hover .glow-card-image img {
        transform: none;
    }
    
    .glow-scroll-btn:hover {
        transform: none;
    }
}

/* Additional visual enhancements */
.glow-cards-container {
    /* Add subtle gradient overlay at edges for fade effect */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

@media (max-width: 768px) {
    .glow-cards-container {
        mask-image: none;
        -webkit-mask-image: none;
    }
}
        .cosmic-sponsors-container {
            position: relative;
            padding: 5rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: radial-gradient(ellipse at 60% 0%, #f0fcff 0%, #e6f4ff 60%, #edf2ff 100%);
            margin: 30px 0;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }
        
        .cosmic-sponsors-container::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%2300b4a6" fill-opacity="0.1"><circle cx="25" cy="25" r="1.5"/><circle cx="75" cy="25" r="1.5"/><circle cx="25" cy="75" r="1.5"/><circle cx="75" cy="75" r="1.5"/></g></svg>');
            opacity: 0.25;
            background-repeat: repeat;
            background-size: 120px 120px;
            animation: sponsors-bg-float 18s linear infinite alternate;
        }
        @keyframes sponsors-bg-float {
            0% { background-position: 0 0; }
            100% { background-position: 60px 40px; }
        }
        
        /* Stars effect */
        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle var(--duration) infinite ease-in-out;
            opacity: 0;
        }
        
        @keyframes twinkle {
            0%, 100% { opacity: 0; transform: scale(0.5); }
            50% { opacity: 1; transform: scale(1); }
        }
       
        
        .quantum-header-zone {
            text-align: center;
            margin-bottom: 3rem;
            z-index: 2;
            max-width: 800px;
            padding: 0 20px;
        }

        .holographic-title {
            font-size: 3.5rem;
            font-weight: 800;
            background: rgb(216, 139, 7);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: holographic-shimmer 4s ease-in-out infinite;
            margin-bottom: 1.5rem;
            text-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
            font-family: 'El Messiri', sans-serif;
        }

        .quantum-description {
            font-size: 1.25rem;
            color: rgba(94, 46, 7, 0.9);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.7;
            font-weight: 300;
            opacity: 0.9;
            font-weight: bold;
            text-shadow: 0 2px 8px rgba(0,0,0,0.18);
        }

        .matrix-partners-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            width: 100%;
            z-index: 2;
        }

        .cyber-partner-module {
            background: linear-gradient(135deg, rgba(26, 147, 222, 0.895), rgba(225, 112, 77, 0.932));
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 24px;
            padding: 2.5rem 2rem;
            text-align: center;
            transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .cyber-partner-module::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.05));
            opacity: 0;
            transition: opacity 0.5s ease;
            border-radius: 24px;
        }

        .cyber-partner-module:hover {
            transform: translateY(-15px) scale(1.03);
            box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
            border-color: rgba(0, 212, 255, 0.4);
        }

        .cyber-partner-module:hover::before {
            opacity: 1;
        }

        .digital-brand-emblem {
            width: 90px;
            height: 90px;
            margin: 0 auto 1.8rem;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: 800;
            color: rgb(255, 255, 255);
            transition: all 0.5s ease;
            position: relative;
            z-index: 2;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        .cyber-partner-module:hover .digital-brand-emblem {
            transform: scale(1.15) rotateY(10deg);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        }

        .neon-company-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 0.8rem;
            position: relative;
            z-index: 2;
            font-family: 'Cairo', sans-serif;
            
        }
        /* ✅ Mobile : toujours 2 sponsors par ligne */
@media (max-width: 640px) {
  .matrix-partners-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* force 2 */
    gap: 12px;
  }

  /* évite qu'une carte prenne toute la ligne */
  .cyber-partner-module {
    grid-column: auto / span 1 !important;
    box-sizing: border-box;
    padding: 1rem;              /* compact */
  }

  /* optionnel : compacter un peu le contenu */
  .digital-brand-emblem { width: 64px; height: 64px; margin-bottom: .75rem; }
  .neon-company-name { font-size: 1rem; }
}

.credit a {
  /* Hérite exactement de la couleur et du style du <p> */
  color: inherit;
  text-decoration: none;

  /* Pour agrandir la zone cliquable sur tout le contenu (icone + texte) */
  display: inline-block;
  width: fit-content;
}
        .tech-sector-label {
            font-size: 0.95rem;
            color: #fffffe;
            font-weight: 400;
            position: relative;
            font-weight: bold;
            
            z-index: 2;
            opacity: 0.9;
        }
        
        /* Brand-specific gradient colors */
        .tech-giant-blue { background: linear-gradient(135deg, #0078d4, #106ebe); }
        .cloud-orange { background: linear-gradient(135deg, #ff9500, #e68900); }
        .search-multicolor { background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853); }
        .crm-teal { background: linear-gradient(135deg, #00a1c9, #0099cc); }
        .creative-red { background: linear-gradient(135deg, #ff0000, #cc0000); }
        .enterprise-purple { background: linear-gradient(135deg, #054ada, #003d82); }

        @keyframes holographic-shimmer {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* Mobile-specific styles */
        @media (max-width: 768px) {
            .holographic-title {
                font-size: 2.5rem;
            }
            
            .quantum-description {
                font-size: 1.1rem;
            }
            
            .matrix-partners-grid {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                padding: 0 10px;
            }
            
            .cyber-partner-module {
                padding: 2rem 1.5rem;
                border-radius: 18px;
            }
            
            .digital-brand-emblem {
                width: 70px;
                height: 70px;
                font-size: 1.8rem;
                margin-bottom: 1.5rem;
            }
        }
.cosmic-sponsors-container {
  /* keep your existing styling */
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 0%, #f0fcff 0%, #e6f4ff 60%, #edf2ff 100%);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  /* BREAK-OUT TO FULL WIDTH */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* then keep your grid itself centered at 1200px */
.matrix-partners-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    position: relative;
    min-width: 350px;
    padding: 20px 25px;
    border-radius: 15px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.2), rgba(0, 212, 255, 0.2));
    border-color: rgba(0, 255, 127, 0.3);
}

.toast.error {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.2), rgba(255, 69, 0, 0.2));
    border-color: rgba(255, 0, 127, 0.3);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: linear-gradient(45deg, #00ff7f, #00d4ff);
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.5);
}

.toast.error .toast-icon {
    background: linear-gradient(45deg, #ff007f, #ff4500);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #ff00ff);
    border-radius: 0 0 15px 15px;
    animation: progress 4s linear forwards;
}

.toast.success .toast-progress {
    background: linear-gradient(90deg, #00ff7f, #00d4ff);
}

.toast.error .toast-progress {
    background: linear-gradient(90deg, #ff007f, #ff4500);
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.toast.show::before {
    left: 100%;
}

/* Particle effect */
.toast::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: particle 0.6s ease-out;
}

@keyframes particle {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 20px;
        right: 20px;
        left: 20px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}
.lightbox-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.35);
  color: #fff; font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
  cursor: pointer; z-index: 10001;
  backdrop-filter: blur(6px);
  transition: opacity .2s ease, background .2s ease;
  opacity: 0; visibility: hidden; pointer-events: none; /* caché par défaut */
}
#lightbox-prev{ left: 18px; }
#lightbox-next{ right: 18px; }
.lightbox-nav:hover{ background: rgba(0,0,0,.55); }

/* Afficher quand lightbox est ouvert */
#lightbox.active .lightbox-nav{
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* Auto-hide après inactivité (voir JS) */
#lightbox.active.idle .lightbox-nav{
  opacity: 0; visibility: hidden; pointer-events: none;
}

@media (max-width: 640px){
  .lightbox-nav{ width:44px;height:44px;font-size:24px; }
}



/* Conteneur du header en 2 rangées */
.header .container { padding-top: 8px; }
.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.logo{ display:flex; align-items:center; gap:12px; }
.logo img{ height:70px; width:auto; object-fit:contain; }
.brand-logo{ height:60px; width:auto; object-fit:contain; }

/* Conteneur de la rangée des liens */
.header-bottom{
  display:flex;
  justify-content:center;   /* centre le <ul> */
}

/* La liste elle-même */
.header-bottom .nav{
  display:inline-flex;       /* une seule ligne */
  align-items:center;
  justify-content:center;    /* centre les <li> */
  gap: 30px;
  margin: 0 auto;            /* sécurité */
  padding: 10px 0;
  list-style:none;
  white-space:nowrap;        /* empêche le retour à la ligne */
  overflow:visible;          /* pas de scroll horizontal */
}

/* (optionnel) sur écrans étroits, autoriser 2 lignes tout en restant centré */
@media (max-width: 900px){
  .header-bottom .nav{
    white-space:normal;      /* autorise le retour à la ligne */
    flex-wrap:wrap;
    row-gap:10px;
  }
}
/* cache la rangée des liens sous 900px */
@media (max-width: 900px){
  .header-bottom{ display: none !important; }
  .logo-text{ display: none !important; }
}

