/**
 * ========================================
 * TIGSI HEADER & FOOTER STYLES
 * ========================================
 * Styles pour le header et footer
 */


/* ============================================================
   HEADER TIGSI - MOBILE FIRST
   ============================================================ */

.tigsi-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, rgba(39, 45, 59, 0.98) 0%, rgba(33, 44, 86, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(109, 198, 212, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Scrolled state */
.tigsi-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(33, 44, 86, 0.95);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.3);
}

/* Header Container */
.tigsi-header-container {
    max-width: var(--tigsi-container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--tigsi-container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

/* Logo */
.tigsi-header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    max-width: 140px;
}

.tigsi-header-logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tigsi-header-logo:hover {
    transform: scale(1.05);
}

.tigsi-header.scrolled .tigsi-header-logo img {
    height: 35px;
}

/* Navigation Desktop */
.tigsi-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.tigsi-nav-links {
    display: flex;
    flex-direction: row;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tigsi-nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-left: none;
    border-bottom: 4px solid transparent;
    position: relative;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.tigsi-nav-link:hover {
    background: rgba(109, 198, 212, 0.05);
    border-bottom-color: rgba(109, 198, 212, 0.5);
    color: var(--tigsi-primary);
}

.tigsi-nav-link.active {
    background: linear-gradient(135deg, rgba(109, 198, 212, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    border-bottom-color: var(--tigsi-primary);
    color: var(--tigsi-primary);
    font-weight: 700;
    position: relative;
}

.tigsi-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tigsi-primary) 0%, var(--tigsi-purple) 100%);
    border-radius: 4px 4px 0 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.tigsi-nav-link i {
    display: none;
}

/* Desktop - Masquer le bouton mobile */
@media (min-width: 768px) {
    .tigsi-menu-toggle {
        display: none !important;
    }
}

/* Mobile - Masquer la navigation desktop */
@media (max-width: 767px) {
    .tigsi-nav {
        display: none !important;
    }

    .tigsi-menu-toggle {
        display: flex !important;
    }
}

/* ============================================================
   FOOTER TIGSI - MOBILE FIRST
   ============================================================ */

.tigsi-footer {
    background: linear-gradient(135deg, #212C56 0%, #272D3B 100%);
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    width: 100%;
    max-width: 100vw;
    /* overflow-x: hidden; */
    box-sizing: border-box;
}

.tigsi-footer-container {
    max-width: var(--tigsi-container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--tigsi-container-padding);
    box-sizing: border-box;
    /* overflow: hidden; */
}

/* Footer Grid - Mobile First */
.tigsi-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer Box */
.tigsi-footer-box {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Logo & Description */
.tigsi-footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.tigsi-footer-logo img {
    height: 50px;
    width: auto;
}

.tigsi-footer-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Footer Headings */
.tigsi-footer-box h3 {
    color: var(--tigsi-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(109, 198, 212, 0.2);
    display: inline-block;
}

/* Social Links */
.tigsi-footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tigsi-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(109, 198, 212, 0.1);
    border: 2px solid var(--tigsi-primary);
    border-radius: 50%;
    color: var(--tigsi-primary);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tigsi-footer-social-link:hover {
    background: var(--tigsi-gradient-primary);
    color: #ffffff;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(109, 198, 212, 0.4);
}

/* Footer Links */
.tigsi-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tigsi-footer-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.tigsi-footer-link i {
    margin-right: 0.75rem;
    color: var(--tigsi-primary);
    transition: all 0.3s ease;
}

.tigsi-footer-link:hover {
    color: var(--tigsi-primary);
    padding-left: 0.5rem;
}

.tigsi-footer-link:hover i {
    transform: translateX(5px);
}

/* Contact Info */
.tigsi-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tigsi-footer-contact-item {
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tigsi-footer-contact-item i {
    color: var(--tigsi-primary);
    margin-right: 1rem;
    margin-top: 0.2rem;
    font-size: 1.1rem;
    min-width: 20px;
}

/* Newsletter Form */
.tigsi-footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tigsi-footer-newsletter-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(109, 198, 212, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.tigsi-footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tigsi-footer-newsletter-input:focus {
    border-color: var(--tigsi-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(109, 198, 212, 0.1);
}

.tigsi-footer-newsletter-btn {
    padding: 1rem 2rem;
    background: var(--tigsi-gradient-primary);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 198, 212, 0.3);
}

.tigsi-footer-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(109, 198, 212, 0.5);
}

/* Newsletter Feedback */
.tigsi-newsletter-feedback {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.tigsi-newsletter-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.tigsi-newsletter-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Footer Bottom */
.tigsi-footer-bottom {
    border-top: 1px solid rgba(109, 198, 212, 0.2);
    padding: 2rem 0 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.tigsi-footer-copyright {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tigsi-footer-legal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.tigsi-footer-legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tigsi-footer-legal-link:hover {
    color: var(--tigsi-primary);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (min-width: 576px) */
@media (min-width: 576px) {
    .tigsi-header {
        padding: 1.25rem 0;
    }

    .tigsi-header-logo img {
        height: 50px;
    }

    .tigsi-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .tigsi-header {
        padding: 1.75rem 0;
    }

    .tigsi-header-logo img {
        height: 55px;
    }

    .tigsi-nav-link {
        padding: 0.75rem 2rem;
        font-size: 1.05rem;
    }

    .tigsi-footer {
        padding: 4rem 0 1rem;
    }

    .tigsi-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }

    .tigsi-footer-newsletter-form {
        flex-direction: row;
    }

    .tigsi-footer-newsletter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
    .tigsi-nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 2.5rem;
    }

    .tigsi-footer-grid {
        gap: 4rem;
    }
}

/* ============================================================
   UTILITIES
   ============================================================ */

/* Smooth Scroll Padding (for fixed header) */
html {
    scroll-padding-top: 80px;
}
