/* =============================================
   CPTS GENEVOIS — Design System
   Palette extraite du logo
============================================= */
:root {
    --navy:       #1A1933;
    --navy-mid:   #2D2E52;
    --gold:       #F2C12E;
    --gold-light: #FEF3C7;
    --blue:       #5B7FA0;
    --blue-light: #EBF3FA;
    --mint:       #5CC990;
    --mint-light: #E8FAF2;
    --white:      #FFFFFF;
    --light:      #F5F6FA;
    --grey:       #6B7280;
    --grey-mid:   #9CA3AF;
    --charcoal:   #374151;
    --border:     #E5E7EB;

    --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --radius:    6px;
    --radius-lg: 12px;
    --shadow:    0 2px 16px rgba(26,25,51,0.08);
    --shadow-lg: 0 8px 40px rgba(26,25,51,0.14);
    --transition: 0.25s ease;
    --max-width: 1240px;
    --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   LAYOUT
============================================= */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); }
.section--mint { background: var(--mint-light); }

/* =============================================
   TYPOGRAPHY
============================================= */
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 0.75rem; }
.eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--mint); border-radius: 2px; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--blue::before { background: var(--blue); }
.section-title { font-size: clamp(1.625rem, 3vw, 2.375rem); margin-bottom: 0.5rem; }
.section-sub { font-size: 1.0625rem; color: var(--grey); line-height: 1.7; max-width: 580px; }

