/* ========================================
   BEQLER - STYLE PRINCIPAL
   ======================================== */

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2f4b78;
    --secondary-color: #142137;
    --accent-color: #84d1f4;
    --black-color:#070707;
    --success: #28a745;
    --error: #dc3545;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --bg-primary: #2f4b78;
    --bg-secondary: #142137;
    --border-light: rgba(255,255,255,0.1);
    --border-radius-md: 10px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 4px 15px rgba(0,0,0,0.3);
    --gradient-primary: linear-gradient(135deg, #2f4b78, #84d1f4);
    --gradient-secondary: linear-gradient(135deg, #142137, #2f4b78);
    --gradient-cool: linear-gradient(135deg, #84d1f4, #2f4b78);
    --transition-speed: 0.3s ease;
    --header-height: 90px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--black-color);
    overflow-x: hidden;
}

h2{
    font-size: 40px;
    text-align: center;
    margin-bottom: 58px;
    color: var(--text-light);
    margin-top: 30px;
    margin-bottom: 50px;
}


/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 100%;
    margin: 0 0px;
    padding: 0 66px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-controls {
    display: none;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: "3px";
}
.btnLoginMobile{
    display: flex;
    flex-direction: row;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  
}


.nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 12px;
}

.nav a:hover {
    color: var(--accent-color);
}
.section-LogHeader{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.btn-login {
    background-color: transparent;
    color: var(--secondary-color);
    padding: 5px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ===== SÉLECTEUR DE LANGUE (DESKTOP) ===== */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
   
}



.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-light);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    margin-top: 10px;
    z-index: 2000;
    overflow: hidden;
}

.language-dropdown.active {
    display: flex;
    flex-direction: column;
}

.language-option {
    background: none;
    border: none;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
}

.language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
}

.language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== SÉLECTEUR DE LANGUE (MOBILE) ===== */
.language-btn-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
}
.user-btn-mobile{
   
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
}




.sidebar-header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}
.language-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Positionne le sidebar hors de l'écran à droite */
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--text-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease; /* S'anime maintenant correctement */
    z-index: 1500;
    overflow-y: auto;
}

/* Lorsque la classe active est ajoutée */
.language-sidebar.active {
    display: block;
    right: 0; /* Glisse le sidebar dans l'écran */
}
.close-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-language-option {
    background: none;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 1px solid #eee;
}

.sidebar-language-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: bold;
    padding-left: 30px;
}

.sidebar-language-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== NAVIGATION SIDEBAR (Mobile) ===== */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1400;
    overflow-y: auto;
    display: block;
}

.nav-sidebar.active {
    left: 0px;
    top: 0px;
}

.nav-sidebar-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.close-nav-sidebar {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.close-nav-sidebar:hover {
    transform: scale(1.2);
}

.nav-sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
   
    padding: 20px 0;
}

.nav-sidebar-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.nav-sidebar-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    color: var(--accent-color);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-login-sidebar {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.btn-login-sidebar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    color: var(--accent-color);
}
.logout-link {
    background-color: var(--accent-color) !important;
    color: var(--secondary-color) !important;
    font-weight: bold;
    margin: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s !important;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.logout-link:hover {
    background-color: #ffe0e0 !important; 
    color: black !important; /* optionnel : change la couleur au survol */
}


/* ===== OVERLAY (fermer le sidebar) ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1300;
}

.nav-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
}

/* ===== MENU HAMBURGER (Mobile) ===== */
.menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
    color: var(--bg-primary);
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--bg-primary);
    border-radius: 2px;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
   
}
/* ============================================
   SIDEBAR FILTRE
   ============================================ */
/* ===== SIDEBAR FILTRE ===== */
.filtre-sidebar-index {
    position: fixed;
    top: 0;
    right: -350px; /* caché hors écran */
    width: 350px;
    height: 100vh;
    background: var(--bg-light);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    z-index: 2000;
    transition: right var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.filtre-sidebar-index.active {
    right: 0; /* apparaît */
}

/* Header du sidebar */
.filtre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-dark);
}

.filtre-header h3 {
    font-size: 20px;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

.close-filtre {
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed);
}

.close-filtre:hover {
    background: var(--bg-dark);
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Style des filtres internes */
/* ==========================
   Formulaire & filtres
========================== */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
}

.filter-group input{

    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;

}

.filter-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  
/* Range input et valeur */
.filter-group input[type="range"] {
    width: 100%;
    
}

