/* ════════════════════════════════════════════════════════════════════
   assets/css/region-anosy/histoire-culture.css
   Page    : region-anosy/histoire-culture.php
   Version : 3.0.0 — Ajusté pour PHP v3.0 (Antanosy + Bara + Antandroy)
   Design  : hérite de main.css (:root variables)

   CONTENU :
   §1  · Bannière + Pills peuples
   §2  · Section Intro + Encart Flacourt
   §3  · Section Trois Peuples (cartes alternées image/texte)
   §4  · Timeline historique (axe central, cartes alternées)
   §5  · Culture partagée (grille 6 cartes + badge peuple)
   §6  · Section Patrimoine (3 cartes visuelles)
   §7  · Section Mémoriale (fond photo + sites)
   §8  · Navigation sous-rubriques
   §9  · Composants partagés (breadcrumb)
   §10 · Animations & Scroll Reveal
   §11 · Responsive
   ════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
   §1 · BANNIÈRE
══════════════════════════════════════════════════════════════ */

.hc-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.hc-banner__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hc-banner__overlay--dark {
    z-index: 1;
    background: rgba(30, 20, 5, 0.62);
}
.hc-banner__overlay--grad {
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(92, 60, 10, 0.72) 0%,
        rgba(6,  47, 74, 0.30) 60%,
        transparent 100%
    );
}

.hc-banner__grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.30;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
}

.hc-banner__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.phc-particle {
    fill: rgba(255, 220, 140, 0.20);
    animation: hcParticle 8s ease-in-out infinite;
}
.phc-particle--1 { animation-duration: 7s;  animation-delay: 0s;   }
.phc-particle--2 { animation-duration: 10s; animation-delay: 1.5s; }
.phc-particle--3 { animation-duration: 6s;  animation-delay: 0.8s; }
.phc-particle--4 { animation-duration: 9s;  animation-delay: 2.2s; }
.phc-particle--5 { animation-duration: 11s; animation-delay: 0.3s; }
.phc-particle--6 { animation-duration: 8s;  animation-delay: 3.1s; }

.hc-banner__inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 3.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hc-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hc-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-300, #fcd34d);
}

.hc-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.50);
}
.hc-banner__title-accent {
    color: var(--amber-300, #fcd34d);
}

.hc-banner__subtitle {
    font-size: clamp(0.88rem, 1.6vw, 1.05rem);
    color: rgba(255, 255, 255, 0.80);
    max-width: 620px;
    line-height: 1.65;
    margin: 0;
}

/* Pills peuples — nouveauté v3.0 */
.hc-banner__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
}
.hc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.9rem;
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    user-select: none;
}
.hc-pill--amber {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(252, 211, 77, 0.50);
    color: #fef3c7;
}
.hc-pill--nature {
    background: rgba(34, 136, 63, 0.28);
    border-color: rgba(110, 231, 183, 0.40);
    color: #d1fae5;
}
.hc-pill--sea {
    background: rgba(0, 119, 182, 0.30);
    border-color: rgba(125, 211, 252, 0.40);
    color: #e0f2fe;
}

.hc-banner__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11;
    line-height: 0;
}
.hc-banner__wave svg {
    display: block;
    width: 100%;
    height: 56px;
}


/* ══════════════════════════════════════════════════════════════
   §1b · FIL D'ARIANE
══════════════════════════════════════════════════════════════ */

.hc-breadcrumb { display: flex; align-items: center; }

.hc-breadcrumb__list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-full);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}
.hc-breadcrumb__item {
    display: flex;
    align-items: center;
}
.hc-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}
.hc-breadcrumb__link i { font-size: 0.65rem; }
.hc-breadcrumb__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}
.hc-breadcrumb__link:focus-visible {
    outline: 2px solid var(--amber-300);
    outline-offset: 2px;
}
.hc-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.50rem;
    pointer-events: none;
    user-select: none;
    padding: 0 0.1rem;
}
.hc-breadcrumb__item--current {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--amber-300, #fcd34d);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--r-sm);
    background: rgba(255, 200, 50, 0.12);
    white-space: nowrap;
}
.hc-breadcrumb__item--current i { font-size: 0.65rem; }


