/* ============================================
   CSS MODERNE POUR ACCEUIL.PHP - ETML
   ============================================ */

/* Variables CSS */
:root {
    --etml-blue-dark: #050038;
    --etml-blue-royal: #0000AC;
    --etml-blue-light: #1976d2;
    --etml-gray: #1a1a1a;
    --etml-medium-gray: #4a4a4a;
    --etml-light-gray: #6b6b6b;
    --etml-bg-gray: #f8f9fa;
    --etml-white: #ffffff;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--etml-gray);
    background-color: var(--etml-white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--etml-white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(5, 0, 56, 0.08);
    border-bottom: 1px solid #e1e5e9;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
    min-height: 70px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--etml-blue-royal);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--etml-medium-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--etml-blue-royal);
}

.nav-link.admin-link {
    color: var(--etml-blue-royal);
    font-weight: 600;
}

.nav-link.admin-link:hover {
    color: var(--etml-blue-dark);
}

@media (max-width: 1023px) {
    .nav {
        gap: 1.5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 172, 0.75) 0%, rgba(5, 0, 56, 0.85) 100%),
        url('https://www.etml.ch/storage/app/media/Batiment-Nord-Nuit-phare.jpg') center center / cover no-repeat;
    color: var(--etml-white);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--etml-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}


.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* Search Bar */
.search-bar {
    display: flex;
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
    box-shadow: 0 25px 70px rgba(0, 0, 172, 0.35),
        0 0 0 3px rgba(0, 0, 172, 0.15);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 172, 0.3);
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-bar input {
    width: 100%;
    border: none;
    padding: 22px 32px;
    font-size: 1.15rem;
    border-radius: 14px;
    outline: none;
    color: var(--etml-gray);
    background: transparent;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.search-bar input::placeholder {
    color: var(--etml-light-gray);
    opacity: 0.8;
    font-weight: 400;
}

.search-bar input:focus {
    color: var(--etml-gray);
}

#searchBtn {
    background: linear-gradient(135deg, var(--etml-blue-royal) 0%, #1a1aff 100%);
    border: none;
    padding: 22px 42px;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 172, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
}

#searchBtn:hover {
    background: linear-gradient(135deg, var(--etml-blue-dark) 0%, var(--etml-blue-royal) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 172, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#searchBtn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 172, 0.4);
}

#searchBtn i {
    font-size: 1.1rem;
}

/* Bouton scroll vers la section recherche */
.scroll-down-btn-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1.2s ease 1s both;
    position: relative;
    z-index: 3;
}


.scroll-down-btn {
    background: white;
    border: none;
    border-radius: 50%;
    padding: 0;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

.scroll-down-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--etml-blue-royal), var(--etml-blue-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.scroll-down-btn:hover::before {
    opacity: 1;
}

.scroll-down-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 172, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.15);
}

.scroll-down-btn:active {
    transform: translateY(-4px) scale(1.05);
}

.scroll-down-btn i {
    font-size: 1.8rem;
    color: var(--etml-blue-royal);
    animation: bounceDown 2s ease-in-out infinite;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.scroll-down-btn:hover i {
    color: white;
    transform: translateY(4px);
}

.scroll-down-btn span {
    display: none;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    max-height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.search-suggestions.show {
    display: block;
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.98);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 20px 20px 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--etml-blue-royal), var(--etml-blue-light));
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--etml-blue-dark), var(--etml-blue-royal));
}

.suggestion-item {
    padding: 20px 28px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    background: transparent;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.25s ease;
    border-radius: 0 4px 4px 0;
}

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

.suggestion-item:hover {
    background: linear-gradient(90deg, rgba(0, 0, 172, 0.05) 0%, rgba(0, 0, 172, 0.02) 100%);
    padding-left: 32px;
    transform: translateX(4px);
}

.suggestion-item:hover::before {
    background: linear-gradient(180deg, var(--etml-blue-royal), var(--etml-blue-light));
    width: 4px;
}

.suggestion-item.active {
    background: linear-gradient(135deg, var(--etml-blue-royal) 0%, #1a1aff 100%);
    color: white;
    padding-left: 32px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.suggestion-item.active::before {
    background: rgba(255, 255, 255, 0.4);
    width: 5px;
}

.suggestion-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    color: var(--etml-blue-royal);
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 172, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 172, 0.1);
    transition: all 0.25s ease;
}

.suggestion-item:hover .suggestion-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 172, 0.2);
    border-color: rgba(0, 0, 172, 0.2);
}

