/* ============================================================
   ATCHE LAB — Feuille de styles commune
   ============================================================ */

/* --- VARIABLES & RESET --- */
:root {
    --color-primary: #1d2754;
    --color-secondary: #45c2c8;
    --color-dark-blue: #0f1635;
    --color-light-bg: #eefbfc;
    --color-text-dark: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --font-main: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    font-size: 16px;
}

/* --- LOGO TEXTE --- */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.offcanvas-header .offcanvas-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.5px;
    font-family: 'Roboto', sans-serif;
}

/* Ajustement responsive pour le logo texte */
@media (max-width: 992px) {
    .logo-title {
        font-size: 1.5rem;
    }
    .logo-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .logo-area {
        width: 100%;
        justify-content: center;
    }
    .logo-title {
        font-size: 1.4rem;
    }
}

/* --- LOGO TEXTE FOOTER --- */
.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid var(--color-secondary);
}

.footer-logo-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.footer-logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Ajustement responsive pour le footer */
@media (max-width: 768px) {
    .footer-logo-title {
        font-size: 1.3rem;
    }
    .footer-logo-subtitle {
        font-size: 0.7rem;
    }
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 700;
}
.btn-primary:hover { background-color: #3aa8ad; color: white; }

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-secondary:hover { background-color: #2c3a75; }

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-secondary);
}
.btn-light:hover { background-color: var(--color-secondary); color: var(--color-white); }

.btn-cta {
    background-color: white;
    color: var(--color-primary);
    font-weight: 700;
}
.btn-cta:hover { background-color: var(--color-primary); color: white; }

/* --- HEADER --- */
.top-bar {
    background: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 20px; }
.logo-sfec img { height: 70px; }

.region-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-primary);
    text-align: right;
}
.region-info i { color: var(--color-secondary); font-size: 1.2rem; }

.main-nav {
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links { display: flex; }
.nav-links li { position: relative; }
.nav-links a {
    display: block;
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--color-white);
    font-weight: 500;
}
.nav-links li.active a {
    background-color: var(--color-secondary);
    color: var(--color-white);
}
.nav-links a:hover { background-color: rgba(255,255,255,0.1); color: var(--color-secondary); }
.nav-links li.active a:hover { color: var(--color-white); background-color: #3aa8ad; }

.nav-contact-btn {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 15px 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-contact-btn:hover { background-color: #3aa8ad; }

/* --- PAGE BANNER (pages intérieures) --- */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c3a75 60%, var(--color-secondary) 100%);
    padding: 70px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(69, 194, 200, 0.1);
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.page-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 650px;
    position: relative;
    z-index: 1;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.breadcrumb a { color: white; }
.breadcrumb a:hover { color: var(--color-secondary); }
.breadcrumb i { font-size: 0.7rem; }

/* --- SECTION HEADER --- */
.section-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}
.section-header h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 900;
}
.section-header p { font-size: 1.1rem; color: #555; }

/* --- HERO SECTION (accueil) --- */
.hero {
    position: relative;
    height: 600px;
    background: url('img/hero-bg.jpg') no-repeat center center/cover;
    background-color: #ddd;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(29, 39, 84, 0.4), rgba(29, 39, 84, 0.4));
}
.hero-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    max-width: 600px;
    margin-left: 10%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    border-left: 5px solid var(--color-secondary);
}
.hero-card h1 {
    font-size: 2.2rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-card p {
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--color-text-dark);
}

/* --- SERVICES / EXPERTISES --- */
.services {
    padding: 80px 0;
    background-color: var(--color-white);
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.service-domain {
    background: var(--color-light-bg);
    padding: 40px 30px;
    border: 1px solid #e1e1e1;
    text-align: left;
    border-top: 4px solid var(--color-secondary);
    transition: transform 0.3s;
}
.service-domain:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.domain-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}
.domain-icon { font-size: 2.5rem; color: var(--color-secondary); }
.service-domain h3 { color: var(--color-primary); font-size: 1.5rem; }
.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
}
.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* --- WHY US BAR --- */
.why-us-bar {
    background-color: var(--color-primary);
    padding: 60px 0;
    color: var(--color-white);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.why-item { text-align: center; padding: 20px; }
.why-icon { font-size: 3rem; color: var(--color-secondary); margin-bottom: 20px; }
.why-item h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.why-item p { font-size: 0.95rem; opacity: 0.9; }

/* --- CLIENTS SECTION --- */
.clients-section { padding: 80px 0; background-color: var(--color-white); }
.clients-section .container { display: flex; align-items: center; gap: 60px; }
.clients-text { flex: 1; }
.clients-image { flex: 1; }
.clients-text h2 { color: var(--color-primary); font-size: 2rem; margin-bottom: 20px; }
.clients-text p { margin-bottom: 20px; color: #555; }
.client-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}
.client-type-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 3px solid var(--color-secondary);
}
.client-type-item h4 {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}
.clients-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- CTA BLUE BOX --- */
.cta-box-section { background-color: var(--color-light-bg); padding: 60px 0; }
.cta-card {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: white;
}
.cta-content { flex: 2; }
.cta-content h2 { font-size: 1.8rem; margin-bottom: 10px; font-weight: 900; }
.cta-btn { flex: 1; text-align: right; }