.input-value {
    font-size: 14px;
    color: #555;
    margin-top: 2px;
}

/* Dates De / À */
.date-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-range label {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    gap: 15px;
    align-items: center;
}

/* ==========================
   Checkbox & Radio (ton CSS existant)
========================== */
.filtre-section input[type="checkbox"],
.filtre-section input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    transition: all var(--transition-speed);
    flex-shrink: 0;
}

.filtre-section input[type="checkbox"]:hover,
.filtre-section input[type="radio"]:hover {
    transform: scale(1.15);
    accent-color: var(--accent-color);
}

.filtre-section input[type="checkbox"]:checked,
.filtre-section input[type="radio"]:checked {
    accent-color: var(--secondary-color);
}

/* ==========================
   Bouton Appliquer
========================== */
.filtre-sidebar-index button.apply-filters,
.filter-form button.submit-filter-btn {
    margin-top: auto;
    padding: 14px 20px;
    background: var(--bg-secondary);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-md);
}

.filtre-sidebar-index button.apply-filters:hover,
.filter-form button.submit-filter-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.filtre-sidebar-index button.apply-filters:active,
.filter-form button.submit-filter-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ==========================
   Overlay
========================== */
#nav-overlay-filtres {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1500;
    transition: opacity var(--transition-speed);
    opacity: 0;
}

#nav-overlay-filtres.active {
    display: block;
    opacity: 1;
}

/* ==========================
   Scrollbar personnalisée
========================== */
.filtre-sidebar-index::-webkit-scrollbar {
    width: 6px;
}

.filtre-sidebar-index::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.filtre-sidebar-index::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.filtre-sidebar-index::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}


/* Checkbox et Radio */


/* Responsive */
@media (max-width: 768px) {
    .filtre-sidebar-index {
        width: 100%;
        right: -100%;
    }
    
    .filtre-sidebar-index.active {
        right: 0;
    }
}




 

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background-repeat: no-repeat;
    background-image: url("images/bgk12.png");
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 20px;
    border-radius: 0;
    height: 87svh;
    max-height:  86.5rem;
    min-height:  18.75rem;
    width: 100%;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: bold;
   
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
}






.carriere-section{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

/* ============================================
   SEARCH FORM
   ============================================ */

.search-section {
    display: flex;
    top: 96px;
    position: relative;
    align-items: center;
    max-width: 100%;
    justify-content: space-between;
    box-shadow: rgba(192, 38, 211, 0.3) 0px 5px 15px, rgba(71, 233, 250, 0.3) 0px 5px 15px;
    gap: 10px;
    padding: 2px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgb(192, 38, 211), rgb(79, 70, 229), rgb(71, 233, 250), rgb(139, 92, 246), rgb(37, 99, 235), rgb(192, 38, 211)) 0% 0% / 300% 100%;
    animation: 4s linear 0s infinite normal none running gradient;
    margin: 0px auto;
}

@keyframes gradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

.search-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.search-form input,
.search-form select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--text-light);
    color: var(--text-dark);
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(47, 75, 120, 0.3);
}

.search-form input::placeholder {
    color: #999;
}

.btn-search {
    padding: 12px 30px;
    background-color:  rgb(0, 86, 179);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 75, 120, 0.3);
}
.filter-button{
    color: white;
    background-color: rgb(0, 86, 179);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    white-space: nowrap;
}

/* ============================================
   RESULTS SECTION & FREELANCER CARDS
   ============================================ */


/* ===== GRILLE DES FREELANCERS ===== */


/* ===== CARTE FREELANCER ===== */
.freelancer-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    cursor: pointer;
    width: 150px;
}

.freelancer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--accent-color);
}
/* ===== IMAGE DE LA CARTE ===== */
.user-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(47, 75, 120, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    background: white;
    flex-shrink: 0;
    border: 2px solid transparent;
    position: relative;
}

.user-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(47, 75, 120, 0.25);
    border-color: rgba(132, 209, 244, 0.5);
}

