/* Reset de base */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
a
{
  text-decoration: none;
  color:#5b83c7;
}
a:hover
{
  color:#2b75f3;
}
a img:hover
{
    cursor:pointer;
}
/*   slide 8*/
 body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #0a192f;
  }
  /* Canvas pour chaque section */
  .background-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
  }
  /* Sections avec fond transparent pour laisser voir le canvas */
  section {
    position: relative;
    padding: 80px 20px;
    max-width: 1600px;
    margin: 0 auto 40px auto;
    width:100%;
    background: rgba(255,255,255,0.1);
  }
  h2 {
    color: #7792f6; /* Couleur de titre */
  }

/* side */


p
{
    color:#c0c1c3;
}

  /* Styles pour le header */
  header {
    position: sticky;
    top: 0;
    background-color:rgba(10,10,60,0.6);
    box-shadow: 0 2px 12px rgba(60,60,80,0.6);
    z-index: 100;
  }

  .header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    padding:10px 5px;
    justify-content: space-between;
  }
         /* Style pour les placeholders des éléments éditable */
.editable[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
}
select
{
    color:#a6a8b3;
    background-color:rgba(0,0,30,0.6);
    border-radius:9px;
    padding:5px 10px;
}

/* Met à jour dynamiquement le placeholder selon la langue */
.editable[lang="fr"]:empty:before {
    content: attr(data-fr-placeholder);
}
.editable[lang="en"]:empty:before {
    content: attr(data-en-placeholder);
}
.editable[lang="sw"]:empty:before {
    content: attr(data-sw-placeholder);
}
.editable[lang="ik"]:empty:before {
    content: attr(data-ik-placeholder);
}

  /* Logo */
  .logo {
    font-family: 'Pacifico', cursive;
    font-size: 24px;
    color: #4361ee;
    font-weight: bold;
    cursor: default;
  }

  /* Navigation desktop */
  nav {
    display: flex;
    align-items: center;
    margin:0px;
    
  }

  /* Menu item */
  .menu-item {
    position: relative;
  }

  .menu-link {
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
  }

  .nav a{
    color:#869ef9;
  }
  .menu-link:hover {
    color: #839bf5;
    transform: translateY(-2px);
  }

  /* Dropdown submenu */
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(20,30,80,0.6);
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    flex-direction: column;
    padding: 0px;
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.9);
    transition: opacity 0.3s, transform 0.3s;
    z-index:99;
  }

  .menu-item:hover .submenu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .submenu a {
    padding: 10px 20px;
    text-decoration: none;
    color: #848dad;
    font-weight: 400;
    transition: background 0.2s, color 0.2s;
  }

  .submenu a:hover {
    color: #869ef9;
  }

  /* Actions buttons */
  .actions {
    display: flex;
    gap: 10px;
  }

  .btn {
    padding: 8px 14px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
  }

  .btn:hover {
    transform: translateY(-2px);
    background: rgba(67,97,238,0.1);
  }

  .btn-primary {
    background-color: #4361ee;
    color: #fff;
  }

  /* Mobile menu button */
  #mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Mobile menu overlay */
  #mobile-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 200;
  }
  #mobile-menu.open {
    left: 0;
  }

  #close-mobile {
    font-size: 24px;
    cursor: pointer;
    padding: 10px 20px;
  }

  /* Mobile menu content */
  .mobile-nav {
    padding: 20px;
  }

  .mobile-nav a {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: #f9fafb;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: background 0.2s;
  }

  .mobile-nav a:hover {
    background: #e0e0e0;
  }

  /* Dropdown indicator arrow for mobile */
  .mobile-menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .mobile-dropdown {
    display: none;
    margin-left: 20px;
    margin-top: 8px;
    flex-direction: column;
  }

  .mobile-dropdown.show {
    display: flex;
  }

  /* Hero Slideshow styles */
  .hero {
    position: relative;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slide {
    position: absolute;
    top:0; left:0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1s ease, transform 1s ease;
    display:flex;
    justify-content:left;
    align-items:center;
    
  }

  .hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
  }

  /* Content inside slides */
  .slide-content {
      /* debut */


  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),  /* Couleur sombre à 90% d'opacité */
    rgba(0, 0, 0, 0.3)   /* Dégradé vers 10% d'opacité */
  );
  height: 100%;
  width: 100%; /* Ajustez la largeur */
  align-items:left;
  padding:20px 2%;
  color:#ffffff;
     /* fin====== */
    border-radius: 0px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-align: center;
    animation: fadeInUp 0.8s ease;




  }
  .hero-slide .ttx, .hero-slide.active .ttx
  {
    margin-top:13%;
    width:100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    

  }
   .hero-slide .ttx h2
   {
    font-size: 2em;
   }

  .hero-slide p, .hero-slide.active p
   {
      text-align: center;
      width:80%;
    margin-left: auto;
    margin-right: auto;
    }
 

  .hero-btn {
            margin-top: 2rem;
            padding: 12px 30px;
            background: #ff5722;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: all 0.3s ease;
            width:auto;
            height:auto;
            float:left;
        }
        
        .hero-btn:hover {
            background: #e64a19;
            transform: translateY(-2px);
        }
 /*   comptage ============================== */
 
 
  #countdown {
    font-size: 2.5em;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.5s ease;
    margin-bottom: 50px;
  }

  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  #countdown {
    animation: pulse 2s infinite;
  }

  .stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat {
    background: rgba(255, 255, 255, 0.6);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 180px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .stat:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }

  .stat h2 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #fff;
  }

  .stat p {
    font-size: 2em;
    margin: 0;
    font-weight: bold;
    color: #003799;
  }
 
 /* comptage ======================================== */
