/* ========================= POLE PETITE ENFANCE ========================= */

/* Conteneur principal */
.pole-baby-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    background-image: url('/assets/images/point_jaune.png');
    background-repeat: no-repeat;
    background-position: right -8rem top 20rem;
    background-size: 800px auto;
}

body.pole-baby-gribouille .pole-baby-container {
    background-position: left -8rem top 20rem;
}

/* Bandeau */
.baby-hero {
    width: 100%;
    height: 256px;
    overflow: hidden;
    background: #f2f2f2;
    border-bottom: 1px solid #e5e5e5;
}

.baby-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.baby-hero--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-family: 'Causten', sans-serif;
    font-weight: 600;
}

/* Titre principal */
.pole-baby-container h1 {
    font-size: 2.5rem;
    margin: 0 0 2rem 0;
    color: #000;
}

/* Conteneur gris avec onglets */
.tabs-container {
    background: transparent;
    padding: 0;
}

/* Navigation des onglets */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin: 1.5rem 0 2.5rem;
    padding: 0;
}

.tab-link {
    font-family: 'More Sugar', cursive !important;
    font-size: 1.35rem;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -0.04em !important;
    color: #000;
    text-decoration: none;
    padding: 0.7rem 2.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    background: rgba(255, 222, 89, 0.25);
    border: 2px solid rgba(255, 222, 89, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
    animation: tab-pop 0.5s ease both;
}

.tab-link.active {
    background-color: #ffde59;
    box-shadow: 0 14px 26px rgba(255, 222, 89, 0.35);
    transform: translateY(-2px);
}

.tab-link:not(.active) {
    opacity: 0.85;
}

.tab-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.tab-link:active {
    transform: translateY(0) scale(0.99);
}

.tab-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

@keyframes tab-pop {
    from { transform: translateY(6px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Contenu des onglets (Fond blanc) */
.tab-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-height: 0;
}

/* Mise en page onglets */
.baby-tab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.baby-tab-layout > * {
    min-width: 0;
    max-width: 100%;
}

.baby-tab-layout img {
    max-width: 100%;
    height: auto;
}

/* Inverse l'ordre pour le deuxième layout : carrousel à gauche, texte à droite */
.tab-content .baby-tab-layout:nth-child(3) {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.baby-tab-media {
    background: #f4f4f4;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.baby-tab-media img,
.baby-slider .swiper-slide img {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.baby-tab-body {
    max-width: 820px;
}

/* Sections de contenu */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: 'More Sugar', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.content-section p {
    font-family: 'Causten', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000;
    margin-bottom: 1rem;
}

/* Placeholder Photos */
.photos-placeholder {
    background-color: #d9d9d9;
    width: 100%;
    height: 320px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: 'Causten', sans-serif;
    color: #000;
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-box {
    background-color: rgba(255, 222, 89, 0.25);
    border-radius: 14px;
    padding: 1.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 110px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-family: 'Causten', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.stat-label {
    font-family: 'Causten', sans-serif;
    font-size: 1rem;
    color: #000;
}

/* Responsive */
@media (max-width: 992px) {
    .baby-tab-layout,
    .tab-content .baby-tab-layout:nth-child(3) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .tab-link {
        width: 100%;
        text-align: center;
    }

    .tab-content {
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .baby-tab-layout {
        grid-template-columns: 1fr;
    }

    .baby-tab-body {
        max-width: 100%;
    }
}