/* ══════════════════════════════════════════════════════════════
   §2 · INTRO + ENCART FLACOURT
══════════════════════════════════════════════════════════════ */

.hc-section--intro { padding: var(--s20) 0; }

.hc-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
}

.hc-intro__lead {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: var(--s5);
    font-weight: 500;
}
.hc-intro__body {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.85;
    margin-bottom: var(--s8);
}
.hc-intro__body em { color: var(--amber-600); font-style: italic; }

/* Stats rapides */
.hc-intro__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s3);
}
.hc-intro-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--s4);
    background: var(--amber-100, #fef3c7);
    border: 1px solid #fde68a;
    border-top: 3px solid var(--amber-500, #f59e0b);
    border-radius: var(--r-lg);
    text-align: center;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hc-intro-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.hc-intro-stat__value {
    font-family: var(--font-condensed);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--amber-700, #b45309);
    line-height: 1;
}
.hc-intro-stat__label {
    font-size: 0.66rem;
    color: var(--amber-800, #92400e);
    line-height: 1.35;
    font-weight: 500;
}

/* Encart Flacourt */
.hc-flacourt-card {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
}
.hc-flacourt-card__img-wrap {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.hc-flacourt-card__img-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
}
.hc-flacourt-card__img-wrap .img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hc-flacourt-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(92, 60, 10, 0.70) 0%,
        transparent 55%
    );
}
.hc-flacourt-card__year {
    position: absolute;
    bottom: var(--s4);
    right: var(--s4);
    font-family: var(--font-condensed);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 220, 100, 0.18);
    line-height: 1;
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
}
.hc-flacourt-card__quote {
    display: flex;
    align-items: flex-start;
    gap: var(--s4);
    padding: var(--s5);
    background: var(--amber-100, #fef3c7);
    border-left: 4px solid var(--amber-500, #f59e0b);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.hc-flacourt-card__quote-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    background: var(--amber-500, #f59e0b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.hc-flacourt-card__quote blockquote { margin: 0; }
.hc-flacourt-card__quote blockquote p {
    font-size: 0.82rem;
    color: var(--amber-900, #78350f);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--s2);
}
.hc-flacourt-card__quote blockquote em  { font-style: normal; font-weight: 600; }
.hc-flacourt-card__quote blockquote cite {
    font-size: 0.68rem;
    color: var(--amber-700, #b45309);
    font-style: normal;
    font-weight: 600;
}


/* ══════════════════════════════════════════════════════════════
   §3 · LES TROIS PEUPLES — CARTES ALTERNÉES IMAGE / TEXTE
══════════════════════════════════════════════════════════════ */

.hc-section--peoples { padding: var(--s20) 0 var(--s24); }

/* Carte peuple : grille 2 colonnes alternée */
.hc-people {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 4.5rem;
    align-items: start;
    margin-bottom: var(--s16);
    padding-bottom: var(--s16);
    border-bottom: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.60s ease,
        transform 0.60s cubic-bezier(0.4, 0, 0.2, 1);
}
.hc-people:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.hc-people--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Inversion image ↔ texte pour les indices impairs */
.hc-people--left { direction: ltr; }
.hc-people--right {
    direction: rtl;
    grid-template-columns: 1.35fr 1fr;
}
.hc-people--right > * { direction: ltr; }

/* ─── Colonne image ─── */
.hc-people__img-col { position: relative; }

.hc-people__img-wrap {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
    transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.hc-people__img-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}
.hc-people__img-wrap .img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.60s ease;
}
.hc-people__img-wrap:hover .img-responsive {
    transform: scale(1.04);
}

/* Badge nom du peuple sur l'image */
.hc-people__img-badge {
    position: absolute;
    bottom: var(--s4);
    left: var(--s4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.40rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.hc-people--amber .hc-people__img-badge {
    background: rgba(180, 83, 9, 0.82);
}
.hc-people--nature .hc-people__img-badge {
    background: rgba(20, 92, 47, 0.85);
}
.hc-people--sea .hc-people__img-badge {
    background: rgba(3, 90, 140, 0.85);
}
.hc-people__emoji { font-size: 1rem; line-height: 1; }

/* ─── Colonne corps ─── */
.hc-people__body-col {
    display: flex;
    flex-direction: column;
    gap: var(--s5);
    padding-top: var(--s2);
}

.hc-people__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.hc-people__subtitle {
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hc-people--amber .hc-people__subtitle  { color: var(--amber-600); }
.hc-people--nature .hc-people__subtitle { color: var(--nature-700); }
.hc-people--sea    .hc-people__subtitle { color: var(--sea-600); }

.hc-people__zone {
    font-size: 0.76rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hc-people__zone i { font-size: 0.65rem; }
.hc-people--amber  .hc-people__zone i { color: var(--amber-400); }
.hc-people--nature .hc-people__zone i { color: var(--nature-500); }
.hc-people--sea    .hc-people__zone i { color: var(--sea-400); }

.hc-people__name {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}
.hc-people--amber  .hc-people__name { color: var(--amber-700); }
.hc-people--nature .hc-people__name { color: var(--nature-800); }
.hc-people--sea    .hc-people__name { color: var(--sea-700); }

.hc-people__intro {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.80;
}
.hc-people__intro em     { color: var(--gray-800); font-style: italic; }
.hc-people__intro strong { color: var(--gray-900); font-weight: 700; }

/* Blocs social + culture */
.hc-people__block {
    padding: var(--s5);
    border-radius: var(--r-lg);
    border-left: 4px solid transparent;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}
.hc-people--amber  .hc-people__block--social  {
    border-left: 4px solid var(--amber-400);
    background: var(--amber-100, #fef3c7);
    border-color: transparent;
    border-left-color: var(--amber-400);
}
.hc-people--nature .hc-people__block--social  {
    border-left: 4px solid var(--nature-500);
    background: var(--nature-50);
    border-color: transparent;
    border-left-color: var(--nature-500);
}
.hc-people--sea    .hc-people__block--social  {
    border-left: 4px solid var(--sea-400);
    background: var(--sea-50);
    border-color: transparent;
    border-left-color: var(--sea-400);
}
.hc-people__block--culture {
    background: var(--gray-50);
    border-color: var(--gray-150, #ebebeb);
}

.hc-people__block-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--s3);
}
.hc-people--amber  .hc-people__block-title { color: var(--amber-700); }
.hc-people--amber  .hc-people__block-title i { color: var(--amber-500); }
.hc-people--nature .hc-people__block-title { color: var(--nature-700); }
.hc-people--nature .hc-people__block-title i { color: var(--nature-600); }
.hc-people--sea    .hc-people__block-title { color: var(--sea-600); }
.hc-people--sea    .hc-people__block-title i { color: var(--sea-500); }
.hc-people__block--culture .hc-people__block-title { color: var(--gray-600); }
.hc-people__block--culture .hc-people__block-title i { color: var(--gray-400); }

.hc-people__block p {
    font-size: 0.83rem;
    color: var(--gray-600);
    line-height: 1.78;
    margin: 0;
}
.hc-people__block p strong { color: var(--gray-800); font-weight: 700; }
.hc-people__block p em     { font-style: italic; }
.hc-people--amber  .hc-people__block--social p em  { color: var(--amber-800); }
.hc-people--nature .hc-people__block--social p em  { color: var(--nature-800); }
.hc-people--sea    .hc-people__block--social p em  { color: var(--sea-700); }

/* Tags */
.hc-people__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.hc-people__tag {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 0.22rem 0.70rem;
    border-radius: var(--r-full);
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: default;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hc-people__tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs, 0 1px 4px rgba(0,0,0,.08));
}
.hc-people__tag--amber {
    background: var(--amber-100, #fef3c7);
    border-color: #fde68a;
    color: var(--amber-800, #92400e);
}
.hc-people__tag--nature {
    background: var(--nature-50);
    border-color: var(--nature-200);
    color: var(--nature-800);
}
.hc-people__tag--sea {
    background: var(--sea-50);
    border-color: var(--sea-200);
    color: var(--sea-700);
}


/* ══════════════════════════════════════════════════════════════
   §4 · TIMELINE HISTORIQUE — AXE CENTRAL
══════════════════════════════════════════════════════════════ */

.hc-section--timeline { padding: var(--s20) 0 var(--s24); }

.hc-timeline {
    position: relative;
    max-width: 1100px;
    margin: var(--s14, 3.5rem) auto 0;
}
.hc-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(
        to bottom,
        var(--amber-300)  0%,
        var(--sea-400)   50%,
        var(--nature-400) 100%
    );
    border-radius: 2px;
}

/* Événement */
.hc-tl-event {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    gap: 0 var(--s4);
    margin-bottom: var(--s10);
    align-items: start;
    opacity: 0;
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.hc-tl-event--left  { transform: translateX(-30px); }
.hc-tl-event--right { transform: translateX(30px);  }
.hc-tl-event--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Nœud central */
.hc-tl-event__node {
    grid-column: 2;
    display: flex;
    justify-content: center;
    padding-top: var(--s2);
    position: relative;
    z-index: 2;
}
.hc-tl-event__dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    border: 4px solid #fff;
    background: var(--amber-500);
    box-shadow: 0 0 0 3px var(--amber-300), 0 4px 16px rgba(0,0,0,0.14);
    transition: transform var(--t-base), box-shadow var(--t-base);
    flex-shrink: 0;
}
.hc-tl-event:hover .hc-tl-event__dot {
    transform: scale(1.12);
    box-shadow: 0 0 0 4px var(--amber-300), 0 6px 24px rgba(0,0,0,0.18);
}

/* Couleurs nœuds */
.hc-tl-event--amber .hc-tl-event__dot {
    background: var(--amber-500);
    box-shadow: 0 0 0 3px var(--amber-200), 0 4px 16px rgba(0,0,0,0.12);
}
.hc-tl-event--sky .hc-tl-event__dot {
    background: var(--sky-500);
    box-shadow: 0 0 0 3px var(--sky-200), 0 4px 16px rgba(0,0,0,0.12);
}
.hc-tl-event--sea .hc-tl-event__dot {
    background: var(--sea-500);
    box-shadow: 0 0 0 3px var(--sea-200), 0 4px 16px rgba(0,0,0,0.12);
}
.hc-tl-event--nature .hc-tl-event__dot {
    background: var(--nature-600);
    box-shadow: 0 0 0 3px var(--nature-200), 0 4px 16px rgba(0,0,0,0.12);
}

/* Cartes côté gauche */
.hc-tl-event--left  .hc-tl-event__card { grid-column: 1; grid-row: 1; text-align: right; }
.hc-tl-event--left  .hc-tl-event__node { grid-column: 2; grid-row: 1; }
.hc-tl-event--left  .hc-tl-event__card ~ * { grid-column: 3; }

/* Cartes côté droit */
.hc-tl-event--right .hc-tl-event__node { grid-column: 2; grid-row: 1; }
.hc-tl-event--right .hc-tl-event__card { grid-column: 3; grid-row: 1; text-align: left; }

/* Carte */
.hc-tl-event__card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1.25rem;
    padding: var(--s6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t-base), transform var(--t-base),
                border-color var(--t-base);
}
.hc-tl-event__card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--amber-200);
}
.hc-tl-event--sky    .hc-tl-event__card:hover { border-color: var(--sky-200);    }
.hc-tl-event--sea    .hc-tl-event__card:hover { border-color: var(--sea-200);    }
.hc-tl-event--nature .hc-tl-event__card:hover { border-color: var(--nature-200); }

.hc-tl-event__card-header {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-wrap: wrap;
    margin-bottom: var(--s3);
}
.hc-tl-event--left .hc-tl-event__card-header { justify-content: flex-end; }

.hc-tl-event__era {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-600);
    background: var(--amber-100);
    border: 1px solid #fde68a;
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-full);
}
.hc-tl-event--sky    .hc-tl-event__era {
    color: var(--sky-600);    background: var(--sky-50);    border-color: var(--sky-200);
}
.hc-tl-event--sea    .hc-tl-event__era {
    color: var(--sea-600);    background: var(--sea-50);    border-color: var(--sea-200);
}
.hc-tl-event--nature .hc-tl-event__era {
    color: var(--nature-700); background: var(--nature-50); border-color: var(--nature-200);
}

.hc-tl-event__period {
    font-size: 0.72rem;
    color: var(--gray-400);
    font-weight: 500;
}

.hc-tl-event__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--s1);
    line-height: 1.3;
}

.hc-tl-event__lead {
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--amber-700);
    font-style: italic;
    margin-bottom: var(--s3);
}
.hc-tl-event--sky    .hc-tl-event__lead { color: var(--sky-600);    }
.hc-tl-event--sea    .hc-tl-event__lead { color: var(--sea-600);    }
.hc-tl-event--nature .hc-tl-event__lead { color: var(--nature-700); }

