@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Correction du débordement horizontal */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.tree-bg {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L50 30 M50 30 L30 50 M50 30 L70 50 M30 50 L20 70 M30 50 L40 70 M70 50 L60 70 M70 50 L80 70" stroke="%23a78bfa" stroke-width="0.8" fill="none"/><circle cx="50" cy="10" r="2" fill="%23a78bfa"/><circle cx="50" cy="30" r="2" fill="%23a78bfa"/><circle cx="30" cy="50" r="2" fill="%23a78bfa"/><circle cx="70" cy="50" r="2" fill="%23a78bfa"/><circle cx="20" cy="70" r="2" fill="%23a78bfa"/><circle cx="40" cy="70" r="2" fill="%23a78bfa"/><circle cx="60" cy="70" r="2" fill="%23a78bfa"/><circle cx="80" cy="70" r="2" fill="%23a78bfa"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    opacity: 0.05;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

#app {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem auto;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.3);
    position: relative;
    pointer-events: none;
}

/* Disposition en X pour les services */
.services-star-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.service-card {
    transition: all 0.3s ease;
    position: absolute;
    overflow: hidden;
    background: white;
    padding: 2rem;
    width: 280px;
    text-align: center;
}

.service-card:hover {
    z-index: 10;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

/* Positionnement en X - Les 4 coins */
.star-top {
    top: 0;
    left: 10%;
    transition: all 0.3s ease;
}

.star-right {
    top: 0;
    right: 10%;
    transition: all 0.3s ease;
}

.star-left {
    bottom: 30%;
    left: 35%;
    transition: all 0.3s ease;
}

/* Animations directionnelles en diagonale (forme X) */
.star-top:hover {
    transform: translate(-10px, -10px);
}

.star-right:hover {
    transform: translate(10px, -10px);
}

.star-bottom:hover {
    transform: translate(10px, 10px);
}

.star-left:hover {
    transform: translate(0px, 10px);
}

.star-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

.star-center img {
    width: 400px;
    height: 400px;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive pour la disposition en X */
@media (max-width: 768px) {
    .services-star-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 20px;
    }
    
    .service-card {
        position: relative !important;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    
    .service-card:hover {
        transform: translateY(-5px) !important;
    }
    
    .star-center {
        display: none;
    }
}

.tree-pattern {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 L50 30 M50 30 L30 50 M50 30 L70 50 M30 50 L20 70 M30 50 L40 70 M70 50 L60 70 M70 50 L80 70" stroke="%23a78bfa" stroke-width="0.5" fill="none"/></svg>');
    background-repeat: repeat;
    background-size: 100px;
    opacity: 0.03;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.section-with-tree {
    position: relative;
    overflow: hidden;
}

.tree-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    z-index: 0;
}

/* Styles pour la navigation */
nav.bg-white {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Styles pour les cartes de tarifs */
.bg-white.rounded-xl {
    transition: all 0.3s ease;
}

.bg-white.rounded-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.1);
}

/* Styles pour le footer */
footer.bg-white {
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}


/* Styles pour les témoignages */
.bg-purple-50.rounded-xl {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Styles pour les questions fréquentes */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(167, 139, 250, 0.05);
}

.faq-answer {
    transition: all 0.3s ease;
}

/* Animation pour les icônes FAQ */
.fa-chevron-down {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Boutons */
.bg-purple-600 {
    transition: all 0.3s ease;
}

.bg-purple-600:hover {
    background-color: #7c3aed;
    transform: scale(1.05);
}

/* Mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
}
