/* CSS spécialisé pour la page catégorie Parents - Parentalité Bienveillante */

/* Container principal avec padding intelligent */
.category-container {
    padding-top: 35px; /* Padding intelligent selon header */
    min-height: 100vh;
}

/* Hero Section */
.category-hero {
    background: linear-gradient(135deg, #F7A8B8 0%, #81C3D7 100%);
    padding: 60px 20px;
    margin-bottom: 40px;
}

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

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
}

.stat-label {
    font-size: 0.9rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Introduction */
.category-intro {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: #1F2937;
    text-align: center;
    margin-bottom: 30px;
}

.intro-content > p {
    font-size: 1.1rem;
    color: #4B5563;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

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

.highlight-item {
    background: #F9FAFB;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #F7A8B8;
}

.highlight-item h3 {
    font-size: 1.3rem;
    color: #1F2937;
    margin-bottom: 15px;
}

.highlight-item p {
    color: #6B7280;
    line-height: 1.6;
}

/* Guides thématiques */
.thematic-guides {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.thematic-guides h2 {
    font-size: 2.5rem;
    color: #1F2937;
    text-align: center;
    margin-bottom: 50px;
}

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

.guide-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

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

.guide-content {
    padding: 25px;
}

.guide-content h3 {
    font-size: 1.4rem;
    color: #1F2937;
    margin-bottom: 15px;
}

.guide-content p {
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.guide-content li {
    color: #81C3D7;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

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

/* Outils pratiques */
.practical-tools {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.practical-tools h2 {
    font-size: 2.5rem;
    color: #1F2937;
    text-align: center;
    margin-bottom: 40px;
}

.tools-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

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

.tools-table th,
.tools-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.tools-table th {
    background: #F7A8B8;
    color: white;
    font-weight: 600;
}

.tools-table tr:hover {
    background: #F9FAFB;
}

/* Articles */
.category-articles {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.category-articles h2 {
    font-size: 2.5rem;
    color: #1F2937;
    text-align: center;
    margin-bottom: 20px;
}

.articles-intro {
    text-align: center;
    color: #6B7280;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #81C3D7;
    transition: transform 0.3s ease;
}

.article-card.featured {
    border-left-color: #F7A8B8;
    background: linear-gradient(135deg, #FFF5F7 0%, #F0F9FF 100%);
}

.article-card:hover {
    transform: translateY(-3px);
}

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

.article-content h3 a {
    color: #1F2937;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.article-description {
    color: #6B7280;
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.article-category {
    background: #F7A8B8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* FAQ */
.category-faq {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.category-faq h2 {
    font-size: 2.5rem;
    color: #1F2937;
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #81C3D7;
}

.faq-item h3 {
    color: #1F2937;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #6B7280;
    line-height: 1.6;
}

/* Call to Action */
.category-cta {
    background: linear-gradient(135deg, #81C3D7 0%, #F7A8B8 100%);
    padding: 60px 20px;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #1F2937;
}

.btn-primary:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1F2937;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Tableaux responsive sur 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 #ccc;
        margin-bottom: 10px;
        padding: 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;
    }

    .category-container {
        padding-top: 25px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .intro-content h2,
    .thematic-guides h2,
    .practical-tools h2,
    .category-articles h2,
    .category-faq h2 {
        font-size: 2rem;
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }

    .intro-highlights {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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