/* =====================================================
   PAGE HISTOIRE - STYLES
   ===================================================== */

/* Hero Histoire */
.histoire-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/CPI.png') center center / cover no-repeat;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.histoire-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.9) 0%, rgba(20, 33, 61, 0.85) 100%);
}

.histoire-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.histoire-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 15px;
}

.histoire-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Section Histoire */
.histoire-section {
    background: var(--gray-light);
}

/* Introduction */
.histoire-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 80px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-image {
    position: relative;
    overflow: hidden;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
    transition: transform 0.5s ease;
}

.histoire-intro:hover .intro-image img {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    color: var(--white);
    padding: 25px 20px;
    font-size: 0.95rem;
    text-align: center;
    z-index: 2;
    font-style: italic;
}

.image-caption::before {
    content: '"';
    font-size: 1.5rem;
    margin-right: 5px;
    opacity: 0.7;
}

.image-caption::after {
    content: '"';
    font-size: 1.5rem;
    margin-left: 5px;
    opacity: 0.7;
}

.intro-text {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
}

.intro-text h2 {
    font-size: 2.2rem;
    color: var(--dark-navy);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 20px;
}

.intro-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.intro-text p {
    margin-bottom: 18px;
    color: var(--gray-dark);
    line-height: 1.9;
    font-size: 1.05rem;
}

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

.intro-text strong {
    color: var(--dark-navy);
}

/* Timeline */
.timeline-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-navy);
    margin-bottom: 50px;
}

.timeline-title i {
    color: var(--primary-red);
    margin-right: 15px;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 60px;
    margin-left: 0;
}

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

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    z-index: 1;
    white-space: nowrap;
}

.timeline-item.highlight .timeline-date {
    background: var(--dark-navy);
}

.timeline-content {
    flex: 1;
    max-width: calc(50% - 60px);
    background: var(--white);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Chefs de Centre */
.chefs-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--gray);
}

.chefs-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin-bottom: 40px;
}

.chefs-section h2 i {
    color: var(--primary-red);
    margin-right: 15px;
}

.chefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.chef-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--gray);
}

.chef-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.chef-card.current {
    border-top-color: var(--primary-red);
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.chef-period {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 10px;
}

.chef-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 5px;
}

.chef-grade {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Particularités */
.particularites-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--gray);
}

.particularites-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin-bottom: 40px;
}

.particularites-section h2 i {
    color: var(--primary-red);
    margin-right: 15px;
}

.particularite-card {
    display: flex;
    gap: 30px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.particularite-card:hover {
    box-shadow: var(--shadow-md);
}

.particularite-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.particularite-icon i {
    font-size: 2rem;
    color: var(--white);
}

.particularite-content h3 {
    font-size: 1.3rem;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.particularite-content p {
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 10px;
}

.particularite-content em {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Retour */
.back-home {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
        padding-left: 70px;
    }

    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        max-width: 100%;
        margin: 30px 0 0 0;
    }

    .chefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .histoire-intro {
        grid-template-columns: 1fr;
    }

    .intro-image img {
        min-height: 250px;
    }

    .intro-text {
        padding: 30px;
    }

    .particularite-card {
        flex-direction: column;
        text-align: center;
    }

    .particularite-icon {
        margin: 0 auto;
    }

    .chefs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .histoire-hero {
        min-height: 40vh;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        padding-left: 50px;
    }

    .timeline-date {
        left: 20px;
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}
