/**
 * Styles pour les Landing Pages Infotravo
 */

/* === Variables CSS === */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* === Base === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #334155;
    line-height: 1.6;
}

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* === Hero Section === */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 5rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.min-vh-50 {
    min-height: 40vh;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* === Avantages === */
.avantage-card {
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.avantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.avantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.avantage-icon i {
    color: white !important;
}

/* === Formulaire === */
.form-wrapper {
    border: 1px solid #e2e8f0;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #cbd5e1;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e40af);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* === Témoignages === */
.temoignage-card {
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.temoignage-card:hover {
    box-shadow: var(--box-shadow-lg);
}

.avatar {
    font-weight: 700;
    font-size: 1.25rem;
}

.stars i {
    color: var(--warning-color);
}

/* === FAQ === */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 99, 235, 0.2);
}

/* === CTA Final === */
.cta-final {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* === Métiers (Home) === */
.metier-card {
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.metier-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.transition-all {
    transition: var(--transition);
}

/* === Content Section === */
.content-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    color: var(--secondary-color);
}

.pourquoi-nous li {
    padding: 0.5rem 0;
}

.etape {
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* === Footer === */
.footer {
    background-color: var(--dark-color);
}

.footer a:hover {
    text-decoration: underline !important;
}

/* === Utilities === */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

/* === Error Page === */
.error-page h1 {
    font-size: 8rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .error-page h1 {
        font-size: 5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* === Responsive adjustments === */
@media (max-width: 991px) {
    .form-wrapper.sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* === Search Project (Home) === */
.search-project-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-project-wrapper .form-control {
    font-size: 1rem;
}

.search-project-wrapper .form-control:focus {
    box-shadow: none;
    background-color: #f1f5f9;
}

.suggestions-container {
    text-align: left;
}

.suggestion-btn {
    font-size: 0.875rem;
    transition: var(--transition);
}

.suggestion-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* === Métiers Icons === */
.metier-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.metier-icon-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    border: 2px solid #e2e8f0;
}

.metier-icon-fallback {
    width: 50px;
    height: 50px;
}

/* === Métiers Cards Compact === */
.metier-card {
    padding: 0.875rem !important;
}

.metier-card h3.h6 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* === Collapse Button === */
#metiersCollapse {
    margin-top: 1rem;
}

/* === Section Introduction === */
.intro-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Tips Card */
.tips-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
}

.tips-header {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tips-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
}

.tips-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.tips-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.2rem;
}

/* Tips Grid - Nouveau design */
.tips-grid {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.tip-card:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.tip-card:nth-child(1) { border-left-color: #2563eb; }
.tip-card:nth-child(2) { border-left-color: #059669; }
.tip-card:nth-child(3) { border-left-color: #d97706; }
.tip-card:nth-child(4) { border-left-color: #dc2626; }
.tip-card:nth-child(5) { border-left-color: #7c3aed; }

.tip-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.tip-card:nth-child(1) .tip-icon-wrapper { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.tip-card:nth-child(2) .tip-icon-wrapper { background: rgba(5, 150, 105, 0.1); color: #059669; }
.tip-card:nth-child(3) .tip-icon-wrapper { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.tip-card:nth-child(4) .tip-icon-wrapper { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.tip-card:nth-child(5) .tip-icon-wrapper { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.tip-content {
    flex: 1;
}

.tip-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
}

.tip-text {
    color: #334155;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Ancien style tips (fallback) */
.tips-body {
    padding: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.tip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tip-item:first-child {
    padding-top: 0;
}

.tip-number {
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Bloc contenu détaillé avec image intégrée */
.content-detail-block {
    padding-top: 1rem;
}

.content-detail-with-image {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem 2.5rem;
    overflow: hidden;
}

.content-image-float {
    float: right;
    width: 320px;
    margin: 0 0 1.5rem 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.content-float-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.content-image-float:hover .content-float-img {
    transform: scale(1.03);
}

.content-detail-body {
    color: #475569;
    line-height: 1.8;
    font-size: 1rem;
}

.content-detail-body h3 {
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.content-detail-body h3:first-child {
    margin-top: 0;
}

.content-detail-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.content-detail-body p:last-child {
    margin-bottom: 0;
}

.content-detail-body ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.content-detail-body ul li {
    margin-bottom: 0.5rem;
}

.content-detail-body strong {
    color: #1e293b;
}

/* Tips liste compacte */
.tips-list-compact {
    padding: 1rem 1.5rem 1.25rem 1.5rem;
}

.tip-item-compact {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tip-item-compact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tip-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    border-radius: 6px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.tip-text-compact {
    margin: 0;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Tips card ajustée */
.tips-card {
    display: flex;
    flex-direction: column;
}

.tips-card.h-100 {
    height: 100%;
}

/* Conseil pro ajusté */
.conseil-pro-card.h-100 {
    display: flex;
    flex-direction: column;
}

.conseil-pro-card .conseil-pro-quote {
    flex-grow: 1;
}

@media (max-width: 991.98px) {
    .content-image-float {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1.5rem;
        display: block;
    }
    
    .content-detail-with-image {
        padding: 1.5rem;
    }
    
    .content-detail-body p {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .content-detail-with-image {
        padding: 1.25rem;
    }
    
    .content-image-float {
        max-width: 100%;
    }
    
    .tips-card,
    .conseil-pro-card {
        margin-bottom: 1rem;
    }
}

.intro-image-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.intro-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.intro-image-wrapper:hover .intro-image {
    transform: scale(1.02);
}

/* Conseil Pro Card */
.conseil-pro-card {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.conseil-pro-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    pointer-events: none;
}

.conseil-pro-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.conseil-pro-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.conseil-pro-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.conseil-pro-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.conseil-pro-quote {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    padding: 0;
    border: none;
    opacity: 0.95;
}

.conseil-pro-card .btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s ease;
}

.conseil-pro-card .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 991.98px) {
    .intro-sidebar {
        position: relative;
        top: 0;
    }
    
    .tips-card {
        margin-bottom: 2rem;
    }
}

/* === Print styles === */
@media print {
    .header, .footer, .form-wrapper, .cta-final {
        display: none !important;
    }
}

/* ============================================
   ANNUAIRE DES PROFESSIONNELS - Design Premium
   ============================================ */

/* --- Annuaire Hero --- */
.annuaire-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 60%, #1e3a8a 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.annuaire-hero--image {
    background: linear-gradient(135deg, rgba(13,72,191,0.88) 0%, rgba(30,58,138,0.92) 50%, rgba(15,23,42,0.90) 100%),
                url('/images/annuaire-hero.jpg') center/cover no-repeat;
    padding: 5rem 0 4rem;
}

.annuaire-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.annuaire-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.annuaire-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    letter-spacing: -0.02em;
}

.annuaire-hero .hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 650px;
}

.annuaire-hero .hero-hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Search Wrapper --- */
.search-wrapper {
    max-width: 920px;
    margin: 0 auto;
}

/* --- Recherche avancée 3 champs (horizontal) --- */
.annuaire-search-advanced {
    width: 100%;
}

.annuaire-search-advanced .search-fields {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: visible;
}

/* Champ individuel */
.annuaire-search-advanced .search-field {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.6rem 0 0.6rem 1rem;
    min-width: 0;
    transition: background 0.2s;
    border-radius: 60px;
}

.annuaire-search-advanced .search-field:hover,
.annuaire-search-advanced .search-field:focus-within {
    background: #f0f5ff;
}

.annuaire-search-advanced .search-field--keyword {
    flex: 1.1;
    padding-left: 1.5rem;
}

/* Label au-dessus */
.annuaire-search-advanced .search-field-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    margin-bottom: 0;
    padding-left: 1.6rem;
    line-height: 1;
}

/* Ligne intérieure : icône + input */
.annuaire-search-advanced .search-field-inner {
    display: flex;
    align-items: center;
    position: relative;
}

.annuaire-search-advanced .search-field-icon {
    color: var(--primary-color, #0d6efd);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.annuaire-search-advanced .search-field .form-control {
    border: none;
    border-radius: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.92rem;
    background: transparent;
    color: #1e293b;
    height: auto;
    line-height: 1.4;
}

.annuaire-search-advanced .search-field .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.annuaire-search-advanced .search-field .form-control:focus {
    box-shadow: none;
    outline: none;
    background: transparent;
}

/* Séparateur vertical */
.search-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.75rem 0;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Bouton recherche (rond) */
.annuaire-search-advanced .search-btn {
    border-radius: 50px;
    padding: 0 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    margin: 0.45rem 0.45rem 0.45rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    background: var(--primary-color, #0d6efd);
    color: #fff;
    transition: all 0.2s;
}

.annuaire-search-advanced .search-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
}

/* --- Autocomplete Dropdown (amélioré) --- */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: -1rem;
    right: -1rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1050;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem 0;
    animation: dropdownFade 0.18s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.autocomplete-dropdown.show {
    display: block;
}

/* Scrollbar personnalisée */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}
.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

/* Header du dropdown */
.autocomplete-dropdown-header {
    padding: 0.5rem 1rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

/* Item */
.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: all 0.12s;
    color: #1e293b;
    font-size: 0.9rem;
    margin: 0 0.5rem;
    border-radius: 10px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f0f7ff;
}

.autocomplete-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.autocomplete-item[data-type="metier"] .autocomplete-item-icon,
.autocomplete-dropdown#dropdownMetier .autocomplete-item-icon {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color, #0d6efd);
}

.autocomplete-dropdown#dropdownVille .autocomplete-item-icon {
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

.autocomplete-item-label {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Responsive recherche avancée --- */
@media (max-width: 991px) {
    .annuaire-hero {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    .annuaire-hero--image {
        padding: 3.5rem 0 2.5rem;
    }
    .annuaire-hero .hero-title {
        font-size: 1.8rem;
    }
    .annuaire-search-advanced .search-fields {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
        gap: 0;
    }
    .annuaire-search-advanced .search-field {
        border-radius: 14px;
        padding: 0.5rem 0.75rem;
    }
    .annuaire-search-advanced .search-field--keyword {
        padding-left: 0.75rem;
    }
    .search-divider {
        width: auto;
        height: 1px;
        margin: 0 0.75rem;
        align-self: auto;
    }
    .annuaire-search-advanced .search-btn {
        border-radius: 14px;
        margin: 0.25rem;
        width: calc(100% - 0.5rem);
        min-height: 48px;
        justify-content: center;
    }
    .annuaire-search-advanced .search-btn span {
        display: inline !important;
    }
    .autocomplete-dropdown {
        left: 0;
        right: 0;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .annuaire-hero .hero-title {
        font-size: 1.5rem;
    }
    .annuaire-hero-badges .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem !important;
    }
}

/* ============================================
   ANNUAIRE HERO V2 - Design avec image de fond
   ============================================ */
.annuaire-hero-v2 {
    position: relative;
    z-index: 10;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
    overflow: visible;
}

.annuaire-hero-v2__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.annuaire-hero-v2__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.55) 0%,
        rgba(15, 23, 42, 0.70) 50%,
        rgba(15, 23, 42, 0.80) 100%
    );
    z-index: 1;
}

.annuaire-hero-v2__title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.30);
    margin-bottom: 0.75rem;
}

.annuaire-hero-v2__subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}

/* --- Search Bar horizontale --- */
.annuaire-searchbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.20), 0 2px 8px rgba(0,0,0,0.06);
    overflow: visible;
    position: relative;
}

.annuaire-searchbar__field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    min-width: 0;
    position: relative;
    transition: background 0.2s;
    border-radius: 12px;
}

.annuaire-searchbar__field:hover,
.annuaire-searchbar__field:focus-within {
    background: #f8fafc;
}

.annuaire-searchbar__icon {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.annuaire-searchbar__field:focus-within .annuaire-searchbar__icon {
    color: var(--primary-color, #0d6efd);
}

.annuaire-searchbar__input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1e293b;
    width: 100%;
    padding: 0;
    line-height: 1.5;
}

.annuaire-searchbar__input::placeholder {
    color: #94a3b8;
}

.annuaire-searchbar__sep {
    width: 1px;
    align-self: stretch;
    margin: 0.65rem 0;
    background: #e2e8f0;
    flex-shrink: 0;
}

.annuaire-searchbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    background: var(--primary-color, #0d6efd);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    margin: 0.35rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.annuaire-searchbar__btn:hover {
    background: var(--primary-dark, #0b5ed7);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

/* Autocomplete repositionné pour la v2 */
.annuaire-searchbar__field .autocomplete-dropdown {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
}

/* Badges sous la barre de recherche */
.annuaire-hero-v2__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.annuaire-hero-v2__badges span {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

.annuaire-hero-v2__badges span i {
    opacity: 0.7;
}

/* --- Responsive Hero V2 --- */
@media (max-width: 991px) {
    .annuaire-hero-v2 {
        min-height: auto;
        padding: 3.5rem 0 3rem;
    }
    .annuaire-hero-v2__title {
        font-size: 2rem;
    }
    .annuaire-searchbar {
        flex-direction: column !important;
        border-radius: 16px;
        gap: 0;
    }
    .annuaire-searchbar__field {
        padding: 0.75rem 1rem;
        border-radius: 12px;
    }
    .annuaire-searchbar__sep {
        width: auto;
        height: 1px;
        margin: 0 1rem;
        align-self: auto;
    }
    .annuaire-searchbar__btn {
        margin: 0.5rem;
        border-radius: 12px;
        padding: 0.85rem 1rem;
        justify-content: center;
    }
    .annuaire-searchbar__field .autocomplete-dropdown {
        left: -0.5rem;
        right: -0.5rem;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .annuaire-hero-v2 {
        padding: 2.5rem 0 2rem;
    }
    .annuaire-hero-v2__title {
        font-size: 1.6rem;
    }
    .annuaire-hero-v2__subtitle {
        font-size: 0.95rem;
    }
    .annuaire-hero-v2__badges {
        gap: 0.5rem;
    }
    .annuaire-hero-v2__badges span {
        font-size: 0.78rem;
    }
}

/* --- Annuaire Stats --- */
.annuaire-stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.annuaire-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.annuaire-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.annuaire-stat-icon.icon-pros {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.annuaire-stat-icon.icon-villes {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.annuaire-stat-icon.icon-metiers {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.annuaire-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.2;
}

.annuaire-stat-label {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* --- Annuaire Steps (Comment ca marche) --- */
.annuaire-step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.annuaire-step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.annuaire-step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.annuaire-step-card p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
}

/* Arrow between steps (desktop only) */
.annuaire-step-arrow {
    display: none;
}

@media (min-width: 768px) {
    .annuaire-step-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #cbd5e1;
        font-size: 1.5rem;
        padding-top: 1rem;
    }
}

/* --- Annuaire Pro Card (liste) --- */
.annuaire-pro-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.annuaire-pro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.annuaire-pro-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.annuaire-pro-card .pro-metier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.annuaire-pro-card .pro-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.annuaire-pro-card .pro-address {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.annuaire-pro-card .pro-address i {
    color: #94a3b8;
    width: 16px;
}

.annuaire-pro-card .pro-status {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--success-color);
    margin-bottom: 0.75rem;
}

.annuaire-pro-card .pro-status i {
    font-size: 0.6rem;
}

.annuaire-pro-card .pro-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.annuaire-pro-card .pro-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* --- Annuaire Ville / Metier Cards --- */
.annuaire-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.annuaire-card:hover {
    box-shadow: var(--box-shadow-lg);
}

.annuaire-ville-card,
.annuaire-metier-card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    overflow: hidden;
}

.annuaire-ville-card:hover,
.annuaire-metier-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.annuaire-ville-card .card-body,
.annuaire-metier-card .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
}

.annuaire-metier-card .metier-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* --- Annuaire Fiche Card --- */
.annuaire-fiche-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.annuaire-fiche-card .card-body {
    padding: 1.5rem 2rem;
}

/* --- Annuaire Intro Block (texte metier-ville dans colonne gauche) --- */
.annuaire-intro-block {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color, #0d6efd);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.annuaire-intro-block .card-body {
    padding: 1.25rem 1.5rem;
}

.annuaire-intro-block h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.annuaire-intro-block p {
    line-height: 1.6;
    font-size: 0.875rem;
}

/* --- Annuaire Hero Badges --- */
.annuaire-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.annuaire-hero-badges .badge {
    font-weight: 500;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- Annuaire Metier Card Pro (like home metier-card) --- */
.annuaire-metier-card-pro {
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.annuaire-metier-card-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #0d6efd);
}

.annuaire-metier-card-pro .metier-icon-img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.annuaire-metier-card-pro:hover .metier-icon-img {
    border-color: var(--primary-color, #0d6efd);
}

.annuaire-metier-card-pro .fa-chevron-right {
    opacity: 0.4;
    transition: all 0.25s ease;
}

.annuaire-metier-card-pro:hover .fa-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

/* --- Annuaire Ville Card Pro --- */
.annuaire-ville-card-pro {
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.annuaire-ville-card-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color, #0d6efd);
}

.ville-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.annuaire-ville-card-pro:hover .ville-rank-badge {
    background: linear-gradient(135deg, var(--primary-color, #0d6efd), #1e40af);
    color: #fff;
}

/* --- Annuaire Search --- */
.annuaire-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* --- Pagination annuaire --- */
.annuaire-pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.875rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 0.5rem;
    margin: 0 0.15rem;
}

.annuaire-pagination .page-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.annuaire-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.annuaire-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* --- Annuaire Banner (liste) --- */
.annuaire-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.annuaire-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.annuaire-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.annuaire-banner .breadcrumb-item.active {
    color: rgba(255,255,255,0.9);
}

.annuaire-banner .breadcrumb-divider {
    color: rgba(255,255,255,0.5);
}

.annuaire-banner h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.annuaire-banner .results-count {
    font-size: 0.95rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .annuaire-banner {
        padding: 2rem 0;
        text-align: center;
    }
    .annuaire-banner h1 {
        font-size: 1.35rem;
    }
}

/* --- Empty state annuaire --- */
.annuaire-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.annuaire-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #94a3b8;
}

/* --- Annuaire Fiche : sections z-index pour empiler correctement --- */
.intro-section,
.temoignages,
.faq-section,
.annuaire-related,
.cta-final {
    position: relative;
    z-index: 2;
}

/* Bloc principal 2 colonnes (formulaire sticky) */
#formulaire.main-content {
    position: relative;
    z-index: 1;
}

/* --- Annuaire Related Pros --- */
.annuaire-related .annuaire-pro-card {
    border: 1px solid #e2e8f0;
}

/* --- Annuaire section title --- */
.annuaire-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.annuaire-section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* --- Responsive Annuaire --- */
@media (max-width: 575.98px) {
    .annuaire-pro-card .card-body {
        padding: 1rem;
    }
    .annuaire-pro-card .pro-actions {
        flex-direction: column;
    }
    .annuaire-stat-card {
        padding: 1rem;
    }
    .annuaire-stat-number {
        font-size: 1.5rem;
    }
}
