:root {
    --primary-color: #333;
    --secondary-color: #6b4e39;
    --accent-color: #007BFF;
    --text-color: #000000;
    --background-color: #888888;
    --card-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    --form-bg: #f9f9f9;
    --form-text: #333;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --purple:  #6A4D9D;
    --orange: #F5C687;
    --green: #A7CE60;
    --blue: #0096cd;
    --bg-card: rgba(255, 255, 255, 0.7);
   
}

.dark-mode {
    --primary-color: #222;
    --secondary-color: #504339;
    --accent-color: #3a97ff;
    --text-color: #f0f0f0;
    --background-color: #444;
    --card-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    --form-bg: #333;
    --form-text: #f0f0f0;
     --bg-card: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    
    background-image: url('image/sosbg2.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: relative;

    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    color: black;
    
}


/* Special nav styling to ensure it stays on top */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Conteneur pour l'image */
.header-content {
    display: flex;
    justify-content: flex-start; /* Aligne l'image à gauche */
    
}

/* Ajustement de l'image */
header img {
    width: 15vw;
    border-radius: 20px;
    margin: 10px;
}

.activitebouton {
    width:  90%;
    align-self: center;
    justify-content: center;
    margin: 20px;
  
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box; /* Added to include padding and border in the element's total width and height */
   
}

.activitebouton:hover {
    cursor: pointer;
    scale: 1.01;
}
.activitebouton h2 {
 color: var(--text-color);
   

}
/* Styles pour le sous-menu */
nav li ul {
    display: none; /* Masquer le sous-menu par défaut */
    position: absolute; /* Positionner le sous-menu sous l'élément parent */
    top: 100%; /* Positionner juste en dessous de l'élément parent */
    left: 0;
    
    border: 2px solid #ffffff;
    border-radius: 0 0 5px 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre du sous-menu */
    z-index: 999; /* Assurez-vous que le sous-menu soit au-dessus des autres éléments */
}

nav li ul li {
    margin: 0; /* Enlever la marge des éléments du sous-menu */
}

nav li ul li a {
    display: block; /* Permet de cliquer facilement sur les liens */
    padding: 10px 15px; /* Espacement interne des liens */
    color: var(--text-color); /* Couleur du texte des liens */
    text-align: center;
}



/* Afficher le sous-menu au survol */
nav li:hover ul {
    display: block;
}
/* Conteneur principal du menu */
/* Styles de base pour le menu principal */


nav li {
    position: relative; /* Nécessaire pour positionner le sous-menu */
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

nav {
    backdrop-filter: blur(5px); /* Flou de l'arrière-plan */
    display: flex;
    justify-content: center;  /* Pour espacer les éléments de manière égale */
    align-items: center;  /* Pour centrer verticalement */
    border: 2px solid rgb(0, 0, 0);  /* Bordure blanche autour du menu */
    border-radius: 10px;  /* Coins arrondis */
    padding: 10px;  /* Espacement interne */
   
}

/* Liste des éléments de navigation */
nav ul {
    display: flex;
    list-style: none;  /* Supprime les puces de la liste */
    margin: 0;
    padding: 0;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}
/* Chaque élément du menu */
nav ul li {
    padding: 0 20px;  /* Espace horizontal autour de chaque lien */
    border-left: 1px solid white;  /* Ligne blanche séparant les éléments */
}

/* Supprimer la bordure gauche du premier élément */
nav ul li:first-child {
    border-left: none;
}

/* Style des liens */
nav ul li a {
    text-decoration: none;  /* Supprime le soulignement des liens */
    color:var(--text-color);  /* Couleur blanche pour les textes */
    font-weight: bold;  /* Texte en gras */
}

/* Ajout d'un effet au survol (optionnel) */
nav ul li a:hover {
    color: #000b00;  /* Change la couleur du texte au survol (vert clair) */
}


nav a:hover {
    color: #444; 
}


.main-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.left-section {
    width: 100%;
    
    
}

.right-section {

    margin-top: 10px;
}
.photo {
    overflow: hidden;
    margin: 10px 0;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    border: 4px solid white;
    display: flex; /* Pour utiliser justify-content */
    justify-content: center;
    align-items: center; /* Pour centrer verticalement */
}

.photo img {
    position: relative; /* Ajout de position */

    width: 100%;
    border-radius: 20px;
    object-fit: cover; /* S'assure que l'image couvre l'ensemble du conteneur */
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}
.articles-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
}

.card {
    background-color:  var(--form-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
    flex: 1 1 25%;
    margin: 15px;
    max-width: 25vw;
  height: 90%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card2{
        background-color: var(--primary-color);
        padding: 20px;
        border-radius: 10px;
        box-shadow: var(--card-shadow);
        transition: transform 0.3s;
        flex: 1 1 28%;
        margin: 15px;
        text-align: left;
}

.card2 a {
color: black !important;
}

.card1 {
    flex: 0 0 100% ;
    background-color: var(--background-color);
   
    padding: 20px;
    border-radius: 10px;
    
    text-align: left;
 
  
    width: 90%;
    height: 100%   ;              
}

.card:hover , .don-option:hover {
    transform: scale(1.05);
}

.card1 h2, .card2 h1 {
    font-size: 2rem;
    color: var(--form-bg);
    margin-bottom: 10px;
 
}
h1, h2{ 
     text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); /* Adding text shadow */
    }
.card h3, .card1 p, .card2 p{
    color: var(--text-color);
    font-size: 1.2rem;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 10px;
}

.card img {
    width: 80%;
    height: auto;
    border-radius: 10px;
}

.borderVert {
    border: 4px solid #A7CE60;
}

.borderOrange {
    border: 4px solid #F5C687;
}

.borderViolet {
    border: 4px solid #6A4D9D;
}

.right-section.actualites {
    text-align: center;
    padding: 10px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
   
    overflow: hidden;
  
}

.carousel {
    display: flex;
    
    transition: transform 0.5s ease;
}


.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-button.prev {
    position: absolute;
    left: 0;
}

.carousel-button.next {
    position: absolute;
    right: 0;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.actualites {
    background-color: #d2d2d2; /* Couleur de fond de secours */
    background-image: url('image/ami.png'); /* Image de fond */
    background-size: cover; /* L'image couvre tout l'espace disponible */
    background-position: center; /* Centre l'image */
    background-repeat: no-repeat; /* Évite la répétition de l'image */
    display: flex;
    flex-direction: column;
    width: 92%;
    
    overflow: hidden;
    border-radius: 20px;
    padding: 10px;
    border: 4px solid white;
    box-shadow: var(--card-shadow);
}


section h1 {
    color: var(--text-color);
    font-size: 2rem;
    margin: 10px 0;
    text-align: center;
}


.actualites p {
    color:  #f9f9f9;
    font-size: 1rem;
    text-align: center;
    margin: 10px 0;
 }
 
.actualites h2 {
    color: #f9f9f9;
    font-size: 2rem;
    text-align: center;
    margin: 10px 0;
 }


section h1 {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
}
section h2 {
    text-align: center;
    font-size: 1.2rem;
    margin: 5px 0;
}

::-webkit-scrollbar-track {
    background-color: #ffffff;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-button {
    background-color: #d2d2d2;
}

::-webkit-scrollbar-corner {
    background-color: black;
}
/*
 section h1::after {
    position: absolute;
    left: -40px;
    content: "";
    height: 100%;
    background-color: #fff;
    width: 20px;
} */


/* Styles pour la section Galerie */
.gallery-section {
    padding: 20px;
    background-color: #444;
    margin: 20px;
    border-radius: 15px;
    border: 2px solid white;
}

.gallery-section h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}
  /* Styles de la galerie */
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 10px;
}

.gallery-item {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Coupe légèrement pour bien remplir l'espace */
    display: block;
    border-radius: 5px; /* Coins arrondis */
}

/* Portrait : Prend 2 lignes */
.portrait {
    grid-row: span 2;
}

/* Paysage large : Prend 2 colonnes */
.landscape {
    grid-column: span 2;
}


.gallery-item img:hover {
   transform: scale(1.1);
}

.gallery-item p {
    margin-top: 10px;
    color: white;
}


/* Styles pour la section Nous font confiance */
.trust-section {
    padding: 10px;
    background-color: #444;
    margin: 10px 0;
    
    border: 2px solid white;
}

.trust-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
}