.suggestion-item.active .suggestion-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--etml-gray);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.suggestion-title strong,
.highlight-match {
    color: var(--etml-blue-royal);
    font-weight: 800;
    background: linear-gradient(135deg, var(--etml-blue-royal), var(--etml-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 2px;
}

.suggestion-title strong::after,
.highlight-match::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--etml-blue-royal), var(--etml-blue-light));
    opacity: 0.3;
    border-radius: 1px;
}

.suggestion-item.active .suggestion-title {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.suggestion-item.active .suggestion-title strong,
.suggestion-item.active .highlight-match {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

.suggestion-item.active .suggestion-title strong::after,
.suggestion-item.active .highlight-match::after {
    background: rgba(255, 255, 255, 0.4);
    opacity: 0.6;
}

.suggestion-subtitle {
    font-size: 0.9rem;
    color: var(--etml-medium-gray);
    font-weight: 500;
    line-height: 1.4;
}

.suggestion-item.active .suggestion-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.suggestion-badge {
    background: linear-gradient(135deg, rgba(0, 0, 172, 0.12) 0%, rgba(25, 118, 210, 0.1) 100%);
    color: var(--etml-blue-royal);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1.5px solid rgba(0, 0, 172, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 172, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.suggestion-item.active .suggestion-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Aperçu enrichi entreprises */
.suggestion-entreprise-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
}

.suggestion-entreprise-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 0, 172, 0.12) 0%, rgba(25, 118, 210, 0.1) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 2.5px solid rgba(0, 0, 172, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 172, 0.15);
    transition: all 0.25s ease;
}

.suggestion-item:hover .suggestion-entreprise-logo {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 16px rgba(0, 0, 172, 0.25);
    border-color: rgba(0, 0, 172, 0.3);
}

.suggestion-item.active .suggestion-entreprise-logo {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.suggestion-entreprise-info {
    flex: 1;
    min-width: 0;
}

.suggestion-description {
    font-size: 0.9rem;
    color: var(--etml-medium-gray);
    margin-top: 8px;
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-item.active .suggestion-description {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.suggestion-metiers {
    font-size: 0.85rem;
    color: var(--etml-blue-royal);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(0, 0, 172, 0.06);
    border-radius: 8px;
    width: fit-content;
    border: 1px solid rgba(0, 0, 172, 0.1);
}

.suggestion-metiers i {
    font-size: 0.75rem;
}

.suggestion-item.active .suggestion-metiers {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.no-results {
    padding: 50px 28px;
    text-align: center;
    color: var(--etml-light-gray);
}

.no-results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--etml-blue-royal);
    font-size: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 172, 0.15);
    border: 3px solid rgba(0, 0, 172, 0.1);
}

.no-results-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--etml-gray);
    letter-spacing: -0.01em;
}

.no-results-subtitle {
    font-size: 1rem;
    color: var(--etml-medium-gray);
    font-weight: 500;
    line-height: 1.5;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--etml-gray);
    position: relative;
    padding-bottom: 1.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--etml-blue-royal), var(--etml-blue-light));
    border-radius: 2px;
}

section p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--etml-medium-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Section */
.search-section {
    background: var(--etml-bg-gray);
}

/* Filtres et tri pour les métiers */
/* Filtres et tri pour les métiers */
.metiers-filters {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow:
        0 20px 40px -4px rgba(0, 0, 172, 0.08),
        0 8px 16px -4px rgba(0, 0, 172, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    /* Hardware acceleration hack */
}

.metiers-filters:hover {
    box-shadow:
        0 25px 50px -4px rgba(0, 0, 172, 0.12),
        0 12px 24px -4px rgba(0, 0, 172, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transform: translateY(-2px);
}

.metiers-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 70%);
    transform: skewX(-25deg) translateX(-150%);
    animation: shine 8s infinite ease-in-out;
    pointer-events: none;
    will-change: transform;
}

@keyframes shine {

    0%,
    80% {
        transform: skewX(-25deg) translateX(-150%);
    }

    100% {
        transform: skewX(-25deg) translateX(250%);
    }
}

.metiers-filters::before {
    display: none;
}

.metiers-search-box {
    position: relative;
    margin-bottom: 2rem;
}

.metiers-search-box i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--etml-blue-royal);
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.metiers-search-box input {
    width: 100%;
    padding: 20px 60px 20px 60px;
    border: 1px solid rgba(0, 0, 172, 0.1);
    border-radius: 18px;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: #f8fafc;
    color: #1e293b;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.metiers-search-box input::placeholder {
    color: var(--etml-light-gray);
    font-weight: 400;
}

