:root {
    --Yellow: #ffc107;
    /* jaune Bootstrap */
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

main {
    flex: 1;
}

/* Bande supérieure informatif */
.top-bar {
    background-color: #1e3353;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    padding: 0.4rem 1rem;
}

.header-top {
    background: linear-gradient(90deg, #004d26, #008040);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 60px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.header-title h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-title small {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.navbar-custom {
    background: linear-gradient(90deg, #004d26, #008040);
    padding: 0.4rem 0;
}

.navbar-custom .nav-link {
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background-color: #1e3353;
    color: #ffffff !important;
    border-radius: 5px;
}

.dropdown-menu {
    background-color: #006633;
    border: none;
}

.dropdown-item {
    color: white;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #1e3353;
    color: white !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .header-logo img {
        height: 40px;
    }

    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-title small {
        font-size: 0.8rem;
    }

    .navbar-custom .nav-link {
        font-size: 0.95rem;
    }

    .top-bar {
        font-size: 0.8rem;
    }
}

/* Section d’intro */
.intro-section {
    background-color: #ffffff;
}

.intro-section p {
    font-size: 1.1rem;
    color: #333;
}

/* Section fonctionnalités */
.features-section {
    background-color: #ffffff;
    margin-bottom: 2.5rem;
}

.section-title {
    font-weight: 700;
    font-size: 2rem;
    color: #1e3353;
}

.feature-card {
    background-color: #f1f6f4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #004d26, #008040);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

#section-2 {
    padding-bottom: 2.5rem;
}

/* Lien forum */
.forum-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

/* Icône avec animation continue */
.forum-icon {
    font-size: 3rem;
    display: inline-block;
    animation: pulseTilt 3s infinite ease-in-out;
}

/* Animation combinée */
@keyframes pulseTilt {
    0% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    50% {
        transform: scale(1.15) rotate(0deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Titre */
.forum-title {
    transition: transform 0.3s ease;
}

/* Sous-titre */
.forum-subtitle {
    transition: opacity 0.3s ease;
}

/* Animation rebond */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Effet au survol */
.forum-link:hover .forum-icon {
    animation: pulse 0.6s ease-in-out;
}

.forum-link:hover .forum-title {
    animation: bounce 0.6s ease-in-out;
}

.forum-link:hover .forum-subtitle {
    opacity: 0.8;
}

.homePaysLink {
    color: whitesmoke;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 70%);
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;              /* flex conserve l’alignement */
    align-items: center;
    gap: 0.5rem;                /* espace homogène entre drapeau et texte */
    position: relative;
}

.homePaysLink img.flag-icon {
    height: 32px;
    display: inline-block;
    transform: translateX(0);   /* position initiale */
    transition: transform 0.8s ease-in-out; /* mouvement fluide */
    z-index: 0;                 /* derrière le texte */
}

.homePaysLink .country-name {
    text-decoration: none;
    color: whitesmoke;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;                 /* texte toujours au-dessus */
}

.homePaysLink:hover .country-name {
    color: var(--Yellow);
    transform: scale(1.05);
}