.trust-logos {
    display: flex;
    
    justify-content: center;
    gap: 10px;
}

.trust-logos img {
    width: auto;
    height: 120px;
    border: 2px solid rgb(245, 245, 245);
    border-radius: 15px;
    padding: 5px;
    transition: transform 0.3s ease;

}

.trust-logos img:hover {
    transform: scale(1.1);
}

.bouton-section {
    margin: 10px 0;

    justify-content: space-around;
    display: flex;
    flex-direction: row;
    gap: 10px; /* Added to give some space between buttons */
}

.bouton {
    color : white;
    margin: 20px;
    width: 40vw;
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box; /* Added to include padding and border in the element's total width and height */
   
}

.bouton:hover {
    transform: scale(1.05);
}
a {
    color:#00b0e2;
    text-decoration: none;
}

.contact-section {
    text-align: center;
    padding: 20px;
    background-color: #222222;
    border-radius: 15px;
    border: 2px solid white;
    margin: 20px;
}

.contact-section h2 {
    color: var(--form-bg);
    font-size: 24px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: inline-block;
    width: 60px;
    height: 60px;
}

.social-icons img {
    width: 100%;
    height: auto;
    
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Styles pour la section Documents à Télécharger */
.documents-section {
    padding: 20px;
    background-color: var(--form-bg);
    margin: 20px;
    border-radius: 15px;
    border: 2px solid white;
    text-align: center;
}

.documents-section h1 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.documents-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.document-item {
    background-color: rgba(249, 249, 249, 0.2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    width: 80%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-item:hover {
    transform: scale(1.05);
}

.document-item h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.document-item a {
    text-decoration: none;
    color: var(--text-color);
}
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--form-bg);
    color: var(--form-text);
    width: 100%;
    margin-top: auto;
}

/* Make sure body is set up as a flex container to push footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure main content area takes available space to push footer down */
.main-container {
    flex: 1;
}


.don-section,
.don-importance-section,
.don-options-section,
.don-form-section,
.don-testimonials-section {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

.don-section h1,
.don-importance-section h2,
.don-options-section h2,
.don-form-section h2,
.don-testimonials-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.don-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    
}

.don-option {
    flex: 1;
    min-width: 250px;
    margin: 10px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.don-option h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#don h1 {
    font-size: 2rem;
color : var(--form-text);
    margin-bottom: 10px;
}

.don-form-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.password-protect-section, .gallery-section {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.password-protect-section h1, .gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: darken(var(--accent-color), 10%);
}

.error-message {
    color: red;
    margin-top: 10px;
}


@media screen and (max-width: 1000px) {

    .articles-container{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;

            }
    .main-container {
        flex-direction: column;
        padding: 10px;
    }
    .left-section, .right-section {
        margin: 0;
        width: 100%;
    }
    .photo {
        height: auto;
       width: auto;
       padding: 0;
    }
    .card {
    
        flex: 1 1 100%;
        max-width: 100%;
    }
    .articles-container{
        justify-content: center;
        align-items: center;
    }
    nav ul {
        flex-direction: column;
        display: block;
    }
    nav li {
        margin: 10px 0;
    }
    nav li + li::before {
        display: none;
    }
    nav ul li ul {
        position: static;
        border-radius: 15px;
        box-shadow: none;
    }
    nav ul li ul li a {
        padding: 10px 15px;
    }

    .bouton {
    font-size: 0.8rem;
    }

    .trust-logos img {
        height: 60px;
        padding: 5px;

    }
    .trust-logos {
  gap: 5px;

    }
.trust-section {
    padding: 10px;
}
}

@media screen and (max-width: 768px) {
    .card {
        flex: 1 1 80%;
        
    }
    .gallery-item {
        width: 100%;
    }
    
.gallerie-column{
    display: flex;
    flex-direction: column;
    width: 80vw;
    gap: 10px;

}
    nav ul {
        flex-direction: column;
    }
    nav li {
        margin: 10px 0;
    }
    nav li + li::before {
        display: none;
    }
    nav ul li ul {
        position: static;
        border-radius: 15px;
        box-shadow: none;
    }
    nav ul li ul li a {
        padding: 10px 15px;
    }
    .bouton-section{
        justify-content: center;
        align-items: center;
    }
    
    .bouton-section h2{
        font-size: 0.8rem;
    }
    .gallery {
        flex-direction: column;
        
    }

    .photo {
        height: auto;
       width: auto;
       padding: 0;
    }
    .menu-toggle {
        display: flex;
    }
    
    header {
        position: relative;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 20px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    nav ul.show {
        display: flex;
        flex-direction: column;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .auth-btn, .user-info {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .card1 h2 {
font-size: 1rem;
    }

    .h1 {
font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {

    header img {
        width: 40vw;
    }
    nav ul {
       margin-bottom: 15px;
    }
    .carousel-button {
        padding: 5px;
    }
    .main-container {
        padding: 5px;
    }
    .gallery-item {
        width: 100%;
    }
    .gallerie-column{
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 80vw;
        gap: 10px;
    
    }
    .gallery {
        flex-direction: column;
    }
    .card-button {
        padding: 5px 10px;
        font-size: 12px;
    }
    .photo {
        height: auto;
       width: auto;
       padding: 0;
    }
    .card {
        flex: 1 1 100%;
    }
    .actualites-container{
flex-direction: column;
    }
}


/* Slideshow container styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Enhanced style for slideshow images with zoom effect */
.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);

    transition: 
        opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active image visible with enhanced animation */
.slideshow-image.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Pre-loading next image */
.slideshow-image.next {
    z-index: 0;
}

/* Keep the photo container properly sized */
.photo {
    position: relative;
    overflow: hidden;
}

#ref div {

    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #A7CE60;
    text-align: left;
    transition: transform 0.3s;
   
    margin: 15px;
    transition: transform 0.3s;
    
}

#ref div p {
    
    margin: 10px;
}
hr {
    width: 90%;
    margin: 0 auto;
}
#re h1 {
    color: black;
    margin: 1.6rem;
}

#re h2{
    color: black;
    color: var(--text-color);
    margin: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}
#re ul {
    margin: 10px;
}
#re li{
    color: black;
    margin: 10px;
}