.user-card .card-body .user-avatar img.profile-photo_index {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.user-card:hover .card-body .user-avatar img.profile-photo_index {
    transform: scale(1.08);
}

.user-card .card-header {
    padding: 18px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2b71d3 0%, #1e5aa8 100%);
    gap: 12px;
}

.user-card .card-header .user-name {
    color: white;
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card .card-body {
    padding: 6px 6px;
    background: rgba(255, 255, 255, 0.5);
}

.user-card .card-footer {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #1a2849 100%);
    color: white;
    height: 150px;
}

.user-card .row-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.user-card .row-line span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-card .user-langue {
    width: 36px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    
}

.user-card:hover .user-langue {
    border-color: #84d1f4;
    transform: scale(1.1);
}

/* ============================================
   MODAL CONNEXION/INSCRIPTION
   ============================================ */
/* ========== STYLE DU MODAL (DIALOG) ========== */
.modalConexionclass {
    position: fixed;
    inset: 0; /* occupe toute la page */
    z-index: 2000;
  
    width: 100vw;
    height: 100vh;
  
    margin: 0;         /* IMPORTANT : empêcher <dialog> d'ajouter des marges */
    padding: 0;        /* retirer les padding par défaut */
    border: none;      /* enlever la bordure du <dialog> */
    background: transparent; /* fond semi-transparent */
  
    display: none;     /* caché par défaut */
    justify-content: center;
    align-items: center;
  }
  
  .modalConexionclass[open] {
    display: flex; /* visible quand open */
  }
  
  /* Contenu interne centré */
  .modal-content {
    background: white;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
  }
  
  
@keyframes slideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.content {
    display: flex;
  height: 500px;
  width: 100%;
}

.homeModal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.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);
}

