/* ==========================================
   CRIHD PARTENAIRE PAGE - STYLES INSTITUTIONNELS
   ========================================== */

/* ==========================================
   STRUCTURE DE BASE
   ========================================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

.main-content {
    flex: 1;
    background-color: white;
}

/* ==========================================
   TYPOGRAPHIE INSTITUTIONNELLE
   ========================================== */
.highlight-text {
    color: #c53c3c;
    font-weight: 700;
}

.text-dark {
    color: #2c3e50;
    font-weight: 700;
}

/* ==========================================
   SECTIONS INSTITUTIONNELLES
   ========================================== */
.institutional-section {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}

.institutional-section.alt-bg {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* ==========================================
   GRILLE DE VALEURS
   ========================================== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.value-block {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* État initial visible */
    opacity: 1;
    transform: translateY(0);
}

/* Animation d'entrée via JavaScript */
.value-block.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.value-block:hover {
    border-color: #c53c3c;
    box-shadow: 0 4px 12px rgba(197, 60, 60, 0.15);
    transform: translateY(-2px);
}

.value-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: #c53c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border-radius: 0;
}

.value-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.25px;
}

.value-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 16px;
    font-weight: 400;
}

.value-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-points li {
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    font-weight: 500;
}

.value-points li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #c53c3c;
    font-weight: bold;
}

/* ==========================================
   FRAMEWORK DE PARTENARIATS
   ========================================== */
.partnership-framework {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.framework-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* État initial visible */
    opacity: 1;
    transform: translateX(0);
}

/* Animation d'entrée via JavaScript */
.framework-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.framework-item:hover {
    border-color: #c53c3c;
    box-shadow: 0 4px 12px rgba(197, 60, 60, 0.1);
}

.framework-number {
    width: 64px;
    height: 64px;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border-radius: 0;
    border: 2px solid #2c3e50;
}

.framework-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.framework-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.25px;
}

.framework-description {
    margin: 0;
}

.framework-description p {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 400;
}

.framework-description strong {
    color: #374151;
    font-weight: 600;
}

.framework-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-tag {
    background: #f0f4f8;
    color: #334155;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.benefit-tag:hover {
    transform: scale(1.05);
}

/* ==========================================
   TÉMOIGNAGES INSTITUTIONNELS
   ========================================== */
.testimonials-institutional {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.testimonial-institutional {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* État initial visible */
    opacity: 1;
    transform: translateY(0);
}

/* Animation d'entrée via JavaScript */
.testimonial-institutional.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-institutional:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.partner-logo {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    flex-shrink: 0;
}

.logo-placeholder {
    font-size: 12px;
    font-weight: 700;
    color: #c53c3c;
    letter-spacing: 1px;
}

.partner-info {
    flex: 1;
}

.partner-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    letter-spacing: -0.25px;
}

