/* ====================================
   PAGE PRÉSENTATION - VARIABLES & STYLES COMPLETS
   ==================================== */

/* Variables de couleurs */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --green-accent: #2ecc71;
}

/* Hero Section Présentation */
.page-presentation-wrapper .presentation-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #08b12d 100%);
    color: white;
    padding: 120px 0 90px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Navigation d’ancrage */
.page-presentation-wrapper .presentation-nav-wrapper {
    margin-top: -35px;
    margin-bottom: 35px;
    position: relative;
    z-index: 3;
    position: sticky;
    top: 90px;
}

.page-presentation-wrapper .presentation-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-presentation-wrapper .presentation-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.page-presentation-wrapper .presentation-nav a:hover,
.page-presentation-wrapper .presentation-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.25);
}

/* Chiffres clés */
.page-presentation-wrapper .presentation-stats {
    margin-bottom: 40px;
}

.page-presentation-wrapper .presentation-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.page-presentation-wrapper .presentation-stat {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.page-presentation-wrapper .presentation-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(46, 204, 113, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-presentation-wrapper .presentation-stat:hover::before {
    opacity: 1;
}

.page-presentation-wrapper .presentation-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.page-presentation-wrapper .presentation-stat-label {
    margin-top: 6px;
    font-size: 0.95rem;
    color: #5f6b6b;
    position: relative;
    z-index: 1;
}

.page-presentation-wrapper .presentation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23000000" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.page-presentation-wrapper .presentation-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    animation: shimmerPresentation 3s ease-in-out infinite;
}

@keyframes shimmerPresentation {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}



/* Breadcrumb */
.page-presentation-wrapper .presentation-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.page-presentation-wrapper .presentation-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-presentation-wrapper .presentation-breadcrumb-item a:hover {
    color: var(--green-accent);
    transform: translateX(5px);
}

.page-presentation-wrapper .presentation-breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.page-presentation-wrapper .presentation-breadcrumb-item + .presentation-breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Titres Hero */
.page-presentation-wrapper .presentation-hero-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
}

.page-presentation-wrapper .presentation-hero-subtitle {
    font-size: 1.3rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* Sections */
.page-presentation-wrapper .presentation-section {
    padding: 100px 0;
    position: relative;
}

.page-presentation-wrapper .presentation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(52, 152, 219, 0.03) 0%, transparent 50%),
               radial-gradient(circle at 70% 80%, rgba(46, 204, 113, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.page-presentation-wrapper .presentation-section.bg-light-presentation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* En-têtes de section */
.page-presentation-wrapper .presentation-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.page-presentation-wrapper .presentation-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-presentation-wrapper .presentation-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--green-accent));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-presentation-wrapper .presentation-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.6;
}

/* Timeline Histoire améliorée */
.page-presentation-wrapper .histoire-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.page-presentation-wrapper .timeline-toggle-wrapper {
    display: none;
    justify-content: center;
    margin-top: 10px;
}

.page-presentation-wrapper .timeline-toggle-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.25);
    transition: all 0.2s ease;
}

.page-presentation-wrapper .timeline-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(46, 204, 113, 0.3);
}

.page-presentation-wrapper .timeline-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.2);
}