/* ===== BOUTON FERMER ===== */
.close {
    color: var(--accent-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 {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* ===== NAVIGATION DES ONGLETS ===== */
.modal-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.modal-nav-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    color: var(--bg-light);
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.modal-nav-btn:hover {
    border-bottom-color: var(--accent-color); 
    color: var(--accent-color);
   
}

.modal-nav-btn--active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    
}

/* ===== TABS CONTENU ===== */
.modal-tab {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.modal-tab--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONTENEUR BOUTONS ===== */
.btnconexion,
.btninscription {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.btnconexion h1,
.btninscription h1 {
    color: var(--text-light);
    font-size: 1.8em;
    margin: 0;
    margin-bottom: 20px;
}



/* ===== BOUTON GOOGLE ===== */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.google-login-btn:hover {
    border: 2px solid;
    border-image-outset: 0;
    border-image-repeat: stretch;
    border-image-slice: 100%;
    border-image-source: none;
    border-image-width: 1;
  border-image: linear-gradient(45deg, #4285f4, #ea4335, #fbbc05, #34a853) 1;
}

.lettre-g {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: inline-block;
}

.google-login-btn:hover .lettre-g {
    background: conic-gradient(
        from 231deg,
        #FBBC05 58deg 41deg,
        #EA4335 57deg 193deg,
        #4285F4 204deg 284deg,
        #34A853 211deg 120deg
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
   
}

/* ===== BOUTON EMAIL ===== */
.loginOptions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.loginOptions:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.loginOptions img {
    width: 20px;
    height: 20px;
    filter: brightness(2);
}

/* ===== CONTENEUR FORMULAIRE EMAIL ===== */
.email-form-container {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    animation: slideIn 0.3s ease;
}



.back-arrow-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 18px;
    margin-bottom: 10px;
}

.back-arrow-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-3px);
}

.email-form-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

/* ===== FORMULAIRE LOGIN ===== */
.formLogin {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.labelFormLogin {
    color: var(--text-light);
    font-size: 0.9em;
    font-weight: 500;
}

.inputFormLogin {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s;
}

.inputFormLogin::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.inputFormLogin:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(132, 209, 244, 0.3);
}

.submitLoginBtn {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submitLoginBtn:hover {
    background-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 209, 244, 0.3);
}

.submitLoginBtn:disabled {
    background-color: rgba(132, 209, 244, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== FEEDBACK MESSAGES ===== */
small {
    font-size: 12px;
    color: #ffcccc;
    display: block;
    margin-bottom: 0;
    min-height: 16px;
}

small.error {
    color: #ff6b6b;
    font-weight: 500;
}

small.success {
    color: #69db7c;
}

/* ===== VALIDATION LISTE ===== */
.formLogin ul {
    padding-left: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
}

.invalid {
    font-size: 12px;
    color: #ff6b6b;
    position: relative;
    padding-left: 20px;
    margin-bottom: 0;
}

.invalid::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

li.valid {
    color: #69db7c;
    font-size: 12px;
    padding-left: 20px;
    position: relative;
}

li.valid::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #69db7c;
    font-weight: bold;
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
@keyframes appear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes disappear {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}



/* ============================================
   AUTRES SECTIONS (Carousel, Slider, etc.)
   ============================================ */

.homenade {
    justify-content: center;
  align-items: center;
  gap: 10px;
  background: radial-gradient(100% 50% at center, #2c201a, #000);
  height: 590px;
  margin-bottom: 0px;
}

.carousel-container {
    width: 90%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}
.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-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-x;
    user-select: none;
    margin-top: 144px;
}
.carousel-item {
    flex: 0 0 24.33%;
    padding: 6px;
  }

.controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.pic {
    width: 100%;
    height: 848px;
    margin: 0 auto;
    max-width: 1173px;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.slider-text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    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: 0.011em;
    line-height: 1.381002381;
    font-weight: 600;
}



.carrier {
    font-size: 20px;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 150px;
    padding: 24px;
    background-color: transparent;
    height: 440px;
}



/* ===== COMMENT SECTION ===== */
.comment {
    text-align: center;
    background-image: radial-gradient(circle, #84d1f4, #65a4dd, #528dbf, #365b78, #0e161e);
    margin: 50px auto;
    border-radius: var(--border-radius-md);
    max-width: 100%;
    padding: 20px; /* très important pour le texte */
    height: auto;  /* optionnel, c'est le comportement par défaut */
}


.step {
    display: inline-block;
    width: 96%;
    /* height: 270px; ❌ à supprimer */
    margin: 45px 24px;
    gap: 85px;
    flex: auto;
}

.step h3{
    display: block;
    font-size: 2em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
.step p{
    display: block;
    font-size: 1.5em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;

}

.comment h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.comment-flex {
    display: flex;
    justify-content: space-between;
 
}

/* ===== SOL SECTION ===== */
.sol {
    width: 100%;
    height: 100%;
    margin-bottom: 100px;
    background-color: lightskyblue;
    padding-top: 40px;
}
.sol h1 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: xx-large;
    text-align: center;
}
.sol h2 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: x-large;
}

.sol h3 {
    color: var(--bg-primary);
    margin-bottom: 10px;
    font-size: 35px;
    text-align: center;
}
.sol strong{
    color: var(--bg-secondary);
    font-size: 17px;
    text-align: center;
}


.sol_flex {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 100px;
}

.mis,
.ins {
    position: relative;
    width: 40%;
    border-radius: 10px;
}
.mis img, .ins img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    height: 330px;
}
.text-overlay {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2f4b78;
    font-size: 20px;
    text-align: center;
    width: 80%;
    height: 80%;
    padding: 10px;
    background-color: white;
}

/* ===== AVIS SECTION ===== */
section {
    background-color: transparent;
    padding: 40px 0px;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    height: auto;
}

.avis_flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #233c55;
    height: 355px;
}


.avis1 {
    padding: 20px;
    max-width:  50%;
    text-align: center;
}
.avis1 p {
    font-size: 1rem;
    color: #fbfbfb;
    line-height: 1.5;
}

.avis1 h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin: 10px 0;
}

.avis1 img{
    border-radius: 50%;
}




/* ============================================
   Carousel
   ============================================ */
/* Conteneur principal de la galerie */
.gallery-container {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    
}

/* Grille de photos - Desktop */
.photo-grid {
    position: relative;
    height: 1500px;
    margin: 0 auto;
    display: block;
}

/* Chaque élément de photo */
.photo-item {
    position: absolute;
    transition: transform 0.3s ease;
}

/* Images dans les éléments photo */
.photo-item img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Positions spécifiques des photos (Desktop) */
.photo-item:nth-child(1) { top: 0; left: 0; width: 335px; }
.photo-item:nth-child(2) { top: 0; left: 27%; width: 460px; }
.photo-item:nth-child(3) { top: 0; left: 27%; width: 27px; }
.photo-item:nth-child(4) { top: 743px; left: 64%; width: 440px; }
.photo-item:nth-child(5) { top: 0; left: 64%; width: 440px; height: 340px; }
.photo-item:nth-child(6) { top: 227px; left: 0; width: 335px; height: 400px; }
.photo-item:nth-child(7) { top: 627px; left: 0; width: 335px; height: 300px; }
.photo-item:nth-child(8) { top: 341px; left: 64%; width: 440px; height: 400px; }
.photo-item:nth-child(9) { top: 460px; left: 27%; width: 460px; height: 400px; }
.photo-item:nth-child(10) { top: 861px; left: 27%; width: 460px; height: 327px; }
.photo-item:nth-child(11) { top: 741px; left: 0; width: 335px; height: 450px; }

/* Slider Mobile */
.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;
}

/* Wrapper du slider */
.slider-wrapper {
    display: flex;
    width: max-content;
}

/* Chaque slide */
.slyde {
    width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px;
}

/* Images du slider */
.slyde img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* MOBILE SLIDER */
.mobile-slider {
    display: none;
}



.slyde {
    flex: 0 0 85vw;
    max-width: 85vw;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    scroll-snap-align: start;
}

.slyde img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        grid-gap: 6px;
        grid-auto-rows: minmax(100px, auto);
    }

    .photo-item.span-3 {
        grid-column-end: span 2;
        grid-row-end: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 20px 10px;
    }

    .gallery-container h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    /* Hide grid, show slider */
    .photo-grid {
        display: none;
    }

    .mobile-slider {
        display: block;
    }

    .slyde {
        flex: 0 0 90vw;
        max-width: 90vw;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .gallery-container h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .slyde {
        flex: 0 0 95vw;
        max-width: 95vw;
        height: 300px;
    }

    .slider-wrapper {
        gap: 8px;
    }
}

