/* =======================================
   RESET & VARIABLES (Lineto Vibes)
   ======================================= */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --gray-light: #f2f2f2;
    --gray-border: #e6e6e6;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --radius-pill: 50px;
    --padding-tabs: 4px;
}





/* =======================================
   MENU OCTO-TABS (ANIMÉ)
   ======================================= */
.octo-tabs {
    position: relative;
    background-color: var(--gray-light);
    border-radius: var(--radius-pill);
    padding: var(--padding-tabs);
    display: inline-flex;
    /* Empêche la sélection de texte */
    user-select: none;
    margin-bottom:var(--spacing-md);
}

.octo-items {
    position: relative;
    display: flex;
    z-index: 2; /* Au-dessus du curseur */
}

.octo-btn {
    background: none;
    border: none;
    font-size: var(--font-size-sm);
    padding: 8px 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    outline: none;
}

.octo-btn.active {
    color: #fff; /* Blanc car le fond sera noir */
}

/* Le curseur glissant (La pilule noire) */
.octo-highlight {
    position: absolute;
    top: var(--padding-tabs);
    left: var(--padding-tabs); /* Valeur initiale */
    height: calc(100% - (var(--padding-tabs) * 2));
    background-color: #000;
    border-radius: var(--radius-pill);
    z-index: 1;
    
    /* Animation fluide identique à Lineto */
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Initialement caché avant le calcul JS */
    opacity: 0; 
    transform-origin: left center;
}

/* Variante petite pour le sous-menu */
.sub-nav-wrapper {
    margin-bottom: 50px;
    display: flex;
}

.octo-small .octo-btn {
    font-size: var(--font-size-sm);
    padding: 6px 16px;
    font-weight: 600;
}

/* =======================================
   GRILLE & LAYOUT
   ======================================= */
.archive-section {
    width: 100%;
}

.section-label {
	font-size: var(--font-size-lg);	
	line-height: var(--font-line-height-lg);
	font-family: "RiformaLLWeb-Bold",'Open Sans', sans-serif;
	font-weight: 400;
	letter-spacing: -.01em;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    line-height: 0.9;
    padding-bottom: 20px;
}

.matrix-grid {
    display: grid;
    /* Les bordures sont gérées par le gap et la couleur de fond */
    gap: 5px;
    background-color: var(--bg-color); 
    border: 0px solid var(--bg-color);
}

.matrix-cell {
    background-color: var(--bg-color); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 642/1000;
    overflow: hidden;
}

/* =======================================
   TABLE HEADERS (Style Lineto Box-Label)
   ======================================= */

.header-col{
    /* Dimensions */
    aspect-ratio: auto !important;
    padding: 0 0 5px 0;
 
    /* Typographie */
	font-size: var(--font-size-sm);	
	line-height: var(--font-line-height-sm);
   
    /* FLEXBOX POUR L'ALIGNEMENT */
    display: flex;
    text-transform: uppercase;
    width:100%;

    height:20px;
	margin-bottom:5px;
    align-items: flex-start;
    border-bottom: 2px solid #000;
}


/* Style commun pour les entêtes (colonnes et lignes) */
.header-row {

    width:15px;
    height:100%;
    padding: 5px 0px 5px 5px;

    color: #000;
    
    /* Typographie */
	font-size: var(--font-size-sm);	
	line-height: var(--font-line-height-sm);
    text-transform: uppercase;
    border-left: 2px solid #000;
    
    /* Dimensions */
    aspect-ratio: auto !important;

    
    /* FLEXBOX POUR L'ALIGNEMENT */
    display: flex;
    
    /* MAGIE VERTICALE (Lecture bas -> haut) */
    writing-mode: vertical-lr; 
    transform: rotate(180deg);
    
    /* Alignement : 
       Avec la rotation 180deg :
       - justify-content gère l'axe vertical (flex-end = haut visuel)
       - align-items gère l'axe horizontal (flex-end = gauche visuelle) 
    */
    justify-content: flex-end; /* Colle le texte vers le haut de la case */
    align-items: flex-start;     /* Colle le texte à gauche de la case */
}



/* La case vide en haut à gauche */
.header-empty {
    background-color: #fff;
    aspect-ratio: auto !important;
}



/* =======================================
   LIQUID GLASS EFFECT (Intégré)
   ======================================= */
.glass-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.look-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.5s ease-out, transform 0.5s ease-out;
}

.description-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out, backdrop-filter 0.5s ease-out;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.city-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* HOVER STATES */
.glass-container:hover .look-img {
    filter: blur(8px) brightness(0.6);
    transform: scale(1.05);
}

.glass-container:hover .description-layer {
    opacity: 1;
    pointer-events: auto;
    /* Effet verre un peu plus subtil et moderne */
    backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.1);
}

.img-fallback {
    color: #ccc;
    font-size: 0.6rem;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; height: 100%;
}
.hidden-img { display: none !important; }