.metiers-search-box input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    background: white;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 10px 20px -5px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.metiers-search-box input:focus+.clear-search-btn+i,
.metiers-search-box:focus-within i {
    color: #4f46e5;
    transform: translateY(-50%);
}

.clear-search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 172, 0.08);
    border: none;
    color: var(--etml-blue-royal);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: var(--etml-blue-royal);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 172, 0.3);
}

.clear-search-btn i {
    font-size: 0.9rem;
}

.metiers-sort-filters {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sort-select {
    padding: 18px 45px 18px 22px;
    border: 1px solid rgba(0, 0, 172, 0.1);
    border-radius: 18px;
    font-size: 1rem;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
    font-weight: 600;
    min-width: 240px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234F46E5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
}

.sort-select:hover {
    background-color: #f8fafc;
    border-color: var(--etml-blue-royal);
    box-shadow: 0 4px 12px rgba(0, 0, 172, 0.1);
    transform: translateY(-1px);
}

.sort-select:focus {
    border-color: var(--etml-blue-royal);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 172, 0.12),
        0 4px 16px rgba(0, 0, 172, 0.15);
    transform: translateY(-1px);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.filter-checkbox::before {
    content: '';
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    /* Gray toggle off */
    border-radius: 99px;
    position: relative;
    transition: background 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: block !important;
}

.filter-checkbox::after {
    content: '';
    position: absolute;
    left: 22px;
    /* 20px padding + 2px offset */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
}

/* Hover state */
.filter-checkbox:hover::after {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Checked state */
.filter-checkbox:has(input[type="checkbox"]:checked)::before {
    background: #4f46e5;
    /* Indigo toggle on */
}

.filter-checkbox:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-50%) translateX(20px);
}

/* Hide default checkbox */
.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-checkbox span {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.filter-checkbox:has(input[type="checkbox"]:checked) span {
    color: #4f46e5;
}

/* Remove old hover override */
.filter-checkbox:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.filter-checkbox:has(input[type="checkbox"]:checked) {
    background: transparent;
    border-color: transparent;
    color: inherit;
}

.metiers-count-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 1.1rem;
    color: #0000AC;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metiers-count-info ::before {
    display: none;
}

/* Remove gradient text for span, make it solid blue */
/* Luxury Count Info */
.metiers-count-info span {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.metiers-count-info span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, transparent);
    opacity: 0.3;
    border-radius: 1px;
}

/* Métiers Grid */
.metiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.metier-card.hidden {
    display: none;
}

.metier-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f0f2f5;
    position: relative;
}

.metier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 172, 0.15);
    border-color: var(--etml-blue-royal);
}

.metier-card.active {
    border: 5px solid var(--etml-blue-royal);
    outline: 4px solid rgba(0, 0, 172, 0.3);
    outline-offset: 3px;
    background: linear-gradient(135deg, var(--etml-blue-royal) 0%, var(--etml-blue-light) 100%);
    color: white;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 172, 0.4),
        0 0 0 8px rgba(0, 0, 172, 0.2);
    animation: pulseActive 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulseActive {

    0%,
    100% {
        box-shadow: 0 25px 70px rgba(0, 0, 172, 0.4),
            0 0 0 8px rgba(0, 0, 172, 0.2);
    }

    50% {
        box-shadow: 0 25px 70px rgba(0, 0, 172, 0.5),
            0 0 0 12px rgba(0, 0, 172, 0.3);
    }
}

.metier-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--etml-blue-royal);
    border: 2px solid rgba(0, 0, 172, 0.1);
}

.metier-card.active .metier-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.metier-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--etml-gray);
}

.metier-card.active h3 {
    color: white;
}

.metier-card p {
    font-size: 1rem;
    color: var(--etml-medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.metier-card.active p {
    color: rgba(255, 255, 255, 0.95);
}

.entreprises-count {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--etml-blue-royal);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(0, 0, 172, 0.15);
}

.metier-card.active .entreprises-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Entreprises Section */
.entreprises-section {
    background: white;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.filter-bar select {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: var(--etml-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.filter-bar select:focus {
    border-color: var(--etml-blue-royal);
    box-shadow: 0 0 0 3px rgba(0, 0, 172, 0.1);
}

.entreprises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.entreprise-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #f0f2f5;
}

.entreprise-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 172, 0.12);
    border-color: rgba(0, 0, 172, 0.2);
}

.entreprise-card .entreprise-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    margin: -2rem -2rem 1.5rem -2rem;
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.entreprise-logo {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--etml-blue-royal);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);

}

