/* ==========================================================================
   STYLE NAVBARRE GLOBALE
   ========================================================================== */

/* 
   ==========================================================================
   STYLE DESKTOP (BASE)
   ========================================================================== 
*/

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    padding: 0 1rem !important;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    gap: 0.75rem;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    grid-column: 1;
    /* LEFT on Desktop */
    justify-self: start;
    margin-right: 1rem;
}

.logo:hover {
    opacity: 0.7;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Hamburger (Desktop: HIDDEN to restore "Beau mode PC") */
.hamburger {
    display: none !important;
    /* Hidden on Desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    grid-column: 1;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Nav Center (Desktop: FLEX Horizontal) */
.nav-center {
    display: flex !important;
    /* Visible and Flex on Desktop */
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    border: none;
    animation: none;
    justify-content: center;
    align-items: center;
    /* ALIGNEMENT VERTICAL */
    gap: 1rem;
    grid-column: 2;
    /* Center in grid */
}

/* Indicateur actif qui glisse (Desktop Only) */
.active-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #5A8FBD 0%, #B8D4EC 100%);
    border-radius: 2px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10;
}

.nav-link {
    width: auto;
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 1rem;
    color: #111;
    border-bottom: none;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    font-weight: 500;
}

.nav-link:active {
    background: transparent;
    transform: none;
}

.nav-link:hover {
    color: #5A8FBD;
    /* padding-left removed to prevent shift */
}

/* Dropdowns Desktop (Restoring "Beau mode PC" logic) */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown>.nav-link {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Chevron animation */
.nav-dropdown>.nav-link::before {
    content: '›';
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 1;
    transform: translateX(0) translateY(0px);
    transition: transform 0.3s ease;
    margin-right: 4px;
    display: inline-block;
}

.nav-dropdown:hover>.nav-link::before {
    transform: rotate(90deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 1.5rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: visible;
    /* Changed from hidden to visible to ensure shadows show, but visibility handles hide */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1100;
    width: max-content;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: transparent;
}

.dropdown-content>div {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 2rem;
    min-width: 280px;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    pointer-events: auto;
}

.dropdown-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #111;
    padding-bottom: 0.5rem;
}

.dropdown-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    min-width: 300px;
}

.dropdown-link {
    text-decoration: none;
    color: #4B5563;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    background: #F9FAFB;
}

.dropdown-link:hover {
    background: #5A8FBD;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(90, 143, 189, 0.2);
}

/* Contact Dropdown Specifics */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #F9FAFB;
}

.contact-link:hover .contact-item {
    background: #5A8FBD;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(90, 143, 189, 0.2);
}

.contact-link:hover .contact-icon {
    color: white;
}

.contact-link:hover .contact-text {
    color: white;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #8A8A8A;
    /* FIX FOR GIANT ICONS */
    min-width: 20px;
}

