/* =========================================
   KANCELARIA ZAMOYSKI - ZOPTYMALIZOWANY CSS
   ========================================= */


:root {
    --emerald: #0F3D36;       
    --emerald-dark: #051A16;  
    --emerald-light: #1A524A; 
    
    --gold: #C5A059;          
    --gold-dim: #A08040;      
    
    --white: #FFFFFF;
    --bg-paper: #F4F2ED;      
    
    --text-dark: #050505;     
    --text-grey: #333333;     
    
    --border-light: rgba(0,0,0,0.1);
    
    --font-head: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-paper);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}


h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--emerald-dark); }
p { font-weight: 400; color: var(--text-grey); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-tag {
    display: block; color: var(--gold); text-transform: uppercase; letter-spacing: 3px;
    font-size: 0.75rem; margin-bottom: 15px; font-weight: 700;
}
.italic-emerald { font-family: var(--font-head); font-style: italic; color: var(--emerald); }
.italic-gold { font-family: var(--font-head); font-style: italic; color: var(--gold); }
.text-center { text-align: center; }
.separator-gold { width: 2px; height: 60px; background: var(--gold); margin: 30px auto; }


.btn-archive {
    display: inline-block; padding: 15px 30px; border: 1px solid var(--gold);
    color: var(--gold); text-decoration: none; text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.8rem; transition: 0.3s;
}
.btn-archive:hover { background: var(--gold); color: #000; }

.btn-hero-gold {
    display: inline-block; padding: 18px 45px; border: 1px solid var(--gold);
    color: var(--gold); text-decoration: none; text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.85rem; transition: 0.4s var(--ease-out); font-weight: 600;
}
.btn-hero-gold:hover {
    background: var(--gold); color: var(--emerald-dark);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

.btn-contact {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--emerald);
    font-family: var(--font-head); text-transform: uppercase; font-size: 0.8rem; font-weight: 600;
}
.btn-line { width: 30px; height: 1px; background: var(--emerald); transition: 0.3s; }
.btn-contact:hover .btn-line { width: 50px; background: var(--gold); }


.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--emerald);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    transition: 0.8s var(--ease-out);
}
.preloader-content { text-align: center; color: var(--gold); }
.preloader .initial { font-family: var(--font-head); font-size: 4rem; display: block; margin-bottom: 10px; animation: scaleIn 1s ease-out; }
.preloader .text { letter-spacing: 5px; text-transform: uppercase; font-size: 0.8rem; animation: fadeIn 1.5s ease-out; }

.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; background: #030f0d; color: #fff;
    padding: 20px 40px; display: flex; justify-content: center; align-items: center; gap: 30px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3); z-index: 20000; border-top: 1px solid var(--gold);
    transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content p { margin: 0; font-size: 0.85rem; color: #ccc; line-height: 1.5; }
.cookie-banner a { color: var(--gold); text-decoration: underline; transition: 0.3s; }
.cookie-banner a:hover { color: #fff; }
.btn-cookie {
    background: var(--gold); color: #030f0d; border: none; padding: 12px 30px;
    text-transform: uppercase; font-weight: 700; letter-spacing: 1px; cursor: pointer;
    font-size: 0.75rem; white-space: nowrap; transition: 0.3s; border-radius: 2px;
}
.btn-cookie:hover { background: #fff; }


.navbar {
    position: fixed; top: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05); z-index: 1000;
    transition: all 0.4s var(--ease-out);
}
.navbar.scrolled { padding: 15px 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: #fff; }

.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-symbol {
    width: 45px; height: 45px; border: 1px solid var(--emerald); color: var(--emerald);
    display: flex; justify-content: center; align-items: center; font-family: var(--font-head); font-size: 1.5rem;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-family: var(--font-head); color: var(--emerald); letter-spacing: 2px; font-weight: 700; }
.logo-text .sub { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold); }

.nav-links a {
    text-decoration: none; color: var(--text-dark); margin: 0 20px; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; position: relative; font-weight: 600;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--gold); transition: 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.hamburger span { width: 30px; height: 2px; background: var(--emerald); transition: 0.3s; }
.hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.toggle span:nth-child(2) { opacity: 0; }
.hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }


.hero-split {
    display: flex; min-height: 100vh; width: 100%; position: relative; background-color: var(--emerald-dark);
}
.hero-text-side {
    width: 50%; background-color: var(--emerald-dark); display: flex; align-items: center; 
    justify-content: center; position: relative; z-index: 2; padding: 120px 60px;
}
.hero-content-wrapper { max-width: 600px; }
.hero-split .subtitle {
    display: block; color: var(--gold); text-transform: uppercase;
    letter-spacing: 4px; font-size: 0.8rem; margin-bottom: 30px; font-weight: 700; opacity: 0.8;
}
.hero-split .title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 40px; color: #ffffff; }
.hero-split .desc {
    font-size: 1.2rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 50px; font-weight: 300; 
    line-height: 1.8; max-width: 500px; border-left: 1px solid var(--gold); padding-left: 20px;
}
.hero-img-side { width: 50%; position: relative; overflow: hidden; background: #000; }
.hero-img-side img {
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(110%) brightness(80%);
    transition: transform 10s ease;
}
.hero-split:hover .hero-img-side img { transform: scale(1.05); }
.img-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--emerald-dark) 0%, rgba(5,26,22,0.6) 20%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}


