/* ================================================
   MABRIK v2.0 - Stylesheet
   Design: Orange / White / Modern
   Fonts: Outfit (headings) + DM Sans (body)
   ================================================ */

/* ---- CSS Variables ---- */
:root {
    /* Colors */
    --orange-50: #FFF7ED;
    --orange-100: #FFEDD5;
    --orange-200: #FED7AA;
    --orange-300: #FDBA74;
    --orange-400: #FB923C;
    --orange-500: #F07B45;
    --orange-600: #EA580C;
    --orange-700: #C2410C;

 
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #434343;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    --green-500: #22C55E;
    --red-500: #EF4444;
    --blue-500: #3B82F6;
    --purple-500: #8B5CF6;

    --white: #FFFFFF;
    --black: #000000;

    /* Semantic */
    --primary: var(--orange-500);
    --primary-hover: var(--orange-600);
    --primary-light: var(--orange-50);
    --text: var(--gray-800);
    --text-light: var(--gray-500);
    --text-lighter: var(--gray-400);
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --border: var(--gray-200);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --container: 1200px;
    --section-spacing: 5rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px -5px rgba(0, 0, 0, 0.1);

    /* Transition */
    --transition: 0.2s ease;
}

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


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


body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

/* ---- Utilities ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-spacing) 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
}
.btn--ghost:hover {
    background: var(--gray-100);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--orange-50);
    box-shadow: var(--shadow-lg);
}

.btn--sm { padding: 0.4rem 0.875rem; font-size: 0.875rem; }
.btn--lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---- Forms ---- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-lighter);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

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

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.form-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--gray-600);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert--error {
    background: #FEF2F2;
    color: var(--red-500);
    border: 1px solid #FECACA;
}

/* ================================================
   HEADER
   ================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.nav__logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-500);
}
.nav__logo-text-foot {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.nav__logo-text--accent {
    color: var(--orange-500);
}

.nav__logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.mobile-menu__logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.15;
}

.footer__logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__link {
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
    background: var(--primary-light);
}

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

/* User menu dropdown */
.nav__user-menu {
    position: relative;
    border-left: 1px solid gainsboro;
    padding-left: 20px;
}

