@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== Base ===== */
body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* ===== Gradient Background ===== */
.gradient-bg {
    background: linear-gradient(135deg, #2E8B57 0%, #1F5E3B 50%, #163F2A 100%);
}

/* ===== Logo Text ===== */
.logo-text {
    background: linear-gradient(135deg, #2E8B57 0%, #2E8B57 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Animations ===== */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== Equipe (Team) Images ===== */
.equipe-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
}

/* ===== Team Card ===== */
.team-card {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .equipe-img {
        height: 200px;
    }

    h2 {
        font-size: 24px;
    }
}

/* ===== Theme Toggle Button ===== */
#theme-toggle {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    background: transparent;
}

#theme-toggle:hover {
    border-color: #2E8B57;
}

#theme-toggle .fa-moon {
    color: #475569;
}

#theme-toggle .fa-sun {
    color: #FBBF24;
}

/* ========================================================================
   DARK MODE
   ======================================================================== */

/* --- Global transitions for smooth theme switch --- */
body.dark-mode,
body.dark-mode *,
body.dark-mode *::before,
body.dark-mode *::after {
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* --- Body --- */
body.dark-mode {
    background-color: #0F172A;
    color: #E2E8F0;
}

/* --- Header --- */
body.dark-mode header {
    background-color: #1E293B;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode header h1 {
    color: #F1F5F9;
}

body.dark-mode header nav a {
    color: #94A3B8;
}

body.dark-mode header nav a:hover {
    color: #4ADE80;
}

body.dark-mode #menu-btn {
    color: #F1F5F9;
}

body.dark-mode #mobile-menu {
    background-color: #1E293B;
}

body.dark-mode #mobile-menu a {
    color: #94A3B8;
}

body.dark-mode #mobile-menu a:hover {
    color: #4ADE80;
}

/* --- Theme Toggle in Dark --- */
body.dark-mode #theme-toggle {
    color: #FBBF24;
}

body.dark-mode #theme-toggle:hover {
    background-color: #334155;
}

/* --- Hero Section (gradient-bg) --- */
body.dark-mode .gradient-bg {
    background: linear-gradient(135deg, #14532D 0%, #0F3D21 50%, #0A2615 100%);
}

/* --- Equipe Section --- */
body.dark-mode section[id="equipe"] {
    background-color: #0F172A;
}

body.dark-mode section[id="equipe"] h2 {
    color: #4ADE80;
}

body.dark-mode .team-card {
    background-color: #1E293B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

body.dark-mode .team-card h3 {
    color: #4ADE80;
}

body.dark-mode .team-card p {
    color: #94A3B8;
}

body.dark-mode .team-card strong {
    color: #E2E8F0;
}

body.dark-mode .team-card span {
    background-color: #14532D;
    color: #4ADE80;
}

/* --- About Section --- */
body.dark-mode section[id="about"] {
    background-color: #0F172A;
}

body.dark-mode section[id="about"] h2,
body.dark-mode section[id="about"] h3 {
    color: #F1F5F9;
}

body.dark-mode section[id="about"] p {
    color: #94A3B8;
}

body.dark-mode section[id="about"] .bg-white {
    background-color: #1E293B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- Testimonials Section --- */
body.dark-mode section.py-16.bg-white {
    background-color: #0F172A;
}

body.dark-mode section.py-16 h2 {
    color: #4ADE80;
}

body.dark-mode .bg-green-50 {
    background-color: #1E293B;
}

body.dark-mode .bg-green-50 p.text-green-800 {
    color: #CBD5E1;
}

body.dark-mode .bg-green-50 h4 {
    color: #4ADE80;
}

body.dark-mode .bg-green-50 p.text-sm {
    color: #64748B;
}

/* --- Contact Section --- */
body.dark-mode section[id="contact"] {
    background-color: #0F172A;
}

body.dark-mode section[id="contact"] h2,
body.dark-mode section[id="contact"] h3,
body.dark-mode section[id="contact"] h4 {
    color: #F1F5F9;
}

body.dark-mode section[id="contact"] .bg-gray-50 {
    background-color: #1E293B;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode section[id="contact"] p {
    color: #94A3B8;
}

body.dark-mode section[id="contact"] label {
    color: #CBD5E1;
}

body.dark-mode section[id="contact"] input,
body.dark-mode section[id="contact"] select,
body.dark-mode section[id="contact"] textarea {
    background-color: #0F172A;
    border-color: #334155;
    color: #E2E8F0;
}

body.dark-mode section[id="contact"] input:focus,
body.dark-mode section[id="contact"] select:focus,
body.dark-mode section[id="contact"] textarea:focus {
    border-color: #4ADE80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

body.dark-mode section[id="contact"] input::placeholder,
body.dark-mode section[id="contact"] textarea::placeholder {
    color: #475569;
}

/* --- Social icons in contact --- */
body.dark-mode section[id="contact"] .gradient-bg {
    background: linear-gradient(135deg, #14532D 0%, #0F3D21 50%, #0A2615 100%);
}

/* --- Footer --- */
body.dark-mode footer {
    background-color: #020617;
}

body.dark-mode footer h4 {
    color: #F1F5F9;
}

body.dark-mode footer a {
    color: #64748B;
}

body.dark-mode footer a:hover {
    color: #4ADE80;
}

body.dark-mode footer .border-gray-700 {
    border-color: #1E293B;
}

body.dark-mode footer .bg-gray-700 {
    background-color: #1E293B;
}

body.dark-mode footer .bg-white {
    background-color: #1E293B;
}

/* --- Logo Text in Dark --- */
body.dark-mode .logo-text {
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- WhatsApp Floating Button --- */
body.dark-mode .pulse.bg-green-500 {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

/* --- Map Section --- */
body.dark-mode .h-96 iframe {
    filter: brightness(0.8) contrast(1.1);
}

/* --- Scrollbar --- */
body.dark-mode::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #0F172A;
}

body.dark-mode::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

body.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #475569;
}