.hc-tl-event__body {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.80;
    margin-bottom: var(--s4);
}
.hc-tl-event__body strong { color: var(--gray-800); }
.hc-tl-event__body em     { color: var(--amber-700); font-style: italic; }

/* Liste de faits */
.hc-tl-event__facts {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    list-style: none;
    margin: 0;
    padding: var(--s4);
    background: var(--gray-50);
    border-radius: var(--r-md);
    border: 1px solid var(--gray-100);
}
.hc-tl-event--left .hc-tl-event__facts { align-items: flex-end; }

.hc-tl-event__facts li {
    display: flex;
    align-items: center;
    gap: var(--s2);
    font-size: 0.76rem;
    color: var(--gray-600);
    line-height: 1.4;
}
.hc-tl-event--left .hc-tl-event__facts li { flex-direction: row-reverse; }
.hc-tl-event__facts li i {
    color: var(--amber-500);
    font-size: 0.68rem;
    flex-shrink: 0;
}
.hc-tl-event--sky    .hc-tl-event__facts li i { color: var(--sky-500);    }
.hc-tl-event--sea    .hc-tl-event__facts li i { color: var(--sea-500);    }
.hc-tl-event--nature .hc-tl-event__facts li i { color: var(--nature-600); }

/* Fin timeline */
.hc-tl-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
    position: relative;
    z-index: 2;
}
.hc-tl-end__dot {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sea-500), var(--nature-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--sea-200), 0 4px 16px rgba(0,0,0,0.14);
    animation: hcPulse 2.5s ease-in-out infinite;
}
.hc-tl-end__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--gray-400);
}


