@import "fonts.css";
@import "badges.css";
@import "typewriter.css";
@import "scroll-to-top-btn.css";
@import "arrow-down.css";
@import "favorite.css";

.custom-badge-size {
    font-size: 0.8rem;
    text-decoration: none;
}

.custom-badge-size:hover {
    color: white;
}

.timeline{
    font-family: CevicheOneRegular, sans-serif;
}

body {
    background-color: rgba(239, 239, 246, 0.55);
}

#map-container {
    height: 70vh;
    width: 100%;
}

[x-cloak] {
    display: none;
}


.bg-teal-custom{
    background-color: #316772;
}

.bg-custom{
    background-color: #cfe1d2;
    background-image: url('/img/texture-body.jpg');
}

.text-orange-custom{
    color: #f4bb61;
}

html {
    scroll-behavior: smooth;
}

#sidebar-container{
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-highlight{
    border-color: #594F55;
    height: 175px;
    border-right: #594F55 solid 3px;
    border-left:  #594F55 solid 3px;
}

.border-gray-custom{
    border-color: #594F55;
}

#description img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    margin-top: 4em;
    margin-bottom: 4em;
}

.book-icon {
    font-size: 19px;
    background: none;
    border: none;
    cursor: pointer;
}

.book {
    color: #333;
    transition: color 0.3s ease;
}

.book-icon[data-readed="true"] .book {
    color: #28a745;
}

.text-custom-teal{
color: #00c2b0
}

.text-box-shadow{
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;
}
/* ============================================
   METRO TIMELINE — French HipHop Timeline
   Style : plan de métro parisien × vintage
   ============================================ */

/* Variables palette */
:root {
    --fht-noir:    #1E1E1A;
    --fht-vert:    #5F6B52;
    --fht-terre:   #9C5A2A;
    --fht-rouille: #A86434;
    --fht-brique:  #B06A3A;
    --fht-papier:  #D8C39A;
    --fht-fond:    #EFE6D2;
    --fht-encadre: #E4D7BD;

    --c-events:  #C0392B;
    --c-artists: #27AE60;
    --c-groups:  #2471A3;
    --c-medias:  #8E44AD;

    --panel-accent: var(--fht-rouille);
    --dot-bg: #EFE6D2;
}

/* ---- Section ---- */
.metro-section {
    padding: 3rem 0 5rem;
}

.metro-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    text-align: center;
    color: var(--fht-rouille);
    letter-spacing: 0.08em;
    text-shadow: 3px 3px 0 rgba(30,30,26,0.15);
    margin-bottom: 0.25rem;
}

.metro-subtitle {
    text-align: center;
    font-family: 'Special Elite', cursive;
    color: var(--fht-vert);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* ---- Légende ---- */
.metro-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.metro-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Special Elite', cursive;
    font-size: 0.8rem;
    color: var(--fht-noir);
}

.metro-legend-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

//* ---- Loader global page ---- */
#fht-page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--fht-fond);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#fht-page-loader.fht-loader-done {
    opacity: 0;
    visibility: hidden;
}

.fht-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.fht-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--fht-encadre);
    border-top-color: var(--fht-rouille);
    border-radius: 50%;
    animation: metro-spin 0.75s linear infinite;
}

.fht-loader-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--fht-rouille);
}

/* ---- Loader timeline ---- */
.metro-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    gap: 1.2rem;
}

.metro-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--fht-encadre);
    border-top-color: var(--fht-rouille);
    border-radius: 50%;
    animation: metro-spin 0.75s linear infinite;
}

@keyframes metro-spin {
    to { transform: rotate(360deg); }
}

.metro-loader-text {
    font-family: 'Special Elite', cursive;
    color: var(--fht-rouille);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.metro-panel-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    min-height: 120px;
}

/* ---- Zone map : fond pleine largeur, pas de boîte ---- */
.metro-map-bg {
    background: var(--fht-fond);
    background-image:
        linear-gradient(var(--fht-encadre) 1px, transparent 1px),
        linear-gradient(90deg, var(--fht-encadre) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 2rem 0;
}

/* ---- Scroll horizontal (pleine largeur) ---- */
.metro-scroll {
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--fht-rouille) transparent;
    display: flex;
    justify-content: center;
    padding: 1rem 3rem;
}
.metro-scroll::-webkit-scrollbar { height: 4px; }
.metro-scroll::-webkit-scrollbar-track { background: transparent; }
.metro-scroll::-webkit-scrollbar-thumb { background: var(--fht-rouille); border-radius: 2px; }
.metro-scroll.grabbing { cursor: grabbing; }

