/* Animations pour le site Dreams */

/* Style de base pour les éléments à animer */
.fade-in, .slide-in, .zoom-fade, .slide-in-right, .fade-in-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Effet pour les éléments qui deviennent visibles */
.visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) scale(1) !important;
}

/* Animation de fondu au défilement */
.fade-in {
    transform: translateY(20px);
}

/* Animation de glissement latéral (gauche à droite) */
.slide-in {
    transform: translateX(-50px);
}

/* Animation de glissement latéral (droite à gauche) */
.slide-in-right {
    transform: translateX(50px);
}

/* Animation de zoom avec fondu */
.zoom-fade {
    transform: scale(0.95);
}

/* Animation de fondu avec mouvement vers le haut */
.fade-in-up {
    transform: translateY(30px);
    transition-delay: 0.5s;
}

/* Animation pour les éléments de la section Qualité */
.quality-commitment .commitment-item.visible {
    box-shadow: 0 15px 40px rgba(218, 176, 195, 0.1);
}

.quality-commitment .dot {
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease;
}

.quality-commitment.visible .dot {
    opacity: 1;
    transform: scale(1);
}

.quality-commitment .line {
    width: 0;
    transition: width 1s ease-out;
}

.quality-commitment.visible .line {
    width: 100px;
}

/* Styles pour les éléments FAQ (accordéon) */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item[open] summary {
    color: #9f7a49;
}

.faq-item p {
    padding: 0 0 15px;
    margin: 0;
    line-height: 1.6;
}

/* Styles pour les boutons et liens avec effet hover */
a, button {
    transition: all 0.3s ease;
}

a:hover, button:hover {
    opacity: 0.8;
}

/* Effet de survol sur les cartes de catégories */
.category-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Effet de survol sur les témoignages */
.testimonial-item {
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: scale(1.02);
}

/* Animation du logo au chargement de la page */
.logo {
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de pulsation pour les icônes */
.icon-wrapper {
    position: relative;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: rgba(218, 176, 195, 0.3);
    animation: pulse 2s infinite;
    z-index: 0;
    opacity: 0;
}

.commitment-item:hover .icon-wrapper::after {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Animation pour les listes à puces dans la section glow-up */
.glow-features li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease-out;
}

.glow-features li:nth-child(1) { transition-delay: 0.2s; }
.glow-features li:nth-child(2) { transition-delay: 0.4s; }
.glow-features li:nth-child(3) { transition-delay: 0.6s; }
.glow-features li:nth-child(4) { transition-delay: 0.8s; }

.visible .glow-features li {
    opacity: 1;
    transform: translateX(0);
}

.glow-up-text .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
    transition-delay: 1s;
}

.visible .glow-up-text .btn {
    opacity: 1;
    transform: translateY(0);
}

.glow-subtitle {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
    transition-delay: 0.1s;
}

.visible .glow-subtitle {
    opacity: 1;
    transform: translateY(0);
} 