/* ══════════════════════════════════════════════════════════════
   §5 · CULTURE PARTAGÉE — GRILLE 6 CARTES + BADGE PEUPLE
══════════════════════════════════════════════════════════════ */

.hc-section--culture { padding: var(--s20) 0; }

/* Grille 3 colonnes × 2 rangées */
.hc-culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: var(--s10);
}

.hc-culture-card {
    padding: var(--s5) var(--s5) var(--s6);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.45s ease,
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-color var(--t-fast),
        box-shadow var(--t-fast);
    box-shadow: var(--shadow-xs, 0 1px 4px rgba(0,0,0,.06));
}
.hc-culture-card--visible {
    opacity: 1;
    transform: translateY(0);
}
.hc-culture-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.hc-culture-card--amber:hover  { border-color: var(--amber-300); }
.hc-culture-card--nature:hover { border-color: var(--nature-200); }
.hc-culture-card--sky:hover    { border-color: var(--sky-200); }
.hc-culture-card--sea:hover    { border-color: var(--sea-200); }

/* Icône */
.hc-culture-card__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform var(--t-base);
}
.hc-culture-card:hover .hc-culture-card__icon {
    transform: scale(1.10) rotate(-4deg);
}
.hc-culture-card--amber  .hc-culture-card__icon { background: var(--amber-100); color: #92400e;           }
.hc-culture-card--nature .hc-culture-card__icon { background: var(--nature-50); color: var(--nature-700); }
.hc-culture-card--sky    .hc-culture-card__icon { background: var(--sky-50);    color: var(--sky-600);    }
.hc-culture-card--sea    .hc-culture-card__icon { background: var(--sea-50);    color: var(--sea-600);    }

/* Badge peuple(s) — nouveauté v3.0 */
.hc-culture-card__people-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 0.18rem 0.60rem;
    border-radius: var(--r-full);
    background: var(--gray-100);
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    width: fit-content;
}
.hc-culture-card--amber  .hc-culture-card__people-badge {
    background: var(--amber-100);
    color: var(--amber-700);
    border-color: #fde68a;
}
.hc-culture-card--nature .hc-culture-card__people-badge {
    background: var(--nature-50);
    color: var(--nature-700);
    border-color: var(--nature-200);
}
.hc-culture-card--sky .hc-culture-card__people-badge {
    background: var(--sky-50);
    color: var(--sky-600);
    border-color: var(--sky-200);
}
.hc-culture-card--sea .hc-culture-card__people-badge {
    background: var(--sea-50);
    color: var(--sea-600);
    border-color: var(--sea-200);
}

