/* --------------------------------------------------------------------------
   GOLDEN EAGLE LUXURY INDUSTRIAL DESIGN SYSTEM - MAXAM CLONE
   Palette: Or Métallique (#D4AF37) pour remplacer le Rouge MAXAM
--------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --gold: #D4AF37;
    --gold-dark: #b89629;
    --gold-light: #f5d467;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --gray-dark: #333333;
    --gray-text: #666666;
    --black: #000000;
    --bg-dark: #222222;
    --font-main: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--gray-dark);
    line-height: 1.5;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.text-center { text-align: center; }
.white { color: var(--white); }
.gray { color: var(--gray-dark); }
.bg-dark { background-color: var(--bg-dark); }
.bg-light { background-color: var(--gray-light); }
.bg-gray-70 { background-color: #383838; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    color: var(--white);
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-outline-dark {
    border-color: var(--gray-dark);
    color: var(--gray-dark);
    background: transparent;
}

.btn-outline-dark:hover {
    background-color: var(--gray-dark);
    color: var(--white);
}

/* -----------------------------------------------------
   NAVIGATION & HEADER (MAXAM STYLE)
------------------------------------------------------ */
.nav-sidebar {
    position: fixed;
    top: 70px; /* Just below the header */
    left: 0;
    z-index: 1050;
}