.entreprise-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--etml-gray);
    margin-bottom: 0.25rem;
}

.entreprise-card .entreprise-header p {
    font-size: 0.95rem;
    color: var(--etml-medium-gray);
    margin: 0;
    text-align: left;
}

.entreprise-body {
    margin-top: 1rem;
}

.entreprise-info {
    margin-bottom: 1rem;
}

.entreprise-info p {
    font-size: 0.9rem;
    color: var(--etml-medium-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.entreprise-info i {
    color: var(--etml-blue-royal);
    width: 20px;
}

.metiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.metier-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--etml-blue-royal);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 172, 0.2);
}

.no-results {
    padding: 60px 40px;
    text-align: center;
    color: var(--etml-light-gray);
    background: linear-gradient(135deg, rgba(0, 0, 172, 0.02) 0%, rgba(25, 118, 210, 0.01) 100%);
    border-radius: 16px;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 0, 172, 0.08) 0%, rgba(25, 118, 210, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.no-results-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 50%;
}

.no-results-icon i {
    font-size: 3rem;
    color: var(--etml-blue-royal);
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.no-results-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--etml-gray);
}

.no-results-subtitle {
    font-size: 1.1rem;
    color: var(--etml-light-gray);
    margin-bottom: 32px;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: var(--etml-bg-gray);
    border-top: 1px solid #e1e5e9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--etml-gray);
    margin: 0;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    text-align: left;
}

.contact-info p:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 172, 0.1);
    border-color: var(--etml-blue-royal);
}

