@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bleu: #0d6efd;
    --lightblue: #e3f2fd;
    --bordeaux: #900020;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --nav-bg: var(--bleu);
    --nav-text: #ffffff;
}

:root.dark-mode {
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --bg-light: #0f172a;
    --card-bg: #1e293b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.gma-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .gma-brand {
        font-size: 2.5rem;
    }
}


.gma-brand small {
    color: var(--bordeaux);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: 2px;
}

.navbar-brand .gma-brand {
    font-size: 2rem;
    font-weight: 900;
    flex-direction: column;
    gap: 0;
    align-items: center;
    line-height: 0.8;
}

@media (min-width: 768px) {
    .navbar-brand .gma-brand {
        font-size: 2.8rem;
    }
}


.navbar-brand .gma-brand small {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0;
    letter-spacing: 2.5px;
}

.nav-link {
    color: var(--nav-text) !important;
    font-weight: 600;
    font-size: 0.85rem;
    /* Légère réduction pour tenir sur une ligne */
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 2px;
    white-space: nowrap;
    /* Empêche le retour à la ligne */
}

@media (min-width: 1200px) {
    .nav-link {
        font-size: 0.95rem;
        padding: 8px 16px !important;
        margin: 0 4px;
    }
}

.nav-link:hover,
.nav-link.active {
    background: var(--lightblue) !important;
    color: var(--bleu) !important;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(144, 0, 32, 0.03) 0%, transparent 40%),
        var(--bg-light);
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo img {
    max-height: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.hero-text h1 .highlight,
.highlight {
    color: var(--bleu);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ==================== TITRES ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.section-title span {
    color: var(--bleu);
}

/* ==================== CARTES & LOGOS ==================== */
.logo-box,
.brand-box,
.product-card,
.service-card,
.address-card,
.outil-card,
.engin-card,
.contact-card,
.contact-info {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.text-start.address-card,
.text-start.contact-card {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
}

.logo-box:hover,
.brand-box:hover,
.product-card:hover,
.service-card:hover,
.address-card:hover,
.outil-card:hover,
.engin-card:hover,
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.1);
}

.logo-box img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.brand-box {
    padding: 1.5rem;
}

.brand-box img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s;
}

.brand-box:hover img {
    filter: grayscale(0%) opacity(1);
}

.product-card img,
.engin-card img {
    height: 160px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.product-card h5,
.service-card h4,
.outil-card h4,
.engin-card h5,
.contact-card h3 {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-card p,
.service-card p,
.outil-card p,
.engin-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.service-card i,
.outil-card i,
.contact-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--bleu), #4dabf7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.address-card i {
    font-size: 2.5rem;
    color: var(--bordeaux);
    margin-bottom: 1rem;
}

/* ==================== BOUTONS ==================== */
.btn-primary-custom {
    background: var(--bleu);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(13, 110, 253, 0.3);
    color: white;
}

.btn-light-custom {
    background: white;
    color: var(--bleu);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.btn-light-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--bleu), #004ecc);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 30px;
    margin: 4rem auto;
    max-width: 1200px;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.cta-section .btn-light-custom {
    position: relative;
    z-index: 2;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    background: radial-gradient(circle at 50% 10%, rgba(13, 110, 253, 0.03) 0%, transparent 60%),
        var(--bg-light);
    padding: 180px 20px 80px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-hero.contact-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
        url('../img/gma_contact_hero_bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 220px 20px 120px;
}

.page-hero.contact-hero h1,
.page-hero.contact-hero p {
    color: white !important;
}

.social-badge {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-badge:hover {
    transform: translateX(10px);
    border-color: var(--bleu);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.social-badge i {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--lightblue);
    color: var(--bleu);
}

.icon-box-primary {
    width: 60px;
    height: 60px;
    background: var(--bleu);
    color: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: var(--nav-bg);
        margin: 0 -1rem;
        padding: 1rem;
        border-radius: 0 0 20px 20px;
    }

    .nav-link {
        padding: 12px 20px !important;
        margin: 5px 0;
        text-align: center;
    }

    .hero {
        padding: 140px 20px 60px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.05rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-logo img {
        max-height: 250px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .page-hero {
        padding: 140px 20px 60px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }

    .cta-section {
        margin: 2rem 1rem;
        padding: 3rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .card, .logo-box, .brand-box, .product-card, .service-card, .address-card, .engin-card, .contact-card {
        padding: 2rem 1.5rem;
    }

    /* Remove side borders on stacked elements */
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .dark-mode .border-end {
        border-bottom-color: rgba(255,255,255,0.1);
    }
}


@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.1rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .gma-brand {
        font-size: 1.6rem;
    }

    .navbar-brand .gma-brand {
        font-size: 1.8rem;
    }

    .navbar-brand .gma-brand small {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .btn-primary-custom, .btn-light-custom {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .logo-box, .brand-box {
        padding: 1.2rem 0.8rem;
    }
}



footer {
    background: #0f172a !important;
    padding: 4rem 0 !important;
}

footer p {
    opacity: 0.7;
    font-size: 0.95rem !important;
}