.nav__user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nav__user-btn:hover {
    background: var(--gray-50, #f9fafb);
    border-color: var(--gray-300, #d1d5db);
}

.nav__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary, #e67e22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav__avatar-initials {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.nav__user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text, #1e293b);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav__user-chevron {
    color: var(--text-light, #94a3b8);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.nav__user-menu.open .nav__user-chevron {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav__user-menu.open .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text, #1e293b);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.15s;
}

.nav__dropdown-item:hover {
    background: var(--gray-50, #f9fafb);
}

.nav__dropdown-item svg {
    color: var(--text-light, #94a3b8);
    flex-shrink: 0;
}

.nav__dropdown-divider {
    height: 1px;
    background: var(--gray-200, #e5e7eb);
    margin: 0.3rem 0.5rem;
}

.nav__dropdown-item--danger {
    color: #ef4444;
}

.nav__dropdown-item--danger svg {
    color: #ef4444;
}

.nav__dropdown-item--danger:hover {
    background: #fef2f2;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ================================================
   HERO
   ================================================ */
.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--orange-50) 0%, var(--white) 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--orange-100);
    color: var(--orange-700);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Search card */
.hero__search-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.search-card__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.search-card__filters {
    margin-bottom: 1rem;
}

/* ================================================
   STATS
   ================================================ */
.stats {
    padding: 3rem 0;
    background: var(--white);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stats__item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stats__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.stats__icon--orange { background: var(--orange-100); color: var(--orange-500); }
.stats__icon--purple { background: #F3E8FF; color: var(--purple-500); }
.stats__icon--green { background: #DCFCE7; color: var(--green-500); }
.stats__icon--blue { background: #DBEAFE; color: var(--blue-500); }

.stats__icon svg { stroke: currentColor; }

.stats__number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stats__label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ================================================
   FEATURES
   ================================================ */
.features {
    background: var(--bg-alt);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

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

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card__icon--blue { background: #EFF6FF; color: var(--blue-500); }
.feature-card__icon--orange { background: var(--orange-100); color: var(--orange-500); }
.feature-card__icon--green { background: #F0FDF4; color: var(--green-500); }
.feature-card__icon svg { stroke: currentColor; }

.feature-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card__text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ================================================
   CTA
   ================================================ */
.cta {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

.cta__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta__note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.cta__note svg {
    stroke: rgba(255, 255, 255, 0.8);
}

/* ================================================
   SEARCH PAGE
   ================================================ */
.search-page__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.search-filters {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 88px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.search-filters__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--gray-800);
}

.search-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Pro card */
.pro-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    --card-bg: #FFF7ED;
    --card-color: #EA580C;
    --card-border: #FDBA74;
    --card-light: #FFF7ED;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.pro-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--card-border);
}

.pro-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--card-light);
    border-bottom: 1px solid var(--gray-100);
}

.pro-card__metier {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange-600);
    background: var(--orange-100);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
}

.pro-card__dispo {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.pro-card__dispo--yes {
    color: var(--green-500);
    background: #F0FDF4;
}

.pro-card__dispo--yes::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-500);
    border-radius: 50%;
}

.pro-card__dispo--no {
    color: var(--red-500);
    background: #FEF2F2;
}

.pro-card__dispo--no::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red-500);
    border-radius: 50%;
}

.pro-card__body {
    padding: 1.25rem;
    text-align: center;
    position: relative;
}

.pro-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border: 2px solid var(--card-border);
}

.pro-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-card__initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-light);
    color: var(--card-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.pro-card__name {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.pro-card__company {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.pro-card__info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.pro-card__location,
.pro-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.pro-card__footer {
    padding: 0 1.25rem 1.25rem;
}

.pro-card__footer .btn--outline {
    border-color: var(--card-border);
    color: var(--card-color);
}

.pro-card__footer .btn--outline:hover {
    background: var(--card-light);
}

/* ---- Pro card color variants ---- */
.pro-card--yellow   { --card-bg: #FEF9C3; --card-color: #A16207; --card-border: #FDE047; --card-light: #FEFCE8; }
.pro-card--blue     { --card-bg: #DBEAFE; --card-color: #1E40AF; --card-border: #93C5FD; --card-light: #EFF6FF; }
.pro-card--red      { --card-bg: #FEE2E2; --card-color: #B91C1C; --card-border: #FCA5A5; --card-light: #FEF2F2; }
.pro-card--green    { --card-bg: #DCFCE7; --card-color: #15803D; --card-border: #86EFAC; --card-light: #F0FDF4; }
.pro-card--purple   { --card-bg: #F3E8FF; --card-color: #7C3AED; --card-border: #C4B5FD; --card-light: #FAF5FF; }
.pro-card--cyan     { --card-bg: #CFFAFE; --card-color: #0E7490; --card-border: #67E8F9; --card-light: #ECFEFF; }
.pro-card--rose     { --card-bg: #FCE7F3; --card-color: #BE185D; --card-border: #F9A8D4; --card-light: #FDF2F8; }
.pro-card--indigo   { --card-bg: #E0E7FF; --card-color: #4338CA; --card-border: #A5B4FC; --card-light: #EEF2FF; }
.pro-card--amber    { --card-bg: #FEF3C7; --card-color: #B45309; --card-border: #FCD34D; --card-light: #FFFBEB; }
.pro-card--teal     { --card-bg: #CCFBF1; --card-color: #0F766E; --card-border: #5EEAD4; --card-light: #F0FDFA; }
.pro-card--slate    { --card-bg: #F1F5F9; --card-color: #475569; --card-border: #CBD5E1; --card-light: #F8FAFC; }
.pro-card--orange   { --card-bg: #FFF7ED; --card-color: #C2410C; --card-border: #FDBA74; --card-light: #FFF7ED; }
.pro-card--lime     { --card-bg: #ECFCCB; --card-color: #4D7C0F; --card-border: #BEF264; --card-light: #F7FEE7; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination__link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.pagination__link:hover,
.pagination__link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.empty-state h3 {
    margin: 1rem 0 0.5rem;
    color: var(--gray-600);
}

.empty-state p {
    color: var(--text-light);
}

/* ================================================
   AUTH PAGES
   ================================================ */
.auth-page {
    padding: 3rem 0;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 600px;
}

.auth-hero {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--orange-100) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
}

.auth-hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-hero__text {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.auth-hero__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-hero__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
}

.auth-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.auth-form-container--wide {
    max-width: 640px;
    margin: 0 auto;
}

.auth-form-card--wide {
    width: 100%;
}

.auth-form__title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.auth-form__subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.auth-form__info {
    background: var(--primary-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

.auth-form__info a {
    color: var(--primary);
    font-weight: 600;
}

.auth-form__footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-form__footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Remember me row */
.form-group--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-form__forgot {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.auth-form__forgot:hover {
    color: var(--primary);
}

/* Toggle remember switch */
.toggle-remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.toggle-remember input {
    display: none;
}

.toggle-remember__switch {
    position: relative;
    display: inline-block;
    width: 38px;
    min-width: 38px;
    height: 22px;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.25s;
    flex-shrink: 0;
}

.toggle-remember__switch::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: transform 0.25s;
}

.toggle-remember input:checked + .toggle-remember__switch {
    background: var(--primary, #e67e22);
}

.toggle-remember input:checked + .toggle-remember__switch::before {
    transform: translateX(16px);
}

.toggle-remember__text {
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Auth tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--gray-600);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
}

.auth-tab:hover {
    border-color: var(--orange-300);
}

.auth-tab.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}



/* ================================================
   ERROR PAGES
   ================================================ */
.error-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page__title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.error-page__text {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer__title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--orange-400);
}

.footer__links svg {
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__title { font-size: 2.5rem; }

    .hero__search-card {
    max-width: 100%;
    overflow: hidden;
}

    .features__grid { grid-template-columns: 1fr; }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root { --section-spacing: 3.5rem; }

    .nav__menu { display: none; }
    .nav__toggle { display: flex; }
    .nav__actions .btn--outline,
    .nav__actions .btn--primary { display: none; }
    .nav__chat-btn { display: none; }

    .hero__title { font-size: 2rem; }
    .hero__buttons { flex-direction: column; }

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

    .stats__number { font-size: 1.5rem; }

    .search-page__layout {
        grid-template-columns: 1fr;
    }

    .search-filters {
        position: static;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-hero { display: none; }

    .form-row { grid-template-columns: 1fr; }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero__title { font-size: 1.75rem; }
    .section__title { font-size: 1.75rem; }
    .cta__title { font-size: 1.75rem; }
    .auth-form-card { padding: 1.5rem; }
}

/* ================================================
   MOBILE SLIDE MENU
   ================================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1998;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--gray-600);
    transition: all var(--transition);
}

.mobile-menu__close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.mobile-menu__logo {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
}

.mobile-menu__list {
    padding: 0.5rem 1rem;
    flex: 1;
}

.mobile-menu__link {
    display: block;
    padding: 0.9rem 1rem;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu__actions {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.mobile-menu__footer {
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* Nav chat button */
.nav__chat-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--gray-600);
    transition: all 0.2s;
}

.nav__chat-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav__chat-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    border-radius: 99px;
    background: #EF4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
    line-height: 1;
}

/* Mobile menu user card */
.mobile-menu__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.mobile-menu__user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu__user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-menu__user-initials {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.mobile-menu__user-info {
    flex: 1;
    min-width: 0;
}

.mobile-menu__user-chat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-600);
    flex-shrink: 0;
    transition: all 0.2s;
}

.mobile-menu__user-chat:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-menu__user-chat-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 17px;
    height: 17px;
    border-radius: 99px;
    background: #EF4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--white);
    line-height: 1;
}

.mobile-menu__user-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-900);
    line-height: 1.3;
}

.mobile-menu__user-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu__user-dispo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--gray-100);
}

.mobile-menu__user-dispo-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.25s;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.25s ease;
}

.toggle-switch__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.25s ease;
}

.toggle-switch input:checked + .toggle-switch__slider {
    background: #22c55e;
}

.toggle-switch input:checked + .toggle-switch__slider::before {
    transform: translateX(22px);
}

.toggle-switch--sm {
    width: 40px;
    height: 22px;
}

.toggle-switch--sm .toggle-switch__slider::before {
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
}

.toggle-switch--sm input:checked + .toggle-switch__slider::before {
    transform: translateX(18px);
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-overlay,
    .nav__toggle {
        display: none !important;
    }
}

html.menu-open,
html.menu-open body {
    overflow: hidden;
    height: 100%;
    touch-action: none;
    position: fixed;
    width: 100%;
}
/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */

[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

[data-reveal="fade-up"] {
    transform: translateY(30px);
}

[data-reveal="fade-down"] {
    transform: translateY(-30px);
}

[data-reveal="fade-left"] {
    transform: translateX(40px);
}

[data-reveal="fade-right"] {
    transform: translateX(-40px);
}

[data-reveal="zoom-in"] {
    transform: scale(0.9);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

@media (max-width: 768px) {
    .auth-page {
        display: block;
        padding: 2rem 0;
    }
    
    .auth-form-container--wide {
        max-width: 100%;
        padding: 0;
    }
    .auth-tabs {
    grid-template-columns: none;
    }
    .nav__user-menu {
        display: none;
    }
    .hero__content,
    .hero__buttons,
    .container {
        max-width: 100%;
    }
}
/* ================================
   Cookie Consent Banner
   ================================ */
.mbk-cook {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 1rem 1.5rem;
}

.mbk-cook.hidden {
    display: none !important;
}

.mbk-cook__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mbk-cook__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.mbk-cook__icon {
    flex-shrink: 0;
    color: var(--primary, #e67e22);
}

.mbk-cook__text {
    font-size: 0.875rem;
    color: var(--text, #1e293b);
    line-height: 1.5;
    margin: 0;
}

.mbk-cook__details-btn {
    background: none;
    border: none;
    color: var(--primary, #e67e22);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0;
    font-family: inherit;
}

.mbk-cook__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mbk-cook__close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-light, #94a3b8);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 0.375rem;
    margin-left: 0.25rem;
    transition: all 0.15s;
}

.mbk-cook__close:hover {
    background: var(--gray-100, #f1f5f9);
    color: var(--text, #1e293b);
}

.mbk-cook-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
}

.mbk-cook-btn--accept {
    background: var(--primary, #e67e22);
    color: #fff;
}

.mbk-cook-btn--accept:hover {
    background: var(--primary-dark, #d35400);
}

.mbk-cook-btn--refuse {
    background: transparent;
    color: var(--text-light, #64748b);
    border: 1px solid var(--gray-200, #e5e7eb);
}

.mbk-cook-btn--refuse:hover {
    background: var(--gray-50, #f9fafb);
    border-color: var(--gray-300, #d1d5db);
}

/* ================================
   Cookie Preferences Modal
   ================================ */
.mbk-cook-prefs-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.mbk-cook-prefs-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mbk-cook-prefs {
    background: #fff;
    border-radius: 1rem;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mbk-cook-prefs-overlay.visible .mbk-cook-prefs {
    transform: translateY(0);
}

.mbk-cook-prefs__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

.mbk-cook-prefs__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin: 0;
}

.mbk-cook-prefs__close {
    background: none;
    border: none;
    color: var(--text-light, #94a3b8);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: all 0.15s;
    display: flex;
}

.mbk-cook-prefs__close:hover {
    background: var(--gray-100, #f1f5f9);
    color: var(--text, #1e293b);
}

.mbk-cook-prefs__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.mbk-cook-prefs__intro {
    font-size: 0.875rem;
    color: var(--text-light, #64748b);
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.mbk-cook-cat {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.mbk-cook-cat:last-child {
    margin-bottom: 0;
}

.mbk-cook-cat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mbk-cook-cat__info {
    flex: 1;
    min-width: 0;
}

.mbk-cook-cat__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #1e293b);
    margin: 0 0 0.25rem 0;
}

.mbk-cook-cat__desc {
    font-size: 0.8rem;
    color: var(--text-light, #94a3b8);
    line-height: 1.5;
    margin: 0;
}

/* Cookie toggle */
.mbk-cook-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    min-width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.mbk-cook-toggle input {
    display: none;
}

.mbk-cook-toggle__slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.25s;
}

.mbk-cook-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: transform 0.25s;
}

.mbk-cook-toggle input:checked + .mbk-cook-toggle__slider {
    background: var(--primary, #e67e22);
}

.mbk-cook-toggle input:checked + .mbk-cook-toggle__slider::before {
    transform: translateX(20px);
}

.mbk-cook-toggle input:disabled + .mbk-cook-toggle__slider {
    background: var(--primary, #e67e22);
    opacity: 0.6;
    cursor: not-allowed;
}

.mbk-cook-toggle input:disabled + .mbk-cook-toggle__slider::before {
    transform: translateX(20px);
}

.mbk-cook-prefs__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-top: 1px solid var(--gray-200, #e5e7eb);
}

/* Responsive */
@media (max-width: 640px) {
    .mbk-cook__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .mbk-cook__content {
        align-items: flex-start;
    }

    .mbk-cook__actions {
        justify-content: stretch;
    }

    .mbk-cook__actions .mbk-cook-btn {
        flex: 1;
        text-align: center;
    }
    .form-group--row{
     flex-direction: column;
    }
    .auth-form__footer {
    flex-direction: column;
    display: flex;
    }
    .nav__chat-btn{
        display: none;
    }
}
/* ---- ALERT SUCCESS (pages publiques) ---- */
.alert--success {
    background: #F0FDF4;
    color: #15803d;
    border: 1px solid #BBF7D0;
}

.alert--success a {
    color: #15803d;
    font-weight: 600;
    text-decoration: underline;
}

/* ---- ALERT ERROR : support liens cliquables ---- */
.alert--error a {
    color: var(--red-500);
    font-weight: 600;
    text-decoration: underline;
}