/**
 * Partner Pages Stylesheet — page-partenaires.css
 *
 * Shared styles for all 6 partner pages:
 *   - Landing page (/partenaires)
 *   - PMS (/pms)
 *   - PSE (/pse)
 *   - ParaBonheur (/parabonheur)
 *   - CapBonheur (/capbonheur)
 *   - APEB (/apeb)
 *
 * @package ecole-du-bonheur
 */

/* ==========================================================================
   LANDING PAGE — Card Grid
   ========================================================================== */

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

.partner-link-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.partner-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.partner-link-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.partner-link-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.partner-link-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.partner-link-card .card-arrow {
    float: right;
    color: var(--primary);
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.partner-link-card:hover .card-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   SHARED PARTNER CARD STRUCTURE
   ========================================================================== */

.partner-content {
    max-width: 1400px;
    margin: 0 auto;
}

.partner-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.partner-header {
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6B8DE8 100%);
    color: white;
}

.partner-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.partner-header .partner-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.partner-header .partner-description {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ==========================================================================
   PARTNER SECTIONS
   ========================================================================== */

.partner-section {
    margin: 0 2.5rem 2rem 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
    padding-top: 2rem;
}

.partner-section:first-of-type {
    padding-top: 3.5rem;
}

.partner-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 2.5rem;
}

.partner-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-intro {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   SERVICES GRID — Used by PMS + PSE
   ========================================================================== */

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #2563EB;
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
    color: #7C3AED;
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   MISSION LIST — Used by PSE + ParaBonheur
   ========================================================================== */

.mission-section {
    background: white;
    margin: 0 2.5rem 2rem 2.5rem !important;
    padding: 0 !important;
    padding-top: 2rem !important;
    border-top: 1px solid #E5E7EB;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--light-bg);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.mission-list li:hover {
    transform: translateX(5px);
}

.mission-list li i {
    color: #22C55E;
    margin-top: 0.15rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.mission-list li span {
    color: var(--text-dark);
    line-height: 1.7;
}

/* ==========================================================================
   CONTACT / INSCRIPTION — Used by PMS + PSE
   ========================================================================== */

.contact-section {
    text-align: left;
}

.inscription-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.inscription-info .btn {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.inscription-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--light-bg);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.contact-card:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #2563EB;
}

.contact-card strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-card p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PMS-SPECIFIC STYLES
   ========================================================================== */

/* PMS purple theme override */
.pms-page .partner-header,
.pms-theme .partner-header {
    background: linear-gradient(135deg, #8B7ED1 0%, #6B5BA8 100%);
}

.pms-theme .partner-section h3 {
    color: #8B7ED1;
}

/* CPMS header with logo */
.cpms-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cpms-logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Video wrapper */
.video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Affiches grid */
.affiches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.affiche-card {
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.affiche-header {
    background: linear-gradient(135deg, #8B7ED1 0%, #6B5BA8 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.affiche-img {
    width: 100%;
    height: auto;
    display: block;
}

.affiche-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    color: #8B7ED1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border-light);
}

.affiche-download:hover {
    background: #8B7ED1;
    color: white;
}

/* ==========================================================================
   PSE-SPECIFIC STYLES
   ========================================================================== */

.pse-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.pse-logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pse-role-section {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.pse-role-content {
    flex: 1;
}

.pse-poster {
    width: 220px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.pse-poster:hover {
    transform: scale(1.03) rotate(-1deg);
}

/* ==========================================================================
   PARABONHEUR-SPECIFIC STYLES
   ========================================================================== */

.parabonheur-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.parabonheur-logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.activity-card {
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.activity-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.activity-card.maternelle .activity-icon {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.activity-card.primaire .activity-icon {
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
    color: #7C3AED;
}

.activity-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.activity-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.activity-card li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.activity-card.maternelle li i {
    color: #10B981;
    width: 18px;
}

.activity-card.primaire li i {
    color: #8B5CF6;
    width: 18px;
}

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

.stage-period {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-period:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stage-period i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stage-period:nth-child(1) i {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #D97706;
}

.stage-period:nth-child(2) i {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
    color: #DB2777;
}

.stage-period:nth-child(3) i {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
}

.stage-period:nth-child(4) i {
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    color: #EA580C;
}

.stage-period span {
    color: var(--text-dark);
}

.inscription-section {
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.inscription-section h3 {
    justify-content: center;
}

.inscription-info p {
    font-size: 1.1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inscription-info p i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* ==========================================================================
   CAPBONHEUR-SPECIFIC STYLES
   ========================================================================== */

.capbonheur-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.capbonheur-logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.partner-header .partner-note {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.6;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-section {
    background: white;
    margin: 0;
    padding: 2.5rem 3rem;
    border-radius: 0;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-text strong {
    color: var(--primary);
    font-weight: 600;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light-bg);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.benefit-item:nth-child(1) i {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #D97706;
}

.benefit-item:nth-child(2) i {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
    color: #DB2777;
}

.benefit-item:nth-child(3) i {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
}

.benefit-item:nth-child(4) i {
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    color: #EA580C;
}

.benefit-item span {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.cta-section {
    background: white;
    margin: 0;
    padding: 2.5rem 3rem 3rem;
    border-radius: 0 0 24px 24px;
    text-align: center;
}

.cta-section h3 {
    color: var(--primary);
    justify-content: center;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

/* ==========================================================================
   APEB-SPECIFIC STYLES
   ========================================================================== */

/* APEB uses data-color="apeb" — its accent color is handled by the theme's
   page-header component. No additional APEB-specific structural styles needed
   beyond the shared placeholder-content styles from the main stylesheet. */

/* ==========================================================================
   RESPONSIVE — @media (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Landing page */
    .partners-grid {
        grid-template-columns: 1fr;
    }

    /* Shared card */
    .partner-card {
        border-radius: 20px;
    }

    .partner-header {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .partner-header h2 {
        font-size: 1.6rem;
    }

    .partner-header .partner-subtitle {
        font-size: 1rem;
    }

    .partner-header .partner-description {
        font-size: 0.9rem;
    }

    .partner-header .partner-note {
        font-size: 0.85rem;
    }

    .partner-section {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .partner-section:first-of-type {
        padding-top: 2rem;
    }

    .partner-section:last-child {
        padding-bottom: 1.5rem;
    }

    /* Grids collapse to single column */
    .services-grid,
    .activities-grid,
    .stages-info,
    .affiches-grid,
    .benefits-list {
        grid-template-columns: 1fr;
    }

    /* PMS */
    .cpms-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cpms-logo {
        width: 160px;
    }

    /* PSE */
    .pse-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pse-logo {
        width: 160px;
    }

    .pse-role-section {
        flex-direction: column;
    }

    .pse-poster {
        width: 100%;
        max-width: 280px;
    }

    .mission-section {
        margin: 0 1.5rem 2rem 1.5rem !important;
    }

    /* ParaBonheur */
    .parabonheur-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .parabonheur-logo {
        width: 160px;
    }

    .activity-card {
        padding: 1.5rem;
    }

    /* CapBonheur */
    .capbonheur-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .capbonheur-logo {
        width: 160px;
    }

    .highlight-section,
    .cta-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
