/* ===================================================
   CONTENT.CSS - CONTENU PRINCIPAL ET STORY-TELLING
   ================================================== */

/* === CONTENU PRINCIPAL === */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    min-height: 100vh;
}

/* === HÉROS NARRATIF ===
   - Titre en multi-lignes .title-line avec dégradé sur texte
*/
.story-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    overflow: hidden;
}

.story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="var(--accent-primary)" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: buildingFloat 20s ease-in-out infinite;
}

@keyframes buildingFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dégradés améliorés pour le mode jour */
[data-theme="day"] .title-line {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    border-radius: 1px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(10px);
        opacity: 0.5;
    }
    60% {
        transform: translateY(5px);
        opacity: 0.8;
    }
}

/* === CHAPITRES STORY-TELLING === */
.story-chapter {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    opacity: 0;
    transform: none;
    transition: opacity 0.9s ease, filter 0.6s ease;
    z-index: 1;
    overflow: hidden;
    clear: both;
}

.story-chapter.revealed {
    opacity: 1;
}

.story-chapter.active-chapter {
    opacity: 1;
    z-index: 10;
}

.chapter-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Uniformiser l'entête des chapitres: titre puis sous-titre en dessous (comme Formations) */
.chapter-1 .chapter-content,
.chapter-2 .chapter-content,
.chapter-3 .chapter-content,
.chapter-4 .chapter-content,
.chapter-5 .chapter-content,
.chapter-6 .chapter-content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
}
.chapter-1 .chapter-title,
.chapter-2 .chapter-title,
.chapter-3 .chapter-title,
.chapter-4 .chapter-title,
.chapter-5 .chapter-title,
.chapter-6 .chapter-title {
    margin-bottom: 0.75rem;
}
.chapter-1 .chapter-text,
.chapter-2 .chapter-text,
.chapter-3 .chapter-text,
.chapter-4 .chapter-text,
.chapter-5 .chapter-text,
.chapter-6 .chapter-text {
    grid-column: 1 / -1;
    max-width: 820px;
    margin-bottom: 2rem;
}

.chapter-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-muted);
    line-height: 1;
    z-index: 0;
}

.chapter-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* === STYLES POUR LA TIMELINE HISTORIQUE === */
.history-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    text-align: center;
    font-style: italic;
    position: relative;
    padding-bottom: 1rem;
}

.history-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}

.timeline-container {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 4px solid var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--accent-secondary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--accent-secondary);
}

.timeline-year {
    background: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -24px;
    border-left-color: var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -24px;
    border-right-color: var(--card-bg);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
    position: relative;
}

