.bg-slide-001{
   background-image: url('../img/reneabo_n.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 100px;
    color: #fff
}

div .bg-slide-001 h1{
    font-family: 'Courier New', Courier, monospace; /* Police style machine à écrire */
    overflow: hidden; /* Cache le texte non écrit */
    border-right: .15em solid #000; /* Le curseur clignotant */
    white-space: nowrap; /* Garde le texte sur une seule ligne */
    letter-spacing: .15em;
    width: 0; /* Commence invisible */
    animation: 
        ecriture 3.5s steps(40, end) forwards,
        clignotement .75s step-end infinite;
}

@keyframes ecriture {
    from { width: 0 }
    to { width: 100% }
}

@keyframes clignotement {
    from, to { border-color: transparent }
    50% { border-color: #000; }
}

div .bg-slide-002 h1{
    animation: apparitionFloue 1.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes apparitionFloue {
    0% {
        transform: scale(2);
        filter: blur(4px);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        filter: blur(0px);
        opacity: 1;
    }
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

div .bg-slide-003 h1 {
    font-family: 'Rubik Mono One', sans-serif;
    color: #f4f4f4;
    animation: ombre3d 3s ease-in-out infinite alternate;
}

@keyframes ombre3d {
    0% {
        text-shadow: 1px 1px #ff0055, 2px 2px #ff0055, 3px 3px #ff0055;
        transform: translate(0, 0);
    }
    100% {
        text-shadow: 1px 1px #00ebc7, 2px 2px #00ebc7, 3px 3px #00ebc7, 4px 4px #00ebc7, 5px 5px #00ebc7, 6px 6px #00ebc7;
        transform: translate(-6px, -6px); /* Déplace le texte à l'opposé de l'ombre */
    }
}



.bg-slide-002{
    background-image: url('../img/maman\ generale_n.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 100px;
    color: #fff;
}

.bg-slide-003{
    background-image: url('../img/rab.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 100px;
    color: #fff;
}

.carousel-item .carousel-caption {
    position: absolute;
    top: 45%;
    left: 5%;
    transform: translateY(-45%);
    padding: 2rem 2.5rem;
    max-width: 760px;
    width: calc(100% - 4rem);
}

.carousel-item .carousel-caption h4 {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    line-height: 1.5;
    margin-bottom: 0;
}

li::marker{
    color: transparent;
}



#btn-faire-un-don{
    text-decoration: underline;
}

/* Section Notre Histoire avec image de fond */
#Histoire{
    /* 1. Voile noir transparent à 75% pour protéger la lisibilité du texte */
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                      url('../img/adorateur\ chançar.jpg'); /* Remplacez par le bon chemin de votre image */
    
    /* 2. L'image s'adapte à la taille de la section sans se déformer */
    background-size: cover;
    
    /* 3. L'image reste toujours bien centrée */
    background-position: center;
    
    /* 4. Évite que l'image ne se répète si elle est trop petite */
    background-repeat: no-repeat;
}

/* Les classe personalisée Pour les Boutons Spécials*/

/* --- BOUTON OR --- */
.btn-gold {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    color: #1a1a1a !important; /* Texte sombre pour le contraste */
    border: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #aa771c, #fbf5b7, #b38728, #fcf6ba, #bf953f);
    transform: translateY(-2px); /* Léger effet de soulèvement */
    box-shadow: 0 6px 12px rgba(191, 149, 63, 0.4);
}

/* --- BOUTON DIAMANT / CRISTAL --- */
.btn-diamond {
    background: linear-gradient(135deg, #e0f7fa, #ffffff, #b2ebf2, #e0f7fa);
    color: #006064 !important; /* Texte bleu canard très sombre */
    border: 1px solid #e0f7fa;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(178, 235, 242, 0.4);
    transition: all 0.3s ease;
}
.btn-diamond:hover {
    background: linear-gradient(135deg, #ffffff, #b2ebf2, #e0f7fa, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

/* --- BOUTON ARGENT (Alternative) --- */
.btn-silver {
    background: linear-gradient(135deg, #bdc3c7, #eccfa9, #bdc3c7); /* Effet métal */
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5, #9e9e9e);
    color: #212529 !important;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-silver:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(158, 158, 158, 0.4);
}

.parties-chantier{
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../img/New\ temple.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 100px;
    color: #fff
}

.ecodime-card {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 1rem;
}

.ecodime-slide {
    height: 260px;
    width: 100%;
    object-fit: cover;
    display: block;
    background-color: #0f172a;
}

.carousel-control-prev,
.carousel-control-next {
    width: 12%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100% 100%;
}

.bg-slide-xox{
   background-image: url('../img/medias3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 100px;
    color: #fff
}

.media-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.media-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.media-card .card-title {
    min-height: 3.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.media-card .card-text {
    line-height: 1.7;
    text-align: justify;
}

.association-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enseignement-hero {
    display: flex;
    flex-wrap: wrap;
    background-color: #eaeaea;
    padding: 40px;
    font-family: sans-serif;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.enseignement-hero > div {
    flex: 1 1 100%;
    max-width: 400px;
}

@media (max-width: 768px) {
    .bg-slide-001,
    .bg-slide-002,
    .bg-slide-003,
    .parties-chantier {
        padding: 60px 20px;
    }

    .carousel-item .carousel-caption {
        top: 50%;
        left: 3%;
        transform: translateY(-50%);
        padding: 1.5rem 1rem;
        max-width: calc(100% - 2rem);
    }

    .carousel-item .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-item .carousel-caption h4 {
        font-size: 1rem;
    }

    .ecodime-slide {
        height: auto;
    }

    .enseignement-hero {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
    }

    .enseignement-hero > div {
        max-width: 100%;
    }
}

.association-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.association-card-small {
    width: 100%;
    max-width: 16rem;
}

.association-img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}




