/* Global styles (Desktop first approach) */
:root {
    --primary-color: #2f4b78;
    --secondary-color: #142137;
    --accent-color: #84d1f4;
    --background-light: #fbfbfb;
    --text-color-dark: #333;
    --text-color-light: #ffffff;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.2);
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--background-light);
}

h1, h2, h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

p {
    color: var(--text-color-dark);
}

header {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    text-align: center;
    border-bottom: solid 1px var(--secondary-color);
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 6;
    width: 100%;
    top: 0;
    padding: 0 20px;
}

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.btnconexionHeaderSection {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-right: 20px;
    color: var(--primary-color);
    text-decoration: var(--primary-color);
}

.svgConnexionHeader {
    padding: 10px 0;
}

.btnConnexionHeader {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
}

#dropdownConnexion {
    display: none;
}

#dropdownConnexion.show {
    display: block;
}


/* ===== LANGUAGE DROPDOWN STYLES ===== */

.language-selector {
    position: relative;
    display: inline-block;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.btnLanguageSection {
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.btnLanguageSection:hover {
    background-color: #f0f0f0;
}

.btnLanguage {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btnLanguageSection:hover .btnLanguage {
    transform: scale(1.1);
}

.dropdown-content-language {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.dropdown.active .dropdown-content-language {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideDown 0.2s ease-out;
    margin: 0px;
    padding: 4px;
    padding-right: 46px;
    align-items: flex-start;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content-language a {
    padding: 12px 16px;
    text-decoration: none;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content-language a:last-child {
    border-bottom: none;
}

.dropdown-content-language a:hover {
    background-color: #f9f9f9;
    color: #000000;
    padding-left: 20px;
}

.dropdown-content-language a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .btnLanguageSection {
        padding: 6px 10px;
    }

    .btnLanguage {
        font-size: 18px;
    }

    .dropdown-content-language {
        min-width: 120px;
        right: -10px;
    }

    .dropdown-content-language a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .dropdown-content-language a:hover {
        padding-left: 16px;
    }
}

@media (max-width: 480px) {
    .btnLanguage {
        font-size: 16px;
    }

    .dropdown-content-language {
        min-width: 100px;
        right: -20px;
    }

    .dropdown-content-language a {
        padding: 8px 10px;
        font-size: 12px;
        gap: 6px;
    }
}

/* Carte utilisateur */
.user-card {
    width: 150px;
    height: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: 3px solid #000;
}

.card-electrician {
    border-color: #000;
}

.card-header {
    background: linear-gradient(135deg, #2b71d3 0%, #266edade 100%);
    padding: 8px 12px;
    position: relative;
    border-bottom: 2px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 40px solid rgba(0, 0, 0, 0.3);
    border-bottom: 36px solid transparent;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 24px solid #4dd0e1;
    border-bottom: 12px solid white;
    z-index: 2;
}

.user-name {
    font-size: 10px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
    flex: 1;
    text-align: start;
    position: relative;
    z-index: 1;
}

.user-langue {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.user-langue img {
    width: 14px !important;
    height: 14px !important;
}

.card-body {
    height: 90px;
    background: linear-gradient(180deg, #fafafa 0%, #e8e8e8 100%);
    border-left: 2px solid rgba(77, 208, 225, 0.5);
    border-right: 2px solid rgba(77, 208, 225, 0.5);
    position: relative;
    box-shadow: inset 0 0 20px rgba(77, 208, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.card-footer {
    background: linear-gradient(135deg, #161f52 0%, #163460 100%);
    padding: 8px 0;
    position: relative;
    border-top: 2px solid #000;
    display: flex;
    flex-direction: column;
}

.card-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-right: 44px solid rgba(77, 208, 225, 0.2);
    border-top: 64px solid transparent;
}

.card-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 0;
    height: 0;
    border-right: 24px solid #1a1a1a;
    border-top: 12px solid white;
    z-index: 2;
}



.card-footer div {
    display: flex;
    justify-content: space-between;
    gap: 14px; /* espace entre les spans */
   
}

.card-footer .profession {
    font-weight: bold;
    font-size: 13px;
    color: white; /* couleur plus sombre pour le métier */
}

.card-footer .experience {
    margin-top: 3px;
    font-size: 13px;
    color: white;
}

.geometric-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
}

.corner-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.card-developer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-designer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-manager {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-electrician {
    background: white;
}

.freelancersListClass {
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    border-radius: var(--border-radius-md);
    justify-content: center;
    box-shadow: var(--shadow-light);
    position: relative;
    top: 85px;
}

.freelancer {
    background: var(--background-light);
    width: 120px;
    height: 150px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
}

.image-freelancer-container {
    width: 100%;
    height: 120px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--primary-color);
    margin-bottom: 8px;
}

.image-freelancer-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.freelancer p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-dark);
    margin: 0;
}

h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 100px;
    color: white;
}

h3 {
    font-size: 22px;
    text-align: center;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.dropdown {
    justify-content: left;
    align-items: center;
    display: inline-block;
}

.dropdown-button {
    width: auto;
    height: 30px;
    border: none;
    background-color: var(--background-light);
}

.dropdown-content-loging {
    display: none;
    position: absolute;
    background-color: var(--background-light);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    min-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    top: 100%;
    right: 0;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.dropdown-content-loging a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 8px;
    font-size: 14px;
}

.dropdown-content-loging a:hover {
    background-color: var(--background-dark);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background-light);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    min-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    top: 100%;
    right: 0;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.dropdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 8px;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--background-dark);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.flag {
    width: 20px;
    height: 20px;
    border-radius: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo img {
    margin-right: 10px;
}

.show {
    display: block !important;
}

.navbutton {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 50px;
}

.button {
    background: var(--primary-color);
    color: var(--text-color-light);
    height: 40px;
    width: 100px;
    border-radius: var(--border-radius-md);
}

.button:hover {
    background-color: var(--secondary-color);
}

.vertical-stack {
    height: 100%;
    width: 100%;
    color: var(--text-color-light);
    background-color: black;
    padding-top: 90px;
}

.loginimgClass {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.naon {
    width: 100%;
    background-image: url("images/test14.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 550px;
    margin: 0 auto;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.formsearch {
    width: 895px;
    max-width: 100%;
}

.title {
    font-size: 32px;
    color: white;
    text-align: center;
    position: relative;
    top: 0px;
}

.title h1 {
    font-size: 32px;
    color: white;
    text-align: center;
}

.homenade {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    background: radial-gradient(100% 50% at center, #2c201a, #000);
    height: auto;
    padding: 50px 20px;
    margin-bottom: 100px;
}

.homenade h2 {
    color: var(--text-color-light);
    font-size: 2.2rem;
    text-align: center;
}

.carousel-container {
    width: 90%;
    max-width: 1212px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.carousel-wrapper {
    display: flex;
    transition: transform var(--transition-speed);
    touch-action: pan-x;
    user-select: none;
    margin-top: 50px;
}

.carousel-wrapper.dragging {
    transition: none;
}

.carousel-item {
    flex: 0 0 33.33%;
    padding: 6px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    pointer-events: none;
}

.controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.carousel-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.carousel-button:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.search-container {
    display: flex;
    top: 0px;
    position: relative;
    align-items: center;
    gap: 10px;
    padding: 2px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(
            90deg,
            #c026d3,
            #4f46e5,
            #47e9fa,
            #8b5cf6,
            #2563eb,
            #c026d3
    );
    background-size: 300% 100%;
    animation: gradient 4s linear infinite;
    max-width: 900px;
    margin: 0 auto;
    justify-content: space-between;
    box-shadow:
            0 5px 15px rgba(192, 38, 211, 0.3),
            0 5px 15px rgba(71, 233, 250, 0.3);
    margin-top: 30px;
}

.search-container:focus-within {
    animation-play-state: paused;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* =============== SIDEBAR FILTRES - VERSION CORRIGÉE =============== */
.sideBar {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 100% !important;
    max-width: 450px !important;
    height: 100vh !important;
    background-color: white !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4) !important;
    overflow-y: auto !important;
    overflow-x: hidden ;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
}

.sideBar.active {
    right: 0 !important;
}

/* Overlay pour fermer en cliquant à l'extérieur */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 99998 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.sidebar-overlay.active {
    display: block !important;
    opacity: 1 !important;
}

/* Header du sidebar */
.header-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #2f4b78 0%, #1a2d4a 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 15px;
    flex-shrink: 0;
}

.header-sidebar h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex: 1;
    display: flex;
    
}

.header-sidebar .close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 100;
}

.header-sidebar .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.header-sidebar .close-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .header-sidebar {
        padding: 15px 20px;
    }

    .header-sidebar h4 {
        font-size: 1.2rem;
    }

    .header-sidebar .close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}



/* Formulaire du sidebar */
.sidebar-form {
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    background: white !important;
}

.filter-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.filter-group label {
    font-weight: 600 !important;
    color: #2f4b78 !important;
    font-size: 1rem !important;
    display: block !important;
}

.filter-group input,
.filter-group select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none !important;
    border-color: #2f4b78 !important;
    background-color: white !important;
    box-shadow: 0 0 0 4px rgba(47, 75, 120, 0.1) !important;
}

.filter-group input::placeholder {
    color: #999 !important;
}

/* Boutons d'actions */
.filter-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.apply-btn,
.reset-btn {
    width: 100% !important;
    padding: 16px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    
}

.apply-btn {
    background: linear-gradient(135deg, #2f4b78 0%, #1a2d4a 100%) !important;
    color: white !important;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #1a2d4a 0%, #0d1621 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(47, 75, 120, 0.4) !important;
}

.reset-btn {
    background: white !important;
    color: #2f4b78 !important;
    border: 2px solid #e0e0e0 !important;
}

.reset-btn:hover {
    background: #f8f9fa !important;
    border-color: #2f4b78 !important;
}

/* Animation d'entrée */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sideBar.active {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.notation-container {
    background-color: black;
}

.location-wrapper {
    position: relative;
    flex: 2;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca3af;
    pointer-events: none;
}

.user-container {
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
}

.username {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.delete-btn:hover {
    color: #cc0000;
}

input, select {
    padding: 16px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.location-input {
    width: 100%;
    background-color: white;
}

input:focus, select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
}

.job-select {
    flex: 2;
    cursor: pointer;
    background-color: white;
}

.date-input {
    flex: 1;
}

button {
    color: white;
    background-color: #0056b3;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}

button:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(71, 233, 250, 0.2);
    transform: translateY(-1px);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 150% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.search-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 10px;
    background: radial-gradient(
            ellipse at center,
            rgba(192, 38, 211, 0.4) 0%,
            rgba(71, 233, 250, 0.4) 50%,
            transparent 100%
    );
    filter: blur(5px);
    animation: glow 4s linear infinite;
}

.search-container:focus-within::after {
    animation-play-state: paused;
}

@keyframes glow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.arrow {
    color: white;
    font-size: 5px;
    cursor: pointer;
    background-color: #2f4b78;
    border: none;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}

#img-pait, #img-plom, #img-trus, #img-coo, #img-ch, #img-mont, #img-nace, #img-menui, #img-elec, #img-carpet, .img-sono {
    display: flex;
    width: 96%;
    height: 130px;
    border: solid 1px var(--border-color);
    border-radius: var(--border-radius-md);
    position: relative;
    padding: 70px 15px 15px 24px;
    margin: 10px auto;
}

#img-pait {
    background-color: #421300;
}

#img-plom {
    background-color: #000a39;
}

#img-trus {
    background-color: #7a7575;
}

#img-coo {
    background-color: #cc3a73;
}

#img-ch {
    background-color: #834a4a;
}

#img-mont {
    background-color: #0c7370;
}

#img-nace {
    background-color: #484c4e;
}

#img-menui {
    background-color: #73200c;
}

