/* ═══════════════════════════════════════════════════════════════
   PAGE PARTENAIRES — CSS autonome
   ═══════════════════════════════════════════════════════════════ */

:root {
    --p-timeline: #9b59b6;
    --p-card-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --p-card-shadow-hover: 0 8px 16px rgba(0,0,0,0.15);
}

.partenaires-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.p-hero {
    background: linear-gradient(135deg, #0d4f3c 0%, #1a7a5e 50%, #0f6b4a 100%);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
    color: white;
    box-shadow: var(--p-card-shadow);
}

.p-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.p-hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ── Blocs ─────────────────────────────────────────────────────── */
.p-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.p-block {
    background: linear-gradient(160deg,
        rgba(var(--pc-r, 155), var(--pc-g, 89), var(--pc-b, 182), 0.18) 0%,
        var(--bg-card, #1e1e2e) 60%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: all 0.3s ease;
    border-left: 5px solid var(--pc, var(--p-timeline));
    border-top: 1px solid var(--pc, var(--p-timeline));
    position: relative;
    overflow: hidden;
}

.p-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pc, #9b59b6), var(--pc2, #8e44ad));
}

.p-block:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--pc, #9b59b6);
    transform: translateY(-4px);
}

.p-block--alt {
    background: linear-gradient(160deg,
        rgba(var(--pc-r, 155), var(--pc-g, 89), var(--pc-b, 182), 0.22) 0%,
        var(--bg-card, #1e1e2e) 60%);
}

.p-block--cta {
    background: linear-gradient(135deg,
        rgba(231,76,60,0.1) 0%,
        rgba(155,89,182,0.1) 100%);
    border-left-color: #e74c3c;
}

/* ── Header du bloc ────────────────────────────────────────────── */
.p-block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.p-block-icon {
    font-size: 2.5rem;
    animation: p-bounce 2s infinite;
    display: inline-block;
}

.p-block-name {
    font-size: 2rem;
    color: var(--pc, var(--p-timeline));
    font-weight: 700;
    margin: 0;
}

.p-block-name-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    font-weight: 400;
    display: block;
    margin-top: 0.15rem;
}

.p-block--cta .p-block-name {
    color: #e74c3c;
}

/* ── Corps du bloc ─────────────────────────────────────────────── */
.p-block-tagline {
    font-size: 1.3rem;
    color: var(--pc, var(--p-timeline));
    font-weight: 600;
    margin-bottom: 1rem;
}

.p-tagline-translation {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    margin-top: 0.3rem;
}

.p-block-desc {
    line-height: 1.8;
    color: var(--text-primary, #e0e0e0);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ── Tags ──────────────────────────────────────────────────────── */
.p-block-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.p-tag {
    border: 1px solid var(--pc, var(--p-timeline));
    color: var(--pc, var(--p-timeline));
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
}

/* ── Contribution ──────────────────────────────────────────────── */
.p-block-contrib {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--pc, #27ae60) 15%, transparent),
        color-mix(in srgb, var(--pc2, #2ecc71) 15%, transparent));
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--pc, #27ae60);
    margin-bottom: 1.5rem;
    color: var(--pc, #27ae60);
    font-size: 1rem;
}

.p-contrib-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ── CTA bouton ────────────────────────────────────────────────── */
.p-block-cta {
    margin-top: 0.5rem;
}

.p-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, var(--pc, #e74c3c) 0%, var(--pc2, #c0392b) 100%);
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.p-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    opacity: 0.9;
}

.p-block--cta .p-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* ── Animation ─────────────────────────────────────────────────── */
@keyframes p-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ── Layout 2 colonnes ─────────────────────────────────────────── */
.p-block-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ── Colonne logo ──────────────────────────────────────────────── */
.p-block-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.p-logo-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    border: 2px solid;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-block:hover .p-logo-wrapper {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.p-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.p-logo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

.p-block:hover .p-logo-placeholder {
    transform: scale(1.04) rotate(3deg);
}

/* ── Liens sociaux ─────────────────────────────────────────────── */
.p-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.p-social-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.p-social-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(3px);
}

/* ── Colonne texte ─────────────────────────────────────────────── */
.p-block-text-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .p-block-inner {
        grid-template-columns: 1fr;
    }
    .p-block-logo-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .p-logo-wrapper,
    .p-logo-placeholder {
        width: 120px;
        height: 120px;
    }
}
