/* ===============================================
   Styles pour les sections dynamiques
   =============================================== */

/* Section dynamique générale */
.dynamic-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    /* Même style que les sections normales */
    background: linear-gradient(180deg, #fffbf5 0%, #fff5f7 100%);
}

.dynamic-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête de section */
.dynamic-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.dynamic-section .section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--light-text, #2d3748);
    margin-bottom: 20px;
}

.dynamic-section .divider {
    width: 100px;
    height: 3px;
    background: var(--accent-color, #ffd700);
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.dynamic-section .section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--gray-text, #4a5568);
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenu de section */
.dynamic-section .section-content {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.dynamic-section .section-text {
    flex: 1;
    min-width: 300px;
}

.dynamic-section .section-text p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-text, #4a5568);
    margin-bottom: 20px;
    white-space: pre-line;
}

/* Image de section */
.dynamic-section .section-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.dynamic-section .image-frame {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.15);
    border: 2px solid rgba(232, 180, 255, 0.3);
}

.dynamic-section .section-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    display: block;
}

/* Vidéo de section */
.dynamic-section .section-video {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.dynamic-section .section-video video {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(138, 43, 226, 0.2);
    border: 3px solid rgba(232, 180, 255, 0.3);
}

/* Contenu personnalisé */
.dynamic-section .custom-content {
    width: 100%;
    text-align: center;
}

.dynamic-section .custom-content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-text, #4a5568);
    margin-bottom: 20px;
    white-space: pre-line;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Témoignages */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(232, 180, 255, 0.3);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.25);
}

.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-text, #4a5568);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--secondary-color, #b794f6);
    font-weight: 600;
    text-align: right;
}

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

.dynamic-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .dynamic-section {
        padding: 80px 0;
    }
    
    .dynamic-section .section-header h2 {
        font-size: 2rem;
    }
    
    .dynamic-section .section-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .dynamic-section .section-text,
    .dynamic-section .section-image,
    .dynamic-section .section-video {
        min-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Alternance de disposition pour les sections */
.dynamic-section:nth-child(even) .section-content {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .dynamic-section:nth-child(even) .section-content {
        flex-direction: column;
    }
}

/* Effet de survol sur les sections */
.dynamic-section .section-image:hover .image-frame,
.dynamic-section .section-video:hover video {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.dynamic-section .image-frame,
.dynamic-section .section-video video {
    transition: transform 0.3s ease;
}

/* Fond alterné pour les sections - harmonisé avec le reste du site */
.dynamic-section:nth-child(odd) {
    background: linear-gradient(180deg, #fffbf5 0%, #fff5f7 100%);
}

.dynamic-section:nth-child(even) {
    background: linear-gradient(180deg, #fff5f7 0%, #ffffff 100%);
}





