/* CSS spécifique pour la page d'accueil */

/* Hero Section avec grande image */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/image_principale.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(90, 122, 90, 0.7) 0%, rgba(61, 79, 61, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 300;
}

.hero .btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Section avec image */
.image-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.image-section.reverse {
    direction: rtl;
}

.image-section.reverse > * {
    direction: ltr;
}

.image-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Statistiques */
.stats-section {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

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

.stat-number-home {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.stat-label-home {
    font-size: 1rem;
    opacity: 0.9;
}

/* Processus étapes */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 1rem;
}

/* Services populaires */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
}

.card {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

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

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.duration {
    color: var(--text-light);
    font-size: 1rem;
}

/* Animations supplémentaires */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out;
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 400px;
        padding: 1.5rem 1rem;
    }
    
    .hero h1 { 
        font-size: 1.5rem;
        letter-spacing: 0;
        margin-bottom: 0.8rem;
    }
    
    .hero p { 
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .hero .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .image-section {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .image-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .image-section p {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .stats-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-number-home {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label-home {
        font-size: 0.9375rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .step h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .step p {
        font-size: 1rem;
    }
    
    .image-content img {
        height: 180px;
    }
    
    /* Sections plus compactes */
    .container {
        padding: 1rem 0.75rem;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .stats-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
}
