/* Styles pour les pages intérieures (Héritage, Philosophie, etc.) */

/* Hero section */
.page-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    color: var(--white);
}

.hero-content {
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Sections communes */
.heritage-section,
.philosophy-section {
    padding: 5rem 0;
}

.heritage-section:nth-child(odd),
.philosophy-section:nth-of-type(odd) {
    background-color: var(--white);
}

.heritage-section:nth-child(even),
.philosophy-section:nth-of-type(even) {
    background-color: var(--cream);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--brown);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    color: var(--beige);
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--beige);
}

/* Contenu avec image et texte */
.heritage-content,
.philosophy-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.heritage-content.reverse,
.philosophy-content.reverse {
    flex-direction: row-reverse;
}

.heritage-text,
.philosophy-text {
    flex: 1;
    min-width: 300px;
}

.heritage-text p,
.philosophy-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.philosophy-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.heritage-image,
.philosophy-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    max-width: 450px;
}

.heritage-img,
.philosophy-img {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    object-position: center;
}

.heritage-year,
.philosophy-badge {
    position: absolute;
    bottom: -20px;
    right: 30px;
    background-color: var(--beige);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.philosophy-divider {
    width: 100px;
    height: 2px;
    background-color: var(--beige);
    margin: 3rem auto;
    opacity: 0.5;
}

/* Navigation des sections (pour la page Philosophie) */
.philosophy-nav {
    background-color: var(--cream);
    padding: 1rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.philosophy-nav .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.philosophy-nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.philosophy-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--beige);
    transition: var(--transition);
}

.philosophy-nav-link:hover::after,
.philosophy-nav-link.active::after {
    width: 70%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .heritage-content,
    .heritage-content.reverse,
    .philosophy-content,
    .philosophy-content.reverse {
        flex-direction: column;
    }
    
    .heritage-image,
    .philosophy-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .heritage-text,
    .philosophy-text {
        order: 2;
    }
}
