/* ========================= POLE ENFANCE ========================= */

:root {
    --enfance-primary: #f68c10;
    --enfance-secondary: #fcebd5;
    --enfance-text: #333;
    --enfance-bg: #fff;
    --enfance-card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --enfance-radius: 20px;
}

/* Commenté: La background-image est maintenant gérée via le système centralisé de page_background */
/* body.pole-children-page .main-public {
    background-image: url('/assets/images/point_orange.png');
    background-repeat: no-repeat;
    background-size: 800px auto;
} */

/* Commenté: La position doit rester identique sur tous les onglets (définie en base de données) */
/* body.enfance-tab-loisirs .main-public {
    background-position: right -6rem top 64rem;
}

body.enfance-tab-scolaire .main-public {
    background-position: left -6rem top 38rem;
}

body.enfance-tab-activites .main-public {
    background-position: right -6rem bottom -6rem;
} */

/* Conteneur principal */
.enfance-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Causten', sans-serif;
    color: var(--enfance-text);
}

/* Bandeau */
.children-hero {
    width: 100%;
    height: 256px;
    overflow: hidden;
    background: #f2f2f2;
    border-bottom: 1px solid #e5e5e5;
}

.children-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.children-hero--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
}

/* Header */
.enfance-header {
    margin-bottom: 3rem;
}

.enfance-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.enfance-header p {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Team Section */
.enfance-team-section {
    margin-bottom: 4rem;
}

.enfance-team-label {
    font-family: 'Causten', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    color: #000;
}

.enfance-team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 576px) {
    .enfance-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .enfance-team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .enfance-team-grid { grid-template-columns: repeat(4, 1fr); }
}

.enfance-team-col {
    font-size: 0.95rem;
    line-height: 1.5;
}

.enfance-team-col strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Tabs System */
.enfance-tabs-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 2rem;
}

.enfance-tabs-header {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    transform: translateY(0);
}

.enfance-tab-btn {
    padding: 0.9rem 2.4rem;
    background: rgba(246, 140, 16, 0.18);
    border: 2px solid rgba(246, 140, 16, 0.3);
    font-family: 'More Sugar', cursive !important;
    font-weight: 400 !important;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 999px;
    color: #2b2b2b;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.enfance-tab-btn.active {
    background: rgba(246, 140, 16, 0.9);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(246, 140, 16, 0.25);
}

.enfance-tab-btn.active::after {
    content: none;
}

.enfance-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(246, 140, 16, 0.28);
}

.enfance-tab-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-height: 0;
    box-shadow: none;
    position: relative;
    z-index: 5;
    margin-top: 0;
}

.enfance-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.enfance-gallery-section--side {
    margin: 0;
}

.enfance-tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.enfance-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Styles */
.enfance-section-title {
    font-family: 'More Sugar', cursive !important;
    font-size: 1.8rem;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 1.5rem;
}

.enfance-text-block {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.enfance-sub-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.enfance-placeholder-photo {
    background-color: #dcdcdc;
    height: 350px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    color: #666;
    font-weight: bold;
}

/* Stats Grid */
.enfance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.enfance-stat-card {
    background-color: rgba(246, 140, 16, 0.85);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    line-height: 1.4;
}

/* Ateliers (onglet Activités) */
.enfance-activity-card {
    background: #f9c87a;
    border-radius: 8px;
}

/* Buttons */
.enfance-btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.enfance-program-btn {
    display: block;
    width: 100%;
    background-color: #aaa;
    color: white;
    padding: 1rem;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.enfance-program-btn:hover {
    background-color: #888;
    color: white;
}

/* List Styles */
.enfance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enfance-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.enfance-list li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .enfance-tabs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .enfance-tab-btn {
        border-radius: 10px;
        text-align: center;
    }
    
    .enfance-tab-content {
        padding: 2rem;
    }

    .enfance-split {
        grid-template-columns: 1fr;
    }
}
