/* Styles généraux */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --background-color: #f9f9f9;
    --footer-background: #2c3e50;
    --footer-text: #ecf0f1;
    --btn-green: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    background-color: #a0cdd9; /* Slightly different color for variety, or keep same as Y */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.logo {
    max-height: 60px;
}

nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Les deux conteneurs centrés */
.featured-containers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.planif-container {
    width: 340px;
    height: 280px;
    background-image: url('Files/Image/planif.jpg'); /* Assuming generic image */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.planif-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.decouvrez-btn {
    background-color: var(--btn-green);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.decouvrez-btn:hover {
    background-color: #219653;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.ads-container {
    width: 340px;
    height: 280px;
    background-color: #f8f9fa;
    border-radius: 8px; /* Added for consistency */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Added for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.2rem;
}

.content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.pays-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    transition: all 0.3s ease; /* Moved transition here for consistency */
}

.pays-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem 0;
}

.pays-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    object-fit: cover; /* Added to ensure images fit well */
}

.pays-details {
    flex: 1;
    min-width: 250px;
}

.pays-details p {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 3rem 2rem;
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left, .footer-center, .footer-right {
    flex: 1;
    min-width: 250px;
}

footer h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

footer a {
    color: var(--light-color);
}

footer a:hover {
    color: var(--primary-color);
}

footer ul {
    list-style: none;
    padding-left: 0; /* Ensure no default padding */
}

footer li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    footer {
        flex-direction: column;
    }

    .pays-info {
        flex-direction: column;
    }

    .featured-containers {
        flex-direction: column;
        align-items: center;
    }

    .planif-container, .ads-container {
        width: 90%; /* Adjust width on smaller screens */
        max-width: 340px; /* Keep max width */
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); } /* Added subtle slide */
    to { opacity: 1; transform: translateY(0); }
}

.hero, .content, .featured-containers {
    animation: fadeIn 0.8s ease-out; /* Changed timing function */
}

/* Amélioration de l'expérience utilisateur */
.pays-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Enhanced shadow */
}

/* Styles pour améliorer l'accessibilité */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}