.hc-culture-card__title {
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.hc-culture-card__body {
    font-size: 0.79rem;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
}
.hc-culture-card__body strong { color: var(--gray-800); }
.hc-culture-card__body em     { color: var(--amber-700); font-style: italic; }


/* ══════════════════════════════════════════════════════════════
   §6 · PATRIMOINE — 3 CARTES VISUELLES
══════════════════════════════════════════════════════════════ */

.hc-section--heritage { padding: var(--s20) 0; }

.hc-heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: var(--s10);
}

.hc-heritage-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.hc-heritage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hc-heritage-card__img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.hc-heritage-card__img-wrap .img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.hc-heritage-card:hover .hc-heritage-card__img-wrap .img-responsive {
    transform: scale(1.06);
}
.hc-heritage-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 60%);
}

/* Badge couleur peuple — mis à jour v3.0 */
.hc-heritage-card__badge {
    position: absolute;
    top: var(--s3);
    left: var(--s3);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.60rem;
    border-radius: var(--r-full);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.20);
    /* couleur par défaut : sea (Antanosy) */
    background: rgba(0, 119, 182, 0.90);
}
.hc-heritage-card__badge--nature {
    /* Bara */
    background: rgba(20, 92, 47, 0.90);
}
.hc-heritage-card__badge--sea {
    /* Antandroy */
    background: rgba(3, 90, 140, 0.90);
}
.hc-heritage-card__badge--amber {
    /* Antanosy alternatif */
    background: rgba(180, 83, 9, 0.90);
}

