/* Navbar styles */
.navbar-custom {
    background-color: #003247 !important;
    transition: all 0.3s ease;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white !important;
    transition: all 0.3s ease;
}

.navbar-brand-custom:hover {
    color: #ffc107 !important;
}

.profile-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    transition: all 0.3s ease;
    border: 2px solid #ffc107;
    border-radius: 50% !important;
    object-fit: cover;
    display: inline-block;
}

.navbar-custom.scrolled .profile-img {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}

.brand-info {
    transition: all 0.3s ease;
}

.brand-name {
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled .brand-name {
    font-size: 1.2em;
}

.brand-title {
    font-size: 0.9em;
    color: #ffc107;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled .brand-title {
    font-size: 0.8em;
}

.brand-location {
    font-size: 0.75em;
    color: whitesmoke;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled .brand-location {
    font-size: 0.7em;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 5px;
    padding: 8px 12px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.1);
}

.navbar-nav .nav-link.active {
    color: #ffc107 !important;
    background-color: rgba(255, 193, 7, 0.2);
}

.navbar-toggler {
    border: none;
    padding: 5px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Page styles - Thème Centres d'intérêt */
body {
    font-family: 'Muli', sans-serif;
    background: linear-gradient(135deg, #f1f8ff 0%, #e8f4f8 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-content {
    margin-top: 120px;
    padding: 40px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-family: 'Saira Extra Condensed', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #2c5282;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4299e1, #2c5282);
    border-radius: 2px;
}

.intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid des centres d'intérêt */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    border: 1px solid rgba(44, 82, 130, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #4299e1, #2c5282);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 82, 130, 0.15);
}

.card i {
    font-size: 3rem;
    color: #4299e1;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover i {
    color: #ffc107;
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c5282;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.card h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 3px;
    background-color: #ffc107;
    transition: width 0.3s ease-in-out;
}

.card:hover h3 {
    color: #ffc107;
    transform: translateY(-2px);
}

.card:hover h3::after {
    width: 100%;
}

.card p {
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* Animations spécifiques pour chaque carte */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Footer styles */
footer .social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icon:hover {
    color: #ffc107 !important;
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .brand-info {
        margin-right: 10px;
    }
    
    .brand-name {
        font-size: 1.2em;
    }
    
    .brand-title {
        font-size: 0.8em;
    }
    
    .brand-location {
        font-size: 0.7em;
    }

    .navbar-nav {
        flex-direction: column !important;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        margin: 2px 0;
        text-align: center;
    }

    .page-title {
        font-size: 3rem;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .profile-img {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }
    
    .brand-name {
        font-size: 1.1em;
    }
    
    .brand-title {
        font-size: 0.75em;
    }
    
    .brand-location {
        font-size: 0.65em;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card i {
        font-size: 2.5rem;
    }
}