/* Page Header */

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/Lessaliennes/maman-Amel-1.bmp');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    /* Hauteur réduite sur tous écrans */
    color: white;
    text-align: center;
}


/* Sur desktop, on ajuste le positionnement pour mieux cadrer l'image */

@media (min-width: 992px) {
    .page-header {
        background-position: center 30%;
        /* Remonte légèrement l'image */
        padding: 120px 0 80px;
        /* On garde une hauteur confortable */
    }
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}


/* Sections */

.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 800;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
    bottom: 0;
    left: 0;
}

.section-title.center-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 350px;
    background: url('../images/Lessaliennes/Maman\ Amel\ 4.jpg') center/cover no-repeat;
}

.value-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-orange);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.partner-logo {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 80%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
}


/* Footer (identique à l'accueil) */

.contact-info {
    margin-bottom: 30px;
}

.contact-info i {
    color: var(--primary-orange);
    margin-right: 10px;
    width: 20px;
}

.newsletter-form .form-control {
    border-radius: 5px 0 0 5px;
    border: 1px solid #ddd;
}

.newsletter-form .btn {
    border-radius: 0 5px 5px 0;
    background-color: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange);
    font-weight: 600;
}

footer {
    background-color: var(--accent-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: translateY(-5px);
}


/* Responsive */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .top-bar .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .top-bar .row>div {
        text-align: center !important;
        justify-content: center !important;
    }
    .top-bar .social-icons {
        margin-left: 0 !important;
        margin-top: 5px;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 1.3rem;
    }
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    .section-title h2 {
        font-size: 1.4rem;
    }
    .stem-section h3 {
        font-size: 1.4rem;
    }
    .program-card {
        padding: 15px;
    }
    .news-image {
        height: 140px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.1rem;
    }
    .logo img {
        width: 35px;
        height: 35px;
    }
}


/* Toast Notification */

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    color: var(--dark-color);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1050;
    max-width: 380px;
    width: calc(100% - 60px);
    transform: translateX(calc(100% + 60px));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 4px solid var(--primary-orange);
    font-family: 'Poppins', sans-serif;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    background-color: var(--primary-orange);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-orange);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--primary-orange);
}

@media (max-width: 576px) {
    .toast-notification {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        max-width: calc(100% - 40px);
        width: calc(100% - 40px);
    }
    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .toast-title {
        font-size: 0.9rem;
    }
    .toast-message {
        font-size: 0.85rem;
    }
}