/* GENERAL.CSS - Shared styles across all pages */

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

body {
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}



/* NAVIGATION - Fixed structure */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 50px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo strong {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    text-transform: capitalize;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.active {
    color: #fff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #7f9b4d;
}

.lang-toggle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 400;
}

.lang-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-toggle .active-lang {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.donate-nav-btn {
    background: #7f9b4d;
    color: white;
    padding: 9px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    /* REMOVED: text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.donate-nav-btn:hover {
    background: #6d8540;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(127, 155, 77, 0.3);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile navigation overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* UPDATED: Mobile nav links to match header menu styling */
.mobile-nav a {
    display: block;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, sans-serif; /* UPDATED: Match header font */
    font-size: 1.5rem; /* UPDATED: Slightly larger for mobile but proportional */
    font-weight: 400; /* UPDATED: Match header font weight */
    margin: 30px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: capitalize; /* UPDATED: Match header text transform */
}

.mobile-nav a:hover {
    color: #7f9b4d;
    transform: translateY(-2px);
}

/* UPDATED: Mobile nav donate button to match desktop styling */
.mobile-nav .donate-nav-btn {
    background: #7f9b4d;
    color: white;
    padding: 12px 25px; /* UPDATED: Slightly larger padding for mobile */
    border-radius: 20px;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, sans-serif; /* UPDATED: Match header font */
    font-weight: 400; /* UPDATED: Match header font weight */
    font-size: 1rem; /* UPDATED: Consistent with desktop */
    transition: all 0.3s ease;
    /* REMOVED: text-transform: uppercase; */
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 30px 0;
}

.mobile-nav .donate-nav-btn:hover {
    background: #6d8540;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 155, 77, 0.3);
}

/* UPDATED: Mobile nav language toggle to match styling */
.mobile-nav .lang-toggle {
    color: rgba(255, 255, 255, 0.5);
    font-family: "Helvetica Neue", Helvetica, sans-serif; /* UPDATED: Match header font */
    font-size: 1.2rem; /* UPDATED: Appropriate size for mobile */
    font-weight: 400; /* UPDATED: Match header font weight */
    cursor: pointer;
    transition: color 0.3s ease;
    margin: 30px 0;
    display: block;
}

.mobile-nav .lang-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav .lang-toggle .active-lang {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* Prevent body scroll when mobile menu is open */
body.nav-open {
    overflow: hidden;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-content {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .nav-content {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.4rem;
    }
}

/* GENERAL UTILITY CLASSES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #7f9b4d;
    color: white;
}

.btn-primary:hover {
    background: #6d8540;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 155, 77, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #7f9b4d;
    border: 2px solid #7f9b4d;
}

.btn-secondary:hover {
    background: #7f9b4d;
    color: white;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* FOOTER */
.footer {
    background: #000;
    color: #999;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #7f9b4d;
}

/* ============================= */
/* FAUNA MOROCCO - PROTECTION PROPRE SANS POP-UPS */
/* VERSION SANS MESSAGES CHIANTS ! */
/* À ajouter à css/general.css */
/* ============================= */

/* PROTECTION DE BASE - SILENCIEUSE */
img {
    /* Protection contre la sélection */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    
    /* Protection contre le glisser-déposer */
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    
    /* Protection mobile */
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* EXCEPTIONS - IMAGES QUI DOIVENT RESTER FONCTIONNELLES */
[data-lightbox] img,
.lightbox-trigger img,
.clickable-image img,
nav img,
.logo img,
.nav img {
    /* Conserve les fonctionnalités */
    cursor: pointer !important;
    
    /* Garde la protection contre la copie */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    
    /* Permet le menu tactile pour ces images */
    -webkit-touch-callout: default !important;
}

/* PROTECTION CONTRE LA SÉLECTION VISUELLE */
img::-moz-selection {
    background: transparent !important;
}

img::selection {
    background: transparent !important;
}

/* PROTECTION DANS LA LIGHTBOX */
.lightbox-image,
.lightbox-overlay img {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    user-drag: none !important;
    -webkit-touch-callout: none !important;
    pointer-events: none !important;
}

/* ============================= */
/* SUPPRESSION DE TOUS LES MESSAGES DE PROTECTION */
/* ============================= */

/* S'assure qu'aucun message de protection ne s'affiche */
[id*="protection-message"],
[class*="protection-message"],
.protection-message,
#fauna-protection-message {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ============================= */
/* PROTECTION RESPONSIVE PROPRE */
/* ============================= */

/* Mobile - Protection sans casser l'UX */
@media (max-width: 768px) {
    img {
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Exception pour les images cliquables sur mobile */
    [data-lightbox] img,
    .clickable-image img {
        -webkit-touch-callout: default !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1) !important;
    }
}

/* ============================= */
/* COMPATIBILITÉ NAVIGATEURS */
/* ============================= */

/* Firefox */
@-moz-document url-prefix() {
    img {
        -moz-user-select: none !important;
        -moz-user-drag: none !important;
    }
}

/* Safari */
@supports (-webkit-touch-callout: none) {
    img {
        -webkit-user-select: none !important;
        -webkit-user-drag: none !important;
        -webkit-touch-callout: none !important;
    }
    
    [data-lightbox] img,
    .clickable-image img {
        -webkit-touch-callout: default !important;
    }
}

/* Partners Showcase Section */
.partners-showcase {
    background: #f8f9fa;
    padding: 10px 0;
}

.partners-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* Add back side padding */
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    justify-items: center;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    min-height: 150px;
}

.partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.partner-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-item a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partner-item {
        max-width: 160px;
        min-height: 120px;
    }
    
    .partner-item img {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .partners-container {
        padding: 0 15px; /* Smaller padding on mobile */
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partner-item {
        max-width: 140px;
        min-height: 100px;
    }
    
    .partner-item img {
        max-height: 100px;
    }
}