/* about.css - Styles spécifiques à la page à propos */

/* En-tête de la page à propos */
.about-header {
    min-height: 50vh;
    padding: 7rem 0 3rem;
    background-color: var(--color-dark);
    background-image: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    overflow: hidden;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-header h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px;
    animation: expandFromCenter 1s ease-out 0.8s both;
}

.about-header .intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.about-header h2 .accent {
    background: var(--color-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: var(--accent-text-glow);
    position: relative;
    display: inline-block;
}

/* Section philosophie */
.philosophy {
    padding: 4rem 0;
    background-color: var(--color-dark);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.2;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-image {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Container portrait 2:3 — aligné sur kevin.jpg (2560×3840) */
.philosophy-image .intro-image {
    --portrait-image-width: 400px;
    position: relative;
    width: var(--portrait-image-width);
    max-width: 100%;
    height: calc(var(--portrait-image-width) * 3 / 2);
    aspect-ratio: 2 / 3;
    margin: 0;
    z-index: 2;
    overflow: visible;
}

.philosophy-image .portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    border: 3px solid;
    border-image: var(--color-accent) 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cadre de fond incliné identique à la homepage */
.philosophy-image .intro-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -12px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(218, 165, 32, 0.25));
    border: 2px solid rgba(218, 165, 32, 0.6);
    transform: rotate(-3deg);
    z-index: -1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 20px rgba(218, 165, 32, 0.2);
}

/* Animation au survol spécifique page à propos */
.philosophy-image .intro-image:hover .portrait-image {
    transform: scale(1.04);
    border-image: linear-gradient(45deg, #FFD700, #FFB81C, #FFA500) 1;
}

.philosophy-image .intro-image:hover::before {
    transform: rotate(0deg) scale(1.05);
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(218, 165, 32, 0.4));
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.philosophy-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-gold);
    position: relative;
}

.philosophy-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 3px;
}

.philosophy-text p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
}

/* Section CTA */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-secondary) 100%);
    text-align: center;
    position: relative;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.2;
}

.cta-section::before {
    top: 0;
}

.cta-section::after {
    bottom: 0;
}

.cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    filter: none;
}

.cta-section h2 .accent {
    background: var(--color-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: var(--accent-text-glow);
    position: relative;
    display: inline-block;
}

/* Blocs Gutenberg sans <span class="accent"> */
.cta-section h2:not(:has(.accent)) {
    background: var(--color-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.cta-section h2:not(:has(.accent)).animate-on-load.loaded,
.cta-section h2:not(:has(.accent)).animate-fast.loaded {
    filter: var(--accent-text-glow);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Garder le meme hover que les boutons de la page d'accueil */
.cta-section .btn.animate-fast.loaded {
    transition: var(--transition);
}

.cta-section .btn.animate-fast.loaded:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-header h2 {
        font-size: 3rem;
    }
    
    .philosophy-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .about-header {
        min-height: 50vh;
        padding: 7rem 0 4rem;
    }
    
    .about-header h2 {
        font-size: 2.5rem;
    }
    
    .about-header .intro-text {
        font-size: 1.1rem;
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .philosophy-image {
        order: -1;
    }
    
    .philosophy-text h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .philosophy-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-header {
        padding: 6rem 0 3rem;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .about-header .intro-text {
        font-size: 1rem;
    }
    
    .philosophy {
        padding: 4rem 0;
    }
    
    .philosophy-text h3 {
        font-size: 1.8rem;
    }
    
    .cta-section h3 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}

/* Responsive pour les images avec style homepage */
@media screen and (max-width: 992px) {
    .philosophy-image .intro-image {
        --portrait-image-width: 350px;
    }
    
    .philosophy-image .intro-image::before {
        top: -12px;
        left: -10px;
    }
}

@media screen and (max-width: 768px) {
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .philosophy-image .intro-image {
        --portrait-image-width: 320px;
    }
}

@media screen and (max-width: 576px) {
    .philosophy-image .intro-image {
        --portrait-image-width: 280px;
    }
    
    .philosophy-image .intro-image::before {
        top: -10px;
        left: -8px;
    }
    
    /* Réduction des animations sur mobile */
    .philosophy-image .intro-image:hover .portrait-image {
        transform: scale(1.01);
    }
    
    .philosophy-image .intro-image:hover::before {
        transform: rotate(-1deg) scale(1.02);
    }
}