/* ======= 1. VARIABLES ET BASES ======= */
:root {
    --purple-theme: #6f42c1;
    --purple-light: #f8f6ff;
    --purple-hover: #5a32a3;
    --primary-color: #00796b;
    --accent-color: #c0392b;
    --secondary-color: #f5f5dc; 
    --dark-section-bg: #004d40;
    --dark-section-title: #80cbc4;
    --dark-section-text: #b2dfdb;
    --success-color: #27ae60;
    --warning-color: #f1c40f;
    --text-dark: #333;
    --text-light: #6c757d;
    --bg-body: #c0c2c1;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
    background: var(--bg-body); 
    background-attachment: fixed; 
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ======= 2. BANNIÈRE (HEADER) ======= */
.header-banner {
    position: relative;
    width: 100%;
    height: 200px; 
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-image-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.side-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    filter: brightness(105%);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    padding: 15px 40px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.header-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
}

/* ======= 3. SECTIONS FONCÉES ======= */
.info-section-dark {
    background-color: var(--dark-section-bg);
    color: #5f5d5d;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.info-section-dark h2 {
    color: var(--dark-section-title);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.passion-links a {
    color: #6b6666;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.passion-links a:hover {
    background: var(--dark-section-title);
    color: var(--dark-section-bg) !important;
    transform: translateY(-2px);
}

/* ======= 4. CARTES DE TIMBRES (GALLERY) ======= */
.stamp-card {
    border: 2px solid #6c757d !important; 
    border-radius: 15px;
    background: rgb(72, 50, 50);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12); 
}

.stamp-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple-theme) !important;
    box-shadow: 0 15px 30px rgba(111, 66, 193, 0.2);
}

.img-wrapper {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stamp-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.15));
}

/* ======= 5. FICHE DÉTAILLÉE & ZOOM ======= */


body.dark-mode {
    background: linear-gradient(135deg, #2c2f33 0%, #1a1c1e 100%) !important;
    background-attachment: fixed !important;
    color: #e2e2e2 !important;
}


body.dark-mode .stamp-card-main, 
body.dark-mode .card {
    background-color: #36393f !important; /* Gris anthracite de relief */
    border: 1px solid #4f545c !important;
    color: #e2e2e2 !important;
}

.zoom-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    cursor: crosshair;
    border-radius: 12px;
    border: 3px solid #2f5b68c7; 

    background-color: #23272a !important; 
    transition: all 0.3s ease;
}

.zoom-image { 
    width: 100%; 
    display: block; 
}

/* Variantes dynamiques selon l'état du timbre */
.border-dark-neuf {
    border: 4px solid #0a5c2c !important; 
    box-shadow: 0 0 15px rgba(10, 92, 44, 0.4);
}

.border-dark-charniere {
    border: 4px solid #855500 !important; 
    box-shadow: 0 0 15px rgba(133, 85, 0, 0.4);
}

.border-dark-oblitere {
    border: 4px solid #002b4d !important; 
    box-shadow: 0 0 15px rgba(0, 43, 77, 0.4);
}

/* La loupe (magnifier) */
.magnifier {
    position: absolute;
    width: 150px; 
    height: 150px;
    border: 3px solid #201f1f;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 100;
    background-repeat: no-repeat;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* --- RÉDUCTION DE L'IMAGE --- */
.zoom-container-small {
    position: relative;
    width: 100%;
    max-width: 300px; /* Réduit de 400px à 300px */
    margin: 0 auto;
    overflow: hidden;
    cursor: crosshair;
    border-radius: 12px;
    border: 3px solid #1a1a1a;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* --- DISPOLISTE / DOUBLES --- */
.double-neuf { 
    border: 2px dashed #0a5c2c;
    color: #0a5c2c;
    background-color: #fffbeb;    
}
.double-charniere { 
    border: 2px dashed #855500; 
    color: #855500; 
    background-color: #fffbeb;
 }
.double-oblitere {
    border: 2px dashed #002b4d;
    color: #002b4d; 
    background-color: #fffbeb; }

.small-title {
    font-size: 1rem;
    border-left: 4px solid #1a1a1a;
    padding-left: 10px;
    text-transform: uppercase;
}

/* --- RAPPEL DES COULEURS ACTIVES --- */
.active-neuf { 
    background-color: #0a5c2c !important ; 
    color: #a4a4a4 ;
}
.active-charniere {
    background-color: #855500 !important ;
    color: #a4a4a4 ; }
.active-oblitere {
    background-color: #002b4d !important;
    color: #a4a4a4 ; }

.nav-arrow {
    font-size: 2.2rem;
    color: #1a1a1a;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.link-hover:hover {
    text-decoration: underline !important;
    color: #0056b3 !important;
}

.nav-hover:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.bi-arrow-left-circle-fill, .bi-arrow-right-circle-fill {
    vertical-align: middle;
}

.text-primary-custom {
    color: #0d6efd;
}

.nav-arrow.disabled {
    color: #e0e0e0;
    cursor: not-allowed;
}

.btn-collection-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: #89a1a1; /* Gris très clair */
    color: #0d6efd; /* Bleu Bootstrap */
    border-radius: 50px; /* Forme pilule */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-collection-pill:hover {
    background-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}
/* Style pour la Possession (Pointillés gris) */
.possession-box {
    border: 1px dashed #8f9091;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Style pour la Mancoliste (Pointillés rouges) */
.manco-box {
    border: 1px dashed #dc3545;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff5f5; /* Fond rose très léger */
}

.manco-box .label {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.8rem;
}

.manco-box .qty {
    color: #dc3545;
    font-weight: bold;
}
/* ======= 6. FOOTER & MINI GALERIE ======= */
.mini-gallery-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.mini-gallery-inline img {
    height: 40px;
    width: auto;
    border-radius: 3px;
    border: 1px solid #1f0d0d;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.mini-gallery-inline img:hover {
    transform: scale(1.5);
    z-index: 10;
    position: relative;
}