.stats-section { 
    background-color: var(--bg-paper); padding: 80px 0; color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.05); position: relative; z-index: 5;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; gap: 0; }
.stat-item { padding: 20px; position: relative; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(0,0,0,0.1);
}
.flex-num { display: flex; justify-content: center; align-items: baseline; gap: 5px; }
.stat-number { 
    display: block; font-family: var(--font-head); font-size: 4rem; 
    color: var(--emerald-dark); margin-bottom: 10px; font-weight: 500; line-height: 1;
}
.suffix { font-family: var(--font-head); font-size: 2rem; color: var(--gold); font-weight: 600; }
.stat-label { text-transform: uppercase; letter-spacing: 3px; font-size: 0.75rem; color: #666; font-weight: 600; }


.section-partner { padding: 140px 0; background: var(--white); border-bottom: 1px solid var(--border-light); }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.diptych-container { position: relative; width: 100%; min-height: 550px; display: flex; justify-content: flex-start; align-items: center; }
.diptych-main {
    width: 75%; height: 500px; position: relative; z-index: 1; overflow: hidden;
    box-shadow: 20px 20px 0px var(--bg-paper); border: 1px solid var(--border-light);
}
.diptych-main img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(110%); transition: transform 1.5s ease; }
.diptych-detail {
    position: absolute; bottom: 40px; right: 0; width: 45%; height: 280px; z-index: 2; overflow: hidden;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.15); border: 4px solid #fff; animation: float 6s ease-in-out infinite;
}
.diptych-detail img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s ease; }
.detail-border {
    position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4); z-index: 3; pointer-events: none;
}
.diptych-accent {
    position: absolute; top: -20px; right: -20px; width: 150px; height: 150px;
    border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); z-index: 0; opacity: 0.5;
}
.diptych-container:hover .diptych-main img { transform: scale(1.05); }
.diptych-container:hover .diptych-detail img { transform: scale(1.1); }

.partner-text h2 { font-size: 2.8rem; margin-bottom: 5px; color: var(--emerald-dark); }
.partner-text h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-dim); margin-bottom: 30px; }
.text-content p { margin-bottom: 20px; color: var(--text-grey); text-align: justify; }

.signature-wrapper { margin-top: 40px; opacity: 0.8; }
.signature-svg { width: 220px; height: auto; display: block; filter: sepia(100%) hue-rotate(10deg) brightness(0.8); transition: transform 0.3s ease; }
.signature-svg:hover { transform: scale(1.05); }