#img-elec {
    background-color: #bd9307;
}

#img-carpet {
    background-color: #1d688a;
}

.img-sono {
    background-color: #541d7e;
}

.pic {
    width: 100%;
    height: 550px;
    margin: 0 auto;
    max-width: 1060px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.slider-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 37%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    font-size: 21px;
    font-family: SF Pro Display, SF Pro Icons, Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #86868b;
    letter-spacing: .011em;
    line-height: 1.381002381;
    font-weight: 600;
}

.slider-container {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    margin-bottom: 100px;
}

.slider {
    display: flex;
    transition: transform var(--transition-speed);
}

.slide {
    width: 100%;
    height: 450px;
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: cover;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.prev, .next {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px 18px;
    margin: 0 8px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.prev:hover, .next:hover {
    background-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
}

.title3 {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    width: 900px;
    margin-top: 700px;
    margin-left: 150px;
}

.carrier {
    font-size: 20px;
    display: flex;
    margin: 0 auto;
    margin-bottom: 0px;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 150px;
    padding: 24px;
}

.nvcarre {
    background: linear-gradient(#0e1011, #09090a) padding-box, linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)) border-box;
    font-size: 20px;
    border: solid 2px transparent;
    border-radius: 20px;
    color: white;
    width: 30%;
    transition: all 0.1s ease-in-out;
    padding: 24px;
}

.nvcarre:hover {
    background: linear-gradient(#0e1011, #0f1012) padding-box,
    linear-gradient(to bottom, #db519e47, #b14bf452, #6e7bfc2b) border-box;
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
}

.nvcarre:hover img {
    animation: rotate 0.5s linear forwards;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nvcarre h3 {
    display: flex;
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.nvcarre a {
    display: flex;
    text-decoration: none;
    color: white;
}

.nvcarre p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    margin-bottom: 20px;
}

.nvcarre img {
    padding: 8px;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #1c212a;
    border-radius: 50%;
}

.nvcarre img:hover {
    animation: rotate 0.2s linear forwards;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

.comment {
    text-align: center;
    background-image: radial-gradient(circle, #84d1f4, #65a4dd, #528dbf, #365b78, #0e161e);
    margin: 50px auto;
    padding: 50px 20px;
    border-radius: var(--border-radius-md);
    max-width: 1200px;
}

.comment h2 {
    color: var(--text-color-light);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.comment h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.comment-flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 280px;
    height: auto;
    margin: 0;
    padding: 30px;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.step img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.step h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-color-dark);
    font-size: 1rem;
}

.gallery-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
}

.gallery-container h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.photo-grid {
    position: relative;
    height: 1500px;
    margin: 0 auto;
    display: block;
    width: 100%;
}

.photo-item {
    position: absolute;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.photo-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.photo-item:nth-child(1) { top: 0; left: 0; width: 30%; height: 300px; }
.photo-item:nth-child(2) { top: 0; left: 32%; width: 35%; height: 250px; }
.photo-item:nth-child(3) { top: 0; left: 69%; width: 30%; height: 400px; }
.photo-item:nth-child(4) { top: 300px; left: 0; width: 30%; height: 400px; }
.photo-item:nth-child(5) { top: 260px; left: 32%; width: 35%; height: 450px; }
.photo-item:nth-child(6) { top: 410px; left: 69%; width: 30%; height: 300px; }
.photo-item:nth-child(7) { top: 710px; left: 0; width: 30%; height: 350px; }
.photo-item:nth-child(8) { top: 720px; left: 69%; width: 30%; height: 450px; }
.photo-item:nth-child(9) { top: 720px; left: 32%; width: 35%; height: 300px; }
.photo-item:nth-child(10) { top: 1030px; left: 32%; width: 35%; height: 400px; }
.photo-item:nth-child(11) { top: 1070px; left: 0; width: 30%; height: 350px; }

.mobile-slider {
    display: none;
    width: 100%;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-slider::-webkit-scrollbar {
    display: none;
}

.slider-wrapper {
    display: flex;
    width: max-content;
}

.slyde {
    width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px;
}

.slyde img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.sol {
    width: 100%;
    height: auto;
    margin-bottom: 100px;
    background-color: var(--accent-color);
    padding-top: 50px;
    padding-bottom: 50px;
}

.sol h2 {
    color: var(--text-color-light);
    margin-bottom: 10px;
}

.sol h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.sol_flex {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.mis img,
.ins img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.mis,
.ins {
    position: relative;
    width: 45%;
    min-width: 300px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    font-size: 1rem;
    text-align: center;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

.text-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.text-overlay strong {
    color: var(--text-color-dark);
    font-size: 0.9rem;
}

.close-btn {
    left: 80%;
    width: 20%;
    color: var(--text-color-light);
    cursor: pointer;
    background-color: transparent;
}

.btnchercher {
    top: 10px;
    left: 60%;
    width: 40%;
    padding: 10px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.modal, .modalSignup, .modalLogin, .modalConexionclass {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modalConexionclass {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--background-light);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-medium);
}

label {
    display: block;
    font-weight: bold;
    color: var(--text-color-dark);
}

.stars input {
    width: auto;
}

.close, .closeSignUp {
    color: var(--secondary-color);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}

.close:hover, .closeSignUp:hover {
    background-color: var(--background-dark);
    color: var(--text-color-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content {
    display: flex;
    height: 500px;
    width: 100%;
}

.homeModal:first-child {
    flex: 1;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.homeModal:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homeModal:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    text-align: center;
    background: var(--secondary-color);
    color: var(--text-color-light);
}

.retourBtnClass {
    display: contents;
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.retourBtnClass:hover {
    text-decoration: underline;
}

.closeretoursection {
    width: 100%;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
}

.homeModal h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.btnconexion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 50px;
    padding: 10px;
}

.closebtnconnexion {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}

.navButtonClass {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
    width: 70%;
}

.retourCloseSectionClass {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 2px 50px 10px;
    background-color: transparent;
}

.titleForm {
    font-size: 20px;
    color: var(--text-color-light);
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.google-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 10px 20px;
    font-size: 16px;
    color: var(--text-color-light);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.7) inset, 0px 0px 15px 0px rgba(0, 0, 0, 0%);
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.35) -94.09%, rgba(255, 255, 255, 0.00) 154.53%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    font-size: 14px !important;
    font-weight: 500;
    transition: all .15s ease-in-out;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.lettre-g {
    font-size: 20px;
    color: #e0e0e0;
    font-weight: 500;
    font-family: 'Product Sans', sans-serif;
    position: relative;
    cursor: pointer;
    text-transform: uppercase;
}

.lettre-g::before {
    content: 'G';
    position: absolute;
    top: 0;
    left: 0;
    background: conic-gradient(from 231deg, #FBBC05 58deg 41deg, #EA4335 57deg 193deg, #4285F4 204deg 284deg, #34A853 211deg 120deg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.lettre-g:hover::before {
    opacity: 1;
}

@font-face {
    font-family: 'Product Sans';
    src: local('Product Sans');
    font-weight: 500;
    font-style: normal;
}

.google-login-btn:hover {
    border: 2px solid;
    border-image: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853) 1;
}

.google-login-btn:hover .lettre-g::before {
    opacity: 1;
    transform: none;
}

.loginOptions {
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.7) inset, 0px 0px 15px 0px rgba(0, 0, 0, 0%);
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.35) -94.09%, rgba(255, 255, 255, 0.00) 154.53%);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    font-size: 14px !important;
    font-weight: 500;
    transition: all .15s ease-in-out;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes disappear {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(50px);
    }
}

.animated-button {
    animation: fadeIn 0.5s ease-out;
    opacity: 1;
}

.emailForm {
    background: var(--secondary-color);
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 300px;
    height: auto;
    cursor: pointer;
    animation: appear 1s forwards;
    border-radius: var(--border-radius-md);
    padding: 30px;
}

.active {
    display: flex;
    flex-direction: column;
}

.emailForm.hidden {
    animation: disappear 1s forwards;
}

.emailForm input {
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.35) -94.09%, rgba(255, 255, 255, 0.00) 154.53%);
    margin-top: 5px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-color-light);
}

.emailForm img {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.35) -94.09%, rgba(255, 255, 255, 0.00) 154.53%);
}

.hidden {
    display: none;
}

section {
    background-color: #233c55;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text-color-light);
}

.avis h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.avis_flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.avis1 {
    padding: 30px;
    max-width: 450px;
    text-align: center;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    color: var(--text-color-dark);
}

.avis1 img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.avis1 h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 10px 0;
}

.avis1 p {
    font-size: 1rem;
    color: var(--text-color-dark);
    line-height: 1.6;
}

.footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 50px 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}



.loginEmailComponentClass {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.sidebar-collapsed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    transition: left var(--transition-speed);
    margin-top: 90px;
    padding-top: 50px;
    z-index: 2;
}

.sidebar-expanded {
    left: 0;
}

.sidebar-panel-form {
    position: absolute;
    top: 71px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    padding: 24px 12px;
    font-size: 10px;
}

.sidebar-panel-form button {
    background-color: transparent;
}

.userCardimg {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.butttonConexionClass, .butttonInscriptionClass {
    display: inline-block;
    background-color: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    transition: text-decoration-thickness var(--transition-speed);
}

.butttonConexionClass:hover, .butttonInscriptionClass:hover {
    text-decoration-thickness: 2px;
}

.butttonConexionClass.active, .butttonInscriptionClass.active {
    text-decoration-thickness: 4px;
    text-decoration-color: var(--primary-color);
}

.butttonConexionClass::selection,
.butttonInscriptionClass::selection {
    background-color: transparent;
}

.sidebar-item-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.sidebar-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding-left: 10px;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.preview-contact {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
   
}
.preview-contact a {
    text-decoration: none; /* enlève le soulignement */
    color: inherit; /* conserve la couleur du texte parent */
}



.nav-icon {
    width: 30px;
    height: 30px;
}

.formLogin {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: inherit;
}

.labelFormLogin {
    padding-top: 15px;
    font-size: 12px;
    color: var(--text-color-light);
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
}

.inputFormLogin {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0 auto;
    padding: 10px 14px 0;
    border: 0;
    border-radius: var(--border-radius-sm);
    background-color: #cfd4e1;
    font-size: 16px;
}

.inputFormLogin:focus {
    border-color: var(--primary-color);
    outline: none;
}


/* Styliser l'input numérique */



.submitLoginBtn {
    display: block;
    margin: 0 auto;
    padding: 10px;
    width: 60%;
    font-size: 16px;
    color: var(--text-color-light);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-speed);
    text-align: center;
    margin-top: 20px;
}

.submitLoginBtn:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.loginBtnSection {
    display: flex;
    flex-direction: column;
    color: var(--text-color-light);
}

.login-txt {
    color: var(--text-color-light);
}

.loginBtnSection.hidden {
    display: none;
}

small {
    font-size: 12px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.formLogin ul {
    padding-left: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.invalid {
    font-size: 12px;
    color: #f00;
    list-style-type: none;
    position: relative;
    padding-left: 20px;
    margin-bottom: 0;
}

.invalid::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: red;
    font-weight: bold;
}

li.valid::before {
    content: '✓';
    color: green;
}

li.valid {
    color: green;
}

/* =============== MEDIA QUERIES =============== */

@media (min-width: 1200px) {
    .naon {
        height: 750px;
        background-image: url("images/bgk12.png");
        background-size: cover;
        background-position: center;
    }
    
    .title h1 {
        font-size: 3.5rem;
    }
    
    .search-container {
        max-width: 900px;
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .naon {
        height: 600px;
        background-image: url("images/bgk12.png");
        background-size: cover;
        background-position: center;
        margin-bottom: 50px;
    }
    
    .title h1 {
        font-size: 2.8rem;
    }
    
    .formsearch {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-wrapper {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .location-wrapper, .job-select, .date-input {
        width: 100%;
        flex: 0 0 auto;
    }
    
    .search-button, .filter-button {
        width: 100%;
        flex: 0 0 auto;
    }
    
    .pic {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    
    .slider-text {
        width: 90%;
        margin: 15px 0;
    }
    
    .slider-container {
        width: 90%;
    }
    
    .nvcarre {
        width: 48%;
    }
    
    .sol_flex {
        flex-direction: column;
        align-items: center;
    }
    
    .mis, .ins {
        width: 95%;
        min-width: auto;
        margin-bottom: 20px;
    }
    
    .text-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    }
    
    /* Sidebar responsive pour tablettes */
    .sideBar {
        max-width: 400px !important;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .location-wrapper,
    .job-select,
    .date-input {
        flex-direction: column;
        flex: 1 1 100% !important;
    }
    
    button {
        width: 100%;
    }
    
    /* Sidebar responsive pour mobile */
    .sideBar {
        max-width: 100% !important;
        right: -100% !important;
    }
    
    .sidebar-form {
        padding: 20px !important;
    }
    
    .header-sidebar {
        padding: 20px !important;
    }
    
    .header-sidebar h4 {
        font-size: 1.3rem !important;
    }
}

@media (min-width: 1768px) {
    .naon {
        background-image: url("images/bgk12.png");
        background-repeat: no-repeat;
        height: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .close-btn {
        width: 10%;
        font-size: 12px;
        background: transparent;
        float: right;
        padding-bottom: 40px;
    }

    .btnsininClass {
        background: transparent;
        display: flex;
        font-size: large;
    }
    
    .btnsinupClass {
        background: transparent;
        display: flex;
        font-size: large;
        padding-bottom: 23px;
    }
    
    .slider-text {
        width: 100%;
        font-size: 1rem;
    }
    
    h1 {
        width: 100% !important;
    }
    
    .retourCloseSectionClass {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 10px 2px 40px;
        background-color: transparent;
    }
    
    .homenade {
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        background: radial-gradient(100% 50% at center, #2c201a, #000);
        height: 550px;
        margin-bottom: 290px;
    }

    .hommenade {
        width: 100%;
        flex-direction: column;
        margin-top: 100px;
        margin-bottom: 340px;
    }

    .background {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 285px;
    }

    .img-background {
        width: 96%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .naon {
        height: 400px;
        margin-bottom: 50px;
    }
    
    .homenade {
        padding: 30px 15px;
        gap: 20px;
    }
    
    .homenade h2 {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        flex: 0 0 100%;
    }
    
    .carousel-wrapper {
        margin-top: 20px;
    }
    
    .carousel-container {
        width: 100%;
        padding-bottom: 20px;
    }
    
    .pic {
        padding: 20px 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .slider-text {
        width: 100%;
        font-size: 1rem;
        margin: 10px 0;
    }
    
    .nvcarre {
        padding: 15px;
    }
    
    .step {
        padding: 15px;
    }
    
    .mis, .ins {
        height: auto;
    }
    
    .text-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    }
    
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .location-wrapper,
    .job-select,
    .date-input {
        flex-direction: column;
        flex: 1 1 100% !important;
    }
    
    button {
        width: 100%;
    }
    
    .carrier {
        flex-direction: column;
        padding: 0;
        max-width: 90%;
    }
    
    .nvcarre {
        width: 100%;
        padding: 0;
    }
    
    .comment-flex {
        display: flex;
        flex-direction: column;
    }
    
    .footer {
        flex-direction: column;
    }
    
    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none;
    }
    
    .header {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal, .modalSignup, .modalLogin {
        justify-content: left;
        align-items: normal;
        margin-top: 80px;
    }
    
    .modal-content {
        width: 100%;
    }
    
    .close {
        font-size: 20px;
        display: flex;
        justify-content: right;
    }
    
    .content {
        display: flex;
        flex-direction: column;
    }
    
    .homeModal {
        display: flex;
        flex-direction: column;
    }

    .homeModal h1 {
        font-size: 1.5rem;
    }
    
    .homeModal:first-child {
        display: none;
    }
    
    .homeModal:last-child {
        flex: none;
    }
    
    .emailForm {
        background: none;
        padding: 0;
        margin: auto;
    }
    
    .emailForm img {
        top: -36px;
    }
    
    .emailForm input {
        width: auto;
    }
    
    .lettre-g {
        visibility: collapse;
    }
    
    .google-login-btn {
        background-image: url("images/icon/goog.png");
        background-repeat: no-repeat;
        background-size: 20px;
        background-origin: content-box;
        font-size: 12px;
        margin: 35px 0;
        color: white;
        gap: 20px;
    }
    
    .loginOptions {
        align-items: center;
        display: flex;
        text-align: initial;
        margin: auto;
        margin-top: 0;
    }
    
    .loginOptions img {
        padding: 12px;
    }
    
    header {
        height: 60px;
        padding: 0 10px;
    }
    
    .vertical-stack {
        padding-top: 60px;
    }
    
    .pic {
        flex-direction: column;
        width: auto;
        margin-bottom: 50px;
        padding: 10px;
    }
    
    .slider-text {
        width: 100%;
        font-size: 0.9rem;
        margin: 10px 0;
        min-width: unset;
    }
    
    .slider-container {
        width: 100%;
        margin-bottom: 50px;
    }
    
    .photo-grid {
        display: none;
    }

    .mobile-slider {
        display: block;
    }

    .gallery-container {
        padding: 10px 0;
    }

    h2 {
        margin-bottom: 20px;
    }
    
    /* Sidebar mobile - CORRECTION CRITIQUE */
    .sideBar.active {
        top: 0 !important;
        margin-top: 0 !important;
        position: fixed !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        right: 0 !important;
    }
    
    .mis, .ins {
        width: 100%;
    }

    .sol_flex {
        display: inherit;
    }
    
    .text-overlay {
        top: 80%;
        left: 30%;
        font-size: 15px;
        width: initial;
        position: initial;
        transform: initial;
    }
}

@media (min-width: 480px) {
    .desktop-only {
        display: flex;
        gap: 10px;
    }

    .mobile-only {
        display: none;
    }
}

.languageDiv {
    width: max-content;
    display: flex;
    justify-content: space-between;
}

.nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* =============== FILTER BUTTON STYLES =============== */
.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2f4b78;
    border: 2px solid #2f4b78;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background-color: #1a2d4a;
    border-color: #1a2d4a;
    transform: translateY(-1px);
}

.filter-button img {
    filter: brightness(0) invert(1);
}

.filter-icon {
    width: 20px;
    height: 20px;
}

/* =============== SCROLLBAR STYLES =============== */
.sideBar::-webkit-scrollbar {
    width: 8px;
}

.sideBar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sideBar::-webkit-scrollbar-thumb {
    background: #2f4b78;
    border-radius: 4px;
}

.sideBar::-webkit-scrollbar-thumb:hover {
    background: #1a2d4a;
}





/* ====================================== */
/* LANGUAGE SELECTOR STYLES */
/* ====================================== */

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector .dropdown {
    position: relative;
    display: inline-block;
}

/* Bouton du sélecteur de langue */
.btnLanguageSection {
  display: flex;
  align-items: center;
  gap: 1px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  font-weight: 500;
}

.btnLanguageSection:hover {
    background-color: transparent;
    border-color: #2f4b78;
    box-shadow: 0 2px 8px rgba(47, 75, 120, 0.1);
}

.btnLanguageSection:active {
    background-color: #f0f4f9;
}

/* Icône SVG du sélecteur de langue */
.svgLanguageHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.svgLanguageHeader svg {
    width: 100%;
    height: 100%;
}

/* Texte du code langue (FR, EN, ES, DE) */
.btnLanguage {
    font-size: 13px;
    font-weight: 600;
    color: #2f4b78;
    min-width: 40px;
    text-align: center;
}

.btnLanguageSection:hover .btnLanguage {
    color: #1f3557;
}

/* Dropdown - Contenu des langues */
.dropdown-content-language {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px;
    z-index: 1000;
    overflow: hidden;
    animation: languageSlideDown 0.25s ease;
}

/* Afficher le dropdown */
.dropdown-content-language.show {
    display: flex;
    flex-direction: column;
}

/* Liens des langues dans le dropdown */
.dropdown-content-language a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-content-language a:last-child {
    border-bottom: none;
}

.dropdown-content-language a:hover {
    background-color: #f0f4f9;
    color: #2f4b78;
    padding-left: 20px;
}

/* Langue active (sélectionnée) */
.dropdown-content-language a.active {
    background-color: #e8f0fb;
    color: #2f4b78;
    font-weight: 600;
    border-left: 3px solid #2f4b78;
    padding-left: 13px;
}

/* Animation du dropdown */
@keyframes languageSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================== */
/* RESPONSIVE - TABLET & MOBILE */
/* ====================================== */

@media (max-width: 768px) {
    .btnLanguageSection {
        padding: 8px 12px;
    }

    .svgLanguageHeader {
        width: 18px;
        height: 18px;
    }

    .btnLanguage {
        font-size: 12px;
        min-width: 35px;
    }

    .dropdown-content-language {
        min-width: 180px;
    }

    .dropdown-content-language a {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .btnLanguageSection {
        padding: 6px 10px;
        gap: 6px;
    }

    .btnLanguage {
        font-size: 11px;
        min-width: 30px;
    }

    .dropdown-content-language {
        left: auto;
        right: 0;
        min-width: 160px;
    }

    .dropdown-content-language a {
        padding: 9px 12px;
        font-size: 12px;
    }

    .dropdown-content-language a:hover {
        padding-left: 16px;
    }

    .dropdown-content-language a.active {
        padding-left: 9px;
        border-left-width: 2px;
    }
}