.partnership-type {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content blockquote {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
    font-weight: 400;
    position: relative;
}

.testimonial-content blockquote::before {
    content: '"';
    font-size: 48px;
    color: #c53c3c;
    position: absolute;
    top: -10px;
    left: -20px;
    font-family: serif;
}

.testimonial-author {
    margin: 0;
}

.testimonial-author strong {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 15px;
}

.testimonial-author span {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.partnership-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f4;
}

.result-item {
    text-align: center;
    padding: 16px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.result-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #c53c3c;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.result-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================
   PROCESSUS FRAMEWORK
   ========================================== */
.process-framework {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* État initial visible */
    opacity: 1;
    transform: translateY(0);
}

/* Animation d'entrée via JavaScript */
.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    border-color: #c53c3c;
    box-shadow: 0 4px 12px rgba(197, 60, 60, 0.1);
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #c53c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid #c53c3c;
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    letter-spacing: -0.25px;
}

.step-description {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 400;
}

.step-duration {
    font-size: 12px;
    color: #c53c3c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-arrow {
    text-align: center;
    color: #c53c3c;
    font-size: 20px;
    padding: 8px 0;
}

/* ==========================================
   SECTION CONTACT INSTITUTIONNEL
   ========================================== */
.institutional-contact {
    padding: 80px 0;
    background: #f8f9fa;
    border-top: 2px solid #e5e7eb;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info:not(.contact-info-footer) {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 32px;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item:not(.contact-item-footer) {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.contact-icon-rect {
    width: 48px;
    height: 48px;
    background: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text strong {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-text p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.contact-action {
    text-align: center;
}

.contact-btn {
    background: #c53c3c;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    background: #a73030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 60, 60, 0.3);
}

/* ==========================================
   FORMULAIRE INSTITUTIONNEL
   ========================================== */
.contact-form-section {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-header {
    background: #2c3e50;
    color: white;
    padding: 32px 40px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.form-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.25px;
}

.form-header p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.institutional-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c53c3c;
    box-shadow: 0 0 0 2px rgba(197, 60, 60, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    font-weight: 400;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    background: white;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 0;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #c53c3c;
    border-color: #c53c3c;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-submit {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.submit-btn-institutional {
    background: #c53c3c;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.submit-btn-institutional:hover {
    background: #a73030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 60, 60, 0.3);
}

.submit-btn-institutional:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   UTILITAIRES POUR ANIMATIONS
   ========================================== */
.char-counter {
    font-size: 12px;
    color: #6c757d;
    text-align: right;
    margin-top: 4px;
    transition: color 0.3s ease;
}

/* Délais d'animation échelonnés */
.value-block:nth-child(1) { transition-delay: 0.1s; }
.value-block:nth-child(2) { transition-delay: 0.2s; }
.value-block:nth-child(3) { transition-delay: 0.3s; }
.value-block:nth-child(4) { transition-delay: 0.4s; }

.framework-item:nth-child(1) { transition-delay: 0.1s; }
.framework-item:nth-child(2) { transition-delay: 0.2s; }
.framework-item:nth-child(3) { transition-delay: 0.3s; }
.framework-item:nth-child(4) { transition-delay: 0.4s; }

.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(5) { transition-delay: 0.3s; }
.process-step:nth-child(7) { transition-delay: 0.4s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .partnership-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .framework-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .framework-number {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }

    .contact-title {
        font-size: 22px;
    }

    .framework-item,
    .process-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-step {
        gap: 16px;
    }

    .step-indicator {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .partnership-results {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .contact-item:not(.contact-item-footer) {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .contact-icon-rect {
        margin: 0 auto;
    }

    .value-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .value-icon {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .institutional-section,
    .institutional-contact {
        padding: 60px 0;
    }

    .contact-form-section {
        margin: 0;
    }

    .form-header,
    .institutional-form {
        padding: 24px;
    }

    .framework-item,
    .testimonial-institutional,
    .process-step,
    .contact-info:not(.contact-info-footer) {
        padding: 20px;
    }

    .value-block {
        padding: 24px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* ==========================================
   ANIMATIONS AVANCÉES
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation pour les éléments en vue */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================
   ACCESSIBILITÉ
   ========================================== */
.contact-btn:focus,
.submit-btn-institutional:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.checkbox-label:focus-within {
    outline: 2px solid #c53c3c;
    outline-offset: 2px;
}

/* Indicateurs de focus pour navigation clavier */
.value-block:focus,
.framework-item:focus,
.testimonial-institutional:focus,
.process-step:focus {
    outline: 2px solid #c53c3c;
    outline-offset: 4px;
}

/* États de survol améliorés */
.value-block:hover .value-icon {
    animation: pulse 1s ease-in-out;
}

.framework-item:hover .framework-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ==========================================
   PRÉFÉRENCE POUR ANIMATIONS RÉDUITES
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    .value-block,
    .framework-item,
    .testimonial-institutional,
    .process-step,
    .contact-btn,
    .submit-btn-institutional,
    .benefit-tag,
    .value-icon,
    .framework-number {
        transition: none;
        animation: none;
    }

    .value-block:hover,
    .framework-item:hover,
    .testimonial-institutional:hover,
    .process-step:hover,
    .contact-btn:hover,
    .submit-btn-institutional:hover {
        transform: none;
    }

    .value-block.animate-in,
    .framework-item.animate-in,
    .testimonial-institutional.animate-in,
    .process-step.animate-in {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   UTILITAIRES
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ==========================================
   IMPRESSION
   ========================================== */
@media print {
    .contact-form-section,
    .contact-btn,
    .submit-btn-institutional {
        display: none;
    }

    .value-block,
    .framework-item,
    .testimonial-institutional,
    .process-step {
        border-color: #000;
        box-shadow: none;
        break-inside: avoid;
    }

    .section-title,
    .contact-title {
        color: #000;
    }

    .value-icon,
    .framework-number,
    .step-number,
    .contact-icon-rect {
        background: #000;
        color: white;
    }

    .institutional-section.alt-bg {
        background: white;
    }

    .benefit-tag {
        background: #f0f0f0;
        color: #000;
        border-color: #000;
    }
}

/* ==========================================
   MICRO-INTERACTIONS
   ========================================== */
.benefit-tag {
    cursor: default;
}

.result-number {
    transition: color 0.3s ease;
}

.result-number:hover {
    color: #a73030;
}

.partner-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.step-number:hover {
    animation: pulse 1s ease-in-out;
}

/* Performance optimizations */
.value-block,
.framework-item,
.testimonial-institutional,
.process-