/* Styles spécifiques pour la page familles.html */

/* Bannière */
.familles-banner {
    background: url('../images/fond-ntpn.jpg') no-repeat center center;
    background-size: cover;
    padding: 120px 0 100px;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 40px;
}

.familles-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.familles-banner .container {
    position: relative;
    z-index: 2;
}

.familles-banner h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);*/
}

.familles-banner .banner-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333333;
    max-width: 700px;
    margin: 0 auto;
}

/* Contenu principal */
.content-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    margin: 60px 0;
}

.content-wrapper.reverse {
    flex-direction: row-reverse;
}

.content-text, .content-image {
    flex: 1;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: translateY(-5px);
}

/* Grille des services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Liste personnalisée */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Témoignage */
.testimonial {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    margin: 60px 0;
    position: relative;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.testimonial .quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Boutons d'appel à l'action */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Styles responsifs */
@media (max-width: 1200px) {
    .familles-banner h1 {
        font-size: 2.5rem;
    }
    
    .familles-banner .banner-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .content-text, .content-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .content-image {
        order: 1;
        margin-top: 20px;
    }
    
    .content-wrapper .content-image img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: block;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial {
        padding: 30px;
        margin: 40px 0;
    }
}

@media (max-width: 768px) {
    .familles-banner {
        padding: 100px 0 80px;
    }
    
    .familles-banner h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .familles-banner .banner-subtitle {
        font-size: 1.1rem;
    }
    
    .content-wrapper {
        margin: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 576px) {
    .familles-banner {
        padding: 80px 0 60px;
    }
    
    .familles-banner h1 {
        font-size: 1.8rem;
    }
    
    .familles-banner .banner-subtitle {
        font-size: 1rem;
    }
    
    .content-wrapper {
        margin: 30px 0;
    }
    
    .custom-list li {
        padding-left: 30px;
        font-size: 1rem;
    }
    
    .testimonial .quote {
        font-size: 1.1rem;
    }
}

/* Animation pour les cartes de fonctionnalités */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
