@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700&display=swap');

/* ========================================
   VARIABLES CSS - BIEN-ÊTRE
   ======================================== */
:root {
    --primary-green: #7d9b6d;
    --primary-green-light: #9bb88a;
    --primary-green-lighter: #b8d4a8;
    --primary-green-dark: #5f7a52;
    --primary-green-glow: rgba(125, 155, 109, 0.3);

    --bg-light: #f8faf7;
    --bg-card: #ffffff;
    --text-dark: #2d3a2a;
    --text-medium: #4a5a46;

    --shadow-sm: 0 2px 8px rgba(45, 58, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 58, 42, 0.08);
    --shadow-lg: 0 8px 40px rgba(45, 58, 42, 0.12);
    --shadow-glow: 0 0 30px rgba(125, 155, 109, 0.15);

    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

body {
    font-family: 'Urbanist', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef3ec 100%);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================================
   HEADER
   ======================================== */
header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: #ffffff;
    padding: 24px 32px;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.logo img {
    max-width: 140px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.05);
}

/* ========================================
   MAIN
   ======================================== */
main {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   CARROUSEL
   ======================================== */
.carousel {
    position: relative;
    margin: 24px auto;
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-images {
    position: relative;
}

.bien-etre-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}

.carousel-images img {
    width: 100%;
    border-radius: var(--radius-xl);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 16px;
    pointer-events: none;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-green-dark);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    pointer-events: auto;
}

.carousel-controls button:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Indicateurs du carrousel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.carousel-indicators button.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ========================================
   SECTION HORAIRES
   ======================================== */
.horaires {
    margin-top: 32px;
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 600px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.horaires::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green-light), var(--primary-green), var(--primary-green-light));
}

.horaires h2 {
    color: var(--primary-green-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.horaires p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin: 8px 0;
    line-height: 1.8;
}

.horaires-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.horaire-item {
    background: linear-gradient(135deg, #f8faf7 0%, #eef3ec 100%);
    padding: 16px;
    border-radius: var(--radius-md);
}

.horaire-item strong {
    display: block;
    color: var(--primary-green-dark);
    margin-bottom: 4px;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    text-align: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, #4a6340 100%);
    color: #ffffff;
    position: relative;
    width: 100%;
    margin-top: 60px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    header {
        padding: 20px 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    main {
        padding: 24px 16px;
    }

    .carousel {
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    .bien-etre-image {
        height: 300px;
    }

    .carousel-controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .horaires {
        width: 100%;
        padding: 24px 20px;
    }

    .horaires h2 {
        font-size: 1.3rem;
    }

    .horaires-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .carousel {
        animation: fadeIn 0.6s ease-out;
    }

    .horaires {
        animation: fadeInUp 0.6s ease-out 0.2s;
        animation-fill-mode: both;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
