:root {
    --primary-color: #0d3d6e; /* Bleu foncé académique */
    --secondary-color: #fca311; /* Orange/Or pour l'accent */
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #212529;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

body {
    font-family: var(--font-secondary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

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

header {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre l'image et le texte */
}

.logo-link img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

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

nav a {
    font-family: var(--font-primary);
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .icon-close {
    display: none;
}


#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/2-Banderolle LaVega .png') no-repeat center center/cover;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
}

.cta-button:hover {
    background-color: #e8920a; /* Version plus sombre de l'accent */
    transform: translateY(-3px);
}

.whatsapp-btn {
    background-color: #25D366; /* Couleur de WhatsApp */
}

.whatsapp-btn:hover {
    background-color: #1DA851;
}

.whatsapp-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="white" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 .4c101.2 0 183.3 82.1 183.3 183.3 0 31.8-8.2 62.4-23.5 88.4l-15.3 26.5 27.4 14.4-83.8-22-25.9 15.3c-26.5 15.8-57.8 24.5-90.3 24.5-101.2 0-183.3-82.1-183.3-183.3 0-101.2 82.1-183.3 183.3-183.3zm95.8 118.3c-3.1-1.5-18.5-9.1-21.4-10.2-2.9-1.1-5-1.5-7.1 1.5-2.1 3-8.1 10.2-9.9 12.3-1.9 2.1-3.7 2.4-7 1.1-3.1-1.5-13.2-4.9-25.2-15.6-9.3-8.2-15.6-18.4-17.4-21.5-1.9-3.1-.2-4.8 1.3-6.3 1.3-1.3 3-3.1 4.5-4.7 1.5-1.5 2.1-3 3-5 1.1-2.1.5-3.9-1-5.5-1.3-1.5-7.1-17.1-9.6-23.5-2.6-6.4-5.3-5.5-7.3-5.5-2.1 0-4.5 0-7.1 0-2.6 0-6.8 1.1-10.4 5.5-3.7 4.5-14.1 13.8-14.1 33.6 0 19.8 14.4 39 16.4 41.8 2.1 2.9 28.2 43.2 68.4 60.1 9.7 4.1 17.3 6.6 23.1 8.5 8.5 2.8 16.2 2.4 22.3 1.5 6.8-1.1 21-8.6 23.9-16.9 3-8.2 3-15.2 2.1-16.9-1.1-1.5-3.7-2.4-7-3.9z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    vertical-align: middle;
}

section {
    padding: 5rem 2rem;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background-color: var(--secondary-color);
}

#services, #tarifs, #equipe, #contact, #blog, #activites {
    background-color: var(--light-gray);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.activites-list, .langues-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.service-card i {
    width: 50px;
    height: 50px;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.flag-icon {
    width: 60px; /* Taille des drapeaux */
    height: auto;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    max-width: 300px;
}

#faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#testimonials {
    background-color: white;
    padding: 5rem 2rem;
}

.testimonial {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial span {
    display: block;
    margin-top: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

footer {
    background-color: var(--dark-gray);
    color: white;
    padding-top: 4rem;
}

.footer-content {
    text-align: center;
    padding: 0 2rem;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.socials {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 1.5rem 0;
}

.socials a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 3rem;
}

#tarifs .prix {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 1rem 0;
}

#equipe .team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 5px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--secondary-color);
    color: white;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 1000;
}

#back-to-top:hover {
    background-color: #e8920a;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input, .contact-form textarea, .contact-form select {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(13, 61, 110, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.contact-form .cta-button {
    align-self: flex-start;
    cursor: pointer;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.map-placeholder iframe {
    border-radius: 8px;
    margin-top: 1rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    text-align: left;
}

.blog-content h4 {
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Styles pour la modale */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 2000;
}

.modal-container.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-container.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

#modal-body h3 {
    margin-top: 0;
    color: var(--primary-color);
}

#modal-body ul {
    list-style-position: inside;
    padding-left: 0;
}

#modal-body li {
    margin-bottom: 1rem;
}


.activites-container, .langues-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.activites-img img, .langues-img img {
    width: 80%; /* Ajuster la taille de l'image pour qu'elle soit moins imposante */
    display: block;
    margin: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Styles pour les animations à l'apparition */
.service-card, .feature, .testimonial, .gallery-container img {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible, .feature.visible, .testimonial.visible, .gallery-container img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries pour le design adaptatif --- */

/* Pour les tablettes et les mobiles en mode paysage */
@media (max-width: 992px) {
    nav ul {
        gap: 1.5rem;
    }

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

    section {
        padding: 4rem 1.5rem;
    }

    .contact-container, .activites-container, .langues-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .langues-img {
        order: -1; /* Mettre l'image en premier dans la section langues */
    }
}

/* Pour les téléphones mobiles */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(20vh, 10rem) 2rem;
        gap: 2rem;
        background: hsl(0 0% 100% / 0.9);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    nav ul[data-visible="true"] {
        transform: translateX(0%);
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        z-index: 9999;
    }

    header {
        padding: 1rem;
    }


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

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

    section h2 {
        font-size: 2rem;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        text-align: center;
    }

    .contact-form {
        text-align: left;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .logo-link img {
        height: 50px;
    }

    .main-title {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }
}