/* Styles spécifiques pour la page biographie */

/* Héro Biographie avec 50% image, 50% texte */
.biographie-hero {
    margin-top: 70px;
    height: 80vh;
    background-color: var(--color-cream);
}

.biographie-hero-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.biographie-hero-image {
    flex: 1;
    overflow: hidden;
}

.biographie-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.biographie-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--color-earth);
    color: var(--color-white);
    text-align: center;
}

.biographie-hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.biographie-hero-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-gold);
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

.hero-scroll {
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.hero-scroll i {
    font-size: 1.8rem;
    color: var(--color-gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Section Introduction */
.biographie-intro {
    background-color: var(--color-cream);
    padding: 4rem 0;
}

.biographie-intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-earth);
    margin-bottom: 1.5rem;
    text-align: center;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Statistiques sur la page (sans cartes) */
.intro-stats-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.stat-item-page {
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--color-light-earth);
}

.stat-number-page {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-earth);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-label-page {
    display: block;
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Chronologie */
.biographie-timeline {
    background-color: var(--color-ivory);
    padding: 4rem 0;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-light-earth);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-year {
    position: absolute;
    left: -30px;
    top: 0;
    background-color: var(--color-earth);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
}

.timeline-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--color-gold);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-earth);
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.timeline-image {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.timeline-image img:hover {
    transform: scale(1.03);
}

/* Section Valeurs sur la page (sans cartes) */
.biographie-valeurs {
    background-color: var(--color-cream);
    padding: 4rem 0;
}

.valeurs-page {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.valeur-item-page {
    padding: 2rem;
    border-left: 4px solid var(--color-gold);
    background-color: var(--color-white);
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.valeur-item-page h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-earth);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.valeur-item-page h3 i {
    color: var(--color-gold);
    font-size: 1.8rem;
}

.valeur-item-page p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    padding-left: 3rem;
}

/* Section Photos importantes - Images portrait avec texte sur la page */
.biographie-photos {
    background-color: var(--color-ivory);
    padding: 4rem 0;
}

.photos-page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-item-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.photo-image-portrait {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.photo-image-portrait img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-info-page {
    text-align: center;
    max-width: 600px;
}

.photo-info-page h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-earth);
    margin-bottom: 0.5rem;
}

.photo-info-page p {
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Section Témoignages sur la page (sans cartes) */
.biographie-temoignages {
    background-color: var(--color-cream);
    padding: 4rem 0;
}

.temoignages-page {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.temoignage-item-page {
    padding: 2.5rem;
    border-bottom: 1px solid var(--color-light-earth);
}

.temoignage-item-page:last-child {
    border-bottom: none;
}

.temoignage-content-page {
    position: relative;
    margin-bottom: 1.5rem;
}

.temoignage-content-page i {
    color: var(--color-gold);
    font-size: 1.8rem;
    margin-right: 0.8rem;
    opacity: 0.7;
}

.temoignage-content-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    padding-left: 3rem;
}

.temoignage-author-page {
    text-align: right;
    padding-right: 2rem;
}

.temoignage-author-page h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-earth);
    margin-bottom: 0.25rem;
}

.temoignage-author-page span {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Section Héritage */
.biographie-heritage {
    background-color: var(--color-ivory);
    padding: 4rem 0;
}

.heritage-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.heritage-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-earth);
    margin-bottom: 1.5rem;
}

.heritage-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.heritage-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.heritage-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-caption {
    padding: 1.5rem;
    background-color: var(--color-white);
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* =========================================== */
/* RESPONSIVE DESIGN - TABLET (768px et plus) */
/* =========================================== */
@media (min-width: 768px) {
    .biographie-hero-container {
        flex-direction: row;
    }
    
    .biographie-hero-image,
    .biographie-hero-text {
        flex: 1;
        height: 100%;
    }
    
    .biographie-hero-title {
        font-size: 3rem;
    }
    
    .biographie-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .intro-stats-page {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-number-page {
        font-size: 3rem;
    }
    
    .timeline-container {
        padding-left: 0;
    }
    
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        width: 50%;
        padding-left: 0;
        margin-bottom: 4rem;
    }
    
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        margin-right: auto;
        padding-right: 4rem;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: auto;
        margin-right: 0;
        padding-left: 4rem;
        text-align: left;
    }
    
    .timeline-year {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item:nth-child(odd) .timeline-year {
        right: -80px;
        left: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-year {
        left: -80px;
    }
    
    .valeurs-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .photo-item-page {
        flex-direction: row;
        align-items: center;
    }
    
    .photo-item-page:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .photo-info-page {
        flex: 1;
        text-align: left;
    }
    
    .photo-item-page:nth-child(even) .photo-info-page {
        text-align: right;
    }
    
    .heritage-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - DESKTOP (1024px et plus) */
/* ============================================ */
@media (min-width: 1024px) {
    .biographie-hero {
        height: 85vh;
    }
    
    .biographie-hero-title {
        font-size: 3.5rem;
    }
    
    .biographie-hero-subtitle {
        font-size: 1.8rem;
    }
    
    .intro-text h2 {
        font-size: 3rem;
    }
    
    .intro-text p {
        font-size: 1.2rem;
    }
    
    .valeurs-page {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .valeur-item-page {
        padding: 2.5rem;
    }
    
    .photo-image-portrait {
        max-width: 500px;
    }
    
    .photo-image-portrait img {
        height: 600px;
    }
}

/* ===================================== */
/* RESPONSIVE DESIGN - TRÈS PETIT ÉCRAN */
/* ===================================== */
@media (max-width: 480px) {
    .biographie-hero {
        height: 70vh;
    }
    
    .biographie-hero-title {
        font-size: 2rem;
    }
    
    .biographie-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number-page {
        font-size: 2rem;
    }
    
    .stat-label-page {
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-image img {
        height: 200px;
    }
    
    .photo-image-portrait img {
        height: 400px;
    }
    
    .heritage-image img {
        height: 300px;
    }
    
    .temoignage-content-page p {
        padding-left: 2rem;
        font-size: 1rem;
    }
}

/* Animation pour la chronologie */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(odd).animate-in {
    animation: fadeInLeft 0.8s ease forwards;
}

.timeline-item:nth-child(even).animate-in {
    animation: fadeInRight 0.8s ease forwards;
}