.section-dossier { padding: 100px 0; background: var(--bg-paper); }
.dossier-wrapper {
    display: grid; grid-template-columns: 300px 1fr; background: var(--white); box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05); overflow: hidden; border-radius: 4px; margin-top: 60px;
}
.dossier-nav { display: flex; flex-direction: column; background: #FFFFFF; border-right: 1px solid rgba(0,0,0,0.05); z-index: 2; }
.nav-item {
    background: transparent; border: none; border-bottom: 1px solid #f5f5f5; padding: 30px; text-align: left; 
    cursor: pointer; display: flex; align-items: center; transition: all 0.3s ease; position: relative; width: 100%;
}
.nav-item:hover { background: #fafafa; padding-left: 35px; }
.nav-item.active { background: #fdfdfd; border-right: none; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--emerald); }
.nav-num { font-family: var(--font-head); color: #ccc; font-size: 0.9rem; margin-right: 15px; transition: 0.3s; }
.nav-title { font-family: var(--font-head); font-size: 0.95rem; color: var(--text-dark); font-weight: 600; letter-spacing: 1px; }
.nav-item.active .nav-num { color: var(--gold); }
.nav-item.active .nav-title { color: var(--emerald); }
.nav-arrow { margin-left: auto; opacity: 0; transform: translateX(-10px); transition: 0.3s; color: var(--emerald); }
.nav-item.active .nav-arrow { opacity: 1; transform: translateX(0); }

.dossier-content-area {
    background: var(--emerald-dark); position: relative; display: grid; grid-template-areas: "content";
    overflow: hidden; border-radius: 0 4px 4px 0;
}
.dossier-content-area::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.6; pointer-events: none; z-index: 1;
}

.dossier-card {
    grid-area: content; background: transparent; color: #fff; padding: 60px 80px;
    opacity: 0; visibility: hidden; transform: translateX(20px); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2;
}
.dossier-card.active { opacity: 1; visibility: visible; transform: translateX(0); z-index: 2; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; }
.dossier-card h3 { font-size: 2.2rem; color: #fff; margin: 0; line-height: 1.2; font-weight: 500; }
.icon-stamp { font-size: 3rem; color: var(--gold); opacity: 0.3; }
.main-desc { font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.9); margin-bottom: 40px; font-weight: 300; }
.card-details h4 { color: var(--gold); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 3px; margin-bottom: 20px; }
.card-details ul { list-style: none; padding: 0; }
.card-details li { position: relative; padding-left: 25px; margin-bottom: 12px; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.card-details li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 1px; background: var(--gold); }


.section-process {
    padding: 120px 0; background: var(--emerald-dark); color: var(--white); position: relative; overflow: hidden;
}
.section-process::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.5; pointer-events: none;
}
.section-process .section-tag { color: var(--gold); }
.section-process h2 { color: #fff; margin-bottom: 60px; }

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-line {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), transparent);
    transform: translateX(-50%); opacity: 0.5;
}
.timeline-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 100px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.dot {
    position: absolute; left: 50%; width: 12px; height: 12px; background: var(--emerald-dark);
    border: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); z-index: 2; box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}
.timeline-item .content { width: 42%; padding: 0; background: transparent; border: none; text-align: right; position: relative; }
.timeline-item:nth-child(even) .content { text-align: left; }
.timeline-item .content::before {
    content: attr(data-step); position: absolute; top: -40px; right: 0;
    font-family: var(--font-head); font-size: 8rem; color: rgba(255,255,255,0.03); line-height: 1; z-index: -1;
}
.timeline-item:nth-child(even) .content::before { right: auto; left: 0; }

.content h4 { font-family: var(--font-head); color: var(--gold); font-size: 1.4rem; margin-bottom: 15px; letter-spacing: 1px; transition: 0.5s; display: inline-block; position: relative; cursor: default; }
.content p { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.8; transition: 0.5s; transform: translateX(0); }

