/* --- Variables et Styles Généraux --- */
:root {
    --primary-color: #007BFF;
    --primary-hover: #0056b3;
    --secondary-color: #ffc107;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Barre de navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.langue-menu select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Montserrat', sans-serif;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Section Hero --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://cdn.pixabay.com/photo/2020/12/27/10/23/bishopric-garden-5863562_1280.jpg) center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: 70px; /* Added to prevent content from being hidden under fixed navbar */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* --- Section Présentation --- */
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.presentation-grid h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.presentation-grid ul {
    list-style: '✔️ ';
    padding-left: 20px;
}

/* --- Section Programme --- */
.programme-timeline {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}

li {
    list-style-type: none;
}

.timeline-item {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 30%;
    border-top: 5px solid var(--secondary-color);
}

.timeline-item h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* --- Section Packages --- */
.packages-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.package {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid transparent;
}

.package:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-bottom-color: var(--primary-color);
}

.package h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    margin: -30px -30px 20px -30px;
    border-radius: 15px 15px 0 0;
    font-size: 1.4rem;
}

.package h3 small {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.package ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 20px 0;
}

.package ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.package ul li:before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.btn-package {
    display: inline-block;
    width: 80%;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: var(--text-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn-package:hover {
    background-color: #ffb700;
}

/* --- Section Contact & Formulaire --- */
.contact-info {
    margin: 20px 0;
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

form {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

form label {
    display: block;
    margin-top: 20px;
    font-weight: 700;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

form button {
    width: 100%;
    font-size: 1.1rem;
}

/* --- Confirmation Message --- */
.confirmation {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 15px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: var(--shadow);
        padding: 20px;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .langue-menu {
        margin: 10px auto;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .presentation-grid, .programme-timeline {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .timeline-item {
        width: auto;
    }

    .package {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .container {
        padding: 60px 15px;
    }
}

.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px 0;
}

.partenaire-logo img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.partenaire-logo img:hover {
    transform: scale(1.1);
}

/* --- POP-UP --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.5s ease;
}

.popup-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
