/* ==========================================================================
   LYAN - Design System (Vert Pastel, Jaune Sable & Bleu Lagon)
   ========================================================================== */
:root {
    /* Brand Palette - Direct from Logo */
    --primary: #4A7C59;            /* Vert Sage Pastel Logo */
    --primary-light: #709C7D;
    --primary-dark: #35583F;

    --sand-yellow: #E5B345;        /* Jaune Sable Logo */
    --sand-yellow-light: #F4D375;
    --sand-yellow-dark: #C69222;

    --sky-blue: #7BC5E3;           /* Bleu Pastel Lagon */
    --sky-blue-light: #E8F6FA;
    --sky-blue-dark: #3F9EB0;

    --gradient-logo: linear-gradient(135deg, #4A7C59 0%, #80A86E 50%, #E5B345 100%);
    --gradient-bg-soft: linear-gradient(135deg, rgba(74, 124, 89, 0.05) 0%, rgba(229, 179, 69, 0.05) 50%, rgba(123, 197, 227, 0.06) 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #FAF7F2 100%);
    --gradient-hero: linear-gradient(135deg, #FAF7F2 0%, #F0F6F2 45%, #FEFAF0 75%, #F0F8FA 100%);

    /* Pop Accents */
    --pop-coral: #E76F51;
    --pop-coral-light: #FCEBE6;
    --pop-emerald: #4A7C59;
    --pop-emerald-light: #EBF3EE;
    --pop-yellow: #E5B345;
    --pop-yellow-light: #FDF7E7;
    --pop-sky: #48CAE4;
    --pop-sky-light: #EBF9FC;
    --pop-purple: #9D4EDD;
    --pop-purple-light: #F6EDFC;

    /* Neutrals — Warm Sandy Tone */
    --bg: #FAF7F2;
    --bg-white: #FFFFFF;
    --bg-warm: #F4EFE6;
    --bg-dark: #1E2822;
    --text: #243329;
    --text-muted: #5C6E62;
    --text-light: #FAF7F2;

    /* UI Tokens */
    --border: #E5DFD5;
    --shadow-sm: 0 2px 8px rgba(36, 51, 41, 0.05);
    --shadow-md: 0 8px 24px rgba(36, 51, 41, 0.07);
    --shadow-lg: 0 16px 40px rgba(36, 51, 41, 0.1);
    --shadow-3d: 0 20px 40px rgba(74, 124, 89, 0.12), 0 4px 12px rgba(229, 179, 69, 0.08);
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

.text-gradient {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 110px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.6rem;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pill Badges */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.pill-green {
    background: var(--pop-emerald-light);
    color: var(--primary);
    border: 1px solid rgba(74, 124, 89, 0.25);
}

.pill-yellow {
    background: var(--pop-yellow-light);
    color: var(--sand-yellow-dark);
    border: 1px solid rgba(229, 179, 69, 0.3);
}

.pill-blue {
    background: var(--sky-blue-light);
    color: var(--sky-blue-dark);
    border: 1px solid rgba(123, 197, 227, 0.35);
}

/* Buttons — Full Edge Gradient & Outer Contour Rings */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-clip: border-box;
    background-origin: border-box;
}

.btn-primary {
    background: var(--gradient-logo);
    color: white;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.25), 0 6px 20px rgba(74, 124, 89, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.4), 0 12px 30px rgba(74, 124, 89, 0.42);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--primary-dark);
    border: 2px solid rgba(74, 124, 89, 0.4);
    box-shadow: 0 4px 14px rgba(36, 51, 41, 0.05);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.18), 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.btn-accent {
    background: linear-gradient(135deg, #F4D375 0%, #E5B345 100%);
    color: #1E2822;
    font-weight: 800;
    box-shadow: 0 0 0 2px rgba(229, 179, 69, 0.35), 0 6px 20px rgba(229, 179, 69, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #F7DC8C 0%, #E5B345 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 3px rgba(229, 179, 69, 0.5), 0 12px 30px rgba(229, 179, 69, 0.48);
}

.btn-lg {
    padding: 16px 38px;
    font-size: 1.12rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease 0.3s forwards;
}

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

@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.15s; }

/* Decorative Vector 3D Enhancements */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 12px 24px rgba(74, 124, 89, 0.1));
    transition: transform 0.5s ease;
}

@keyframes floatVector {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.deco-floating {
    animation: floatVector 6s ease-in-out infinite;
}

/* ==========================================================================
   LOGO STYLING
   ========================================================================== */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon-svg {
    transform: scale(1.06) rotate(-2deg);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.logo-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.logo-subtitle {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--primary-light);
    text-transform: uppercase;
    margin-top: 3px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(36, 51, 41, 0.06);
    border-bottom: 1px solid rgba(229, 223, 213, 0.6);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-signup-nav {
    background: var(--gradient-logo);
    color: white !important;
    padding: 10px 26px;
    border-radius: var(--radius-full);
    font-weight: 700;
    border: none;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.25), 0 4px 16px rgba(74, 124, 89, 0.3);
    transition: var(--transition);
}

.btn-signup-nav:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.4), 0 8px 24px rgba(74, 124, 89, 0.45);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
}

/* Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 40, 34, 0.6);
    backdrop-filter: blur(12px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--bg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
}

.mobile-menu-content a {
    font-size: 1.2rem;
    font-weight: 600;
}

/* ==========================================================================
   SECTION 1 : HERO
   ========================================================================== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-search {
    background: #FFFFFF;
    padding: 10px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-3d);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.hero-search-fields {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.search-input-wrapper i {
    font-size: 1.3rem;
    color: var(--primary);
}

.btn-autolocate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: var(--sky-blue-light);
    color: var(--sky-blue-dark);
    border: 1.5px solid rgba(123, 197, 227, 0.4);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-autolocate:hover {
    background: #FFFFFF;
    border-color: var(--sky-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(123, 197, 227, 0.25);
}

.btn-autolocate.loading i {
    animation: spinGps 1s linear infinite;
}

@keyframes spinGps {
    to { transform: rotate(360deg); }
}

.btn-autolocate.located {
    background: var(--pop-emerald-light);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.search-input-wrapper input,
.search-input-wrapper select {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text);
    outline: none;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(74, 124, 89, 0.22);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(36, 51, 41, 0.04);
}

.tag:hover, .tag.active {
    background: var(--pop-emerald-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.18), 0 0 0 3px rgba(74, 124, 89, 0.12);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(74, 124, 89, 0.12));
}

/* ==========================================================================
   SECTION 2 : CONFIANCE
   ========================================================================== */
