
   /* PAGE NOTRE HISTOIRE — histoire.css */

/* ── Hero ── */
.hist-hero {
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--navbar-height) + 5rem) 4rem 5rem;
    background:
        linear-gradient(rgba(20, 28, 40, 0.68), rgba(20, 28, 40, 0.78)),
        url('/img-article/DSC03955.jpg') center / cover no-repeat;
}

.hist-hero-inner { max-width: 1000px; }

.hist-hero-eyebrow {
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

.hist-hero-title {
    font-family: "Oswald", sans-serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 600;
    color: var(--bg-primary);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
}

.hist-hero-line {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hist-hero-rule {
    width: 60px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.hist-hero-date {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(252, 250, 247, 0.4);
}

/* ── Sections ── */
.hist-section {
    padding: 8rem 4rem;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hist-section.active {
    opacity: 1;
    transform: translateY(0);
}

.hist-section--dark {
    background: var(--text-primary);
}

.hist-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}

.hist-section--reverse .hist-section-inner .hist-section-img { order: -1; }

.hist-section-inner--full {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 6rem;
}

/* Numéro décoratif */
.hist-num {
    font-family: "Oswald", sans-serif;
    font-size: clamp(5rem, 10vw, 8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(30, 42, 56, 0.06);
    display: block;
    margin-bottom: 0.5rem;
}

.hist-num--light {
    color: rgba(252, 250, 247, 0.08);
}

.hist-heading {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
}

.hist-heading--light { color: var(--bg-primary); }

.hist-body {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.hist-body--light { color: rgba(247, 243, 236, 0.65); }
.hist-body p + p  { margin-top: 1.2rem; }

/* Bloc highlight personnalisation */
.hist-highlight-box {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-left: 1.5px solid var(--accent);
    background: var(--bg-secondary);
}

.hist-highlight-box p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* Image section */
.hist-section-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-secondary);
}

.hist-section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hist-section:hover .hist-section-img img {
    transform: scale(1.04);
}

/* ── Partenaires ── */
.hist-section-head {
    padding-top: 1rem;
}

.hist-partners {
    padding-top: 2rem;
}

.hist-partners-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hist-partner-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(252, 250, 247, 0.08);
    gap: 2rem;
}

.hist-partner-row:first-child {
    border-top: 1px solid rgba(252, 250, 247, 0.08);
}

.hist-partner-name {
    font-family: "Oswald", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bg-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hist-partner-role {
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    color: rgba(247, 243, 236, 0.45);
    font-style: italic;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    text-align: right;
}

/* ── Parade cocottes — rideau superposé ── */

/*
 * --coco-w = largeur de chaque cocotte.
 * Chevauchement 50% via margin-left négatif sur flex items.
 * Groupe total = 2.5 × --coco-w, centré dans le viewport.
 */
.parade-section {
    --coco-w: 40vw;

    position: relative;
    height: 88vh;
    overflow: hidden;
    background: var(--bg-secondary);
}

/* Label centré, juste en dessous du haut de section */
.parade-label {
    position: absolute;
    top: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Track centré horizontalement, collé au bas de la section */
.parade-track {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
}

/* Chaque cocotte : largeur fixe, z-index + délai croissant */
.parade-cocotte {
    flex-shrink: 0;
    width: var(--coco-w);
    position: relative;
    text-align: center;
    transform: translateX(-120vw);
    transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chevauchement 50% dès le 2e élément */
.parade-cocotte + .parade-cocotte {
    margin-left: calc(var(--coco-w) * -0.5);
}

.parade-cocotte:nth-child(1) { z-index: 1; transition-delay: 0s;    }
.parade-cocotte:nth-child(2) { z-index: 2; transition-delay: 0.16s; }
.parade-cocotte:nth-child(3) { z-index: 3; transition-delay: 0.32s; }
.parade-cocotte:nth-child(4) { z-index: 4; transition-delay: 0.48s; }

.parade-section.is-playing .parade-cocotte {
    transform: translateX(0);
}

.parade-cocotte img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(-12px 28px 36px rgba(0, 0, 0, 0.22));
    user-select: none;
    pointer-events: none;
}

.parade-cocotte-name {
    font-family: "Oswald", sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-top: 0.6rem;
    padding-bottom: 1.25rem;
    opacity: 0.8;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hist-section { padding: 5rem 2.5rem; }
    .hist-section-inner,
    .hist-section-inner--full { gap: 4rem; }
}

@media (max-width: 768px) {
    .hist-hero { padding: calc(var(--navbar-height) + 3rem) 1.75rem 3.5rem; }

    .hist-section { padding: 4rem 1.5rem; }

    .hist-section-inner,
    .hist-section-inner--full {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hist-section--reverse .hist-section-inner .hist-section-img { order: 0; }

    .hist-section-img { aspect-ratio: 4 / 3; }

    .parade-section {
        height: 70vh;
        --coco-w: 52vw;
    }
}

@media (max-width: 500px) {
    .hist-hero-title { font-size: 2.8rem; }
    .hist-section { padding: 3rem 1.25rem; }
    .hist-partner-row { flex-direction: column; gap: 0.2rem; }
    .hist-partner-role { text-align: left; }
    .parade-section {
        height: 60vh;
        --coco-w: 64vw;
    }
    .parade-label { font-size: 0.6rem; }
}
