/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.7;
    /* Increased for better readability */
    overflow-x: hidden;
    font-size: clamp(1rem, 1vw + 0.8rem, 1.125rem);
    /* Fluid body text */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    /* Fluid scaling from 2rem to 4.5rem */
    /* Responsive H1 */
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    /* Responsive H2 */
    text-align: center;
    margin-bottom: 3rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    /* Ensure it takes width up to max */
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}



/* Header */
header {
    background: #fff;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Default state for mobile-only link */
.mobile-only-link {
    display: none;
}

/* Hero Section */
#accueil {
    padding: 40px 0 80px;
    background: linear-gradient(to bottom, #fff 0%, var(--color-bg-beige) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
    /* Sombre as per description */
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Description (Kinésiologie) */
/* Description (Kinésiologie) */
#kinesiologie {
    padding: var(--section-padding);
    background: white;
}

#psychogenealogie {
    padding: var(--section-padding);
    background: #fafafa;
}

.kinesio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.kinesio-row:last-child {
    margin-bottom: 0;
}

.kinesio-text p {
    margin-bottom: 20px;
}

.kinesio-text ul {
    margin-bottom: 20px;
}

.kinesio-text li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.kinesio-text li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    flex-shrink: 0;
}

.kinesio-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.desc-quote {
    background: #F0F4FF;
    padding: 60px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.desc-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
}

.desc-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.badge-icon {
    width: 60px;
    height: 60px;
    background: #F3F1FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Accompagnements */
#accompagnements {
    padding: var(--section-padding);
    background: var(--color-bg-beige);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: white;
    background-image: var(--gradient-card-top);
    background-repeat: no-repeat;
    background-size: 100% 100px;
    /* Adjust height of the wave part */
    background-position: top center;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 30px;
    padding-top: 50px;
    /* Add padding to push content down below wave */
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #E8F1F5;
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--color-text-gray);
    font-size: 0.9rem;
}

/* Deroule */
#deroule {
    padding: var(--section-padding);
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    /* Changed from center to start to allow offset */
}

.steps-image {
    margin-top: 40px;
    /* Pushes image down so title appears higher */
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Atelier */
#atelier {
    padding: var(--section-padding);
    background: #fdfdfd;
    /* Very light gray/white to distinguish */
}

.atelier-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

.atelier-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.atelier-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    height: 100%;
}

.atelier-card ul {
    list-style: none;
    /* Reset if global ul has style, but previously global ul had list-style:none */
    text-align: left;
}

.atelier-card ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.atelier-card ul li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .atelier-grid {
        grid-template-columns: 1fr;
    }
}

/* Presentation Mathilde */
#Presentation-Mathilde {
    padding: var(--section-padding);
    background: #fff;
}

.presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.presentation-text {
    font-size: 1.05rem;
    color: var(--color-text-dark);
}

.presentation-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Tarifs */
#tarifs {
    padding: var(--section-padding);
    background: #fafafa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: flex-start;
}

.price-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--color-primary-light);
    box-shadow: 0 15px 40px rgba(63, 60, 151, 0.1);
    position: relative;
    z-index: 10;
}

.price {
    font-size: 1.8rem; /* au lieu de 2.5rem */
    font-weight: 700;
    color: var(--color-primary);
    margin: 20px 0 5px;
    font-family: var(--font-heading);
}

.duration {
    color: var(--color-text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.price-features {
    text-align: left;
    margin: 20px 0 30px;
}

.price-features li {
    margin-bottom: 10px;
    display: flex;
    font-size: 0.95rem;
}

.price-features li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    width: 20px;
}

/* Avis */
#avis {
    padding: var(--section-padding);
    background: var(--color-bg-beige);
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.stars {
    color: #FFD700;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Contact / Rendez-vous */
#rendez-vous {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, #F5EFE6 100%);
    /* Subtle beige gradient */
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-form-wrapper {
    flex: 1;
    background: white;
    /* padding: 40px;  Removed/Reduced for Calendly to fit better */
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* --- SECTION CALENDLY TOGGLE --- */

.calendly-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    /* Pour le mobile */
}

.toggle-btn {
    padding: 12px 24px;
    border: 2px solid var(--color-primary);
    /* Utilise ta variable de couleur */
    background: transparent;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    /* Utilise ta variable de radius */
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover {
    background-color: var(--color-primary-light);
    /* Version claire de ta couleur */
    color: white;
}

/* --- GESTION DE L'AFFICHAGE --- */

.calendly-container {
    display: none;
    /* Cache par défaut */
    animation: fadeIn 0.5s ease;
    /* Petit effet fluide */
}

.calendly-container.active {
    display: block;
    /* Affiche uniquement l'actif */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: #1a1a2e;
    /* Darker blue */
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

/* =========================
   TABLET & MOBILE (≤1200px)
========================= */
@media (max-width: 1200px) {

    /* --- Images --- */
    .hero-image img,
    .kinesio-image img,
    .presentation-image img,
    .steps-image img {
        width: 100%;
        height: auto;       /* respecte le ratio naturel */
        max-height: 300px;
        object-fit: contain; /* pas de crop */
    }

    /* --- Layout stacking --- */
    .hero-content,
    .kinesio-row,
    .presentation-content,
    .desc-grid,
    .steps-container,
    .atelier-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .kinesio-row {
        margin-bottom: 60px;
    }

    .cards-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-container {
        flex-direction: column;
    }

    /* --- Hero alignment --- */
    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* --- Mobile menu toggle --- */
    .mobile-toggle {
        display: block !important;
        position: relative;
        z-index: 1100;
        cursor: pointer;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        display: flex;
        flex-direction: column;
        padding: 80px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;
        max-height: calc(100vh - var(--header-height));
        text-align: center;
    }

    .header-cta {
        display: none;
    }

    .mobile-only-link {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .mobile-only-link a {
        display: flex;
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   MOBILE ONLY (≤768px)
========================= */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* Ajustement images pour mobile */
    .hero-image img,
    .kinesio-image img,
    .presentation-image img,
    .steps-image img {
        max-height: 250px; /* un peu plus petit que tablette */
        object-fit: contain;
        height: auto;
    }
}

/* =========================
   SMALL MOBILE (≤480px)
========================= */
@media (max-width: 480px) {

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .atelier-card {
        padding: 20px;
    }

    /* Ajustement images pour petit mobile */
    .hero-image img,
    .kinesio-image img,
    .presentation-image img,
    .steps-image img {
        max-height: 220px;
        object-fit: contain;
        height: auto;
    }
}