/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    background-color: var(--color-ivoire);
    color: var(--color-brun-terre);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none !important;
    /* Cache le curseur par défaut partout */
}

a,
button,
.btn,
.service-item,
.scroll-indicator,
.consultation-card,
.booking-modal-close {
    cursor: none !important;
}

/* Restauration du curseur natif quand la modale est ouverte */
body.modal-open,
body.modal-open * {
    cursor: auto !important;
}

body.modal-open a,
body.modal-open button,
body.modal-open .btn,
body.modal-open .booking-modal-close {
    cursor: pointer !important;
}

body.modal-open .cursor-dot {
    display: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: var(--color-taupe);
    /* Changé de brun-terre à taupe pour la visibilité */
    border-radius: 50%;

    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, scale 0.3s ease-out;
    /* Plus de transition sur le transform global */
}





h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* Typographie spécifique */
.title-large {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-brun-terre);
    margin-bottom: var(--spacing-md);
}

.title-medium {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.text-lead {
    font-size: 1.15rem;
    color: var(--color-brun-terre);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary {
    background-color: var(--color-taupe);
    color: var(--color-ivoire);
    border: 1px solid var(--color-taupe);
}

.btn-primary:hover {
    background-color: var(--color-brun-terre);
    border-color: var(--color-brun-terre);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(109, 84, 74, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-brun-terre);
    border: 1px solid var(--color-brun-terre);
}

.btn-secondary:hover {
    background-color: var(--color-brun-terre);
    color: var(--color-ivoire);
    transform: translateY(-3px);
}

/* Layouts & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-bg-ecru {
    background-color: var(--color-ecru);
}

.section-bg-creme {
    background-color: var(--color-creme-doux);
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    background: rgba(239, 230, 220, 0.9);
    /* Écru avec opacité pour contraste */

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(165, 142, 120, 0.15);
    /* Ligne taupe très fine */
    transition: all var(--transition-smooth);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    /* Utilise toute la largeur de l'écran */
    margin: 0;
    padding: 0 4%;
    /* Petite marge sur les côtés pour ne pas coller à 100% au bord */
}


.logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-brun-terre);
}


.nav-links {
    display: flex;
    gap: var(--spacing-md);
    /* Sections plus serrées */
    list-style: none;
    align-items: center;
}



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

.btn-nav {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    margin-left: 10px;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-taupe);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 200px;
    /* Réduit pour remonter le contenu */
    overflow: hidden;
    background-image: linear-gradient(to right, var(--color-ivoire) 30%, rgba(247, 242, 235, 0.8) 50%, rgba(247, 242, 235, 0) 70%), url('../Img/Hero_Illustration.jpeg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    display: block;
}

.hero h1 .line-2 {
    font-size: 0.85em; /* Un peu plus petit pour le contraste */
    color: var(--color-taupe); /* Couleur plus douce */
    margin-top: 0.5rem;
}

.hero h1 .line-2 em {
    font-style: italic;
    color: var(--color-brun-terre); /* Accentue la fin de phrase */
}







.hero .container {
    margin-left: 5%;
    /* Aligne le container vers la gauche */
    margin-right: auto;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 5;
    text-align: left;
    margin-top: -60px;
    /* Remonte le bloc de texte et les boutons */
}

.hero .btn-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    justify-content: flex-start;
}




/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-taupe);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10;
    cursor: pointer;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-taupe);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-taupe);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}


/* About / Pourquoi me consulter */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: var(--spacing-md);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-sable-chaud);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    transform: translate(-15px, 15px);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(109, 84, 74, 0.08);
}

/* Accompagnement (Liste) */
.services-section {
    text-align: center;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: left;
    position: relative;
}

.service-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid rgba(211, 192, 173, 0.2);
    transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
    user-select: none;
    will-change: transform;
    z-index: 1;
}

.service-item:hover {
    box-shadow: 0 10px 25px rgba(109, 84, 74, 0.08);
    border-color: var(--color-taupe);
}

.service-icon {
    color: var(--color-taupe);
    font-size: 1.2rem;
    margin-top: 4px;
}

.service-text {
    font-weight: 500;
}

/* Section Pourquoi me consulter - Heading adjustment */
#pourquoi .title-medium {
    white-space: nowrap;
}

/* Consultation Card Refinement */
.consultation-card {
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    background-color: var(--color-creme-doux);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-taupe);
    display: flex;
    align-items: center;
    gap: 12px;
}

.consultation-card p {
    color: var(--color-brun-terre);
    font-weight: 500;
    margin-bottom: 0;
}

.consultation-card svg {
    width: 20px;
    height: 20px;
    color: var(--color-taupe);
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--color-brun-terre);
    color: var(--color-ivoire);
    padding: var(--spacing-md) 0;
    /* Plus fin */
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Image hero mobile — cachée sur desktop */
.hero-mobile-img {
    display: none;
}

/* Booking Modal */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(109, 84, 74, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    perspective: 1200px;
}

.booking-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.booking-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background-color: var(--color-ivoire);
    padding: clamp(15px, 4vw, 40px);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(50px) scale(0.95) rotateX(8deg);
    transform-origin: bottom center;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.booking-modal-overlay.is-open .booking-modal-container {
    transform: translateY(0) scale(1) rotateX(0deg);
    opacity: 1;
    transition-delay: 0.1s;
}

.booking-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: var(--color-ivoire);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brun-terre);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.booking-modal-close:hover {
    background: var(--color-taupe);
    color: var(--color-ivoire);
    transform: scale(1.1);
}

.booking-modal-close svg {
    width: 24px;
    height: 24px;
}

.booking-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 82vh;
    max-height: 750px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.booking-iframe-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 10px 30px rgba(109, 84, 74, 0.15), inset 0 2px 10px rgba(109, 84, 74, 0.08), inset 0 0 0 1px rgba(109, 84, 74, 0.1);
    pointer-events: none;
    z-index: 5;
}

.booking-iframe-wrapper iframe {
    position: relative;
    z-index: 2;
    background: transparent;
}

@media (max-width: 768px) {
    .booking-modal-overlay {
        height: 100dvh;
    }

    .booking-modal-container {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 55px 10px 10px 10px;
        transform: translateY(100%) scale(1) rotateX(0deg);
        display: flex;
        flex-direction: column;
    }
    
    .booking-modal-overlay.is-open .booking-modal-container {
        transform: translateY(0) scale(1) rotateX(0deg);
    }

    .booking-iframe-wrapper {
        flex: 1;
        height: auto;
        max-height: none;
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .booking-modal-close {
        top: 10px;
        right: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
}



/* Responsive — Tablette (900px) */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero .btn-group {
        flex-direction: column;
    }

    /* La nav est gérée par mobile.css en dessous de 768px */
}

/* Contact Cards Footer */
.contact-section-footer {
    margin-top: 3.5rem; 
    padding-top: 2.5rem; 
    border-top: 1px solid rgba(165, 142, 120, 0.15);
}

.contact-subtitle {
    margin-bottom: 1.5rem; 
    font-size: 1rem; 
    opacity: 0.8;
    color: var(--color-brun-terre);
}

.contact-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-ivoire);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full, 50px);
    border: 1px solid rgba(165, 142, 120, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-smooth, 0.3s ease);
    color: var(--color-brun-terre);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(109, 84, 74, 0.08);
    border-color: var(--color-taupe);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-creme-doux);
    border-radius: 50%;
    color: var(--color-taupe);
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}