.trust-section {
    background: #FFFFFF;
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trust-card {
    background: var(--bg);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

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

.trust-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.trust-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.trust-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   SECTION 3 : COMMENT ÇA MARCHE
   ========================================================================== */
.how-section {
    background: var(--gradient-bg-soft);
}

.deco-wrench { top: 10%; left: 5%; width: 100px; }
.deco-sun-small { top: 20%; right: 8%; width: 120px; }

.steps-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.step {
    flex: 1;
    background: #FFFFFF;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.step-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon-blue { background: var(--sky-blue-light); }
.step-icon-emerald { background: var(--pop-emerald-light); }
.step-icon-coral { background: var(--pop-yellow-light); }

.step-svg { width: 44px; height: 44px; }

.step-arrow {
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* ==========================================================================
   SECTION 4 : CATÉGORIES
   ========================================================================== */
.categories-section {
    background: #FFFFFF;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg);
    padding: 24px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: #FFFFFF;
}

.category-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 124, 89, 0.08);
}

.cat-svg { width: 34px; height: 34px; }

.category-name {
    font-weight: 700;
    font-size: 1rem;
}

/* ==========================================================================
   SECTION 5 : TALENTS
   ========================================================================== */
.talents-section {
    background: var(--gradient-bg-soft);
}

.talents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.talent-card {
    background: #FFFFFF;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.talent-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--sand-yellow);
}

.talent-card h3 { font-size: 1.4rem; }
.talent-role { color: var(--primary); font-weight: 700; font-size: 0.95rem; }
.talent-stars { color: var(--sand-yellow); margin: 8px 0 14px; }
.talent-card blockquote { font-style: italic; color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   SECTION 6 : TÉMOIGNAGES
   ========================================================================== */
.testimonials-section {
    background: var(--bg-dark);
    color: var(--text-light);
}

.testimonials-section h2 { color: var(--text-light); }
.testimonials-section .section-subtitle { color: rgba(255,255,255,0.7); }

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.testimonial-slide blockquote {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--sand-yellow);
    width: 24px;
    border-radius: 10px;
}

/* ==========================================================================
   SECTION 7 : CTA FINAL
   ========================================================================== */
.cta-section {
    background: var(--bg);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cta-card {
    background: #FFFFFF;
    padding: 50px 36px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

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

.cta-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cta-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--sand-yellow); }

.footer-bottom { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ==========================================================================
   PARCOURS D'INSCRIPTION INTERACTIF (MODAL MULTI-ÉTAPES)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24, 34, 28, 0.75);
    backdrop-filter: blur(12px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 680px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Modal Header & Stepper */
.modal-header {
    padding: 32px 36px 20px;
    background: var(--gradient-bg-soft);
    border-bottom: 1px solid var(--border);
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step-count {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 25%;
    background: var(--gradient-logo);
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Modal Body / Steps */
.modal-body {
    padding: 32px 36px;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-step {
    display: none;
    animation: fadeInStep 0.4s ease forwards;
}

.modal-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.step-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 28px;
}

/* Step 1 : Choice Cards */
.choice-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.choice-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.choice-card.selected {
    border-color: var(--primary);
    background: var(--pop-emerald-light);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

.choice-card-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
}

.choice-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.choice-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Step 2 : Category Chips Grid */
.category-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.cat-select-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cat-select-card:hover {
    border-color: var(--primary);
    background: #FFFFFF;
}

.cat-select-card.selected {
    background: var(--pop-emerald-light);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.15);
}

.cat-select-card i {
    font-size: 1.6rem;
    color: var(--primary);
}

.cat-select-card span {
    font-size: 0.88rem;
    font-weight: 600;
}

/* Step 3 & 4 : Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    color: var(--primary);
    pointer-events: none;
}

.modal-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.modal-input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Step 5 : Success Screen */
.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--pop-emerald-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(74, 124, 89, 0.2);
}

.recap-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin: 20px 0 28px;
    text-align: left;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
}

.recap-item span:first-child { color: var(--text-muted); }
.recap-item span:last-child { font-weight: 700; color: var(--text); }

/* Modal Footer / Navigation */
.modal-footer {
    padding: 20px 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    background: #FFFFFF;
}

/* ==========================================================================
   MODAL RÉSULTATS DE RECHERCHE MEMBRES
   ========================================================================== */
.modal-card-large {
    max-width: 900px;
    max-height: 85vh;
}

.search-summary-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.search-modal-body {
    padding: 24px 32px 36px;
    background: var(--bg);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.member-result-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.member-result-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.member-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.member-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--sand-yellow);
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10B981;
    border: 2px solid #FFFFFF;
}

.member-info h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--pop-emerald-light);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.member-role {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.member-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.member-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.rating-stars {
    color: var(--sand-yellow);
    font-weight: 800;
}

.reviews-count {
    color: var(--text-muted);
}

.hourly-badge {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--sand-yellow-dark);
    background: var(--pop-yellow-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.member-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.skill-tag {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}

.contact-member-btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Empty Search State */
.empty-search-state {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.empty-search-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.empty-search-state h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-search-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   MODAL DE CONNEXION & GOOGLE AUTH
   ========================================================================== */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FFFFFF;
    color: #1E293B;
    border: 1.5px solid #CBD5E1;
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-google:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 12px;
    font-weight: 500;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-top: 10px;
}

.forgot-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   ESPACE PROFIL BICOLORE & DASHBOARD
   ========================================================================== */
.modal-card-dashboard {
    max-width: 860px;
    width: 92%;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}

.profile-header-banner {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.4s ease;
}

/* THEME PROVIDER (TALENT) : Vert Sage & Jaune Sable */
.theme-provider .profile-header-banner {
    background: linear-gradient(135deg, #FAF7F2 0%, #E6EFE9 100%);
}

.theme-provider .profile-role-badge {
    background: rgba(74, 124, 89, 0.12);
    color: #4A7C59;
    border: 1px solid rgba(74, 124, 89, 0.3);
}

/* THEME SEEKER (HABITANT) : Rose Saumon Pastel Chaleureux & Rassurant */
.theme-seeker .profile-header-banner {
    background: linear-gradient(135deg, #FFF6F4 0%, #FCE4DF 100%);
}

.theme-seeker .profile-role-badge {
    background: rgba(217, 107, 88, 0.15);
    color: #B84A37;
    border: 1px solid rgba(217, 107, 88, 0.35);
}

.profile-user-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-photo-container {
    position: relative;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.edit-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
}

.profile-user-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-location-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.role-switch-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.role-switch-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-toggle-group {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.role-toggle-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.role-toggle-btn.active {
    background: #FFFFFF;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    padding: 0 24px;
    overflow-x: auto;
}

.profile-tab-btn {
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-tab-btn:hover {
    color: var(--text);
}

.profile-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #FFFFFF;
}

.theme-seeker .profile-tab-btn.active {
    color: #D96B58;
    border-bottom-color: #D96B58;
}

.profile-modal-body {
    padding: 28px 32px;
    max-height: 520px;
    overflow-y: auto;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
}

.theme-seeker .stat-num {
    color: #D96B58;
}

.stat-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.activity-item {
    display: flex;
    gap: 14px;
    background: var(--bg);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.activity-details strong {
    display: block;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.activity-details span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.review-quote {
    margin-top: 8px;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--text);
}

/* ==========================================================================
   PROFIL PUBLIC RÉSEAU SOCIAL & RÉALISATIONS
   ========================================================================== */
.social-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-recommend {
    background: rgba(74, 124, 89, 0.12);
    color: var(--primary);
    border: 1.5px solid rgba(74, 124, 89, 0.3);
}

.btn-recommend:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: scale(1.04);
}

.btn-recommend.liked {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.btn-contact-direct {
    background: var(--sand-yellow);
    color: #FFFFFF;
}

.btn-contact-direct:hover {
    background: var(--sand-yellow-dark);
    transform: translateY(-2px);
}

.btn-share-profile {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-share-profile:hover {
    background: var(--bg);
    color: var(--primary);
}

.online-dot-lg {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10B981;
    border: 3px solid #FFFFFF;
}

.realizations-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.realizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.realization-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.realization-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09);
    border-color: rgba(74, 124, 89, 0.3);
}

.realization-img-wrapper {
    position: relative;
    height: 175px;
    overflow: hidden;
}

.realization-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.realization-card:hover .realization-img {
    transform: scale(1.06);
}

.realization-tag-city {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.realization-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.realization-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.realization-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.info-block {
    background: var(--bg);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.info-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.info-val {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 2px;
}

.profile-bio-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.8rem; }
    .steps-row { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
    .cta-grid { grid-template-columns: 1fr; }
    .search-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-search-fields { flex-direction: column; }
    .hero-content h1 { font-size: 2.3rem; }
    .choice-cards-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .modal-body { padding: 24px 20px; }
    .modal-header, .modal-footer { padding: 20px; }
}
