/* ============================================================
   BASE & RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1A1614;
    color: #E8DDD2;
}
a{
    text-decoration:none!important;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-antique {
    font-family: 'Cinzel', serif;
}

.text-gold-antique {
    color: #C49A6C;
}

.text-gold-gradient-antique {
    background: linear-gradient(135deg, #C49A6C, #E8D5B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */
header .container {
    margin: 120px auto 0;
    text-align: center;
}

header .container h1,
header .container p,
header .container .badge,
header .container .container-button,
header .container .container-button a {
    margin: auto;
    text-align: center;
}

header .container .badge {
    display: block;
    width: 10%;
    margin-bottom: 25px;
}

header .container hr {
    height: 1px;
    margin-top: 25px;
    margin-bottom: 25px;
}

header .container .container-button {
    margin-top: 25px;
    width: 80%;
}

header .container .container-button a {
    width: 48%;
    text-align: center;
}

/* ============================================================
   HERO OVERLAY
   ============================================================ */
.hero-overlay {
    background: linear-gradient(135deg, rgba(26, 22, 20, 0.5) 0%, rgba(26, 22, 20, 0.8) 60%, rgba(26, 22, 20, 0.5) 100%);
}

.hero-overlay-antique {
    background: linear-gradient(135deg, rgba(26, 22, 20, 0.35) 0%, rgba(26, 22, 20, 0.95) 60%, rgba(26, 22, 20, 0.35) 100%);
}

/* ============================================================
   GLASS / BACKDROP
   ============================================================ */
.glass-stone {
    background: rgba(30, 26, 22, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(200, 180, 150, 0.08);
}

.glass-stone-dark {
    background: rgba(20, 17, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 180, 150, 0.05);
}

/* ============================================================
   DECORATIVE LINES
   ============================================================ */
.antique-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #C49A6C, #C49A6C);
    border-radius: 2px;
}

.antique-line-center {
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, #C49A6C, #C49A6C);
    border-radius: 2px;
    margin: 0 auto;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-antique {
    background: rgba(196, 154, 108, 0.12);
    color: #C49A6C;
    border: 1px solid rgba(196, 154, 108, 0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.badge-antique-gold {
    background: #C49A6C;
    color: #1A1614;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-stone {
    background: #C49A6C;
    color: #1A1614;
    font-weight: 600;
    padding: 0.75rem 2.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(196, 154, 108, 0.15);
}

.btn-stone:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(196, 154, 108, 0.25);
}

.btn-outline-stone {
    background: rgba(196, 154, 108, 0.1);
    color: #C49A6C;
    border: 2px solid rgba(196, 154, 108, 0.99);
    font-weight: 500;
    padding: 0.7rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-stone:hover {
    background: rgba(196, 154, 108, 0.88);
    border-color: #C49A6C;
    transform: scale(1.02);
}

/* ============================================================
   IMAGES
   ============================================================ */
img{
    transition:0.8s;
}

.img-zoom {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    transition:0.8s;
}

.img-zoom:hover {
    transform: scale(1.04);
    filter: brightness(1.05) contrast(1.02);
    transition:0.8s;
}

.img-zoom-antique {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    transition:0.8s;
}

.img-zoom-antique:hover {
    transform: scale(1.04);
    filter: brightness(1.05) contrast(1.02);
    transition:0.8s;
}

.img-stone {
    filter: sepia(0.2) saturate(0.7) contrast(1.05);
    transition:0.8s;
}

.img-stone:hover {
    filter: sepia(0) saturate(1) contrast(1);
    transition:0.8s;
}

/* fallback pour les images manquantes */
.img-fallback {
    background: #2A2520;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C49A6C;
    font-size: 0.8rem;
    min-height: 150px;
}

.img-fallback::after {
    content: '🖼️ Image d\'archives';
    font-family: 'Inter', sans-serif;
    color: #C49A6C;
    opacity: 0.5;
}

/* ============================================================
   CARDS
   ============================================================ */
.artifact-card {
    background: rgba(150, 129, 109, 0.103);
    border: 1px solid rgba(214, 171, 126, 0.432);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.artifact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 154, 108, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.artifact-card:hover::before {
    opacity: 1;
}

.artifact-card:hover {
    border-color: rgba(196, 154, 108, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(196, 154, 108, 0.03);
    transform: translateY(-6px);
}

.civilisation-card {
    background: rgba(30, 26, 22, 0.3);
    border: 1px solid rgba(196, 154, 108, 0.08);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

.civilisation-card:hover {
    border-color: rgba(196, 154, 108, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(196, 154, 108, 0.03);
    transform: translateY(-6px);
}

.civilisation-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 22, 20, 0.9), transparent);
}

/* ============================================================
   TIMELINE GRID
   ============================================================ */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.timeline-grid .timeline-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.timeline-grid .timeline-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.timeline-grid .timeline-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.timeline-grid .timeline-item:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 768px) {
    
    header{
        min-height:500px!important;
        padding-bottom:100px!important;
        
    }
    
    header .container{
       /* margin-top:0px!important;*/
        
    }
    
    header h1{
        font-size:40px!important;
        
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .timeline-grid .timeline-item:first-child,
    .timeline-grid .timeline-item:nth-child(2),
    .timeline-grid .timeline-item:nth-child(3),
    .timeline-grid .timeline-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .btn-stone,
    .btn-outline-stone {
        width:100%!important;
        text-align:center;
        margin: 10px auto;
    }
    
    .chronologie-section .badge-antique,
    .chronologie-section .badge-antique-gold,
    .chronologie-section .btn-stone,
    .chronologie-section .btn-outline-stone,
    .plus {
         width:100%!important;
         display:block;
    }
    
   .badge{
        width:50%!important;
        text-align:center;
        display:block;
    }
    
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #1A1614;
}

::-webkit-scrollbar-thumb {
    background: #C49A6C;
    border-radius: 4px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar-antique {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-scrolled-antique {
    background: rgba(20, 17, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 154, 108, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes dustFloat {
    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-25px) scale(1.1);
        opacity: 0.6;
    }
}

.dust-float {
    animation: dustFloat 7s ease-in-out infinite;
}