.timeline-item .content:hover h4 { color: #fff; letter-spacing: 3px; transform: translateX(10px); text-shadow: 0 0 25px rgba(197, 160, 89, 0.6); }
.timeline-item .content h4::before { content: '›'; position: absolute; left: -20px; opacity: 0; color: var(--gold); transition: 0.3s; font-size: 1.5rem; line-height: 0.8; top: 2px; }
.timeline-item .content:hover h4::before { opacity: 1; left: -25px; }
.timeline-item .content:hover p { color: #ffffff; opacity: 1; transform: translateX(5px); }


.section-scenarios { padding: 120px 0; background-color: #ffffff; position: relative; z-index: 1; }
.section-intro { max-width: 600px; margin: 0 auto; color: var(--text-grey); text-align: center; margin-bottom: 60px; }
.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.scenario-card {
    position: relative; height: 400px; background: var(--white); border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden; cursor: default; transition: transform 0.3s; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.scenario-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(15, 61, 54, 0.15); }

.card-front { padding: 50px 40px; height: 100%; display: flex; flex-direction: column; transition: opacity 0.4s; }
.case-number { font-family: var(--font-head); font-size: 3rem; color: rgba(197, 160, 89, 0.2); margin-bottom: 20px; display: block; }
.scenario-card h3 { font-size: 1.8rem; color: var(--emerald-dark); margin-bottom: 20px; line-height: 1.2; }
.threat-desc { font-size: 0.95rem; line-height: 1.6; color: var(--text-grey); }
.hover-indicator { margin-top: auto; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); font-weight: 700; opacity: 0.7; }

.card-back {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--emerald); color: #fff;
    padding: 50px 40px; opacity: 0; transform: translateY(100%); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column; justify-content: center;
}
.scenario-card:hover .card-back { opacity: 1; transform: translateY(0); }
.card-back h4 { color: var(--gold); font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.card-back ul { list-style: none; padding: 0; }
.card-back li { position: relative; padding-left: 20px; margin-bottom: 15px; font-size: 0.9rem; color: rgba(255,255,255,0.9); line-height: 1.5; }
.card-back li::before { content: '•'; color: var(--gold); position: absolute; left: 0; }


.section-journal {
    padding: 120px 0; background-color: #F4F2ED; border-top: 1px solid rgba(197, 160, 89, 0.3); position: relative; z-index: 2;
}
.section-journal::before {
    content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.05)); pointer-events: none;
}
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.journal-card { background: #fff; border: 1px solid #ddd; padding-bottom: 25px; transition: 0.3s; cursor: pointer; }
.journal-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--gold); }
.j-img { height: 220px; overflow: hidden; margin-bottom: 25px; border-bottom: 1px solid #eee; }
.j-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.journal-card:hover img { transform: scale(1.1); }
.j-content { padding: 0 25px; }
.j-content .date { font-size: 0.7rem; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.j-content h4 { font-size: 1.1rem; margin-bottom: 15px; line-height: 1.4; color: var(--emerald-dark); }
.read-more { text-decoration: none; color: var(--text-dark); font-size: 0.8rem; font-weight: 700; }


footer { position: relative; background-color: #030f0d; color: #fff; padding: 100px 0 0 0; overflow: hidden; }
.footer-bg-texture {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px; pointer-events: none;
}
.footer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-bottom: 100px; position: relative; z-index: 2; }

.brand-footer h2 { font-size: 3.5rem; color: #fff; margin: 0; line-height: 1; letter-spacing: -1px; }
.brand-line { width: 60px; height: 2px; background: var(--gold); margin: 20px 0; }
.brand-footer p { color: var(--gold); text-transform: uppercase; letter-spacing: 4px; font-size: 0.8rem; margin-bottom: 60px; }

.footer-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-info-grid h4 { color: #666; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-info-grid p { color: #ccc; font-size: 0.95rem; line-height: 1.6; margin-bottom: 5px; }
.footer-info-grid a { color: #fff; text-decoration: none; transition: 0.3s; border-bottom: 1px solid transparent; }
.footer-info-grid a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.map-link { text-decoration: none; display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.address-text p { margin: 0; color: #bbb; transition: color 0.3s; line-height: 1.6; }
.pin-box {
    display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: 0.8; transition: 0.3s;
}
.gold-pin-svg { width: 18px; height: 18px; fill: var(--gold); filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.3)); transition: transform 0.3s; }
.map-link:hover .address-text p { color: #fff; }
.map-link:hover .pin-box { opacity: 1; }
.map-link:hover .gold-pin-svg { transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.6)); }

.footer-form h3 { font-family: var(--font-head); font-size: 1.8rem; color: #fff; margin-bottom: 10px; }
.form-desc { color: #888; font-size: 0.9rem; margin-bottom: 40px; }
.input-line { margin-bottom: 30px; position: relative; }
.input-line input {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid #333;
    padding: 15px 0; color: #fff; font-family: var(--font-body); font-size: 1rem; outline: none; transition: 0.3s;
}
.input-line input::placeholder { color: #555; transition: 0.3s; }
.input-line input:focus { border-bottom-color: var(--gold); }
.input-line input:focus::placeholder { opacity: 0; }
.submit-arrow {
    background: transparent; border: none; color: var(--gold); text-transform: uppercase;
    font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; cursor: pointer; padding: 0;
    margin-top: 20px; display: flex; align-items: center; gap: 15px; transition: 0.3s;
}
.submit-arrow:hover { color: #fff; gap: 25px; }

.footer-bottom { border-top: 1px solid #111; padding: 30px 0; background: #020a09; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #444; }
.legal-links a { color: #666; text-decoration: none; margin-left: 30px; transition: 0.3s; }
.legal-links a:hover { color: var(--gold); }
.login-link { color: var(--emerald) !important; border: 1px solid #222; padding: 5px 15px; border-radius: 2px; }
.login-link:hover { border-color: var(--gold); color: var(--gold) !important; }


.anim-slide-up { display: block; opacity: 0; transform: translateY(100%); animation: slideUp 1s var(--ease-out) forwards; }
.anim-fade-in { opacity: 0; animation: fadeIn 1s ease-out forwards; }
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-out); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideInLinks { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   14. MEDIA QUERIES (RESPONSIVE)
   ========================================= */


@media (max-width: 1024px) {
    
    .hamburger { display: flex; z-index: 1001; }
    .navbar { padding: 15px 20px; background: #fff; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #fcfbf8; flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding-top: 0; z-index: 998;
    }
    .nav-links.active { right: 0; }
    .nav-links a {
        margin: 15px 0; font-size: 1.5rem; font-family: var(--font-head); color: var(--emerald-dark);
        opacity: 0; transform: translateY(20px); animation: none;
    }
    .nav-links.active a { animation: slideInLinks 0.5s forwards; }
    
    .nav-links.active a:nth-child(1) { animation-delay: 0.2s; }
    .nav-links.active a:nth-child(2) { animation-delay: 0.3s; }
    .nav-links.active a:nth-child(3) { animation-delay: 0.4s; }
    .nav-links.active a:nth-child(4) { animation-delay: 0.5s; }
    .nav-links.active a:nth-child(5) { animation-delay: 0.6s; }
    
    .nav-links .btn-contact { margin-top: 30px; transform: scale(1.2); }
    
    
    .hero-split { flex-direction: column-reverse; }
    .hero-text-side { width: 100%; padding: 80px 30px 60px; text-align: left; }
    .hero-split .title { font-size: 3rem; }
    .hero-img-side { width: 100%; height: 45vh; min-height: 300px; }
}


@media (max-width: 900px) {
    .container { padding: 0 25px; } 
    p, .text-content p { text-align: left !important; font-size: 1rem; line-height: 1.6; }
    
    
    .partner-grid, .stats-grid, .footer-layout, .journal-grid, .scenarios-grid { grid-template-columns: 1fr; gap: 50px; }
    
    
    .hero-img-side { height: 60vh !important; min-height: 500px !important; }
    .hero-img-side img { object-fit: cover !important; object-position: top center !important; }

    
    .partner-text h2 { font-size: 2.2rem; } 
    .diptych-main { width: 100%; height: 350px; box-shadow: 10px 10px 0 var(--bg-paper); }
    .diptych-detail { display: none; } 
    .signature-svg { width: 180px; margin: 0 auto; }
    .signature-wrapper { text-align: left; }

    
    .stat-item { padding: 0; }
    .stat-item:not(:last-child)::after { display: none; }
    .stat-number { font-size: 3.5rem; }

    
    .timeline::before { left: 15px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; margin-left: 40px; margin-bottom: 50px; }
    .timeline-item:nth-child(even) { flex-direction: column !important; }
    .timeline-item .content { width: 100%; text-align: left !important; margin-top: 15px; padding-right: 10px; }
    .timeline-item .content::before { left: 0 !important; right: auto; top: -30px; opacity: 0.1; font-size: 5rem; }
    .dot { left: 15px; }

    
    .dossier-wrapper { display: flex; flex-direction: column; margin-top: 30px; border: none; background: transparent; box-shadow: none; }
    .dossier-nav { display: flex; flex-direction: column; overflow-x: visible; border-bottom: none; width: 100%; }
    .nav-item { padding: 20px; width: 100%; white-space: normal; border-bottom: 1px solid #ddd; background: #fff; flex-shrink: 0; text-align: left; }
    .nav-item.active { background: #f9f9f9; border-left: 5px solid var(--emerald); border-bottom: 1px solid #ddd; padding-left: 15px; }
    .nav-item.active::before { display: none; } 
    .nav-item .nav-title { font-size: 0.9rem; font-weight: 600; }
    
    .dossier-content-area { padding: 0; background: transparent; display: block; margin-top: 20px; }
    .dossier-card { display: none; position: relative; opacity: 1; visibility: visible; transform: none; padding: 40px 25px; background: var(--emerald-dark); border-radius: 4px; min-height: auto; }
    .dossier-card.active { display: flex; }
    .dossier-card h3 { font-size: 1.8rem; margin-bottom: 10px; }
    .icon-stamp { display: none; }
    .main-desc { font-size: 1rem; margin-bottom: 30px; }
    
    
    .brand-footer h2 { font-size: 2.5rem; }
    .bottom-flex { flex-direction: column; gap: 20px; text-align: center; }
    .legal-links a { margin: 0 10px; display: inline-block; margin-bottom: 10px; }
}


@media (max-width: 768px) {
    .cookie-banner { flex-direction: column; text-align: center; padding: 25px 20px; gap: 20px; }
    .cookie-content p { font-size: 0.8rem; }
    .btn-cookie { width: 100%; padding: 15px; font-size: 0.9rem; }
}