/* ============================================
   PEDAGOGY SECTION - FORMAT PROCESSUS VISUEL
   Approche pédagogique avec flow diagram
   ============================================ */

.pedagogy {
    background: linear-gradient(135deg, #141414 0%, #0A0A0A 100%);
    position: relative;
    overflow: hidden;
}

.pedagogy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 30%, rgba(255, 107, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(255, 107, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.pedagogy .container {
    position: relative;
    z-index: 1;
}

/* Header */
.pedagogy .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pedagogy .section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pedagogy .section-subtitle {
    font-size: 1.3rem;
    color: #B0B0B0;
    font-weight: 400;
}

/* Content layout */
.pedagogy-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Visual supprimé - on garde tout pour le processus */
.pedagogy-visual {
    display: none;
}

/* Container de processus */
.pedagogy-text {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

/* Ligne de connexion horizontale entre principes */
.pedagogy-text::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, 
        #FF6B00 0%, 
        rgba(255, 107, 0, 0.6) 25%,
        rgba(255, 107, 0, 0.6) 50%,
        rgba(255, 107, 0, 0.6) 75%,
        #FF6B00 100%);
    z-index: 0;
}

/* Carte de principe - Format processus */
.pedagogy-principle {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
}

.pedagogy-principle:hover {
    transform: translateY(-10px);
    border-color: #FF6B00;
    box-shadow: 0 20px 50px rgba(255, 107, 0, 0.25);
}

/* Flèche de connexion */
.pedagogy-principle::after {
    content: '→';
    position: absolute;
    top: 45px;
    right: -35px;
    font-size: 2rem;
    color: #FF6B00;
    font-weight: 900;
    z-index: 2;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.pedagogy-principle:nth-child(3n)::after,
.pedagogy-principle:last-child::after {
    content: none;
}

/* Numéro de principe - Format hexagonal */
.principle-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B00 0%, rgba(255, 107, 0, 0.8) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    transition: all 0.4s ease;
}

.pedagogy-principle:hover .principle-number {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
}

/* Texte du principe */
.principle-text {
    text-align: center;
}

.principle-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.principle-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #C0C0C0;
    margin: 0;
}

/* Animation d'entrée progressive */
.pedagogy-principle {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpPrinciple 0.6s ease forwards;
}

.pedagogy-principle:nth-child(1) { animation-delay: 0.1s; }
.pedagogy-principle:nth-child(2) { animation-delay: 0.2s; }
.pedagogy-principle:nth-child(3) { animation-delay: 0.3s; }
.pedagogy-principle:nth-child(4) { animation-delay: 0.4s; }
.pedagogy-principle:nth-child(5) { animation-delay: 0.5s; }
.pedagogy-principle:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUpPrinciple {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icônes thématiques pour chaque principe */
.principle-text h3::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 50%;
    position: relative;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .pedagogy-text {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pedagogy-text::before {
        display: none;
    }
    
    .pedagogy-principle::after {
        content: none;
    }
    
    .pedagogy-principle:nth-child(2n)::after {
        content: '↓';
        top: auto;
        bottom: -40px;
        right: 50%;
        transform: translateX(50%);
        font-size: 2rem;
    }
    
    .pedagogy-principle:last-child::after {
        content: none;
    }
}

@media (max-width: 768px) {
    .pedagogy .section-title {
        font-size: 2.2rem;
    }
    
    .pedagogy-text {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .pedagogy-principle {
        padding: 2rem 1.5rem;
    }
    
    .pedagogy-principle::after {
        content: '↓';
        top: auto;
        bottom: -45px;
        right: 50%;
        transform: translateX(50%);
        font-size: 2rem;
    }
    
    .pedagogy-principle:last-child::after {
        content: none;
    }
    
    .principle-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .principle-text h3 {
        font-size: 1.2rem;
    }
    
    .principle-text p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .pedagogy .section-title {
        font-size: 1.8rem;
    }
    
    .pedagogy-content {
        gap: 2rem;
    }
    
    .pedagogy-text {
        gap: 2rem;
    }
    
    .pedagogy-principle {
        padding: 1.75rem 1.25rem;
    }
    
    .principle-number {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .principle-text h3 {
        font-size: 1.1rem;
    }
}