/* ============================================
   Info Section
   ============================================ */

   
   .info-text {
    width: 90%;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 300px;
  }
  
.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: 27px;
    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;
}



.info-section .info-text strong {
  display: block;
  font-weight: 500;
  text-align: justify;
  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;
}

/* Responsive */
@media (max-width: 768px) {
    .info-section { padding: 15px; }
    .info-section .info-text strong { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .info-section { padding: 10px; }
    .info-section .info-text strong { font-size: 0.9rem; }
}

/* ============================================
   Slider Section
   ============================================ */
   .slider-container {
    width: 70%;
    margin: 50px auto 100px auto;
    overflow: hidden; /* Cache tout ce qui dépasse */
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    background-color: transparent;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* S'assure que le slider prend toute la largeur du conteneur */
}

.slider img.slide {
    width: 100%; /* Chaque image prend 100% du slider */
    flex-shrink: 0; /* Empêche l'image de rétrécir */
    height: auto; 
    object-fit: cover; /* Maintient le ratio sans déformer */
    margin-top: 32px;
}

/* Controls */
.slider-controls {
    display: flex;
  justify-content: center;
  margin-top: 10px;
}

.slider-controls button {
   
    background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
}

.slider-controls button:hover {
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(71, 233, 250, 0.2);
    transform: translateY(-1px);
}


/* Responsive */
@media (max-width: 768px) {
    .slider-container {  padding: 5px; width: 85%; }
    .slider-controls button { font-size: 20px; padding: 8px 12px; }
}

/* ============================================
   Carrier Section
   ============================================ */
/* ===========================
   CARRIER / NVCARRE STYLE
   =========================== */
   .carrier {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto 0px auto;
    padding: 24px;
    background-color: transparent;
    height: 440px;
    flex-wrap: wrap; /* Pour que les éléments se réorganisent sur mobile */
}

.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;
   
}

/* Hover sur le carré */
.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);
}

