/**
 * AGS Layout Styles
 */

/* === Header === */
.header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: #ffffff;
    transition: none;
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* === Logo === */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    width: 250px;
    /* Reserve space for the width */
    height: 90px;
}

.logo-img {
    position: absolute;
    top: -20px;
    /* Moved down slightly more */
    left: 0;
    height: 160px;
    /* Slightly reduced */
    width: auto;
    max-width: none;
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    z-index: 1000;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* === Navigation === */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    position: relative;
    transition: all var(--transition-fast);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* Different colors for each nav link */
.nav-menu li:nth-child(1) .nav-link {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.nav-menu li:nth-child(2) .nav-link {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.nav-menu li:nth-child(3) .nav-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-menu li:nth-child(4) .nav-link {
    background: linear-gradient(135deg, #6cac38 0%, #5a9130 100%);
    box-shadow: 0 2px 8px rgba(108, 172, 56, 0.3);
}

.nav-item-join .nav-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    /* Emerald Green */
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.nav-item-contact .nav-link {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    /* Orange */
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.nav-link.active::after {
    display: none;
}

/* === Mobile Menu Toggle === */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* === Top Bar (phone/email) === */
.top-bar {
    background: var(--color-gray-800);
    color: white;
    padding: var(--space-2) 0;
    font-size: var(--font-size-xs);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.top-bar-contact {
    display: flex;
    gap: var(--space-6);
}

.top-bar-contact a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.top-bar-contact a:hover {
    color: white;
}

.top-bar-social {
    display: flex;
    gap: var(--space-3);
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar-social a:hover {
    color: white;
}

/* === Footer === */
.footer {
    background: var(--color-gray-800);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: var(--space-4) 0;
    font-size: var(--font-size-sm);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-teal);
    transform: translateY(-3px);
}

.footer-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: white;
}

/* === Responsive === */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        color: var(--color-gray-700);
    }

    .header-actions {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .top-bar {
        display: none;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* === Hero Banner === */
/* === Hero Banner === */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 85vh;
    /* Increased height for impact */
    margin-top: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-banner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 0;
}

/* Gradient Overlay - Professional & Vibrant */
.hero-banner-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 92, 122, 0.85) 0%,
            rgba(0, 72, 96, 0.5) 50%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8);
    color: white;
    text-align: left;
    /* Matching modern layouts */
    padding-top: var(--space-12);
}

/* Typography - "Infographier comme un expert" Style */
.hero-banner-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-line-1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ffffff;
    /* Clean, powerful white text */
}

.title-line-2 {
    font-size: 3rem;
    font-weight: 400;
    /* Contrast weight */
    color: #ffd700;
    /* Gold/Yellow for emphasis "Monde Solidaire" idea */
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffd700 0%, #ffbf00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-banner-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: var(--space-8);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--color-teal);
    /* Design accent */
    padding-left: var(--space-4);
}

/* Buttons - "Extraordinary" Model */
.hero-banner-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.hero-banner-actions .btn {
    border-radius: 50px;
    /* Pill shape */
    padding: 16px 36px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-banner-actions .btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.hero-banner-actions .btn-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
}

.hero-banner-actions .btn:hover {
    transform: translateY(-4px) scale(1.05);
    /* Interactive feel */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-banner-actions .btn-icon {
    font-size: 1.2em;
}

/* Organic Bottom Wave */
.hero-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,261.3C960,256,1056,224,1152,197.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
}

/* Responsive Adpatations */
@media (max-width: 968px) {
    .hero-banner {
        min-height: auto;
        padding-bottom: 15vw;
        /* Space for wave */
        text-align: center;
    }

    .hero-banner-content {
        text-align: center;
        align-items: center;
        padding-top: 60px;
    }

    .hero-banner-subtitle {
        margin-left: auto;
        margin-right: auto;
        border-left: none;
        border-bottom: 3px solid var(--color-teal);
        padding-left: 0;
        padding-bottom: var(--space-2);
    }

    .hero-banner-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .title-line-1 {
        font-size: 2.5rem;
    }

    .title-line-2 {
        font-size: 1.8rem;
    }

    .hero-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === Hero Decorations === */
.hero-decorations {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: hidden;
}

/* Thick Static Colored Lines */
.hero-line {
    position: absolute;
    bottom: 0;
    height: 15px;
    opacity: 1;
}

.line-green {
    width: 100%;
    background: var(--color-green);
    bottom: 0;
    z-index: 1;
}

.line-orange {
    width: 100%;
    background: var(--color-orange);
    bottom: 15px;
    /* Stacked right above green */
    z-index: 2;
}

.line-dark-orange {
    width: 100%;
    background: var(--color-orange-dark);
    /* Dark orange */
    top: 0;
    bottom: auto;
    z-index: 4;
    /* Highest z-index to be on top */
}