.timeline-title::before {
    content: '📚';
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.timeline-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

/* Responsive pour la timeline */
@media (max-width: 1024px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
        transform: none;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

    .timeline-year {
        margin-top: 0;
        white-space: normal;
        min-width: max-content;
    }

    .timeline-content {
        width: calc(100% - 120px);
        margin-left: 120px !important;
        margin-right: 0 !important;
    }

    .timeline-content::before {
        left: -24px !important;
        right: auto !important;
        border-right-color: var(--card-bg) !important;
        border-left-color: transparent !important;
    }
}

@media (max-width: 768px) {
    .history-subtitle {
        font-size: 1.2rem;
        margin: 0 0 1.5rem 0;
    }
    
    .timeline-container {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .timeline-item {
        margin: 2rem 0;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
        margin: 0 0 1rem 0;
    }
    
    .timeline-year {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        white-space: normal;
        max-width: 150px;
        text-align: center;
        line-height: 1.3;
    }
}

/* Année mobile - cachée par défaut */
.timeline-year-mobile {
    display: none;
}

@media (max-width: 480px) {
    .history-subtitle {
        font-size: 1.1rem;
        margin: 0 0 1.25rem 0;
    }

    .timeline-line {
        left: 15px;
    }

    .timeline-marker {
        left: 15px;
    }

    /* Cacher l'année du marker sur mobile */
    .timeline-marker .timeline-year,
    .timeline-year:not(.timeline-year-mobile) {
        display: none !important;
    }

    /* Afficher l'année dans le contenu sur mobile */
    .timeline-year-mobile {
        display: inline-block;
        background: var(--accent-primary);
        color: white;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 1rem;
    }

    .timeline-content::before {
        content: none;
    }

    .timeline-item {
        margin: 1.5rem 0;
    }

    .timeline-title {
        font-size: 1rem;
        margin: 0 0 0.75rem 0;
    }

    .timeline-dot {
        width: 14px;
        height: 14px;
    }
}

/* === GRID DES VALEURS === */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Grille moderne 2x2, cartes symétriques et respirantes */
.values-grid-modern {
    /* Desktop: 2 colonnes égales, largeur uniforme */
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    gap: 1.5rem;
    align-items: stretch;
    justify-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}
.value-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.value-icon-circle {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orb-color-1), var(--orb-color-2));
    border: 1px solid var(--accent-primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}
.value-card .value-title { margin: 0.25rem 0 0.5rem 0; font-weight: 800; }
.value-card .value-description { margin: 0; color: var(--text-secondary); }

@media (max-width: 1024px) {
    /* Tablette: 2 colonnes, pas d'overflow */
    .values-grid-modern { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 768px) {
    /* Mobile: 1 colonne centrée */
    .values-grid-modern { grid-template-columns: 1fr; }
    .value-card { width: 100%; max-width: 480px; margin: 0 auto; }
}

.value-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-title .title-line {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

[data-theme="day"] .value-title .title-line {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Titres en blanc au hover des cartes valeurs (tous modes) */
.value-item:hover .value-title .title-line,
.value-card:hover .value-title .title-line {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.value-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === NOUVELLE SECTION ÉQUIPE MODERNE === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.team-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.team-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-img {
    transform: scale(1.05);
}

.team-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
}

.team-card:hover .team-card-overlay {
    opacity: 1;
}

.team-card-social {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.team-card:hover .team-card-social {
    transform: translateY(0);
}

.team-card-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.team-card-content {
    padding: 1.5rem;
}

.team-card-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-card-name .title-line {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

[data-theme="day"] .team-card-name .title-line {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-card-role {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-weight: 600;
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 1px solid var(--accent-primary);
    letter-spacing: 0.3px;
    text-transform: none;
}

.team-card-description {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 1.25rem;
    margin: 0;
}

.team-card-description::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.25rem;
    color: var(--accent-primary);
    font-size: 2rem;
    line-height: 1;
}

.team-card-description::after {
    content: '"';
    margin-left: 4px;
    color: var(--accent-primary);
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .team-card-image {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .team-card-image {
        height: 220px;
    }
    
    .team-card-content {
        padding: 1.25rem;
    }
    
    .team-card-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        gap: 1rem;
    }
    
    .team-card-image {
        height: 200px;
    }
    
    .team-card-content {
        padding: 1rem;
    }
    
    .team-card-name {
        font-size: 1.2rem;
    }
    
    .team-card-role {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    
    .team-card-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* === GRID DES FORMATIONS === */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
    justify-items: stretch;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.formation-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-10px);
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
}

.formation-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.formation-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.formation-title .title-line {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

[data-theme="day"] .formation-title .title-line {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Titres en blanc au hover des cartes formations (tous modes) */
.formation-card:hover .formation-title .title-line {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.formation-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === VIDÉO NÉON === */
.neon-video-box.animated {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.neon-video-box.animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.neon-video-box.animated:hover::before {
    opacity: 1;
}

.neon-video-box.animated:hover {
    transform: scale(1.02);
}

.neon-video-box video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* === SECTION PARTENAIRES AMÉLIORÉE ===
   - Présentation sous forme de cartes avec informations
   - Section statement pour valoriser les partenariats
*/
.partners-showcase {
    margin-top: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.partner-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.partner-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-color);
    border-color: var(--accent-primary);
}

.partner-logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo-container {
    transform: scale(1.05) rotate(2deg);
    background: rgba(255, 255, 255, 1);
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: none;
    transition: all 0.3s ease;
}

.partner-info {
    flex: 1;
}

.partner-name {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.partner-name .title-line {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

[data-theme="day"] .partner-name .title-line {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partner-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.partners-statement {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.partners-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: inherit;
}

.statement-content {
    position: relative;
    z-index: 2;
}

.statement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.statement-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.statement-title .title-line {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.statement-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive partenaires amélioré */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-card {
        padding: 1.5rem;
    }
    
    .partner-logo-container {
        width: 100px;
        height: 100px;
        padding: 1rem;
    }
    
    .partner-logo {
        max-height: 60px;
    }
    
    .partners-statement {
        padding: 2rem 1.5rem;
    }
    
    .statement-title {
        font-size: 1.3rem;
    }
    
    .statement-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .partners-showcase {
        margin-top: 2rem;
    }
    
    .partners-grid {
        margin-bottom: 2rem;
    }
    
    .partner-card {
        padding: 1.25rem;
    }
    
    .partner-logo-container {
        width: 80px;
        height: 80px;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .partner-name {
        font-size: 1.2rem;
    }
    
    .partner-description {
        font-size: 0.9rem;
    }
    
    .statement-icon {
        font-size: 2.5rem;
    }
    
    .statement-title {
        font-size: 1.2rem;
    }
}

/* === ÉPILOGUE === */
.story-epilogue {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.epilogue-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.epilogue-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.epilogue-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.cta-button.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cta-button.secondary:hover {
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
}

/* === SIGNATURE === */
.signature-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-primary);
}

.signature {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.signature strong {
    color: var(--text-primary);
    font-weight: 700;
}

.signature em {
    color: var(--accent-primary);
    font-style: italic;
}

/* === ANIMATIONS === */
/* Styles formulaire de contact */
.contact-form { display: grid; gap: 1rem; max-width: 720px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-input, .contact-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.9rem 1rem;
}

/* Cartes coordonnées contact */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 carte par ligne */
    gap: 1.25rem;
    margin: 1rem auto 0;
    max-width: 860px;
}
.contact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.contact-icon { font-size: 1.6rem; display: grid; place-items: center; }
.contact-label { margin: 0 0 0.25rem 0; font-weight: 800; }
.contact-value { margin: 0; color: var(--text-secondary); }
/* Garde 1 par ligne sur toutes largeurs */
.contact-input::placeholder, .contact-textarea::placeholder { color: var(--text-muted); }
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === ILLUSTRATION STYLÉE === */
.story-illustration {
    position: relative;
    padding: 6rem 0;
}

.story-illustration.full-bleed {
    padding: 0;
}

.story-illustration.full-bleed .story-container {
    max-width: none;
    padding: 0;
}

.story-illustration.full-bleed .illustration-card {
    border-radius: 0;
}

.story-illustration.full-bleed .illustration-image {
    width: 100vw;
    height: calc(100vh - 80px);
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* Améliorations responsive illustration (tablette/mobile) */
@supports (height: 100dvh) {
    .story-illustration.full-bleed .illustration-image {
        height: calc(100dvh - 80px);
    }
}

@media (max-width: 1024px) {
    .story-illustration.full-bleed .illustration-image {
        object-position: center center;
        aspect-ratio: 16/9;
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .story-illustration.full-bleed .illustration-image {
        height: 50vh;
        min-height: 300px;
        object-position: center center;
    }
    
    .illustration-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        text-align: center;
        padding: 0.75rem 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .illustration-title { 
        font-size: 1.1rem; 
    }
    
    .illustration-subtitle { 
        font-size: 0.9rem; 
    }
}

@media (max-width: 480px) {
    .story-illustration.full-bleed .illustration-image {
        height: 40vh;
        min-height: 250px;
    }
    
    .illustration-caption {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .illustration-title { 
        font-size: 1rem; 
    }
    
    .illustration-subtitle { 
        font-size: 0.8rem; 
    }
}

.illustration-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px var(--shadow-color), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.illustration-glow {
    content: '';
        position: absolute;
    inset: -2px;
    background: radial-gradient(1200px 400px at var(--mx, 50%) var(--my, 50%), var(--orb-color-1), var(--orb-color-2), transparent 60%);
    filter: blur(20px);
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.illustration-card:hover .illustration-glow {
    opacity: 0.9;
}

.illustration-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.illustration-card:hover .illustration-image {
    transform: scale(1.06);
}

.illustration-caption {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.illustration-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.illustration-title .title-line {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

[data-theme="day"] .illustration-title .title-line {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.illustration-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .story-illustration {
        padding: 4rem 0;
    }
    .illustration-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* === CURSEUR PERSONNALISÉ === */
.custom-cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.12s ease, opacity 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 2px 6px var(--shadow-color));
}

.custom-cursor-follower {
    position: fixed;
    width: 26px;
    height: 26px;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
    opacity: 0.55;
    background: radial-gradient(circle, var(--orb-color-1) 0%, var(--orb-color-2) 60%, transparent 70%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 2px 10px var(--orb-color-1));
}

/* cacher le curseur custom quand le menu mobile est ouvert */
body.menu-open .custom-cursor,
body.menu-open .custom-cursor-follower { display: none !important; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .chapter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .story-chapter {
        padding: 4rem 0;
    }
    
    .chapter-content {
        padding: 0 1rem;
    }
    
    .chapter-title {
        font-size: 2rem;
    }
    
    .epilogue-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .values-grid,
    .formations-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-section {
        gap: 2rem;
    }
    
    .partner-logo-container {
        width: 100px;
        height: 100px;
    }
}

/* Formations responsive paliers */
@media (max-width: 1200px) and (min-width: 769px) {
    .formations-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}

@media (max-width: 480px) {
    .story-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .chapter-number {
        font-size: 3rem;
        top: 1rem;
        left: 1rem;
    }
}

/* === PREFERENCES DE MOUVEMENT === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}