/* Hover sur le carré → change l'image */
.nvcarre:hover img {
    animation: rotate 0.4s linear forwards;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


.nvcarre img {
    padding: 8px;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #1c212a;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.2s ease-in-out;
}

.nvcarre img:hover {
    animation: rotate 0.2s linear forwards;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nvcarre h3 {
    color: var(--text-color-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.nvcarre p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    margin-bottom: 20px;
}

.nvcarre a {
    display: flex;
    text-decoration: none;
    color: white;
    align-items: center;
    gap: 10px;
    height: 100%;
}
.textnvcarre{
   
    height: 100%;
    padding-top: 15px;
}
.nvcarre-icon{
 
    height: 100%;
}

/* Rotation animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(45deg); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .nvcarre { flex: 1 1 45%; }
}

@media (max-width: 600px) {
    .carrier { flex-direction: column; align-items: center; height: auto; }
    .nvcarre { flex: 1 1 90%; margin-bottom: 20px; }
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer p {
    color: var(--text-light);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ============================================
   FREELANCER SLIDER - RESPONSIVE 5/1 CARTES
   ============================================ */
.results-section{
   
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
/* Conteneur principal du slider */
.slider-wrapper {
   
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 30px;
    overflow: visible;
    margin-top: 0px;
    margin-bottom: 80px;
    top: 500px;
}

/* Liste des freelancers (le slider) */
.freelancers-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 20px 0;
    max-width: 100%;
    
    scrollbar-width: thin;
    scrollbar-color: rgba(132, 209, 244, 0.3) transparent;
    -ms-overflow-style: none;
}

.freelancers-list::-webkit-scrollbar {
    height: 6px;
}

.freelancers-list::-webkit-scrollbar-track {
    background: transparent;
}

.freelancers-list::-webkit-scrollbar-thumb {
    background: rgba(132, 209, 244, 0.4);
    border-radius: 3px;
}

.freelancers-list::-webkit-scrollbar-thumb:hover {
    background: rgba(132, 209, 244, 0.7);
}

/* Boutons de navigation du slider */
.slider-btnFre {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #2f4b78, #1e5aa8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(47, 75, 120, 0.3);
}

.slider-btnFre:hover {
    background: linear-gradient(135deg, #1e5aa8, #142137);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 75, 120, 0.4);
    color: #84d1f4;
}

.slider-btnFre:active {
    transform: scale(0.95);
}

.prevFre {
    order: -1;
}

.nextFre {
    order: 1;
}

.slider-btnFre:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-btnFre:disabled:hover {
    transform: scale(1);
    background: linear-gradient(135deg, #2f4b78, #1e5aa8);
}

/* Animation d'apparition */
@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.user-card {
    animation: slideInCard 0.6s ease-out forwards;
}
.user-favori {
    font-size: 3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}


.user-card:nth-child(2) { animation-delay: 0.1s; }
.user-card:nth-child(3) { animation-delay: 0.2s; }
.user-card:nth-child(4) { animation-delay: 0.3s; }
.user-card:nth-child(5) { animation-delay: 0.4s; }
.user-card:nth-child(6) { animation-delay: 0.5s; }

/* ===== RESPONSIVE DESIGN ===== */

/* 💻 DESKTOP (min-width: 1200px): 5 CARTES */
@media (min-width: 1200px) {
    .user-card {
        height: 453px;
        width: 340px;
    }

    .user-card .card-body .user-avatar img.profile-photo_index {
        height: 250px;
    }

    .slider-btnFre {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* 📱 TABLETTE (768px - 1199px): 3 CARTES */
@media (min-width: 768px) and (max-width: 1199px) {
    .user-card {
        flex: 0 0 calc(33.33% - 16px);
        max-width: calc(33.33% - 16px);
        min-width: 180px;
    }

    .user-card .card-body .user-avatar img.profile-photo_index {
        height: 300px;
    }

    .slider-btnFre {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .user-card .card-footer {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: linear-gradient(135deg, #0f172a 0%, #1a2849 100%);
        color: white;
        height: 150px;
    }
    
    .user-card .row-line {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 25px;
        color: rgba(255, 255, 255, 0.9);
    }
}




/* ===== TABLETTE (max-width: 768px) ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-controls {
        display: flex;
        padding: 6px;
    }

    .menu-btn {
        display: flex;
    }

    .language-btn {
        display: none !important;
    }

    .language-dropdown {
        display: none !important;
    }

    .language-btn-mobile {
        display: block !important;
    }

    .hero {
      
        height: 650px;
        min-height: 50px;
        width: 100%;
    }

    .hero h1 {
        font-size: 1.8rem;
      
    }

    .hero p {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .content {
        height: auto;
        flex-direction: column;
    }

    .homeModal:first-child {
        display: none;
    }

    .homeModal:last-child {
        min-height: 400px;
        padding: 30px 20px;
    }

    .modal-content {
        max-width: 100%;
        margin: 20px;
    }

    .btnconexion h1,
    .btninscription h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }

    .modal-nav {
        margin-bottom: 20px;
    }

    .modal-nav-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    .filtre-sidebar-index {
        width: 100%;
        right: -100%;
    }
    
    .filtre-sidebar-index.active {
        right: 0;
    }

    .info-section { 
        padding: 15px; 
    }
    
    .info-section .info-text strong { 
        font-size: 0.95rem; 
    }
}

/* ===== MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .carousel-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding: 10px 5px;
        margin-top: 80px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .carousel-item {
        flex: 0 0 85vw;
        max-width: 85vw;
        height: 250px;
        scroll-snap-align: start;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

    .avis1 {
        padding: 20px;
        max-width: 100%;
        text-align: center;
    }

    h2 {
        font-size: 30px;
    }

    .info-text {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding-top: 23px;
        padding-left: 23px;
        padding-right: 23px;
    }

    .slider-text {
        width: 100%;
        font-size: 15px;
    }

    .nvcarre {
        width: 100%;
        position: relative;
    }

    .nvcarre a {
        height: 100%;
    }

    .nvcarre-icon {
        height: 100%;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .comment-flex {
        display: flex;
        flex-direction: column;
    }

    .sol_flex {
        display: flex;
        flex-direction: column;
    }

    .mis {
        width: 100%;
    }

    .ins {
        width: 100%;
    }

   

    .header-container {
        width: 100%;
        padding: 3px;
    }

    .info-section { 
        padding: 10px; 
    }
    
    .info-section .info-text strong { 
        font-size: 0.9rem; 
    }
}

/* ===== TRÈS PETIT MOBILE (max-width: 360px) ===== */
@media (max-width: 360px) {
    .carousel-wrapper {
        gap: 8px;
        padding: 8px 3px;
        margin-top: 70px;
    }

    .carousel-item {
        flex: 0 0 90vw;
        max-width: 90vw;
        height: 200px;
        border-radius: 8px;
    }

    .carousel-item img {
        border-radius: 8px;
    }

   

    .hero h1 {
        font-size: 2.5rem;
       
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-sidebar {
        max-width: 360px;
        background-color: var(--bg-secondary);
    }

    .freelancer-card {
        width: calc(50% - 24px);
    }

    .search-form {
        padding: 15px;
        flex-direction: column;
    }

    .container {
        padding: 0 0px;
        display: flex;
        flex-direction: column;
    }

    .modal-content {
        margin: 10px;
    }

    .content {
        height: 100vh;
    }

    .homeModal:last-child {
        justify-content: flex-start;
        padding-top: 60px;
    }

    .btnconexion,
    .btninscription {
        gap: 15px;
    }

    .google-login-btn,
    .loginOptions {
        font-size: 14px;
        padding: 10px 15px;
    }

    .modal-nav-btn {
        padding: 10px 10px;
        font-size: 13px;
    }

    .email-form-container {
        gap: 12px;
    }

    .inputFormLogin {
        font-size: 14px;
    }

    .submitLoginBtn {
        padding: 11px 20px;
        font-size: 15px;
    }

    .modalConexionclass {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    .modalConexionclass.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }

    .gallery-container h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .slyde {
        flex: 0 0 95vw;
        max-width: 95vw;
        height: 300px;
    }

    .nvcarre { 
        flex: 1 1 90%; 
        margin-bottom: 20px; 
    }

    .carrier { 
        flex-direction: column; 
        align-items: center; 
        height: auto; 
    }

    .pic {
        flex-direction: column;
        width: auto;
        margin-bottom: 250px;
    }

    .slider-text {
        width: 100%;
        font-size: 20px;
    }

    .slider-container {
        width: 100%;
    }

    .close {
        font-size: 20px;
        display: flex;
        justify-content: right;
    }
}

/* ===== DESKTOP (min-width: 769px) ===== */
@media (min-width: 769px) {
    .search-section {
        top: 25px;
    }

    .language-btn-mobile {
        display: none !important;
    }

    .menu-btn {
        display: none !important;
    }

    .language-btn {
        display: block !important;
    }

    .header-controls {
        display: none !important;
    }

    .nav-sidebar {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }
}

/* ===== LARGE SCREENS (min-width: 1025px) ===== */
@media (min-width: 1025px) {
    .header-controls {
        display: none !important;
    }

    .nav-sidebar {
        display: none !important;
    }

    

    .nav-overlay {
        display: none !important;
    }

    .sidebar {
        display: block !important;
    }
}

/* ===== TABLETTE LARGE (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        grid-gap: 6px;
        grid-auto-rows: minmax(100px, auto);
    }

    .photo-item.span-3 {
        grid-column-end: span 2;
        grid-row-end: span 2;
    }
}

/* ===== BREAKPOINT 900px ===== */
@media (max-width: 900px) {
    .nvcarre { 
        flex: 1 1 45%; 
    }
}

/* ===== BREAKPOINT 600px ===== */
@media (max-width: 600px) {
    .carrier { 
        flex-direction: column; 
        align-items: center; 
        height: auto; 
    }
    
    .nvcarre { 
        flex: 1 1 90%; 
        margin-bottom: 20px; 
    }
}