.contact-text {
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link-mobile-only {
    display: none !important;
}

.nav-dropdown-desktop {
    display: block !important;
}


/* Search Container (Desktop: RESTORED PILL) */
.search-container {
    display: block;
    grid-column: 3;
    justify-self: end;
    width: 220px;
    max-width: 220px;
    min-width: 220px;
    margin-right: 0;
    position: relative;
    background: #F5F5F5;
    border-radius: 100px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6B7280;
    pointer-events: none;
    z-index: 10;
}

.search-container input {
    width: 100%;
    height: 35px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: none;
    background: transparent;
    border-radius: 100px;
    outline: none;
    font-size: 0.9rem;
    color: #111;
    opacity: 1;
    pointer-events: auto;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.9rem;
    color: #4B5563;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #F9FAFB;
    color: #111;
}


/* 
   ==========================================================================
   STYLE NAVBARRE MOBILE (max-width: 768px)
   ========================================================================== 
*/

@media (max-width: 768px) {

    /* RESET GLOBAL SETTINGS FOR MOBILE */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* NAVBAR STYLES FROM EXP.HTML (style_mobile.css ported) */
    .navbar {
        height: 60px;
        padding: 0 1rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        display: flex !important;
        grid-template-columns: none !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: fixed;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        z-index: 1000;
        gap: 0;
    }

    /* BURGER */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
        order: 1;
        margin-right: auto;
        grid-column: auto;
    }

    .hamburger span,
    #hamburgerBtn span {
        display: block;
        width: 100%;
        height: 3px !important;
        background-color: #000 !important;
        margin: 0 !important;
        flex-shrink: 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* ANIMATION X (CROSS) */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* LOGO */
    .logo {
        order: 2;
        margin: 0 !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        grid-column: auto !important;
        justify-self: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        height: 40px;
        /* Force consistent size */
        width: auto;
    }

    /* SEARCH CONTAINER (RIGHT) */
    .search-container {
        order: 3;
        grid-column: auto;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        background: transparent !important;
        justify-self: auto !important;
        position: relative;
        display: flex;
        align-items: center;
    }

    /* MENU LATERAL (Mobile Drawer) */
    .nav-center {
        display: flex !important;
        position: fixed;
        top: 60px;
        /* Below navbar */
        left: 0 !important;
        margin: 0 !important;
        right: auto;
        width: 280px !important;
        /* Fixed width card like exp.html */
        height: auto;
        max-height: 80vh;
        background: #ffffff !important;
        /* Solid white to avoid transparency issues */
        flex-direction: column;
        padding: 1.5rem 1rem !important;
        z-index: 998;
        box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.1) !important;
        border-bottom-right-radius: 20px !important;
        border-bottom-left-radius: 20px !important;
        border: 1px solid rgba(0, 0, 0, 0.05);

        /* Hidden State */
        transform: translateX(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        gap: 0;
    }

    .nav-center.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Links */
    .nav-link {
        width: 100%;
        padding: 1rem 0 !important;
        /* Vertical spacing */
        text-align: left;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: flex;
        align-items: center;
        padding-left: 0.5rem !important;
        /* Less indentation to match exp.html */
        color: #2C3E50;
    }

    /* FORCE NO DOTS */
    .nav-link::before {
        content: none !important;
        display: none !important;
    }

    .nav-center::before {
        display: none !important;
    }

    .nav-link:hover {
        padding-left: 1rem !important;
        /* Slight shift */
        color: #5A8FBD;
        background: rgba(90, 143, 189, 0.05);
    }

    /* HIDE DESKTOP DROPDOWNS ON MOBILE */
    .nav-dropdown-desktop {
        display: none !important;
    }

    .nav-link-mobile-only {
        display: block !important;
    }

    /* SEARCH ANIMATION (Exp.html Style) */
    .search-icon {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        pointer-events: auto !important;
        width: 24px;
        height: 24px;
        color: #111;
        z-index: 1002;
    }

    .search-container input {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        opacity: 0;
        padding: 0;
        background: #F5F5F5;
        border-radius: 20px;
        transition: all 0.3s ease;
        pointer-events: none;
        height: 40px;
    }

    .search-container.active input {
        width: 200px;
        opacity: 1;
        padding: 0 1rem 0 1rem;
        pointer-events: auto;
        right: 40px;
    }

    .search-container.active .search-icon {
        position: relative !important;
    }
}

/* FOOTER FULL WIDTH FIX (Desktop & Global) */
html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

.footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #111;
    box-sizing: border-box;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* 
   ==========================================================================
   NOUVEAU STYLE SECTION À PROPOS (ALTERNATING LAYOUT)
   ========================================================================== 
*/

#apropos {
    /* Fond dégradé subtil et moderne */
    background: radial-gradient(circle at 10% 20%, rgba(90, 143, 189, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(44, 62, 80, 0.05) 0%, transparent 20%),
        linear-gradient(180deg, #FFFFFF 0%, #F3F6F9 100%);
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
    /* Pour contenir les formes floues */
}

/* Forme abstraite floue décorative */
#apropos::before {
    content: '';
    position: absolute;
    top: 30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 143, 189, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

#apropos::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.about-modern-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    /* Above overlay */
}

.about-modern-item {
    display: flex;
    align-items: center;
    gap: 6rem;
}

/* Version inversée (Image à droite, texte à gauche) */
.about-modern-item.reverse {
    flex-direction: row-reverse;
}

.about-modern-image-wrapper {
    flex: 0 0 400px;
    /* Taille fixe reduite pour PC */
    max-width: 400px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.about-modern-image-wrapper:hover {
    transform: translateY(-5px);
}

.about-modern-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

.about-modern-content {
    flex: 1;
    text-align: left;
}

.about-modern-title {
    font-size: 2rem;
    font-weight: 800;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-modern-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #5A8FBD;
    border-radius: 2px;
}

.about-modern-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4B5563;
}

/* RESPONSIVE MOBILE */
@media (max-width: 968px) {
    .about-modern-container {
        gap: 5rem;
    }

    .about-modern-item,
    .about-modern-item.reverse {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    .about-modern-image-wrapper {
        flex: 1;
        width: 100%;
        max-width: 100%;
        /* Mobile: occupe toute la largeur dispo */
        max-height: 300px;
        /* Limite hauteur sur mobile */
    }

    .about-modern-image {
        height: 100%;
        max-height: 300px;
        object-fit: cover;
    }

    .about-modern-title {
        font-size: 1.8rem;
    }

    /* Le titre a sa barre de soulignement alignée avec le texte */
    .about-modern-title::after {
        left: 0;
    }

    /* Force text color strictly to black on mobile */
    .about-modern-desc {
        color: #000000 !important;
    }
}