/* CATEGORY BÉBÉ - STYLES SPÉCIALISÉS */

/* Container principal avec padding intelligent */
.category-container {
    padding-top: 40px; /* Padding intelligent selon header */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero Section */
.category-hero {
    background: linear-gradient(135deg, #F7A8B8 0%, #81C3D7 100%);
    border-radius: 20px;
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem;
    min-height: 400px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-text p {
    font-size: 1.2rem;
    color: #FFFFFF;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
}

.stat-label {
    font-size: 0.9rem;
    color: #FFFFFF;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Timeline Development */
.development-guide {
    margin-bottom: 5rem;
}

.development-guide h2 {
    font-size: 2.5rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-item {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    border: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: #F7A8B8;
}

.timeline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #F7A8B8, #81C3D7);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.timeline-item h3 {
    font-size: 1.5rem;
    color: #2D3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-item p {
    color: #4A5568;
    line-height: 1.6;
}

/* Domaines Essentiels */
.essential-domains {
    margin-bottom: 5rem;
}

.essential-domains h2 {
    font-size: 2.5rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.domain-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.domain-card:hover {
    transform: translateY(-8px);
}

.domain-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.domain-content {
    padding: 2rem;
}

.domain-content h3 {
    font-size: 1.5rem;
    color: #2D3748;
    margin-bottom: 1rem;
    font-weight: 600;
}

.domain-content p {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.domain-content ul {
    list-style: none;
    padding: 0;
}

.domain-content li {
    color: #81C3D7;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.domain-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F7A8B8;
    font-weight: bold;
}

/* Calculateur */
.development-calculator {
    background: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 5rem;
}

.development-calculator h2 {
    font-size: 2.2rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calculator-form {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calculator-form h3 {
    color: #2D3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4A5568;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #F7A8B8;
}

.btn-calculate {
    background: linear-gradient(135deg, #F7A8B8, #81C3D7);
    color: #FFFFFF;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-2px);
}

.calculator-result {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A5568;
    text-align: center;
}

/* Articles Grid */
.category-articles {
    margin-bottom: 5rem;
}

.category-articles h2 {
    font-size: 2.5rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.articles-intro {
    text-align: center;
    color: #4A5568;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-card.featured {
    border-left: 5px solid #F7A8B8;
}

.article-card h3 {
    margin-bottom: 1rem;
}

.article-card h3 a {
    color: #2D3748;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: #F7A8B8;
}

.article-card p {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
}

.article-category {
    background: linear-gradient(135deg, #F7A8B8, #81C3D7);
    color: #FFFFFF;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.articles-summary {
    text-align: center;
    padding: 2rem;
    background: #F8F9FA;
    border-radius: 15px;
    margin-top: 2rem;
}

.articles-summary p {
    color: #4A5568;
    font-size: 1.1rem;
}

/* Tableau Comparatif */
.products-comparison {
    margin-bottom: 5rem;
}

.products-comparison h2 {
    font-size: 2.5rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #FFFFFF;
}

.responsive-table th {
    background: linear-gradient(135deg, #F7A8B8, #81C3D7);
    color: #FFFFFF;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.responsive-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
    color: #4A5568;
}

.responsive-table tr:nth-child(even) {
    background: #F8F9FA;
}

.responsive-table tr:hover {
    background: #E2E8F0;
}

/* FAQ */
.category-faq {
    margin-bottom: 5rem;
}

.category-faq h2 {
    font-size: 2.5rem;
    color: #2D3748;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #81C3D7;
}

.faq-item h3 {
    color: #2D3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: #4A5568;
    line-height: 1.6;
}

/* Avertissement Légal */
.legal-notice {
    background: #FFF5F5;
    border: 2px solid #FEB2B2;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.legal-notice p {
    color: #C53030;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .category-container {
        padding-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .timeline-grid,
    .domains-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .development-guide h2,
    .essential-domains h2,
    .products-comparison h2,
    .category-faq h2 {
        font-size: 2rem;
    }
    
    /* Tableaux responsive mobile */
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }
    
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }
    
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr {
        border: 1px solid #E2E8F0;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #2D3748;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
        padding: 3rem;
    }
    
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}