/* css/sections.css */

/* --- HERO SECTION --- */
.hero {
    position: relative;
    /* ATTENTION : Chemin adapté au dossier css/ */
    background: url('../assets/fond.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 180px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh; 
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white); 
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); 
    
    /* ANIMATION */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero p {
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-weight: 400;
    opacity: 1;
    color: #e2e8f0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);

    /* ANIMATION DELAY */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-buttons {
    /* ANIMATION DELAY */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* --- À PROPOS --- */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.9;
    color: #cbd5e1;
}

.about-text strong { color: var(--primary-color); }

/* --- AVANTAGES --- */
#advantages {
    background: transparent;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
}

.advantages-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.advantage-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: 50px 30px;
    background: var(--white);
    color: var(--text-color);
    border-radius: 20px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-bottom: 4px solid var(--primary-color);
}

.advantage-item:hover {
    transform: translateY(-10px); 
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.3);
}

.icon-box {
    margin-bottom: 25px;
    display: inline-flex;
    background: #f0f9ff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    align-items: center; 
    justify-content: center;
}

.icon-box i { font-size: 2.5rem; color: var(--primary-color); }
.advantage-item h3 { margin-bottom: 15px; color: var(--dark-color); font-size: 1.4rem; font-weight: 700; }
.advantage-item p { color: var(--text-color); }

/* --- SERVICES (Grille) --- */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 40px; 
    flex-wrap: wrap;
}

/* --- TARIFS (Tableaux & Layout) --- */
#tarifs {
    background: transparent;
    box-shadow: none;
    border: none;
    margin: 0;
    border-radius: 0;
}

.pricing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: row; 
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pricing-card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 40px rgba(0, 180, 216, 0.3);
}

.pricing-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 50px 40px;
    width: 35%;
    min-width: 300px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.badge {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3);
}

.pricing-header h3 { margin: 0 0 15px 0; font-size: 1.8rem; color: var(--dark-color); font-weight: 800; }
.pricing-header p { font-size: 1rem; color: #64748b; line-height: 1.6; }

.pricing-body {
    padding: 40px 50px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-content-top { width: 100%; }

.calculation-box {
    background: #f0fdf4;
    padding: 25px 30px; 
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.calc-label {
    margin-bottom: 0;
    white-space: nowrap;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.calc-formula { font-size: 1.2rem; font-weight: 700; color: var(--dark-color); }

.pricing-mini-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 1.1rem; 
}

.pricing-mini-table th {
    background-color: #f8fafc;
    color: var(--dark-color);
    font-weight: 700;
    text-align: left;
    padding: 18px 25px; 
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.pricing-mini-table td {
    padding: 18px 25px; 
    color: var(--text-color);
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.pricing-mini-table tbody tr:last-child td { border-bottom: none; }
.pricing-mini-table tbody tr:nth-child(even) { background-color: #fafafa; }

.price-cell { font-weight: 800; color: var(--primary-color) !important; font-size: 1.5rem; }

.small-note {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 15px;
    text-align: right;
    font-style: italic;
}

.opt2-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.pricing-features li {
    margin-bottom: 12px;
    color: #475569;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
}

.pricing-features li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 2rem;
    position: absolute;
    left: 0;
    top: -12px;
}

.price-tag { margin: 0; text-align: right; min-width: 180px; }

.price-tag .amount {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color); 
    line-height: 1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
}

.price-tag .unit { font-size: 1rem; color: #94a3b8; display: block; margin-top: 5px; font-weight: 500; }

/* --- KEYFRAMES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}