.pge
{
    width:98%;
    margin:15px auto;
    padding: 20px 1%;
    border-radius:15px;
    background: linear-gradient(
    to right,
    rgba(0, 0, 20, 0.7),  /* Couleur sombre à 90% d'opacité */
    rgba(0, 0, 20, 0.1)   /* Dégradé vers 10% d'opacité */
  );
  overflow:hidden;
  border:1px solid #929292;
    
}
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Indicators for slideshow */
  .indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
  }

  .indicator {
    width: 14px;
    height: 14px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }

  .indicator.active {
    background: #4361ee;
    transform: scale(1.2);
  }

  /* Features section */
  .features {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
  }

  .features h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
  }

  .feature-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  @media(min-width:768px){
    .feature-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .feature {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border:1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.2s;
  }

  .feature:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
  }

  .feature h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size:1.2em;
  }

  /* Categories section */
  .categories {
    padding: 50px 20px;
  }

  .categories h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
  }

  .category-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  @media(min-width:768px){
    .category-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .category {
    background: #fff;
    border-radius:8px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
  }
  .category:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
  }
  .category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
  .category-content {
    padding: 15px;
  }
  .category-content h3 {
    margin-bottom: 8px;
    font-size: 1.2em;
  }
  .category-content p {
    font-size: 0.95em;
    color: #555;
  }
  .cta-section {
    background:#f0f0f0;
    padding:50px 20px;
  }
  .cta-box {
    max-width: 800px;
    margin:auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 4px 20px rgba(0,0,0,0.05);
    display:flex;
    flex-direction:column;
    gap:20px;
  }
  @media(min-width:768px){
    .cta-box {
      flex-direction:row;
      align-items:center;
    }
  }
  .cta-text {
    flex:1;
  }
  .cta-text h2 {
    margin-bottom:10px;
    font-size:2em;
  }
  .cta-text p {
    font-size:1.1em;
  }
  .cta-input-group {
    display:flex;
    gap:10px;
  }
  .cta-input-group input {
    flex:1;
    padding:10px;
    border:1px solid #ccc;
    border-radius:4px;
    font-size:1em;
  }
  .cta-input-group button {
    padding:10px 20px;
    background:#4361ee;
    color:#fff;
    border:none;
    border-radius:4px;
    cursor:pointer;
    font-weight:600;
    transition: background 0.2s;
  }
  .cta-input-group button:hover {
    background:#3551cc;
  }
  /* Footer styles */
  footer {
    background:#222;
    color:#ccc;
    padding:40px 20px;
  }

  .footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width:1200px;
    margin:auto;
    gap:20px;
  }

  .footer-column {
    flex:1;
    min-width:200px;
  }

  .footer h3 {
    margin-bottom:10px;
    color:#fff;
  }

  .footer ul {
    list-style:none;
  }

  .footer ul li {
    margin-bottom:8px;
  }

  .footer a {
    color:#ccc;
    text-decoration:none;
    font-size:0.95em;
  }
  .footer a:hover {
    color:#fff;
  }

  /* Responsiveness */
  @media(max-width:768px){
    #mobile-menu-btn {
      display:inline;
      color:#ffffff;
    }
    nav {
      display:none;
    }
  }




  /* Conteneur principal  toogle*/
     
        
        /* Conteneur des boutons */
        .buttons-container {
            display: flex;
            gap: 15px;
            position: relative;
        }
        
        /* Style des boutons toggle */
        .toggle-btn {
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        #loginBtn {
            background-color: #4CAF50;
        }
        
        #donateBtn {
            background-color: #2196F3;
        }
        
        .toggle-btn:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        /* Style des formulaires */
        .popup-form {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #f9f9f9;
            width: 320px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            padding: 25px;
            z-index: 100;
            border-radius: 8px;
            animation: fadeIn 0.3s;
        }
        
        @keyframes fadeIn {
            from {opacity: 0; transform: translate(-50%, -45%);}
            to {opacity: 1; transform: translate(-50%, -50%);}
        }
        
        .popup-form h2 {
            margin-top: 0;
            color: #333;
            text-align: center;
        }
        
        .popup-form input, .popup-form select {
            width: 100%;
            padding: 12px;
            margin: 8px 0;
            display: inline-block;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 14px;
        }
        
        .popup-form button {
            width: 100%;
            color: white;
            padding: 14px;
            margin: 15px 0 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }
        
        .login-form button {
            background-color: #4CAF50;
        }
        
        .donation-form button {
            background-color: #2196F3;
        }
        
        .popup-form button:hover {
            opacity: 0.9;
        }
        
        .form-footer {
            text-align: center;
            margin-top: 15px;
        }
        
        .form-footer a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
        }
        
        .form-footer a:hover {
            text-decoration: underline;
        }
        
        /* Overlay pour fond sombre */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 50;
        }
        
        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 22px;
            color: #888;
            cursor: pointer;
        }
        
        .close-btn:hover {
            color: #555;
        }



    /* pied de page      */