.hc-heritage-card__body {
    padding: var(--s5) var(--s6);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    flex: 1;
}
.hc-heritage-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}
.hc-heritage-card__text {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
}
.hc-heritage-card__text em     { color: var(--amber-700); font-style: italic; }
.hc-heritage-card__text strong { color: var(--gray-800); }


/* ══════════════════════════════════════════════════════════════
   §7 · SECTION MÉMORIALE (fond photo + sites)
══════════════════════════════════════════════════════════════ */

.hc-memorial {
    position: relative;
    overflow: hidden;
    padding: var(--s24) 0;
}
.hc-memorial__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hc-memorial__bg .img-responsive,
.hc-memorial__bg picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.hc-memorial__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(30, 20, 5,  0.93) 0%,
        rgba(92, 60, 10, 0.85) 50%,
        rgba(6,  47, 74, 0.92) 100%
    );
}
.hc-memorial > .container {
    position: relative;
    z-index: 2;
}

.hc-memorial__inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hc-memorial__icon {
    font-size: 2.5rem;
    color: var(--amber-300);
    margin-bottom: var(--s5);
    display: block;
    opacity: 0.80;
}
.hc-memorial__quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    font-style: italic;
    margin-bottom: var(--s3);
    letter-spacing: -0.01em;
}
.hc-memorial__author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: normal;
    margin-bottom: var(--s14, 3.5rem);
}

/* Grille 4 sites */
.hc-sites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: left;
}
.hc-site-card {
    padding: var(--s5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background var(--t-base), transform var(--t-base);
}
.hc-site-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-3px);
}
.hc-site-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-lg);
    background: rgba(0, 119, 182, 0.30);
    color: var(--sea-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.14);
}
.hc-site-card__icon--amber  { background: rgba(245,158,11,0.28); color: var(--amber-200); }
.hc-site-card__icon--nature { background: rgba(34,136,63,0.28);  color: var(--nature-200); }
.hc-site-card__icon--sky    { background: rgba(14,165,233,0.28); color: var(--sky-200); }