.nav-switch {
    width: 75px;
    height: 150px;
    background-color: var(--gold);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    cursor: pointer;
    position: relative;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 15px; /* Position the hamburger lines */
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.nav-switch:hover {
    transform: scale(1.05);
}

.nav-switch-inner {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-switch-line {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: 0.3s;
}

.nav-switch.active .nav-switch-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-switch.active .nav-switch-line:nth-child(2) {
    opacity: 0;
}
.nav-switch.active .nav-switch-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar Menu Panel */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(212, 175, 55, 0.95); /* Gold transparent background like Maxam's Red */
    z-index: 1040;
    transition: left 0.4s ease;
    overflow-y: auto;
    padding-left: 60px;
}

.nav-menu.active {
    left: 0;
}

.nav-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-menu-top .logo-white img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.top-search-white {
    display: flex;
    gap: 20px;
}

.top-search-white a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-menu-links {
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.nav-box {
    min-width: 200px;
}

.nav-box h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.nav-box ul li {
    margin-bottom: 10px;
}

.nav-box ul li a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 300;
}

.nav-box ul li a:hover {
    padding-left: 5px;
    font-weight: 500;
}

/* Header */
.header {
    position: fixed; /* Header stays at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.bg-white {
    background-color: var(--white);
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-page {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-color img {
    height: 40px;
    object-fit: contain;
}

.top-search-color {
    display: flex;
    gap: 30px;
    align-items: center;
}

.top-search-color a {
    color: var(--gray-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.top-search-color a i {
    margin-right: 5px;
}

/* -----------------------------------------------------
   MAIN CONTENT
------------------------------------------------------ */
/* Hero Section */
.head-top {
    position: relative;
    height: 100vh;
    padding-top: 70px; /* Space for the fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.panorama-360 {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/pano_360_quarry.jpg');
    background-size: auto 100%;
    background-position: 0% 50%;
    animation: pan360 40s linear infinite alternate;
}

@keyframes pan360 {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.head-top-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.head-top-content h1 {
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.2;
    margin-bottom: 20px;
}

.head-top-content h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mod Slider */
.mod-slider {
    background-color: var(--white);
}

.slide-content {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.slide-video {
    flex: 1 1 50%;
    position: relative;
    min-height: 400px;
}

.slide-video img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.slide-texto {
    flex: 1 1 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    padding: 5% 8%;
}

.slide-texto-inner h2 {
    font-size: 2.2rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.slide-texto-inner p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 30px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    color: white;
}

.slide-indicators h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
}

/* Mapa Home */
.mapa-home {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white);
}

.mapa-home h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.mapa-titre-filtre {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mapa-filtre {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.mapa-filtre li button {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--gray-text);
    cursor: pointer;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.mapa-filtre li.active button,
.mapa-filtre li button:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.mapa-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 60px 0;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="%23e5e7eb"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    border-radius: 8px;
    box-shadow: inset 0 0 50px rgba(255,255,255,1);
}

.cifras-lista {
    position: relative;
    width: 100%;
    z-index: 2;
}

.cifras-lista ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.cifra-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-width: 200px;
    transition: transform 0.3s;
}

.cifra-box:hover {
    transform: translateY(-5px);
}

.cifra-box p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cifra-box .cifra {
    font-size: 4rem;
    display: block;
    line-height: 1;
    color: var(--gold);
    font-weight: 900;
    margin-bottom: 10px;
}

/* Destacados */
.destacados-img-text {
    display: flex;
    flex-wrap: wrap;
}

.destacados-img {
    flex: 1 1 50%;
    min-height: 400px;
    position: relative;
}

.destacados-img img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.destacados-content {
    flex: 1 1 50%;
    padding: 6% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.destacados-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.destacados-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.order-2 { order: 2; }
.order-1 { order: 1; }

@media (max-width: 768px) {
    .slide-video, .slide-texto,
    .destacados-img, .destacados-content {
        flex: 1 1 100%;
    }
    .order-2 { order: 1; }
    .order-1 { order: 2; }
}

/* News Section */
.related-items {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.related-items h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.lista-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.lista-contenido li {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.lista-contenido li:hover {
    transform: translateY(-5px);
}

.lista-contenido a {
    display: block;
    color: inherit;
}

.lista-contenido img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.text-cont {
    padding: 20px;
}

.text-cont h3 {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.text-cont h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.text-cont p {
    font-size: 0.95rem;
    color: var(--gray-text);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    padding: 60px 0 30px;
    color: var(--gray-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--gray-text);
}

.footer ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}


/* === RECOVERED PAGE STYLES === */
/* --------------------------
   Other Pages existing styles
--------------------------- */
.page-header {
    background-color: var(--black);
    background-image: url('assets/bande.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    aspect-ratio: 21 / 5;
    max-height: 250px;
}
.page-header.about-banner {
    background-image: url('assets/qui sommes nous bande.jpg');
}
.page-header .container {
    display: none;
}
.page-subtitle {
    display: none;
}
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem; }
.service-row.reverse .service-row-img { order: 2; }
.service-row-img { overflow: hidden; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-row-img img { height: 400px; width: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-row-img:hover img { transform: scale(1.05); }
.service-title-lg { font-size: 2.5rem; }
.about-magazine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.lead-p { font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; color: var(--gray-dark); margin-bottom: 1.5rem; }
.core-values { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.value-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; transition: transform 0.3s; }
.value-item:hover .value-icon { transform: translateY(-5px); }
.img-collage { position: relative; height: 600px; }
.collage-img-1 { width: 80%; height: 400px; object-fit: cover; position: absolute; top: 0; right: 0; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); transition: transform 0.4s ease; z-index: 1; }
.collage-img-2 { width: 60%; height: 300px; object-fit: cover; position: absolute; bottom: 0; left: 0; border: 10px solid var(--white); border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); transition: transform 0.4s ease; z-index: 2; }
.img-collage:hover .collage-img-1 { transform: translateY(-10px); }
.img-collage:hover .collage-img-2 { transform: translateY(-5px) scale(1.05); }
.contact-magazine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-detail-box { margin-bottom: 2rem; transition: transform 0.3s; }
.contact-detail-box:hover { transform: translateX(10px); }
.contact-form-col { padding: 3rem; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-top: 4px solid var(--gold); }
.magazine-form input, .magazine-form textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 1rem; font-family: var(--font-body); background-color: var(--white); transition: border-color 0.3s, box-shadow 0.3s; }
.magazine-form input:focus, .magazine-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204,153,51,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --------------------------
   Event Gallery (CSS Grid)
--------------------------- */
.gallery-section {
    background-color: var(--white);
    padding: 100px 0;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.item-tall {
    grid-row: span 2;
}

.gallery-item.item-wide {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 768px) {
    .event-gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    .gallery-item.item-large,
    .gallery-item.item-tall,
    .gallery-item.item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15,16,17,0.9) 0%, rgba(15,16,17,0.4) 50%, rgba(15,16,17,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2rem;
    color: var(--white);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.event-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.event-desc {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .event-title,
.gallery-item:hover .event-desc {
    transform: translateY(0);
}

/* --------------------------
   Responsive Design
--------------------------- */
@media (max-width: 992px) {
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .services-preview-grid { grid-template-columns: 1fr; }
    .footer-grid, .service-row, .about-magazine-grid, .contact-magazine-grid { grid-template-columns: 1fr; }
    .service-row.reverse .service-row-img { order: 0; }
    .top-bar { display: none; }
    .hero-immersive-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr; }
    
    
    
    .menu-toggle { display: flex; }
    .menu-toggle .bar {
        height: 2px;
        width: 30px;
        background-color: var(--black);
        margin: 4px 0;
    }

    .nav-list {
        display: none;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-list.active { display: flex; }
    .page-title { font-size: 3rem; }
    .hero-immersive-title { font-size: 2.5rem; }
}
/* Social Links */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--black);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-link:hover {
    background-color: var(--black);
    color: var(--gold);
}

/* --------------------------
   Product Grid (products.html)
--------------------------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(204, 153, 51, 0.15);
    border-color: var(--gold);
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--gold);
    color: var(--white);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 30px;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.product-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.product-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--gold);
    margin-right: 10px;
    font-size: 0.8rem;
}

.product-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.product-card:hover .product-btn {
    background-color: var(--gold);
    color: var(--white);
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* === INNER PAGES PREMIUM DESIGN === */
.hero-inner {
    height: 50vh !important;
}
.page-intro {
    padding: 100px 20px 60px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.page-intro-category {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}
.page-intro h2 {
    font-size: 2.8rem;
    color: var(--gray-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}
.page-intro p {
    font-size: 1.15rem;
    color: var(--gray-text);
    line-height: 1.8;
}
.gold-line {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 30px auto;
}
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 5% 100px;
    max-width: 1400px;
    margin: 0 auto;
}
.premium-card {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 4px;
    overflow: hidden;
}
.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.card-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.premium-card:hover .card-img img {
    transform: scale(1.08);
}
.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
}
.card-content {
    padding: 40px 30px;
}
.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--gray-dark);
}
.card-content p {
    color: var(--gray-text);
    margin-bottom: 25px;
    line-height: 1.7;
}
.card-link {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}
.card-link i {
    margin-left: 8px;
    transition: transform 0.3s;
}
.card-link:hover {
    color: var(--gray-dark);
}
.card-link:hover i {
    transform: translateX(5px);
}
.cta-banner {
    background: var(--gray-dark);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}
.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* === MAPA HOME INTERACTIVE === */
.mapa-home {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}
.mapa-home h1 {
    font-size: 2.8rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}
.mapa-titre-filtre {
    font-size: 0.9rem;
    color: var(--gray-text);
    letter-spacing: 2px;
    margin-bottom: 40px;
}
.mapa-filtre {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}
.mapa-filtre button {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--gray-text);
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}
.mapa-filtre li.active button, .mapa-filtre button:hover {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}
.mapa-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 80px;
    height: 450px;
    background-image: radial-gradient(#d1d5db 2px, transparent 2px);
    background-size: 30px 30px;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
}
.map-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 0 0 rgba(204, 163, 0, 0.7);
    animation: pulse-gold 2s infinite;
    z-index: 5;
}
.map-dot:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 10;
}
.map-dot .tooltip {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--gray-dark);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.map-dot:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(204, 163, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(204, 163, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(204, 163, 0, 0); }
}
.cifras-lista {
    position: absolute;
    bottom: -50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 20;
}
.cifra-box {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 25px 40px;
    border-radius: 8px;
    text-align: center;
    min-width: 220px;
    transition: transform 0.3s;
}
.cifra-box:hover {
    transform: translateY(-5px);
}
.cifra-box .cifra {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
}
.cifra-box p {
    color: var(--gray-dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0;
}


/* ==========================================================================
   RESPONSIVENESS & MOBILE ADAPTABILITY
   ========================================================================== */

/* --- Typography & Hero Sections --- */
@media (max-width: 991px) {
    .hero-tagline {
        font-size: 2.5rem !important;
        padding: 0 20px;
    }
    .head-top h2 {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    .page-intro {
        padding: 60px 20px 40px;
    }
    .page-intro h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero-tagline {
        font-size: 2rem !important;
    }
    .page-intro h2 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* --- Alternating Image/Text Blocks (destacados) --- */
@media (max-width: 991px) {
    .destacados-img-text {
        flex-direction: column !important;
    }
    .destacados-img {
        width: 100% !important;
        height: 300px;
    }
    .destacados-img.order-2 {
        order: 1 !important;
    }
    .destacados-content {
        width: 100% !important;
        padding: 40px 30px !important;
    }
    .destacados-content.order-1 {
        order: 2 !important;
    }
}

/* --- Navigation & Menu --- */
@media (max-width: 991px) {
        .nav-sidebar {
        width: auto;
    }
        .nav-switch {
        width: 70px;
        height: 70px;
        padding: 15px 0 0 15px; /* align hamburger to top-left corner */
        align-items: flex-start;
        justify-content: flex-start;
    }
        .nav-switch-inner {
        width: 22px;
        height: 18px;
    }
    .nav-switch.active .nav-switch-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-switch.active .nav-switch-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-menu {
        padding-left: 55px;
    }
        .nav-menu-links {
        flex-direction: column;
        gap: 20px;
        padding: 20px 20px 80px 10px;
        overflow-y: visible;
        height: auto;
    }
    .nav-menu-top {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .top-search-white, .top-search-color {
        display: none;
    }
}

/* --- Premium Grids & Cards --- */
@media (max-width: 768px) {
    .premium-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }
    .card-img {
        height: 220px;
    }
    .card-content {
        padding: 30px 20px;
    }
}

/* --- Map & Global Presence --- */
@media (max-width: 991px) {
    .mapa-filtre {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 30px;
    }
    .mapa-container {
        height: 300px;
    }
    .map-dot:hover .tooltip {
        transform: translateX(-50%) translateY(20px);
        font-size: 0.7rem;
    }
    .cifras-lista {
        position: relative;
        bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    .cifra-box {
        width: 90%;
        max-width: 300px;
        padding: 15px 20px;
    }
    .cifra-box .cifra {
        font-size: 2.5rem;
    }
    .mapa-home {
        padding-bottom: 80px;
    }
}

/* --- Slider & Related Items (News) --- */
@media (max-width: 768px) {
    .mod-slider .slide-texto {
        position: relative;
        width: 100%;
        padding: 40px 20px;
        background: rgba(0,0,0,0.8);
    }
    .mod-slider .slide-content {
        flex-direction: column;
    }
    .lista-contenido {
        grid-template-columns: 1fr;
    }
    .lista-contenido li img {
        height: 200px;
    }
}

/* --- Footer --- */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* ==========================================================================
   FINAL MOBILE FIXES (OVERFLOWS & SPACING)
   ========================================================================== */

/* Fix horizontal scroll issues completely */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 991px) {
    /* Header padding */
    .head-top {
        padding: 10px 15px !important;
    }
    
    /* Map Container needs to grow on mobile to fit the stacked boxes */
    .mapa-container {
        height: auto !important;
        min-height: 350px;
        padding-bottom: 40px; /* Space for boxes inside */
    }
    
    /* Make the boxes fit properly */
    .cifras-lista {
        position: relative !important;
        bottom: auto !important;
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
        margin-top: 50px;
    }
    
    .cifra-box {
        width: 100% !important;
        max-width: 280px;
    }
    
    .mapa-home {
        padding-bottom: 60px !important;
    }

    /* Fix image and text block alignments for AOS */
    .destacados-img-text {
        overflow: hidden; /* prevents fade-right from breaking layout */
    }
    
    /* Formspree Contact Form Mobile */
    form {
        padding: 20px !important;
    }
}

@media (max-width: 991px) {
    .nav-menu {
        padding-bottom: 50px;
    }
    /* Ensure the toggle button is easy to tap by increasing touch target implicitly */
    .nav-switch {
        cursor: pointer;
        touch-action: manipulation;
    }
}

@media (max-width: 991px) {
    /* Cache les points dorés sur mobile car ils chevauchent les cases blanches empilées */
    .map-dot {
        display: none !important;
    }
}

/* FORCE HEADER TO OVERLAY HERO ON MOBILE */
.head-top {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: transparent !important; /* Fix white background issue on mobile */
}

/* Ensure the gold overlay menu stays fixed to the viewport when opened */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        height: 100vh !important;
    }
}