:root {
  /* COULEURS PERSONNALISABLES */
  --primary-color: #4361ee; /* Couleur principale */
  --secondary-color: #3a0ca3; /* Couleur secondaire */
  --text-color: #ecf0f1; /* Couleur du texte */
  --bg-dark: #2c3e50; /* Arrière-plan foncé */

  --text-muted: #bdc3c7;
  --bg-darker: #1a252f;
  --hover-lightness: 15%;
  



  /* ESPACEMENTS PERSONNALISABLES */
  --section-padding: 40px;
  --item-spacing: 15px;
  --link-spacing: 10px;
}

.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-color);
  padding: var(--section-padding) 0 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--item-spacing) * 2);
}

/* Styles des liens */
.footer-section ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: calc(var(--link-spacing) / 2) 0;
  position: relative;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-section ul li a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.footer-section ul li a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  animation: underline-expand 0.3s ease-out;
}

@keyframes underline-expand {
  from { width: 0; }
  to { width: 100%; }
}

/* Icônes réseaux sociaux */
.social-links a {
  color: var(--text-color);
  background-color: color-mix(in srgb, var(--bg-dark), white 10%);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
}

/* Section Contact */
.contact-item i {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-padding: 30px;
    --item-spacing: 10px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section ul li a:hover {
    transform: none;
    color: var(--primary-color);
  }
  
  .contact-item {
    justify-content: center;
  }
}

/*   ===================  slide ========================================  */

/* Conteneur du slideshow */
.slideshow-container {
    max-width: 1600px;
    position: relative;
    margin: 50px auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    height: 600px;
}

/* Styles des slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.5s ease-in-out;
    transform: scale(0.9);
    filter: brightness(0.7);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-number {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2;
}

.slide-text {
    position: absolute;
    bottom: 80px;
    left: 50px;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 5px;
    transform: translateX(-150%);
    transition: transform 1s ease-in-out;
    backdrop-filter: blur(5px);
}

.slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Slide active */
.slide.active {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
    z-index: 1;
}

.slide.active .slide-text {
    transform: translateX(0);
    transition-delay: 0.3s;
}

/* Contrôles précédent/suivant */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    text-decoration: none;
    user-select: none;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.next {
    right: 30px;
}

.prev {
    left: 30px;
}

/* Indicateurs (dots) */
.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.dot {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 400px;
        margin: 20px auto;
    }
    
    .slide-text {
        bottom: 40px;
        left: 20px;
        padding: 15px;
        max-width: 80%;
    }
    
    .slide-text h2 {
        font-size: 1.5rem;
    }
    
    .slide-text p {
        font-size: 0.9rem;
    }
    
    .prev, .next {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }
}