.page-presentation-wrapper .histoire-timeline::after {
    content: '';
    position: absolute;
    width: 8px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--green-accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -4px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.page-presentation-wrapper .histoire-item {
    padding: 15px 50px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.page-presentation-wrapper .histoire-item::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border: 6px solid var(--secondary-color);
    border-radius: 50%;
    top: 20px;
    right: -15px;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.page-presentation-wrapper .histoire-item:hover::after {
    border-color: var(--green-accent);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.page-presentation-wrapper .histoire-item:nth-child(even) {
    left: 50%;
}

.page-presentation-wrapper .histoire-item:nth-child(odd) {
    left: 0;
}

.page-presentation-wrapper .histoire-item:nth-child(even)::after {
    left: -15px;
}

.page-presentation-wrapper .histoire-content {
    padding: 30px 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 6px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.page-presentation-wrapper .histoire-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-presentation-wrapper .histoire-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-left-color: var(--green-accent);
}

.page-presentation-wrapper .histoire-content:hover::before {
    opacity: 1;
}

.page-presentation-wrapper .histoire-date {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.page-presentation-wrapper .histoire-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.page-presentation-wrapper .histoire-content p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Mission & Vision améliorées */
.page-presentation-wrapper .mission-vision-box {
    text-align: center;
    padding: 50px 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-left: 6px solid var(--green-accent);
}

.page-presentation-wrapper .mission-vision-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 0 0 0 100%;
    opacity: 0.05;
    transition: all 0.4s ease;
}

.page-presentation-wrapper .mission-vision-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.page-presentation-wrapper .mission-vision-box:hover::before {
    transform: scale(1.1);
}

.page-presentation-wrapper .mission-vision-icone {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.page-presentation-wrapper .mission-vision-box:hover .mission-vision-icone {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.4);
}

.page-presentation-wrapper .mission-vision-icone i {
    font-size: 2.5rem;
    color: white;
}

.page-presentation-wrapper .mission-vision-titre {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.page-presentation-wrapper .mission-vision-titre::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--green-accent));
    border-radius: 2px;
}

.page-presentation-wrapper .mission-vision-texte {
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: center;
    margin: 0;
}

/* Cartes Valeurs améliorées */
.page-presentation-wrapper .valeur-box {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border-top: 6px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.page-presentation-wrapper .valeur-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    border-radius: 0 0 0 100%;
    opacity: 0.05;
    transition: all 0.4s ease;
}

.page-presentation-wrapper .valeur-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--green-accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.page-presentation-wrapper .valeur-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-top-color: var(--green-accent);
}

.page-presentation-wrapper .valeur-box:hover::before {
    transform: scale(1.2);
}

.page-presentation-wrapper .valeur-box:hover::after {
    transform: scaleX(1);
}

.page-presentation-wrapper .valeur-icone {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 2.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    position: relative;
    z-index: 1;
}

.page-presentation-wrapper .valeur-box:hover .valeur-icone {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.4);
}

.page-presentation-wrapper .valeur-icone i {
    font-size: 2.8rem;
    color: white;
}

