/* Reset et Variables */
:root {
    --primary-color: #F7A8B8;
    --secondary-color: #81C3D7;
    --accent-color: #FFE4E6;
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
    --light-gray: #F7FAFC;
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Layout Principal */
.category-container {
    padding-top: 40px;
    min-height: 100vh;
}

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

/* Hero Section */
.category-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, #FFF 100%);
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Guide Grid */
.quick-guide {
    padding: 80px 0;
    background: var(--white);
}

.quick-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.guide-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.guide-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.guide-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.guide-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Timeline des Âges */
.age-stages {
    padding: 80px 0;
    background: var(--light-gray);
}

.age-stages h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 700;
}

.stages-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.stage-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.stage-age {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.stage-item h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.stage-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Tableau Responsive */
.development-comparison {
    padding: 80px 0;
    background: var(--white);
}

.development-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.responsive-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.responsive-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.responsive-table tr:nth-child(even) {
    background: var(--light-gray);
}

.responsive-table tr:hover {
    background: var(--accent-color);
}

/* Conseils Pratiques */
.practical-tips {
    padding: 80px 0;
    background: var(--light-gray);
}

.practical-tips h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.tip-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.tip-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Articles Grid */
.category-articles {
    padding: 80px 0;
    background: var(--white);
}

.category-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.article-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color);
}

.article-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--white) 100%);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card h3 {
    margin-bottom: 15px;
}

.article-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* FAQ */
.category-faq {
    padding: 80px 0;
    background: var(--light-gray);
}

.category-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 700;
}

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

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Section No Articles */
.no-articles {
    padding: 80px 0;
    text-align: center;
    background: var(--light-gray);
}

.no-articles h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.no-articles p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-container {
        padding-top: 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .guide-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .stages-timeline {
        grid-template-columns: 1fr;
    }
    
    .tips-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tableau 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 var(--border-color);
        margin-bottom: 15px;
        padding: 15px;
        border-radius: var(--border-radius);
        background: var(--white);
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}