/* =============================================
   BUTTONS
============================================= */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; padding: 0.875rem 1.75rem; border-radius: var(--radius); transition: all var(--transition); white-space: nowrap; cursor: pointer; border: 2px solid transparent; letter-spacing: 0.02em; }
.btn:hover { transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-mid); box-shadow: 0 6px 20px rgba(26,25,51,0.25); }
.btn--mint { background: var(--mint); color: var(--white); border-color: var(--mint); }
.btn--mint:hover { background: #49b87d; box-shadow: 0 6px 20px rgba(92,201,144,0.35); }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 800; }
.btn--gold:hover { background: #e8b520; box-shadow: 0 6px 20px rgba(242,193,46,0.4); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--navy); background: var(--light); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--lg { padding: 1rem 2.25rem; font-size: 0.9375rem; }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.8125rem; }
.btn--block { width: 100%; justify-content: center; }

/* =============================================
   HEADER
============================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.header__logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; text-decoration: none; }
.header__logo img { height: 40px; width: auto; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.header__logo-name { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.header__logo-sub { font-family: var(--font-head); font-size: 0.6875rem; font-weight: 500; color: var(--grey); letter-spacing: 0.04em; text-transform: uppercase; }
.header__nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 0.125rem; }
.nav__list a { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; color: var(--grey); padding: 0.5rem 0.875rem; border-radius: var(--radius); transition: all var(--transition); }
.nav__list a:hover, .nav__list a.active { color: var(--navy); background: var(--light); }
.header__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header__adherent { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; color: var(--blue); padding: 0.5rem 1rem; border: 1.5px solid var(--blue-light); border-radius: var(--radius); background: var(--blue-light); transition: all var(--transition); }
.header__adherent:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.header__adherent svg { flex-shrink: 0; }

/* =============================================
   HERO HOMEPAGE (double audience)
============================================= */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.hero-split__panel { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: clamp(3rem, 6vw, 5rem) var(--gutter); overflow: hidden; text-align: center; }
.hero-split__panel--patient { background: linear-gradient(135deg, #0E3B2C 0%, #1A6644 60%, #2D8A5E 100%); }
.hero-split__panel--pro { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 70%, #3D4080 100%); }
.hero-split__decor { position: absolute; inset: 0; opacity: 0.07; background-image: radial-gradient(circle at 70% 30%, white 1px, transparent 1px); background-size: 32px 32px; }
.hero-split__content { position: relative; z-index: 1; max-width: 460px; }
.hero-split__tag { display: inline-block; font-family: var(--font-head); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.35rem 0.875rem; border-radius: 2px; margin-bottom: 1.5rem; }
.hero-split__panel--patient .hero-split__tag { background: rgba(92,201,144,0.2); color: var(--mint); border: 1px solid rgba(92,201,144,0.3); }
.hero-split__panel--pro .hero-split__tag { background: rgba(91,127,160,0.2); color: #93C5E8; border: 1px solid rgba(91,127,160,0.3); }
.hero-split__title { font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-split__text { font-size: 1.0625rem; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 2rem; }
.hero-split__divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,0.12); z-index: 10; display: flex; align-items: center; justify-content: center; }
.hero-split__divider-badge { background: var(--white); color: var(--navy); font-family: var(--font-head); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; padding: 0.5rem 0.625rem; border-radius: var(--radius); white-space: nowrap; box-shadow: var(--shadow); }

/* =============================================
   STATS BAR
============================================= */
.stats-bar { background: var(--navy); padding-block: 2.25rem; }
.stats-bar__grid { display: flex; justify-content: center; align-items: center; gap: 0; flex-wrap: wrap; }
.stats-bar__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.75rem 2.5rem; }
.stats-bar__item + .stats-bar__item { border-left: 1px solid rgba(255,255,255,0.1); }
.stats-bar__num { font-family: var(--font-head); font-size: clamp(1.875rem, 3vw, 2.625rem); font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; }
.stats-bar__label { font-size: 0.8125rem; color: rgba(255,255,255,0.55); font-family: var(--font-head); font-weight: 500; letter-spacing: 0.04em; }

/* =============================================
   SEARCH RAPIDE
============================================= */
.quick-search { background: var(--white); padding-block: 3rem; border-bottom: 1px solid var(--border); }
.quick-search__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.quick-search__title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy); text-align: center; }
.search-form { display: flex; gap: 0.625rem; width: 100%; max-width: 780px; flex-wrap: wrap; }
.search-form__select, .search-form__input { flex: 1; min-width: 180px; padding: 0.875rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9375rem; color: var(--charcoal); background: var(--white); transition: border-color var(--transition); outline: none; appearance: none; -webkit-appearance: none; }
.search-form__select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.search-form__select:focus, .search-form__input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(92,201,144,0.15); }

/* =============================================
   MISSIONS
============================================= */
.missions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.mission-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--transition); }
.mission-card:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-3px); }
.mission-card__icon { width: 48px; height: 48px; background: var(--mint-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.125rem; font-size: 1.5rem; }
.mission-card__title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.mission-card__text { font-size: 0.875rem; color: var(--grey); line-height: 1.65; }

/* =============================================
   ACTUALITÉS
============================================= */
.actu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.actu-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.actu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.actu-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-light) 0%, var(--mint-light) 100%); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.actu-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.actu-card__cat { display: inline-block; font-family: var(--font-head); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.625rem; border-radius: 2px; margin-bottom: 0.75rem; }
.actu-card__cat--local { background: var(--mint-light); color: #2D8A5E; }
.actu-card__cat--national { background: var(--blue-light); color: var(--blue); }
.actu-card__title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.35; }
.actu-card__date { font-size: 0.8125rem; color: var(--grey-mid); font-family: var(--font-head); margin-bottom: 0.75rem; }
.actu-card__excerpt { font-size: 0.875rem; color: var(--grey); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =============================================
   ANNUAIRE — FILTRES
============================================= */
.annuaire-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.filters-panel { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: calc(68px + 1.5rem); }
.filters-panel__title { font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); margin-bottom: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__label { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem; display: block; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 100px; border: 1.5px solid var(--border); color: var(--grey); background: var(--white); cursor: pointer; transition: all var(--transition); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip--mint.active { background: var(--mint); border-color: var(--mint); }
.filter-search { width: 100%; padding: 0.625rem 0.875rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; font-family: var(--font-body); outline: none; transition: border-color var(--transition); }
.filter-search:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(92,201,144,0.15); }

/* =============================================
   ANNUAIRE — CARTES PROFESSIONNELS
============================================= */
.pros-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pro-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: 1rem; align-items: flex-start; transition: all var(--transition); cursor: pointer; }
.pro-card:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-2px); }
.pro-card__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--mint-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; }
.pro-card__avatar--blue { background: var(--blue-light); }
.pro-card__avatar--gold { background: var(--gold-light); }
.pro-card__info { flex: 1; min-width: 0; }
.pro-card__name { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.pro-card__spec { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; color: var(--mint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.pro-card__spec--blue { color: var(--blue); }
.pro-card__detail { display: flex; flex-wrap: wrap; gap: 0.375rem 1rem; }
.pro-card__detail span { font-size: 0.8125rem; color: var(--grey); display: flex; align-items: center; gap: 0.3rem; }
.pro-card__badge { display: inline-block; font-family: var(--font-head); font-size: 0.6875rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 3px; margin-top: 0.5rem; }
.badge--s1 { background: #E8FAF2; color: #2D8A5E; }
.badge--s2 { background: var(--blue-light); color: var(--blue); }
.badge--s3 { background: #FEF3C7; color: #92670D; }
.pro-card__count { font-size: 0.75rem; color: var(--grey-mid); margin-top: 0.25rem; }

/* =============================================
   ESPACE MEMBRES — LOGIN
============================================= */
.login-page { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.login-page__visual { background: linear-gradient(155deg, var(--navy) 0%, #2D3A7A 60%, #1E4D6B 100%); display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.login-page__visual::after { content: ''; position: absolute; bottom: -40px; right: -40px; width: 280px; height: 280px; border-radius: 50%; background: rgba(92,201,144,0.1); }
.login-page__visual-title { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; line-height: 1.15; }
.login-page__visual-text { font-size: 1.0625rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 2rem; }
.login-feature { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 0.875rem; }
.login-feature__icon { width: 36px; height: 36px; background: rgba(92,201,144,0.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.login-feature__text { font-size: 0.9375rem; color: rgba(255,255,255,0.8); font-family: var(--font-head); font-weight: 500; }
.login-page__form { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 6vw, 5rem); background: var(--white); }
.login-form__title { font-family: var(--font-head); font-size: 1.625rem; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.login-form__sub { font-size: 0.9375rem; color: var(--grey); margin-bottom: 2rem; }
.form-field { margin-bottom: 1.25rem; }
.form-label { display: block; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.5rem; }
.form-input { width: 100%; padding: 0.875rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9375rem; font-family: var(--font-body); color: var(--charcoal); outline: none; transition: all var(--transition); }
.form-input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(92,201,144,0.15); }
.form-footer { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; font-size: 0.875rem; }
.form-footer a { color: var(--blue); font-weight: 600; }

/* =============================================
   ESPACE MEMBRES — DASHBOARD
============================================= */
.dashboard { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; min-height: calc(100vh - 68px); }
.dashboard__sidebar { background: var(--navy); padding: 2rem 1.5rem; }
.dashboard__user { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dashboard__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--mint-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 0.875rem; border: 3px solid rgba(255,255,255,0.15); }
.dashboard__name { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 700; color: var(--white); margin-bottom: 0.2rem; }
.dashboard__role { font-size: 0.75rem; color: rgba(255,255,255,0.45); font-family: var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dash-nav__item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem; border-radius: var(--radius); font-family: var(--font-head); font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.55); transition: all var(--transition); cursor: pointer; }
.dash-nav__item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.dash-nav__item.active { background: rgba(92,201,144,0.15); color: var(--mint); }
.dash-nav__item svg { flex-shrink: 0; opacity: 0.7; }
.dash-nav__item.active svg { opacity: 1; }
.dashboard__main { padding: 2.5rem 1.5rem 2.5rem 0; overflow: auto; }
.dash-header { margin-bottom: 2rem; }
.dash-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.dash-sub { font-size: 0.9375rem; color: var(--grey); }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.dash-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.dash-card__icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.dash-card__num { font-family: var(--font-head); font-size: 1.875rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 0.25rem; }
.dash-card__label { font-size: 0.8125rem; color: var(--grey); font-family: var(--font-head); font-weight: 500; }
.doc-list { display: flex; flex-direction: column; gap: 0.75rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); transition: all var(--transition); cursor: pointer; }
.doc-item:hover { border-color: var(--mint); box-shadow: var(--shadow); }
.doc-item__icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.125rem; }
.doc-item__icon--pdf { background: #FEE2E2; }
.doc-item__icon--word { background: var(--blue-light); }
.doc-item__icon--xls { background: #DCFCE7; }
.doc-item__info { flex: 1; min-width: 0; }
.doc-item__name { font-family: var(--font-head); font-size: 0.9375rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item__meta { font-size: 0.8125rem; color: var(--grey); }
.doc-item__dl { color: var(--mint); flex-shrink: 0; }

/* =============================================
   PAGE HERO INTERNE
============================================= */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 3.5rem 0; }
.page-hero__eyebrow { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); margin-bottom: 0.75rem; display: block; }
.page-hero__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: var(--white); margin-bottom: 0.75rem; }
.page-hero__sub { font-size: 1.0625rem; color: rgba(255,255,255,0.65); max-width: 520px; line-height: 1.7; }

/* =============================================
   FOOTER
============================================= */
.site-footer { background: var(--navy); padding-top: 4rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__logo img { height: 38px; filter: brightness(0) invert(1); }
.footer__logo-text { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--white); }
.footer__tagline { font-size: 0.9375rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 1.25rem; }
.footer__col-title { font-family: var(--font-head); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.125rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--mint); }
.footer__contact p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer__contact a { color: var(--mint); }
.footer__bottom { padding-block: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.footer__bottom p, .footer__bottom a { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
.footer__bottom a:hover { color: rgba(255,255,255,0.6); }

/* =============================================
   HEADER — BURGER + MOBILE NAV
============================================= */
.header__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; cursor: pointer; margin-left: auto; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1.5rem var(--gutter) 2rem; box-shadow: var(--shadow-lg); z-index: 99; }
.mobile-nav.is-open { display: block; }
.mobile-nav__list { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.mobile-nav__list li a { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--charcoal); padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav__list li a:hover, .mobile-nav__list li a.active { color: var(--mint); }
.mobile-nav__cta { width: 100%; justify-content: center; }

/* =============================================
   RESPONSIVE — TABLETTE ≤ 1024px
============================================= */
@media (max-width: 1024px) {
    .hero-split { grid-template-columns: 1fr; min-height: auto; }
    .hero-split__divider { display: none; }
    .hero-split__panel { padding-block: 4rem; min-height: 60vh; }
    .missions__grid { grid-template-columns: repeat(2, 1fr); }
    .annuaire-layout { grid-template-columns: 1fr; }
    .filters-panel { position: static; }
    .pros-grid { grid-template-columns: repeat(2, 1fr); }
    .login-page { grid-template-columns: 1fr; min-height: auto; }
    .login-page__visual { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Dashboard : la sidebar devient nav horizontale scrollable au-dessus du contenu */
    .dashboard { grid-template-columns: 1fr; gap: 0; min-height: auto; }
    .dashboard__sidebar { padding: 1.25rem var(--gutter); }
    .dashboard__user { flex-direction: row; text-align: left; padding-bottom: 1rem; margin-bottom: 1rem; gap: 0.875rem; align-items: center; }
    .dashboard__avatar { width: 44px; height: 44px; font-size: 1.125rem; margin-bottom: 0; border-width: 2px; }
    .dashboard__name { margin-bottom: 0.1rem; }
    .dash-nav { flex-direction: row; overflow-x: auto; gap: 0.375rem; padding-bottom: 0.25rem; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
    .dash-nav__item { flex-shrink: 0; padding: 0.625rem 1rem; white-space: nowrap; }
    .dashboard__main { padding: 2rem var(--gutter); }
}

/* =============================================
   RESPONSIVE — MOBILE / TABLETTE PORTRAIT ≤ 900px (burger)
============================================= */
@media (max-width: 900px) {
    .header__nav, .header__actions { display: none; }
    .header__burger { display: flex; }
}

/* =============================================
   RESPONSIVE — MOBILE ≤ 768px
============================================= */
@media (max-width: 768px) {
    .nav-mockup { font-size: 0.75rem; padding: 0.5rem 0.75rem; line-height: 1.6; }
    .nav-mockup a { display: inline-block; margin: 0.1rem 0.35rem; }
    .header__inner { height: 60px; }
    .header__logo img { height: 36px !important; }
    .header__logo-name { font-size: 0.875rem; }
    .header__logo-sub { display: none; }

    .hero-split__panel { padding-block: 3rem; min-height: auto; }
    .hero-split__title { font-size: clamp(1.625rem, 6vw, 2rem); }
    .hero-split__text { font-size: 0.9375rem; }
    .hero-split__content { max-width: 100%; }

    .actu-grid { grid-template-columns: 1fr; }
    .pros-grid { grid-template-columns: 1fr; }
    .search-form { flex-direction: column; }
    .search-form__select, .search-form__input, .search-form .btn { width: 100%; min-width: 0; }
    .quick-search { padding-block: 2rem; }

    .dash-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .dash-card { padding: 1rem; }
    .dash-card__num { font-size: 1.5rem; }

    .footer__grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }

    .stats-bar__grid { flex-direction: column; }
    .stats-bar__item { padding: 0.875rem 1.25rem; width: 100%; max-width: 300px; }
    .stats-bar__item + .stats-bar__item { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }

    .page-hero { padding: 2.5rem 0; }
    .section { padding-block: 3rem; }

    .login-page__form { padding: 2.5rem 1.25rem; }
    .login-form__title { font-size: 1.375rem; }

    .dashboard__main { padding: 1.5rem var(--gutter); }
    .dash-title { font-size: 1.25rem; }

    .pro-card { padding: 1rem; gap: 0.875rem; }
    .pro-card__avatar { width: 44px; height: 44px; font-size: 1.125rem; }
}

/* =============================================
   RESPONSIVE — PETIT MOBILE ≤ 480px
============================================= */
@media (max-width: 480px) {
    .missions__grid { grid-template-columns: 1fr; }
    .dash-cards { grid-template-columns: 1fr; }
    .header__logo-sub { display: none; }
    .header__logo-name { font-size: 0.8125rem; }

    .hero-split__title { font-size: 1.5rem; }
    .hero-split__tag { font-size: 0.625rem; padding: 0.3rem 0.625rem; margin-bottom: 1rem; }
    .btn--lg { padding: 0.875rem 1.25rem; font-size: 0.875rem; }

    .filter-chips { gap: 0.3rem; }
    .chip { font-size: 0.7rem; padding: 0.3rem 0.625rem; }

    .doc-item { gap: 0.75rem; padding: 0.875rem 1rem; }
    .doc-item__icon { width: 36px; height: 36px; font-size: 1rem; }
    .doc-item__name { font-size: 0.875rem; }

    .mission-card { padding: 1.25rem; }
    .actu-card__body { padding: 1rem 1.25rem 1.25rem; }
}