.page-presentation-wrapper .valeur-titre {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.page-presentation-wrapper .valeur-titre::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--green-accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.page-presentation-wrapper .valeur-box:hover .valeur-titre::after {
    width: 80px;
}

.page-presentation-wrapper .valeur-description {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Animations */
.page-presentation-wrapper .histoire-content,
.page-presentation-wrapper .valeur-box,
.page-presentation-wrapper .mission-vision-box {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpPresentation 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUpPresentation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délais d'animation */
.page-presentation-wrapper .histoire-item:nth-child(1) .histoire-content { animation-delay: 0.1s; }
.page-presentation-wrapper .histoire-item:nth-child(2) .histoire-content { animation-delay: 0.2s; }
.page-presentation-wrapper .histoire-item:nth-child(3) .histoire-content { animation-delay: 0.3s; }
.page-presentation-wrapper .histoire-item:nth-child(4) .histoire-content { animation-delay: 0.4s; }
.page-presentation-wrapper .histoire-item:nth-child(5) .histoire-content { animation-delay: 0.5s; }
.page-presentation-wrapper .histoire-item:nth-child(6) .histoire-content { animation-delay: 0.6s; }
.page-presentation-wrapper .histoire-item:nth-child(7) .histoire-content { animation-delay: 0.7s; }
.page-presentation-wrapper .histoire-item:nth-child(8) .histoire-content { animation-delay: 0.8s; }
.page-presentation-wrapper .histoire-item:nth-child(9) .histoire-content { animation-delay: 0.9s; }
.page-presentation-wrapper .histoire-item:nth-child(10) .histoire-content { animation-delay: 1.0s; }
.page-presentation-wrapper .histoire-item:nth-child(11) .histoire-content { animation-delay: 1.1s; }

.page-presentation-wrapper .row > div:nth-child(1) .valeur-box { animation-delay: 0.1s; }
.page-presentation-wrapper .row > div:nth-child(2) .valeur-box { animation-delay: 0.2s; }
.page-presentation-wrapper .row > div:nth-child(3) .valeur-box { animation-delay: 0.3s; }

.page-presentation-wrapper .row > div:nth-child(1) .mission-vision-box { animation-delay: 0.1s; }
.page-presentation-wrapper .row > div:nth-child(2) .mission-vision-box { animation-delay: 0.2s; }

/* Responsive */
@media (max-width: 768px) {
    .page-presentation-wrapper .presentation-hero {
        padding: 100px 0 70px;
    }
    
    .page-presentation-wrapper .presentation-hero-title {
        font-size: 2rem;
    }
    
    .page-presentation-wrapper .presentation-hero-subtitle {
        font-size: 1rem;
    }

    .page-presentation-wrapper .presentation-nav-wrapper {
        margin-top: -25px;
        margin-bottom: 25px;
        top: 70px;
    }

    .page-presentation-wrapper .presentation-nav {
        gap: 8px;
        padding: 10px;
    }

    .page-presentation-wrapper .presentation-nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .page-presentation-wrapper .histoire-timeline.is-collapsed .histoire-item:nth-child(n+5) {
        display: none;
    }

    .page-presentation-wrapper .timeline-toggle-wrapper {
        display: flex;
    }

    .page-presentation-wrapper .histoire-item {
        margin-bottom: 24px;
        padding-left: 70px;
        padding-right: 18px;
    }

    .page-presentation-wrapper .histoire-content {
        padding: 18px;
    }

    .page-presentation-wrapper .histoire-date {
        font-size: 0.95rem;
        padding: 4px 12px;
    }

    .page-presentation-wrapper .histoire-content h3 {
        font-size: 1.15rem;
    }

    .page-presentation-wrapper .presentation-stats-grid {
        grid-template-columns: 1fr;
    }

    
    .page-presentation-wrapper .presentation-section {
        padding: 60px 0;
    }
    
    .page-presentation-wrapper .presentation-header h2 {
        font-size: 2.2rem;
    }
    
    /* Timeline responsive */
    .page-presentation-wrapper .histoire-timeline::after {
        left: 31px;
    }
    
    .page-presentation-wrapper .histoire-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }
    
    .page-presentation-wrapper .histoire-item:nth-child(even) {
        left: 0;
    }
    
    .page-presentation-wrapper .histoire-item::after {
        left: 23px !important;
        right: auto !important;
    }
    
    .page-presentation-wrapper .histoire-item:nth-child(even)::after {
        left: 23px !important;
    }
    
    .page-presentation-wrapper .mission-vision-box,
    .page-presentation-wrapper .valeur-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .page-presentation-wrapper .presentation-hero {
        padding: 60px 0 40px;
    }
    
    .page-presentation-wrapper .histoire-content {
        padding: 20px;
    }
    
    .page-presentation-wrapper .histoire-content h3 {
        font-size: 1.2rem;
    }
}

/* ====================================
   STYLES POUR LES ANIMATIONS JS
   ==================================== */

/* Effet Ripple sur les cartes */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animation slide-in pour timeline */
.histoire-content.slide-in {
    animation: slideInFromSide 0.6s ease-out forwards;
}

@keyframes slideInFromSide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-presentation-wrapper .histoire-item:nth-child(even) .histoire-content.slide-in {
    animation: slideInFromSideRight 0.6s ease-out forwards;
}

@keyframes slideInFromSideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Point timeline visible */
.histoire-item.timeline-visible::after {
    animation: pointPulse 0.8s ease-out;
}

@keyframes pointPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--green-accent));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* Lazy loading images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Effet visible pour Intersection Observer */
.histoire-content,
.mission-vision-box,
.valeur-box {
    transition: all 0.6s ease;
}

.histoire-content.visible,
.mission-vision-box.visible,
.valeur-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour le bouton back-to-top */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