.contact-info i {
    color: var(--etml-blue-royal);
    font-size: 1.2rem;
    width: 24px;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-content {
    background: white;
    margin: 0 auto;
    padding: 0;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideInModal 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideInModal {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.96);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.close {
    position: absolute;
    right: 24px;
    top: 24px;
    color: #64748b;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    transition: all 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: #1e293b;
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 3rem 3rem 2.5rem 3.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.entreprise-logo-large {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.entreprise-title {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.entreprise-title h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.entreprise-title p {
    font-size: 1.0625rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Modal Body */
.modal-body {
    padding: 3rem 3rem 3rem 3.5rem;
    max-height: calc(90vh - 280px);
    overflow-y: auto;
    background: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.modal-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 0.875rem;
    margin: 0 0 1.25rem 0;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-section h3 i {
    color: #3b82f6;
    font-size: 1.125rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 6px;
    flex-shrink: 0;
}

.modal-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
    text-align: left;
}

.places-count {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1e40af !important;
    margin-bottom: 0.75rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.date-candidature {
    font-size: 0.875rem !important;
    color: #64748b !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.date-candidature i {
    color: #64748b;
    font-size: 0.875rem;
}

.avantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.avantages-list li {
    padding: 0.75rem 1rem;
    padding-left: 2.75rem;
    position: relative;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 400;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.avantages-list li:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.avantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.modal-section.contact-section .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.875rem;
}

.modal-section.contact-section .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: #334155;
    margin: 0;
    padding: 1rem 1.2rem;
    font-weight: 400;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modal-section.contact-section .contact-info p:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.modal-section.contact-section .contact-info i {
    color: white;
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.modal-section.contact-section .contact-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.modal-section.contact-section .contact-info a:hover {
    color: #1e40af;
    text-decoration: underline;
    border-bottom-color: #1e40af;
}

.modal-section .metiers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.modal-section .metier-tag {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.1);
}

.modal-section .metier-tag:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.webmaster-credit {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.webmaster-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.webmaster-credit a:hover {
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablette (768px - 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 20px;
    }

    .metiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .hero-content h2 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2.4rem;
    }

    .modal-content {
        max-width: 90%;
    }

    .modal-header {
        padding: 2.5rem 2.5rem 2rem 2.5rem;
    }

    .modal-body {
        padding: 2.5rem;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {

    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Header */
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 16px;
        min-height: auto;
    }

    .logo-img {
        height: 35px;
        max-width: 200px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .scroll-down-btn-container {
        margin-top: 2rem;
    }

    .scroll-down-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .scroll-down-btn span {
        display: none;
    }

    .scroll-down-btn i {
        font-size: 1.4rem;
    }

    /* Search Bar */
    .search-bar {
        flex-direction: column;
        padding: 8px;
        border-radius: 16px;
        max-width: 100%;
    }

    .search-bar:focus-within {
        transform: translateY(0);
    }

    .search-bar input {
        padding: 18px 24px;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    #searchBtn {
        width: 100%;
        padding: 18px 28px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Search Suggestions */
    .search-suggestions {
        border-radius: 16px;
        max-height: 450px;
        top: calc(100% + 10px);
    }

    .suggestion-item {
        padding: 16px 20px;
        gap: 14px;
    }

    .suggestion-item:hover {
        padding-left: 24px;
        transform: translateX(2px);
    }

    .suggestion-item.active {
        padding-left: 24px;
    }

    .suggestion-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .suggestion-title {
        font-size: 1rem;
    }

    .suggestion-subtitle {
        font-size: 0.85rem;
    }

    .suggestion-entreprise-logo {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }

    .suggestion-badge {
        padding: 6px 14px;
        font-size: 0.8125rem;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        padding-bottom: 1rem;
    }

    section h2::after {
        width: 60px;
        height: 3px;
    }

    section p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    /* Métiers Filters */
    .metiers-filters {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .metiers-search-box {
        margin-bottom: 1.5rem;
    }

    .metiers-search-box input {
        padding: 16px 55px 16px 55px;
        font-size: 1.05rem;
        border-radius: 14px;
    }

    .clear-search-btn {
        right: 18px;
        width: 32px;
        height: 32px;
    }

    .metiers-sort-filters {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .sort-select {
        width: 100%;
        min-width: auto;
        padding: 12px 45px 12px 18px;
        font-size: 0.95rem;
    }

    .filter-checkbox {
        width: 100%;
        padding: 12px 18px;
        justify-content: center;
    }

    .metiers-count-info {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        font-size: 0.95rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .metiers-count-info span {
        font-size: 1.2rem;
    }

    /* Métiers Grid */
    .metiers-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 0;
    }

    .metier-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .metier-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .metier-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.625rem;
    }

    .metier-card p {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .entreprises-count {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-bar select {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9375rem;
    }

    /* Entreprises Grid */
    .entreprises-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .entreprise-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .entreprise-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .entreprise-card h3 {
        font-size: 1.25rem;
    }

    .entreprise-info p {
        font-size: 0.875rem;
    }

    /* Contact Section */
    .contact-info {
        gap: 0.75rem;
    }

    .contact-info p {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }

    .contact-info i {
        font-size: 1.1rem;
    }

    /* Modal */
    .modal {
        padding: 1rem 0.5rem;
    }

    .modal-content {
        margin: 0 auto;
        max-width: calc(100% - 1rem);
        max-height: 95vh;
        border-radius: 20px;
    }

    .close {
        right: 16px;
        top: 16px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .modal-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .entreprise-logo-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .entreprise-title h2 {
        font-size: 1.5rem;
    }

    .entreprise-title p {
        font-size: 0.9375rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
        max-height: calc(95vh - 240px);
    }

    .modal-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .modal-section h3 {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .modal-section p {
        font-size: 0.875rem;
    }

    .places-count {
        font-size: 1.25rem !important;
        padding: 0.5rem 0.875rem !important;
    }

    .modal-section.contact-section .contact-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .modal-section.contact-section .contact-info p {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .modal-section.contact-section .contact-info i {
        width: 28px;
        height: 28px;
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h3 {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }

    .footer-section p {
        font-size: 0.875rem;
    }

    .footer-section ul li a {
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.8125rem;
    }
}

/* Très petits écrans (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header .container {
        padding: 0.75rem 12px;
    }

    .logo-img {
        height: 30px;
        max-width: 180px;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8125rem;
        padding: 0.4rem 0.6rem;
    }

    .hero {
        padding: 90px 0 40px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9375rem;
    }

    .search-bar input {
        padding: 16px 20px;
        font-size: 1rem;
    }

    #searchBtn {
        padding: 16px 24px;
        font-size: 0.95rem;
    }

    .suggestion-item {
        padding: 14px 18px;
    }

    .suggestion-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .suggestion-entreprise-logo {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .metier-card {
        padding: 1.5rem 1.25rem;
    }

    .metier-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .metier-card h3 {
        font-size: 1.2rem;
    }

    .modal-content {
        max-width: calc(100% - 0.5rem);
        border-radius: 16px;
    }

    .modal-header {
        padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    }

    .modal-body {
        padding: 1.5rem 1.25rem;
    }

    .modal-section {
        padding: 1.25rem;
    }

    .entreprise-logo-large {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .entreprise-title h2 {
        font-size: 1.3rem;
    }
}


/* Stealth Admin Link */
.admin-link {
    opacity: 0.3;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.admin-link:hover {
    opacity: 1;
    color: white !important;
    transform: rotate(15deg) scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}