/* ==========================================================================
   NumiApp — MODULE DOCTOSO (site public) — identité propre, esprit doctolib.fr
   --------------------------------------------------------------------------
   Portée : tout est scopé sous `.numi-doctoso` (aucune fuite vers les autres
   modules ni vers le socle commun). Accent TEAL `#0EA5A4` (couleur de la
   section Doctoso), distinct de l'épicerie (lime) et du shop (sky).
   Carte : OpenStreetMap (Leaflet) — le conteneur est stylé ici.
   ========================================================================== */

.numi-doctoso {
    --nd-accent: #0EA5A4;
    --nd-accent-fonce: #0B7F7E;
    --nd-accent-clair: #E6F7F7;
    --nd-encre: #0F2A2E;
    --nd-texte: #234E54;
    --nd-gris: #6B7C85;
    --nd-bord: #DCEAEA;
    --nd-fond: #F5FAFA;
    --nd-blanc: #ffffff;
    --nd-vert: #16A34A;
    --nd-rouge: #DC2626;
    background: var(--nd-fond);
    color: var(--nd-texte);
    padding-bottom: 48px;
}
.numi-doctoso * { box-sizing: border-box; }
.nd-container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------ bandeau de tête */
.nd-topbar { background: linear-gradient(135deg, var(--nd-accent) 0%, var(--nd-accent-fonce) 100%); color: #fff; padding: 14px 0 18px; }
.nd-brandline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nd-logo { font-size: 22px; font-weight: 800; color: #fff !important; text-decoration: none; }
.nd-logo .nd-dot { font-size: 22px; }
.nd-badge-brand { font-size: 10px; background: rgba(255,255,255,.22); padding: 2px 7px; border-radius: 10px; vertical-align: middle; }
.nd-slogan { font-size: 13px; opacity: .9; }
.nd-quick { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.nd-quicklink { color: #fff !important; text-decoration: none; font-size: 13px; background: rgba(255,255,255,.14); padding: 6px 11px; border-radius: 20px; }
.nd-quicklink:hover { background: rgba(255,255,255,.3); }
.nd-search { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.nd-search input, .nd-search select {
    border: 0; border-radius: 10px; padding: 11px 13px; font-size: 14px; color: var(--nd-texte); background: #fff;
}
.nd-search input { flex: 1 1 260px; }
.nd-search select { flex: 0 1 190px; }
.nd-search button {
    border: 0; border-radius: 10px; background: var(--nd-encre); color: #fff; font-weight: 700;
    padding: 11px 20px; cursor: pointer;
}
.nd-search button:hover { background: #000; }

/* --------------------------------------------------------------------- hero */
.nd-hero { background: var(--nd-blanc); border: 1px solid var(--nd-bord); border-radius: 16px; padding: 22px; margin: 18px 0; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.nd-hero-txt { flex: 1 1 320px; }
.nd-hero-txt h1 { font-size: 26px; line-height: 1.22; margin: 0 0 8px; color: var(--nd-encre); }
.nd-hero-txt p { margin: 0; color: var(--nd-gris); }
.nd-hero-search { flex: 1 1 380px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.nd-hero-search .nd-field { flex: 1 1 150px; }

/* ------------------------------------------------------------------- champs */
.nd-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.nd-field span { font-size: 12px; font-weight: 600; color: var(--nd-gris); text-transform: uppercase; letter-spacing: .03em; }
.nd-field input, .nd-field select, .nd-field textarea {
    border: 1px solid var(--nd-bord); border-radius: 10px; padding: 10px 12px; font-size: 14px;
    background: #fff; color: var(--nd-texte); width: 100%;
}
.nd-field input:focus, .nd-field select:focus, .nd-field textarea:focus { outline: 2px solid var(--nd-accent); border-color: var(--nd-accent); }
.nd-field-full { flex: 1 1 100%; }
.nd-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.nd-fields .nd-field { flex: 1 1 220px; }
.nd-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 12px; }

/* ------------------------------------------------------------------ boutons */
.nd-primary, .nd-secondary, .nd-ghost {
    display: inline-block; text-align: center; border-radius: 10px; padding: 11px 18px;
    font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.nd-primary { background: var(--nd-accent); color: #fff !important; }
.nd-primary:hover { background: var(--nd-accent-fonce); }
.nd-secondary { background: var(--nd-blanc); color: var(--nd-accent) !important; border-color: var(--nd-accent); }
.nd-secondary:hover { background: var(--nd-accent-clair); }
.nd-ghost { background: transparent; color: var(--nd-texte) !important; border-color: var(--nd-bord); }
.nd-ghost:hover { background: var(--nd-accent-clair); }
.nd-block { display: block; width: 100%; margin-bottom: 8px; }
.nd-disabled { background: #B9C6CB !important; cursor: not-allowed; }
.nd-reset { display: inline-block; margin-left: 10px; font-size: 13px; color: var(--nd-gris) !important; }

/* ------------------------------------------------------------------- tuiles */
.nd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.nd-tile { background: #fff; border: 1px solid var(--nd-bord); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--nd-texte) !important; display: flex; flex-direction: column; gap: 3px; }
.nd-tile:hover { border-color: var(--nd-accent); box-shadow: 0 6px 18px rgba(14,165,164,.14); }
.nd-tile-ic { font-size: 24px; }
.nd-tile b { font-size: 15px; color: var(--nd-encre); }
.nd-tile small { color: var(--nd-gris); }

/* ------------------------------------------------------------------ sections */
.nd-section { margin-bottom: 26px; }
.nd-section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.nd-section-title h2 { font-size: 20px; margin: 0; color: var(--nd-encre); }
.nd-sub { color: var(--nd-gris); font-size: 13px; }
.nd-lead { color: var(--nd-texte); max-width: 820px; }

/* ------------------------------------------------------------------- cartes */
.nd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nd-grid-list { grid-template-columns: repeat(2, 1fr); }
.nd-card {
    display: block; background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 15px;
    text-decoration: none !important; color: var(--nd-texte) !important; transition: .16s;
}
.nd-card:hover { border-color: var(--nd-accent); box-shadow: 0 10px 24px rgba(14,165,164,.16); transform: translateY(-2px); }
.nd-card-head { display: flex; gap: 12px; align-items: flex-start; }
.nd-avatar {
    width: 58px; height: 58px; border-radius: 50%; background: var(--nd-accent-clair); color: var(--nd-accent-fonce);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; overflow: hidden; flex: 0 0 auto; border: 2px solid #fff;
}
.nd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nd-avatar-lg { width: 92px; height: 92px; font-size: 30px; }
.nd-card-id { flex: 1 1 auto; min-width: 0; }
.nd-name { font-size: 16px; margin: 0 0 2px; color: var(--nd-encre); }
.nd-spec { font-size: 13px; color: var(--nd-accent-fonce); font-weight: 600; }
.nd-modes { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.nd-mode { font-size: 11px; background: var(--nd-fond); border: 1px solid var(--nd-bord); border-radius: 20px; padding: 2px 8px; color: var(--nd-texte); }
.nd-mode-video { background: #EEF2FF; border-color: #C7D2FE; }
.nd-mode-now { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.nd-mode-off { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.nd-note { font-weight: 800; color: #B45309; font-size: 14px; white-space: nowrap; }
.nd-card-body { margin: 12px 0 10px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.nd-ligne { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nd-ligne i { color: var(--nd-accent); }
.nd-muted { color: var(--nd-gris); }
.nd-small { font-size: 12px; }
.nd-card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--nd-bord); padding-top: 10px; }
.nd-slot-badge { font-size: 12px; background: var(--nd-accent-clair); color: var(--nd-accent-fonce); border-radius: 20px; padding: 4px 10px; font-weight: 600; }
.nd-slot-now { background: #ECFDF5; color: #047857; }
.nd-slot-off { background: #F3F4F6; color: var(--nd-gris); }
.nd-cta { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--nd-accent) !important; }

/* ------------------------------------------------------------------- chips */
.nd-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.nd-chip { background: #fff; border: 1px solid var(--nd-bord); border-radius: 22px; padding: 8px 14px; text-decoration: none; color: var(--nd-texte) !important; font-size: 14px; }
.nd-chip:hover { border-color: var(--nd-accent); background: var(--nd-accent-clair); }
.nd-chip-n { color: var(--nd-gris); font-size: 12px; }
.nd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-tag { font-size: 12px; background: var(--nd-fond); border: 1px solid var(--nd-bord); border-radius: 20px; padding: 3px 10px; }
.nd-tag-ok { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.nd-ok { color: var(--nd-vert); font-weight: 700; }
.nd-ko { color: var(--nd-rouge); font-weight: 700; }

/* --------------------------------------------------------- remboursement / cabinets */
.nd-assure { background: #fff; border: 1px solid var(--nd-bord); border-radius: 14px; padding: 18px; }
.nd-clinics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nd-clinic { background: #fff; border: 1px solid var(--nd-bord); border-radius: 14px; padding: 14px; }
.nd-fresh { margin-top: 8px; font-size: 12px; color: var(--nd-gris); }
.nd-empty, .nd-empty-bloc { background: #fff; border: 1px dashed var(--nd-bord); border-radius: 14px; padding: 22px; text-align: center; color: var(--nd-gris); }
.nd-empty-ic { font-size: 40px; }
.nd-alert { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 14px; color: #78350F; }
.nd-alert-info { background: var(--nd-accent-clair); border-color: #A7DEDD; color: var(--nd-accent-fonce); }
.nd-alert-err { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.nd-alert p { margin: 6px 0 0; }

/* ---------------------------------------------------------------- fil d'Ariane */
.nd-fil { font-size: 13px; color: var(--nd-gris); margin: 16px 0; }
.nd-fil a { color: var(--nd-accent-fonce) !important; text-decoration: none; }
.nd-fil span { margin: 0 6px; }

/* --------------------------------------------------- liste (filtres + résultats) */
.nd-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.nd-layout-rdv { grid-template-columns: 1fr 300px; }
.nd-filters { background: #fff; border: 1px solid var(--nd-bord); border-radius: 14px; padding: 16px; position: sticky; top: 12px; }
.nd-filters h3 { margin: 0 0 12px; font-size: 16px; }

/* ---------------------------------------------------------------- fiche praticien */
.nd-fiche-head { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 20px; flex-wrap: wrap; }
.nd-fiche-id { flex: 1 1 320px; }
.nd-fiche-id h1 { margin: 0 0 3px; font-size: 25px; color: var(--nd-encre); }
.nd-badges { display: flex; gap: 7px; flex-wrap: wrap; margin: 9px 0; }
.nd-fiche-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--nd-gris); }
.nd-fiche-meta i { color: var(--nd-accent); }
.nd-fiche-actions { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.nd-fiche-cols { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; margin-top: 18px; }
.nd-bloc { background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.nd-bloc h2 { font-size: 18px; margin: 0 0 12px; color: var(--nd-encre); }
.nd-bloc-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nd-bloc-title h2 { margin: 0; }
.nd-list { margin: 0; padding-left: 20px; }
.nd-list li { margin-bottom: 5px; }
.nd-lieu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nd-map { height: 260px; border-radius: 12px; border: 1px solid var(--nd-bord); background: var(--nd-fond); z-index: 0; }
.nd-map-vide { display: flex; align-items: center; justify-content: center; color: var(--nd-gris); font-size: 13px; text-align: center; padding: 12px; }
.nd-tarif-principal { font-size: 17px; margin-bottom: 10px; }
.nd-hint { font-size: 12.5px; margin-top: 10px; }

/* ------------------------------------------------------------------- agenda */
.nd-mode-toggle { display: inline-flex; background: var(--nd-fond); border: 1px solid var(--nd-bord); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.nd-mt { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--nd-texte); }
.nd-mt.active { background: var(--nd-accent); color: #fff; }
.nd-agenda { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nd-jour { background: var(--nd-fond); border: 1px solid var(--nd-bord); border-radius: 12px; padding: 12px; }
.nd-jour-vide { opacity: .62; }
.nd-jour-titre { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--nd-gris); }
.nd-jour-titre b { color: var(--nd-encre); font-size: 14px; }
.nd-slots { display: flex; flex-wrap: wrap; gap: 7px; }
.nd-slot { background: #fff; border: 1px solid var(--nd-accent); color: var(--nd-accent-fonce) !important; border-radius: 8px; padding: 7px 11px; text-decoration: none; font-weight: 700; font-size: 13px; }
.nd-slot:hover { background: var(--nd-accent); color: #fff !important; }
.nd-slots-vide { color: var(--nd-gris); }

/* ------------------------------------------------------------------- tableaux */
.nd-table { width: 100%; border-collapse: collapse; }
.nd-table th, .nd-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--nd-bord); font-size: 14px; }
.nd-table thead th { background: var(--nd-fond); color: var(--nd-gris); font-size: 12px; text-transform: uppercase; }
.nd-table-detail th { width: 190px; color: var(--nd-gris); font-weight: 600; }

/* ------------------------------------------------------------------- colonne */
.nd-fiche-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.nd-side-card { background: #fff; border: 1px solid var(--nd-bord); border-radius: 14px; padding: 16px; }
.nd-side-card h3 { margin: 0 0 10px; font-size: 16px; }
.nd-mini { display: block; padding: 8px 0; border-bottom: 1px dashed var(--nd-bord); text-decoration: none; color: var(--nd-texte) !important; }
.nd-mini:last-child { border-bottom: 0; }
.nd-mini b { display: block; color: var(--nd-encre); font-size: 14px; }
.nd-mini small { color: var(--nd-gris); }

/* ------------------------------------------------------------------ avis */
.nd-avis { display: flex; flex-direction: column; gap: 10px; }
.nd-avis-item { border-left: 3px solid var(--nd-accent); padding-left: 10px; }

/* ------------------------------------------------------- prise de rendez-vous */
.nd-rdv { display: flex; flex-direction: column; gap: 4px; }
.nd-rdv h1 { font-size: 24px; color: var(--nd-encre); }
.nd-step { background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.nd-step h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 14px; color: var(--nd-encre); }
.nd-step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--nd-accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.nd-radios { display: flex; flex-direction: column; gap: 8px; }
.nd-radios-inline { flex-direction: row; flex-wrap: wrap; }
.nd-radio { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--nd-bord); border-radius: 10px; padding: 11px 13px; cursor: pointer; background: #fff; flex: 0 0 auto; }
.nd-radios-inline .nd-radio { flex: 1 1 200px; }
.nd-radio:hover { border-color: var(--nd-accent); }
.nd-radio input { margin-top: 3px; }
.nd-radio span { display: flex; flex-direction: column; }
.nd-radio b { font-size: 14px; color: var(--nd-encre); }
.nd-radio small { color: var(--nd-gris); font-size: 12px; }
.nd-dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.nd-date { flex: 0 0 auto; border: 1px solid var(--nd-bord); background: #fff; border-radius: 10px; padding: 9px 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.nd-date b { font-size: 13px; color: var(--nd-encre); }
.nd-date small { color: var(--nd-gris); font-size: 11px; }
.nd-date.active { border-color: var(--nd-accent); background: var(--nd-accent-clair); }
.nd-date-vide { opacity: .5; cursor: not-allowed; }
.nd-slots-choix { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.nd-slot-choix { border: 1px solid var(--nd-accent); background: #fff; color: var(--nd-accent-fonce); border-radius: 8px; padding: 8px 13px; font-weight: 700; cursor: pointer; }
.nd-slot-choix.active { background: var(--nd-accent); color: #fff; }
.nd-recap { border: 1px solid var(--nd-bord); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.nd-recap-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--nd-bord); font-size: 14px; }
.nd-recap-ligne:last-child { border-bottom: 0; }
.nd-recap-ligne span { color: var(--nd-gris); }

/* ----------------------------------------------------------------- confirmation */
.nd-confirm { background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 28px; margin: 18px 0; text-align: center; }
.nd-confirm-ok { font-size: 46px; }
.nd-confirm h1 { color: var(--nd-encre); font-size: 24px; margin: 6px 0; }
.nd-confirm .nd-table-detail { text-align: left; margin: 18px auto; max-width: 620px; }
.nd-confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* ----------------------------------------------------------- salle d'attente */
.nd-salle { background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 22px; margin: 18px 0; }
.nd-salle-head h1 { font-size: 24px; color: var(--nd-encre); margin: 0 0 4px; }
.nd-salle-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin: 16px 0; }
.nd-salle-lien { margin-top: 14px; word-break: break-all; }
.nd-salle-lien a { color: var(--nd-accent-fonce) !important; font-weight: 600; font-size: 13px; }
.nd-salle-test { background: var(--nd-fond); border: 1px solid var(--nd-bord); border-radius: 12px; padding: 16px; }
.nd-salle-test h3 { margin: 0 0 12px; font-size: 16px; }
.nd-test-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--nd-bord); font-size: 14px; }
#nd_apercu { width: 100%; border-radius: 10px; margin: 12px 0; background: #000; display: none; aspect-ratio: 16/9; }
.nd-salle-video { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--nd-bord); }
.nd-salle-video iframe { width: 100%; height: 560px; border: 0; display: block; }

/* ------------------------------------------------------------------- suivi */
.nd-suivi { background: #fff; border: 1px solid var(--nd-bord); border-radius: 16px; padding: 22px; margin: 18px 0; }
.nd-suivi h1 { font-size: 24px; color: var(--nd-encre); }
.nd-suivi-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.nd-suivi-form input { flex: 1 1 320px; border: 1px solid var(--nd-bord); border-radius: 10px; padding: 11px 13px; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 991px) {
    .nd-tiles, .nd-grid, .nd-clinics { grid-template-columns: repeat(2, 1fr); }
    .nd-grid-list, .nd-agenda, .nd-lieu, .nd-salle-grid { grid-template-columns: 1fr; }
    .nd-layout, .nd-layout-rdv, .nd-fiche-cols { grid-template-columns: 1fr; }
    .nd-filters, .nd-fiche-side { position: static; }
    .nd-fiche-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 575px) {
    .nd-tiles, .nd-grid, .nd-clinics { grid-template-columns: 1fr; }
    .nd-hero-txt h1 { font-size: 22px; }
    .nd-salle-video iframe { height: 380px; }
}