#re p, #re u {
    color: black;
}

#re2 h1, #re2 h2{
color: var(--text-color);
    margin: 1rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    position: relative;
}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 1rem;
    font-weight: bold;
    color: #3498db;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

/* Animation pour les images qui se chargent */
.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0, #e0e0e0, #f0f0f0);
    background-size: 200% 100%;
    animation: loading-pulse 1.5s infinite;
}

@keyframes loading-pulse {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: var(--form-bg);
    color: var(--form-text);
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.error-message {
    color: #f44336;
    margin: 10px 0;
}

.register-link {
    text-align: center;
    margin-top: 15px;
}

.register-link a {
    color: #4CAF50 !important;
    font-weight: bold;
    text-decoration: underline;
}

.register-link a:hover {
    color: #45a049;
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

/* Navigation Improvements */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin: 10px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Enhanced Animation Effects */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image Improvements */
.photo img.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

/* Accessibility Improvements */
button, a {
    position: relative;
    overflow: hidden;
}

button:focus, a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Page Loading Animation */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.page-transition.fade-out {
    opacity: 0;
    pointer-events: none;
}

.page-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--background-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #0069d9;
}


.fond {
width: 100vw;
height: 60vh;

}


.card3 {
    width: 100%;
}

#notreasso div , #ref div , #don div  ,  #re2 div {
    background-color:  var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    border: 4px solid transparent;
    border-image: linear-gradient(45deg, var(--purple), var(--orange), var(--green), var(--blue)) 1;
    text-align: left;
    transition: transform 0.3s;
    margin: 15px;
    color: var(--text-color);
}
#notreasso DIV div:hover, #ref DIV div:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
}
#notreasso div h1 , #ref h1 ,  #don div h2 {
    color: var(--text-color);

}
 #ref {

    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
 }

 #re div{
   min-height: 70vh;
    padding: 20px;
    border-radius: 15px;
    border: 4px solid transparent;
    border-image: linear-gradient(45deg, var(--purple), var(--orange), var(--green), var(--blue)) 1;
    text-align: left;
    transition: transform 0.3s;
    margin: 15px;
    color: var(--text-color);}

#re div.vert {
        background-color: rgb(167, 206, 96, 0.5);
}

#re div.violet {
        background-color: rgb(106, 77, 157, 0.7);
    
}
#re div.violet a {
      color: rgb(165, 255, 255);
}

#re div.violet p, #re div.violet h1 {
    color: white;
}

#re div.orange {
        background-color: rgb(245, 198, 135, 0.7);
}
.space {
    height: 10vh;
    background-color: transparent;
}  

.TitreHistoire {


    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align:left;
}