body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fff;
    color: #222;
}

.navbar-brand {
    font-size: 2rem;
    letter-spacing: 1px;
}

.nav-link {
    color: #1A3556 !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #F3921B !important;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 53, 86, 0.5); /* Filtre sombre (couleur de la palette) */
    z-index: 1;
}

.hero-section .text-center {
    position: relative;
    z-index: 2;
}

.hero-section p {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.display-3 {
    text-shadow: 1px 2px 8px #fff2e0;
}

.btn-orange {
    background: #F3921B;
    color: #fff;
    border-radius: 30px;
    transition: background 0.3s, transform 0.3s;
}

.btn-orange:hover {
    background: #1A3556;
    color: #fff;
    transform: scale(1.05);
}

/* ORGANIGRAMME */
.organigramme-container {
    overflow-x: auto;
    padding: 2rem 0;
}
.organigramme-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.org-level {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.org-box {
    background: #fff;
    border: 2px solid #F3921B;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    min-width: 220px;
    box-shadow: 0 2px 16px #f3921b22;
    text-align: center;
    font-weight: 500;
    color: #1A3556;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    z-index: 1;
}
.org-box span {
    display: block;
    font-size: 1rem;
    color: #F3921B;
    font-weight: 700;
    margin-top: 0.5rem;
}
.org-box:hover {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 8px 32px #f3921b55;
    background: #fff8f0;
}
.org-president, .org-vp {
    font-size: 1.2rem;
    background: #F3921B;
    color: #fff;
    border-color: #1A3556;
}
.org-president span, .org-vp span {
    color: #fff;
}
.org-special {
    background: #ffe5b4;
    border-color: #F3921B;
    color: #b36a00;
}
.animate-org {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s forwards;
}
.animate-org:nth-child(1) { animation-delay: 0.1s; }
.animate-org:nth-child(2) { animation-delay: 0.3s; }
.animate-org:nth-child(3) { animation-delay: 0.5s; }
.animate-org:nth-child(4) { animation-delay: 0.7s; }
.animate-org:nth-child(5) { animation-delay: 0.9s; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .org-box {
        min-width: 160px;
        padding: 0.7rem 0.5rem;
        font-size: 0.95rem;
    }
    .organigramme-tree {
        gap: 1rem;
    }
}

section, .scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.77,0,0.175,1), transform 0.8s cubic-bezier(0.77,0,0.175,1);
}
section.visible, .scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TOOLTIP ORGANIGRAMME */
.org-tooltip {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    color: #1A3556;
    border: 1.5px solid #F3921B;
    border-radius: 8px;
    box-shadow: 0 2px 16px #f3921b22;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    min-width: 180px;
    max-width: 260px;
    white-space: normal;
}
.org-box:hover .org-tooltip, .org-box:focus .org-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* SCROLL TO TOP BUTTON */
#scrollToTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    background: #F3921B;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px #f3921b44;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, transform 0.4s;
}
#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.1);
}
#scrollToTopBtn:hover {
    background: #1A3556;
    color: #fff;
    transform: scale(1.2) rotate(-10deg);
}

/* GALERIE STYLES */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 15px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay small {
    font-size: 0.8rem;
    font-weight: 500;
} 