/* ---- Canvas (juste le flex intérieur, sans fond propre) ---- */
.metro-canvas {
    display: inline-flex;
    flex-direction: column;
    min-width: max-content;
    position: relative;
}

/* ---- Ligne de track ---- */
.metro-track-row {
    display: flex;
    align-items: center;
    position: relative;
    height: 64px;
}

/* Rail horizontal via ::before */
.metro-track-row::before {
    content: '';
    position: absolute;
    left: 110px;
    right: 0;
    height: 4px;
    background: var(--track-color, #888);
    border-radius: 2px;
    z-index: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ---- Label de ligne ---- */
.metro-line-label {
    width: 110px;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    padding-right: 8px;
}

.metro-line-label-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #fff;
    white-space: nowrap;
}

/* ---- Cellule ---- */
.metro-cell {
    width: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* ---- Station dot ---- */
.metro-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dot-bg, #EFE6D2);
    border: 3px solid currentColor;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
                background 0.15s ease,
                box-shadow 0.15s ease;
    z-index: 2;
    position: relative;
}

.metro-dot.major {
    width: 22px;
    height: 22px;
    border-width: 3.5px;
}

/* Hover CSS pur */
.metro-cell:hover .metro-dot {
    background: currentColor;
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.10);
}

/* Actif (géré via :style Alpine) */
.metro-cell.active .metro-dot {
    transform: scale(1.3);
}

/* ---- Badge count ---- */
.metro-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 15px;
    height: 15px;
    border-radius: 99px;
    background: var(--dot-bg, #EFE6D2);
    border: 1.5px solid currentColor;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    z-index: 3;
    line-height: 1;
}

.metro-cell:hover .metro-count {
    background: #fff;
}

/* ---- Rangée des années ---- */
.metro-years-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--fht-encadre);
}

.metro-year-spacer {
    width: 110px;
    flex-shrink: 0;
}

.metro-year-cell {
    width: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px 2px;
}

.metro-year-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--fht-noir);
    transition: all 0.15s ease;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.metro-year-cell:hover .metro-year-label {
    color: var(--fht-rouille);
}

.metro-year-cell.active .metro-year-label {
    background: var(--fht-noir);
    color: var(--fht-fond);
    font-size: 0.9rem;
    padding: 3px 7px;
}

/* ---- Panel ---- */
.metro-panel {
    background: var(--fht-fond);
    border-top: 4px solid var(--panel-accent, var(--fht-rouille));
    padding: 2rem 2.5rem 2.5rem;
    position: relative;
}

.metro-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--fht-encadre);
    padding-bottom: 1rem;
}

.metro-panel-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.metro-panel-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--panel-accent, var(--fht-rouille));
    letter-spacing: 0.08em;
    line-height: 1;
}

.metro-panel-track-label {
    font-family: 'Special Elite', cursive;
    font-size: 1rem;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

.metro-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fht-noir);
    color: var(--fht-fond);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.metro-panel-close:hover { background: var(--panel-accent, var(--fht-rouille)); }

/* ---- Sections "all" ---- */
.metro-all-section {
    margin-bottom: 2rem;
}
.metro-all-section:last-child { margin-bottom: 0; }

.metro-all-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
}

.metro-all-section-pip {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.metro-all-count {
    font-family: 'Lora', serif;
    font-size: 0.68rem;
    font-style: italic;
    opacity: 0.65;
    letter-spacing: 0;
    font-weight: 400;
}

/* ---- Carrousel ---- */
.metro-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    /* Scrollbar visible et stylée sur desktop */
    scrollbar-width: thin;
    scrollbar-color: var(--panel-accent, var(--fht-rouille)) var(--fht-encadre);
}
.metro-carousel::-webkit-scrollbar { height: 4px; }
.metro-carousel::-webkit-scrollbar-track { background: var(--fht-encadre); border-radius: 2px; }
.metro-carousel::-webkit-scrollbar-thumb { background: var(--panel-accent, var(--fht-rouille)); border-radius: 2px; }

/* Sur mobile : touch scroll natif, scrollbar masquée */
@media (max-width: 768px) {
    .metro-carousel {
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .metro-carousel::-webkit-scrollbar { display: none; }
}

/* ---- Carte ---- */
.metro-event-card {
    flex-shrink: 0;
    width: 220px;
    background: #fff;
    border: 1px solid var(--fht-encadre);
    border-left: 4px solid var(--card-accent, var(--fht-rouille));
    border-radius: 4px;
    padding: 0.8rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 6px rgba(30,30,26,0.08);
}

.metro-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(30,30,26,0.14);
}