.hc-site-card__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}
.hc-site-card__text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
}
.hc-site-card__text strong { color: rgba(255,255,255,0.88); }
.hc-site-card__text sup    { font-size: 0.6rem; }


/* ══════════════════════════════════════════════════════════════
   §8 · NAVIGATION SOUS-RUBRIQUES
══════════════════════════════════════════════════════════════ */

.hc-section--nav { padding: var(--s16) 0; }

.hc-subnav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: var(--s8);
}
.hc-subnav-card {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s5);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-xl);
    text-decoration: none;
    transition:
        border-color var(--t-fast),
        box-shadow var(--t-fast),
        transform var(--t-fast),
        background var(--t-fast);
}
.hc-subnav-card:hover {
    border-color: var(--sea-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}
.hc-subnav-card--current {
    background: var(--amber-100);
    border-color: var(--amber-400);
    pointer-events: none;
}

.hc-subnav-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--sea-50);
    color: var(--sea-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform var(--t-fast);
}
.hc-subnav-card:hover .hc-subnav-card__icon { transform: scale(1.08); }
.hc-subnav-card__icon--amber  { background: var(--amber-100); color: #92400e;           }
.hc-subnav-card__icon--sky    { background: var(--sky-50);    color: var(--sky-600);    }
.hc-subnav-card__icon--nature { background: var(--nature-50); color: var(--nature-700); }
.hc-subnav-card__icon--sea    { background: var(--sea-50);    color: var(--sea-600);    }

.hc-subnav-card__body   { flex: 1; min-width: 0; }
.hc-subnav-card__title  {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hc-subnav-card__text {
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-top: 0.1rem;
}
.hc-subnav-card--current .hc-subnav-card__title { color: var(--amber-800); }
.hc-subnav-card--current .hc-subnav-card__text  { color: var(--amber-600); }

.hc-subnav-card__arrow {
    font-size: 0.75rem;
    color: var(--gray-300);
    flex-shrink: 0;
    transition: color var(--t-fast), transform var(--t-fast);
}
.hc-subnav-card:hover .hc-subnav-card__arrow {
    color: var(--sea-500);
    transform: translateX(3px);
}
.hc-subnav-card--current .hc-subnav-card__arrow { color: var(--amber-600); }


/* ══════════════════════════════════════════════════════════════
   §10 · ANIMATIONS
══════════════════════════════════════════════════════════════ */

@keyframes hcParticle {
    0%,  100% { transform: translateY(0)     scale(1);    opacity: 0.18; }
    50%        { transform: translateY(-12px) scale(1.12); opacity: 0.40; }
}

@keyframes hcPulse {
    0%,  100% { box-shadow: 0 0 0 3px var(--sea-200), 0 4px 16px rgba(0,0,0,0.14); }
    50%        { box-shadow: 0 0 0 7px var(--sea-100), 0 4px 20px rgba(0,0,0,0.20); }
}

/* Scroll Reveal */
.mc-reveal {
    will-change: transform, opacity;
    transition: opacity 0.55s ease,
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.mc-reveal--fade-up    { opacity: 0; transform: translateY(28px);  }
.mc-reveal--fade-down  { opacity: 0; transform: translateY(-28px); }
.mc-reveal--fade-left  { opacity: 0; transform: translateX(28px);  }
.mc-reveal--fade-right { opacity: 0; transform: translateX(-28px); }
.mc-reveal--scale-in   { opacity: 0; transform: scale(0.93);       }
.mc-reveal--visible    { opacity: 1; transform: none;              }


/* ══════════════════════════════════════════════════════════════
   §11 · RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* ≤ 1280px */
@media (max-width: 1280px) {
    .hc-culture-grid  { grid-template-columns: repeat(2, 1fr); }
    .hc-sites-grid    { grid-template-columns: repeat(2, 1fr); }
    .hc-subnav-grid   { grid-template-columns: repeat(3, 1fr); }
}

/* ≤ 1100px — Timeline & People basculent en colonne unique */
@media (max-width: 1100px) {
    /* Intro */
    .hc-intro-grid    { grid-template-columns: 1fr; gap: var(--s10); }

    /* Peuples — colonne unique, image au-dessus */
    .hc-people {
        grid-template-columns: 1fr;
        gap: var(--s8);
    }
    .hc-people--right {
        direction: ltr;
        grid-template-columns: 1fr;
    }
    .hc-people__img-col { order: 0; }
    .hc-people__body-col { order: 1; }
    .hc-people__img-wrap { aspect-ratio: 16 / 9; max-height: 360px; }

    /* Timeline colonne unique */
    .hc-timeline::before { left: 28px; }
    .hc-tl-event {
        grid-template-columns: 56px 1fr;
        gap: 0 var(--s4);
    }
    .hc-tl-event--left .hc-tl-event__node,
    .hc-tl-event--right .hc-tl-event__node {
        grid-column: 1;
        grid-row: 1;
    }
    .hc-tl-event--left .hc-tl-event__card,
    .hc-tl-event--right .hc-tl-event__card {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }
    .hc-tl-event--left .hc-tl-event__card-header { justify-content: flex-start; }
    .hc-tl-event--left .hc-tl-event__facts        { align-items: flex-start; }
    .hc-tl-event--left .hc-tl-event__facts li     { flex-direction: row; }

    /* Culture : 2 colonnes */
    .hc-culture-grid   { grid-template-columns: repeat(2, 1fr); }

    /* Heritage */
    .hc-heritage-grid  {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: var(--s10) auto 0;
    }

    /* Nav */
    .hc-subnav-grid    { grid-template-columns: repeat(2, 1fr); }

    /* Stats */
    .hc-intro__stats   { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .hc-banner            { min-height: 300px; background-position: center 40%; }
    .hc-banner__inner     { padding: 1.5rem 1.25rem 3rem; }
    .hc-banner__subtitle  { display: none; }
    .hc-banner__pills     { gap: 0.4rem; }
    .hc-pill              { font-size: 0.68rem; padding: 0.22rem 0.70rem; }

    .hc-people            { margin-bottom: var(--s12); padding-bottom: var(--s12); }
    .hc-people__name      { font-size: clamp(1.5rem, 5vw, 2rem); }
    .hc-people__img-wrap  { aspect-ratio: 3 / 2; max-height: 300px; }

    .hc-timeline          { margin-top: var(--s8); }

    .hc-culture-grid      { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .hc-sites-grid        { grid-template-columns: 1fr 1fr; }
    .hc-subnav-grid       { grid-template-columns: 1fr; }
    .hc-heritage-grid     { grid-template-columns: 1fr; max-width: 100%; }

    .hc-memorial          { padding: var(--s16) 0; }
    .hc-memorial__quote   { font-size: clamp(1.3rem, 5vw, 1.8rem); }

    /* Breadcrumb : icônes seules */
    .hc-breadcrumb__link span,
    .hc-breadcrumb__item--current span { display: none; }
    .hc-breadcrumb__link i,
    .hc-breadcrumb__item--current i    { font-size: 0.85rem; }
    .hc-breadcrumb__list               { padding: 0.35rem 0.75rem; }
}

/* ≤ 600px */
@media (max-width: 600px) {
    .hc-culture-grid  { grid-template-columns: 1fr; }
    .hc-sites-grid    { grid-template-columns: 1fr; }
    .hc-intro__stats  { grid-template-columns: repeat(2, 1fr); }
    .hc-people__tags  { gap: 0.35rem; }
    .hc-people__tag   { font-size: 0.65rem; padding: 0.18rem 0.55rem; }
}

/* ≤ 480px */
@media (max-width: 480px) {
    .hc-banner             { min-height: 240px; }
    .hc-banner__pills      { display: none; }
    .hc-intro__stats       { grid-template-columns: 1fr 1fr; }
    .hc-tl-event__card     { padding: var(--s4); }
    .hc-memorial__quote    { font-size: 1.2rem; }
    .hc-people__img-wrap   { aspect-ratio: 4 / 3; }
    .hc-people__block      { padding: var(--s4); }
    .hc-flacourt-card__year { font-size: 3.5rem; }
}
