/* Hero Section Partenaires */
.partners-hero {
    position: relative;
    height: 300px;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* Section Devenir Partenaire */
.become-partner-section {
    padding: 80px 20px;
    background-color: var(--gray-light);
}

.partner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-text h2 {
    color: var(--red-primary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.3;
}

.partner-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.contact-button {
    padding: 15px 40px;
    background-color: var(--blue-primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-button:hover {
    background-color: #1a7aad;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.handshake-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--blue-primary), #1a7aad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(32, 141, 204, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.handshake-icon i {
    font-size: 100px;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Section Grille Partenaires */
.partners-grid-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.section-title-partners {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-dark);
    margin-bottom: 60px;
    position: relative;
}

.section-title-partners::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--blue-primary);
    margin: 20px auto 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-height: 150px;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.no-partners {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Section Budget */
.budget-section {
    padding: 80px 20px;
    background-color: var(--gray-light);
}

.section-title-budget {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-dark);
    margin-bottom: 60px;
    position: relative;
}

.section-title-budget::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--red-primary);
    margin: 20px auto 0;
}

.budget-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.budget-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#budgetChart {
    max-width: 400px;
    max-height: 400px;
    width: 100%;
    height: auto;
}

.budget-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.budget-legend {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.legend-color {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.legend-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.legend-label {
    font-size: 1rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.legend-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--blue-primary);
}

.budget-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.info-box {
    text-align: center;
    padding: 20px;
}

.info-box.highlight {
    background-color: var(--blue-primary);
    border-radius: 10px;
    color: var(--white);
}

.info-amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.info-box.highlight .info-amount {
    color: var(--white);
}

.info-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-box.highlight .info-label {
    color: var(--white);
}

.info-separator {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-dark);
}

/* Responsive Design */
@media (max-width: 968px) {
    .partner-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partner-text {
        text-align: center;
    }

    .budget-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chart-container {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .partners-hero {
        height: 250px;
    }

    .become-partner-section {
        padding: 60px 20px;
    }

    .partner-text h2 {
        font-size: 1.5rem;
    }

    .partner-text p {
        font-size: 1rem;
    }

    .handshake-icon {
        width: 150px;
        height: 150px;
    }

    .handshake-icon i {
        font-size: 70px;
    }

    /* 3 colonnes sur mobile pour les logos partenaires */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .partner-logo-item {
        padding: 15px;
        min-height: 100px;
    }

    .partner-logo-item img {
        max-height: 60px;
    }

    .partner-logo-container{
        display: none;
    }

    .section-title-partners,
    .section-title-budget {
        font-size: 1.5rem;
    }

    #budgetChart {
        max-width: 300px;
        max-height: 300px;
    }

    .budget-info {
        flex-direction: row;
        gap: 5px;
        padding: 20px 10px;
    }

    .info-box {
        padding: 10px;
        flex: 1;
    }

    .info-separator {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .info-amount {
        font-size: 1.1rem;
    }

    .info-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .partner-text h2 {
        font-size: 1.3rem;
    }

    .handshake-icon {
        width: 120px;
        height: 120px;
    }

    .handshake-icon i {
        font-size: 50px;
    }

    /* Maintien de 3 colonnes même sur petits écrans */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .partner-logo-item {
        padding: 10px;
        min-height: 80px;
    }

    .partner-logo-item img {
        max-height: 50px;
    }

    #budgetChart {
        max-width: 250px;
        max-height: 250px;
    }

    .legend-value {
        font-size: 1rem;
    }

    .info-amount {
        font-size: 1.2rem;
    }
}