/* --- PARTNERS --- */
.partners { padding: 60px 0; text-align: center; background-color: white; }
.partners h2 { color: var(--color-primary); margin-bottom: 40px; font-size: 1.8rem; }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; }
.logo-grid img {
    height: auto;
    width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}
.logo-grid img:hover { filter: grayscale(0); opacity: 1; }

/* Pour les écrans plus petits */
@media (max-width: 768px) {
    .logo-grid img {
        height: 100px;  /* Taille réduite sur mobile */
    }
}

/* --- CONTENT SECTIONS (pages intérieures) --- */
.content-section { padding: 80px 0; }
.content-section.bg-light { background-color: var(--color-light-bg); }
.content-section.bg-white { background-color: var(--color-white); }

.content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.content-box h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-secondary);
    padding-left: 15px;
}
.content-box p { color: #555; margin-bottom: 15px; line-height: 1.8; }

.info-card {
    background: var(--color-light-bg);
    border: 1px solid #e1e1e1;
    border-top: 4px solid var(--color-secondary);
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.info-card-icon { font-size: 2.2rem; color: var(--color-secondary); margin-bottom: 15px; }
.info-card h3 { color: var(--color-primary); font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.info-card p { color: #555; font-size: 0.95rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Valeurs / timeline style */
.values-list { list-style: none; }
.values-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.value-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}
.value-text h4 { color: var(--color-primary); font-weight: 700; margin-bottom: 5px; }
.value-text p { color: #555; font-size: 0.95rem; }

/* Tableau clients */
.clients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.clients-table th {
    background-color: var(--color-primary);
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
}
.clients-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
}
.clients-table tr:nth-child(even) td { background-color: var(--color-light-bg); }
.clients-table tr:hover td { background-color: #ddf6f7; }
.clients-table td i { color: var(--color-secondary); margin-right: 8px; }

/* Tags secteur */
.sector-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.sector-tag {
    background-color: var(--color-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 20px; }
.contact-info p { color: #555; margin-bottom: 25px; }
.contact-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-detail-icon {
    width: 45px;
    height: 45px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-detail-text h4 { color: var(--color-primary); font-weight: 700; margin-bottom: 3px; }
.contact-detail-text p { color: #555; font-size: 0.95rem; }

.contact-form { background: var(--color-light-bg); padding: 40px; border-top: 4px solid var(--color-secondary); }
.contact-form h3 { color: var(--color-primary); font-size: 1.4rem; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--color-primary); font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background: white;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn-submit {
    background: var(--color-primary);
    color: white;
    padding: 14px 35px;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-submit:hover { background: var(--color-secondary); color: var(--color-primary); }

/* --- FOOTER --- */
footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
    border-top: 5px solid var(--color-secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--color-secondary);
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ddd;
}
.footer-col ul li i { margin-right: 8px; color: var(--color-secondary); }
.contact-details li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.contact-group { margin-bottom: 20px; }
.contact-group h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    display: inline-block;
}
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: 0.3s;
}
.social-icons a:hover { background-color: var(--color-secondary); }
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    color: #aaa;
}

/* --- OFFCANVAS MENU --- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.3s;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
}
.nav-hamburger:hover { border-color: var(--color-secondary); }
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 22, 53, 0.6);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.offcanvas-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Panneau offcanvas */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100dvh;
    background: var(--color-primary);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}
.offcanvas-menu.is-open { right: 0; }

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: var(--color-dark-blue);
}
.offcanvas-header img { height: 45px; }

.offcanvas-close {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.4rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.offcanvas-close:hover { background: var(--color-secondary); }

.offcanvas-links {
    flex: 1;
    padding: 10px 0;
}
.offcanvas-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.offcanvas-links li a i {
    color: var(--color-secondary);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.offcanvas-links li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
    border-left-color: var(--color-secondary);
}
.offcanvas-links li.active a {
    background: rgba(69, 194, 200, 0.15);
    color: var(--color-secondary);
    border-left-color: var(--color-secondary);
    font-weight: 700;
}
.offcanvas-links li:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.offcanvas-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px;
    padding: 14px;
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.3s;
}
.offcanvas-contact-btn:hover { background: #3aa8ad; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .clients-section .container { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-card { margin: 0 auto; }
    .top-bar .container { flex-direction: column; gap: 10px; }
    .cta-card { flex-direction: column; text-align: center; gap: 20px; }
    .cta-btn { text-align: center; }
    .content-two-col { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    /* Navigation : afficher hamburger, masquer les liens et le bouton contact */
    .nav-hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-contact-btn { display: none; }

    .main-nav .container { justify-content: space-between; }

    .cards-grid { grid-template-columns: 1fr; }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 1.8rem; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .client-types { grid-template-columns: 1fr; }
}

/* --- PAGE GALERIE --- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--color-secondary);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-secondary);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(29, 39, 84, 0.95), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-secondary);
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.gallery-zoom {
    background: var(--color-secondary);
    border: none;
    color: var(--color-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.gallery-zoom:hover {
    background: var(--color-white);
    transform: scale(1.1);
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 22, 53, 0.95);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    color: var(--color-primary);
    padding: 15px;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.lightbox-caption h3 {
    color: var(--color-primary);
    margin-bottom: 5px;
}

.lightbox-caption p {
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--color-secondary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.2);
    border: 2px solid var(--color-secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 1.2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Responsive Galerie */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
}