/* ========================================
   MEELYS WEBSITE - STYLESHEET
   ======================================== */

/* Variables CSS */
:root {
    --purple-dark: #4A3B5C;
    --purple-main: #8B6FB0;
    --purple-light: #B399CC;
    --purple-accent: #C8B4D9;
    --white: #FFFFFF;
    --off-white: #F9F7FB;
    --text-dark: #2C2340;
}

/* Reset & Base */
* {
    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-dark);
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(138, 111, 176, 0.2);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple-main);
    letter-spacing: 2px;
    font-style: italic;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-main);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--purple-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lang-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(138, 111, 176, 0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--purple-main);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--purple-accent) 0%, var(--purple-light) 50%, var(--off-white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '⚜️';
    position: absolute;
    font-size: 25rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -55%) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    color: var(--purple-dark);
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.cta-btn {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(138, 111, 176, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 111, 176, 0.5);
}

/* ========================================
   GALLERY SLIDER
   ======================================== */
.gallery-slider {
    padding: 4rem 5%;
    background: var(--white);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(138, 111, 176, 0.2);
    max-width: 1200px;
    margin: 0 auto;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}
.slidesS {
    display: flex;
    transition: transform 0.5s ease;
}

.slidesSS {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: clamp(300px, 50vw, 500px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    padding: 2rem;
    text-align: center;
}
.slide1 {
    min-width: 100%;
    height: clamp(250px, 40vw, 400px); /* Réduit pour mobile */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: clamp(1.2rem, 4vw, 2rem); /* Plus petit pour mobile */
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    padding: 1rem;
    text-align: center;
}

.slideA {
    min-width: 100%;
    height: clamp(300px, 50vw, 500px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* ✅ CORRECTION: était "last baseline" */
    justify-content: center;
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    padding: 2rem 1rem;
    text-align: center;
}


/* ========================================
   VALUES SECTION
   ======================================== */
.values {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--purple-accent) 100%);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--purple-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    /*content: '⚜️';*/
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--purple-main);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(138, 111, 176, 0.15);
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple-main);
    box-shadow: 0 15px 40px rgba(138, 111, 176, 0.3);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--purple-main);
    margin-bottom: 0.5rem;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
    padding: 5rem 5%;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-category {
    background: linear-gradient(135deg, var(--purple-accent) 0%, var(--purple-light) 100%);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(138, 111, 176, 0.2);
}

.product-category:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 50px rgba(138, 111, 176, 0.4);
}

.product-category h3 {
    color: var(--purple-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-list {
    list-style: none;
    margin: 1rem 0;
}

.product-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(74, 59, 92, 0.2);
    color: var(--text-dark);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--off-white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(138, 111, 176, 0.2);
    border-left: 5px solid var(--purple-main);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(138, 111, 176, 0.3);
}

.service-card h3 {
    color: var(--purple-main);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-card ul {
    margin-top: 1rem;
    list-style-position: inside;
    color: var(--text-dark);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 5rem 5%;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--purple-accent) 0%, var(--off-white) 100%);
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--purple-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--purple-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-main);
    box-shadow: 0 0 10px rgba(138, 111, 176, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(138, 111, 176, 0.15);
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ========================================
   WHATSAPP BUTTON
   ======================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white /*#25D366*/;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--purple-dark);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--purple-accent);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 3%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(138, 111, 176, 0.3);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .values-grid,
    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-slider {
        padding: 2rem 3%;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .values-grid,
    .products-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-card,
    .product-category,
    .service-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* ✅ AMÉLIORATION Mobile */
@media (max-width: 768px) {
    .slideA {
        height: clamp(200px, 50vw, 350px);
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        padding: 1.5rem 1rem;
    }
    
    .slide1 {
        height: clamp(180px, 45vw, 300px);
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .slideA {
        height: 250px;
        font-size: 1.8rem;
    }
    
    .slide1 {
        height: 200px;
        font-size: 1.2rem;
    }
    
    /* ✅ Réduction padding pour mobile */
    .product-category {
        padding: 1.5rem 1rem;
    }
    
    .slider-container {
        margin-top: 1rem;
        border-radius: 15px;
    }
}

/* ✅ AMÉLIORATION du chargement des images */
img {
    max-width: 100%;
    height: auto;
}

/* ✅ Gestion du débordement */
body {
    overflow-x: hidden;
    word-wrap: break-word;
}
}