.metro-card-img {
    width: calc(100% + 1.8rem);
    height: 100px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    margin: -0.8rem -0.9rem 0.5rem;
}

.metro-event-name {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    color: var(--fht-noir);
    line-height: 1.3;
}

.metro-event-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.72rem;
    color: var(--fht-rouille);
    letter-spacing: 0.06em;
}

.metro-event-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.7rem;
    color: #5a5650;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.metro-event-cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--card-accent, var(--fht-rouille));
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
    transition: opacity 0.15s;
}
.metro-event-cta:hover { opacity: 0.65; }

/* ---- Navigation alphabétique ---- */
.metro-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 1rem;
}

.metro-alpha-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    min-width: 28px;
    border-radius: 3px;
    border: 1.5px solid var(--alpha-color, var(--fht-rouille));
    background: transparent !important;
    color: var(--alpha-color, var(--fht-rouille)) !important;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    line-height: 1.5;
    white-space: nowrap;
    display: inline-block;
}

.metro-alpha-btn:hover,
.metro-alpha-btn.active {
    background: var(--alpha-color, var(--fht-rouille)) !important;
    color: #fff !important;
}

/* ---- Grille alphabétique ---- */
.metro-alpha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--fht-rouille) var(--fht-encadre);
}
.metro-alpha-grid::-webkit-scrollbar { width: 4px; }
.metro-alpha-grid::-webkit-scrollbar-track { background: var(--fht-encadre); }
.metro-alpha-grid::-webkit-scrollbar-thumb { background: var(--fht-rouille); border-radius: 2px; }

/* En mode grille les cartes ne sont pas flex-shrink:0 */
.metro-alpha-grid .metro-event-card {
    width: auto;
    flex-shrink: unset;
}

.metro-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 0.3rem;
}

.metro-tag {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 2px;
    background: var(--fht-encadre);
    border: 1px solid var(--fht-terre);
    color: var(--fht-noir);
    font-family: 'Lora', serif;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE MOBILE
   ============================================================ */
@media (max-width: 768px) {

    /* ---- Section & titres ---- */
    .metro-section {
        padding: 1.5rem 0 0;
    }
    .metro-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    .metro-subtitle {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    /* ---- Légende ---- */
    .metro-legend {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    /* ---- Map ---- */
    .metro-map-bg {
        padding: 1rem 0;
    }

    /* ---- Scroll : pas de centrage, départ depuis la gauche ---- */
    .metro-scroll {
        justify-content: flex-start;
        padding: 0.5rem 0.75rem;
        scrollbar-width: none;
        cursor: default;
    }
    .metro-scroll::-webkit-scrollbar { display: none; }

    /* ---- Labels (plus compacts) ---- */
    .metro-line-label {
        width: 76px;
    }
    .metro-line-label-pill {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    .metro-track-row::before {
        left: 76px;
    }

    /* ---- Cellules et années (plus petites) ---- */
    .metro-cell,
    .metro-year-cell {
        width: 50px;
    }
    .metro-track-row,
    .metro-cell {
        height: 52px;
    }
    .metro-year-spacer {
        width: 76px;
    }
    .metro-year-label {
        font-size: 0.72rem;
    }
    .metro-year-cell.active .metro-year-label {
        font-size: 0.78rem;
        padding: 2px 5px;
    }

    /* ---- Dots légèrement réduits ---- */
    .metro-dot {
        width: 13px;
        height: 13px;
    }
    .metro-dot.major {
        width: 18px;
        height: 18px;
    }

    /* ---- Panel ---- */
    .metro-panel {
        padding: 1.25rem 1rem 1.5rem;
    }
    .metro-panel-year {
        font-size: 2.4rem;
    }
    .metro-panel-track-label {
        font-size: 0.85rem;
    }
    .metro-panel-header {
        margin-bottom: 1rem;
    }

    /* ---- Cartes en carousel : largeur réduite ---- */
    .metro-event-card {
        width: 175px;
    }
    .metro-card-img {
        height: 80px;
    }

    /* ---- Grille alpha : 1 colonne sur mobile ---- */
    .metro-alpha-grid {
        grid-template-columns: 1fr 1fr;
        max-height: 60vh;
    }

    /* ---- All-section ---- */
    .metro-all-section {
        margin-bottom: 1.5rem;
    }
}
