/* WindPrana - Kite & Yoga Adventure - Main Stylesheet
   Palette 3 dynamique : Éléments naturels revitalisés
   - Bleu Turquoise (#45B7A4) - eau et ciel
   - Violet Améthyste (#8A65C9) - spiritualité et yoga
   - Jaune Soleil (#FFB84D) - énergie et soleil
   - Blanc (#FFFFFF) - espace et légèreté
*/

/* -------------------- RESET & BASE STYLES -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

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

a {
    text-decoration: none;
    color: #45B7A4;
    transition: all 0.3s ease;
}

a:hover {
    color: #8A65C9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: #FFFFFF;
}

h2 {
    font-size: 2rem;
    color: #45B7A4;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: #8A65C9;
}

p {
    margin-bottom: 1rem;
}

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

section {
    padding: 4rem 0;
}

/* -------------------- BUTTONS -------------------- */
.btn-primary {
    display: inline-block;
    background-color: #FFB84D;
    color: #FFFFFF;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #E5A444;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #45B7A4;
    padding: 0.8rem 1.5rem;
    border: 2px solid #45B7A4;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #45B7A4;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* -------------------- HEADER -------------------- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #45B7A4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo a:hover {
    color: #8A65C9;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #333;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: #8A65C9;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8A65C9;
    transition: width 0.3s ease;
}

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

.menu-mobile {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-mobile span {
    width: 30px;
    height: 3px;
    background-color: #45B7A4;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* -------------------- HERO SECTION -------------------- */
.hero {
    height: 100vh;
    background-image: url('../images/captown.jpg');
    background-size: cover;
    background-position: top center;
    display: flex;
    margin-top: 5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    margin-bottom: 2rem;
    font-size: 3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* -------------------- INTRO SECTION -------------------- */
.intro .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1.2rem; /* Slightly larger font size for readability */
    line-height: 1.8; /* Increase line height for better spacing */
    color: #666; /* Soft gray color for the text */
    margin-top: 1rem; /* Add spacing above the paragraph */
    margin-bottom: 1.5rem; /* Add spacing below the paragraph */
    text-align: justify; /* Justify the text for a clean look */
}

.intro-image {
    flex: 1;
}

/* -------------------- TRIPS SECTION -------------------- */
.trips {
    background-color: #f9f9f9;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.trips-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.trips-image {
    height: 200px;
    background-color: #45B7A4;
    background-size: cover;
    background-position: center;
}

.trips-image img {
    width: 100%; /* Étire l'image sur toute la largeur */
    height: 100%; /* Étire l'image sur toute la hauteur */
    object-fit: cover; /* Maintient les proportions tout en couvrant l'espace */
    display: block; /* Supprime les espaces blancs autour de l'image */
    float: left; /* Aligne l'image à droite */
}

.trips-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
}

.trips-card p {
    padding: 0 1rem 1rem 1rem;
    color: #666;
}

.trips-link {
    text-align: center;
}

/* -------------------- KITE SECTION -------------------- */
.kite .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-style: italic;
    color: #666;
}

.kitesurf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.kitesurf-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.bigair-image, .strapless-image, .foiling-image {
    display: block;
    width: 100%;
    height: 200px;
    background-color: #FFB84D;
    background-size: cover;
    background-position: center;
    margin-bottom: 0; /* Prevent overlap with h3 */
}

.strapless-image img {
    width: 100%;
    height: 214px;
    object-fit: cover;
    display: block;
}

.kitesurf-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
}

.kitesurf-card p {
    padding: 0 1rem 1rem 1rem;
    color: #666;
}

.kitesurf-link {
    text-align: center;
}

/* -------------------- YOGA SECTION -------------------- */
.yoga {
    background-color: #f9f9f9;
}

.yoga .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-style: italic;
    color: #666;
}

.yoga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.yoga-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.ashtanga-image, .hatha-image, .pranayama-image {
    height: 200px;
    background-color: #8A65C9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.ashtanga-image img {
    object-position: center 80% !important;
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
.yoga-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
}

.yoga-card p {
    padding: 0 1rem 1rem 1rem;
    color: #666;
}

.yoga-link {
    text-align: center;
}

/* -------------------- TESTIMONIALS SECTION -------------------- */
.testimonials {
    background-color: #45B7A4;
    color: #FFFFFF;
}

.testimonials h2 {
    color: #FFFFFF;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-weight: 600;
    font-style: normal;
}

/* -------------------- INSTAGRAM SECTION -------------------- */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.instagram-item {
    height: 170px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-link {
    text-align: center;
}

/* -------------------- NEWSLETTER SECTION -------------------- */
/* MailerLite form styling */
.ml-embedded .ml-block-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    
}

.ml-embedded input[type="email"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    min-width: 250px;
}

.ml-embedded button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.ml-embedded button:hover {
    background-color: #0056b3;
}

/* -------------------- FOOTER -------------------- */
footer {
    background-color: #333;
    color: #FFFFFF;
    padding: 3rem 0;
}

.footer-logo a {
    color: #FFFFFF;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul, .footer-social ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.footer-nav ul li, .footer-social ul li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-nav ul li a, .footer-social ul li a {
    color: #FFFFFF;
    opacity: 0.8;
}

.footer-nav ul li a:hover, .footer-social ul li a:hover {
    opacity: 1;
}

.footer-contact {
    margin: 1.5rem 0;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-copyright a {
    color: #FFFFFF;
}

/* -------------------- RESPONSIVE STYLES -------------------- */
@media (max-width: 992px) {
    .intro .container {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .logo img {
        height: 40px; /* plus petit sur tablette et mobile */
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: #FFFFFF;
        padding: 5rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .menu-mobile {
        display: flex;
        z-index: 1001;
    }
    
    .menu-mobile.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-mobile.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-mobile.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo img {
        height: 35px; /* encore un peu plus petit sur très petits écrans */
    }
}