/* Hospital Flow — feuille de style principale
   Palette et typographie reprises de la maquette Lovable du projet. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --primary: #0C3280;
  --primary-dark: #092554;
  --danger: #CC0000;
  --danger-dark: #8b0000;
  --success: #16A34A;
  --warning: #B45309;
  --background: #FFFFFF;
  --foreground: #374151;
  --muted: #F5F5F5;
  --muted-foreground: #6B7280;
  --border: #E5E7EB;
  --neutral-900: #171717;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  color: var(--primary);
  margin: 0;
}

p {
  margin: 0;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  main {
    padding-bottom: 0;
  }
}

/* ===================== BOUTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .1em;
  padding: .9rem 2rem;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ===================== BARRE D'URGENCE ===================== */
.urgency-bar {
  width: 100%;
  background: var(--danger);
  color: #fff;
}
.urgency-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .25rem 1.5rem;
  padding: .5rem 1.5rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
}
.urgency-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.urgency-sep {
  color: rgba(255,255,255,.5);
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 2px solid var(--primary);
}
.site-header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.5rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.logo-box {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  flex-shrink: 0;
}
.logo-box span {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}
.logo-box.light {
  border-color: #fff;
  color: #fff;
}
.logo-text-title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--primary);
}
.logo-text-sub {
  font-size: .65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-foreground);
}
.logo-mark.light .logo-text-title,
.logo-mark.light .logo-text-sub {
  color: #fff;
}
.logo-mark.light .logo-text-sub {
  color: rgba(255,255,255,.7);
}

.main-nav {
  display: none;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  padding: .5rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(12,50,128,.8);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--primary);
}
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: none;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--neutral-200);
  background: #fff;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
}
.mobile-nav li {
  border-bottom: 1px solid var(--neutral-100);
}
.mobile-nav a {
  display: block;
  padding: .8rem 0;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
}
.mobile-nav .mobile-cta {
  display: inline-block;
  margin: .8rem 0;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; align-items: center; gap: .5rem; }
  .menu-toggle { display: none; }
}

/* ===================== PIED DE PAGE ===================== */
.site-footer {
  margin-top: 4rem;
  background: var(--primary);
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); padding: 3.5rem 1.5rem; }
}
.footer-grid p {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
}
.footer-grid h4 {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: .5rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer-grid ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.footer-grid ul li {
  margin-bottom: .6rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-icon {
  flex-shrink: 0;
  margin-top: .15rem;
  color: rgba(255,255,255,.6);
}
.footer-grid a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.2rem;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.6);
}

/* ===================== NAV MOBILE BASSE ===================== */
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  border-top: 2px solid var(--primary);
  background: #fff;
}
.bottom-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 40rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.bottom-nav li {
  flex: 1;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .5rem 0;
  font-size: .6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted-foreground);
}
.bottom-nav a.active {
  color: var(--primary);
}
.bottom-nav .icon {
  font-size: 1.2rem;
  line-height: 1;
}
@media (min-width: 768px) {
  .bottom-nav { display: none; }
}

/* ===================== HERO (ACCUEIL) ===================== */
.hero {
  position: relative;
  height: 520px;
  width: 100%;
  overflow: hidden;
  background: var(--primary);
}
@media (min-width: 768px) {
  .hero { height: 600px; }
}
.hero-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.4);
  padding: .3rem .8rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.hero-content h1 {
  margin-top: 1.5rem;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
}
@media (min-width: 768px) {
  .hero-content h1 { font-size: 3.75rem; }
}
.hero-content p {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
}
@media (min-width: 768px) {
  .hero-content p { font-size: 1.1rem; }
}
.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.hero-dots button {
  height: .35rem;
  width: 2rem;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active {
  background: #fff;
}

/* ===================== STATS ===================== */
.stats-bar {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.stat-item:nth-child(2n) { border-right: none; }
@media (min-width: 768px) {
  .stat-item { border-bottom: none; }
  .stat-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-right: none; }
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
@media (min-width: 768px) {
  .stat-value { font-size: 2.25rem; }
}
.stat-label {
  margin-top: .25rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-foreground);
}

/* ===================== SECTIONS GENERIQUES ===================== */
.section {
  padding: 4rem 1.5rem;
}
@media (min-width: 768px) {
  .section { padding: 5rem 1.5rem; }
}
.section-alt {
  background: var(--muted);
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.section-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(12,50,128,.7);
}
.section-header h2 {
  margin-top: .75rem;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
@media (min-width: 768px) {
  .section-header h2 { font-size: 2.25rem; }
}
.section-rule {
  margin: 1rem auto 0;
  height: 3px;
  width: 4rem;
  background: var(--primary);
}

/* ===================== CARTES HOPITAUX (accueil) ===================== */
.hospital-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hospital-grid { grid-template-columns: repeat(2, 1fr); }
}
.hospital-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--primary);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: box-shadow .15s;
}
.hospital-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.hospital-card-photo {
  display: block;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: var(--muted);
}
.hospital-card-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hospital-card-body {
  padding: 1.5rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.hospital-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.hospital-card-body h3 a:hover {
  text-decoration: underline;
}
.hospital-card-body .director {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
.hospital-card-body .director strong {
  color: var(--foreground);
  font-weight: 600;
}
.hospital-card-body p.line {
  margin-top: .6rem;
  font-size: .95rem;
  line-height: 1.55;
}
.hospital-card-body a.tel {
  color: var(--primary);
}
.hospital-card-body a.tel:hover {
  text-decoration: underline;
}
.hospital-card-body .cta {
  margin-top: 1.2rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hospital-card-body .cta:hover {
  color: var(--danger);
}

/* ===================== MEDECINS (accueil) ===================== */
.doctors-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .doctors-grid { grid-template-columns: repeat(4, 1fr); }
}
.doctor-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem;
}
.doctor-card h3 {
  font-size: 1rem;
  font-weight: 700;
}
.doctor-card .specialite {
  margin-top: .25rem;
  font-size: .875rem;
}
.doctor-card .hopital {
  margin-top: .1rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
.doctor-card .dispo {
  margin-top: .75rem;
  flex: 1;
  font-size: .85rem;
  line-height: 1.5;
}
.doctor-card .cta {
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.doctor-card .cta:hover {
  color: var(--danger);
}

/* ===================== COMMENT CA MARCHE ===================== */
.steps-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}
.step {
  text-align: center;
}
.step-number {
  margin: 0 auto;
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.step h3 {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
}
.step p {
  margin-top: .5rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--foreground);
}

/* ===================== SERVICES / DEPARTEMENTS ===================== */
.depts-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .depts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .depts-grid { grid-template-columns: repeat(5, 1fr); }
}
.dept-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--border);
  background: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color .15s, background-color .15s;
}
.dept-card:hover {
  border-color: var(--primary);
  background: var(--muted);
}
.dept-card-icon {
  color: var(--primary);
}
.dept-card .name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary);
}
.depts-more {
  margin-top: 2.5rem;
  text-align: center;
}

/* ===================== URGENCE (accueil) ===================== */
.emergency-section {
  background: var(--danger);
  color: #fff;
}
.emergency-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .emergency-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.emergency-text {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .emergency-text { flex-direction: row; align-items: flex-start; gap: 1rem; }
}
.emergency-text .cross {
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .emergency-text .cross { margin-top: .2rem; }
}
.emergency-text .label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.8);
}
.emergency-text h2 {
  margin-top: .25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 768px) {
  .emergency-text h2 { font-size: 1.875rem; }
}
.emergency-text p {
  margin-top: .5rem;
  max-width: 32rem;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.emergency-calls {
  display: grid;
  gap: .75rem;
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .emergency-calls { grid-template-columns: repeat(2, 1fr); min-width: 26rem; }
}
@media (min-width: 768px) {
  .emergency-calls { width: auto; }
}
.emergency-calls a {
  display: block;
  border: 2px solid #fff;
  padding: 1rem 1.25rem;
  transition: background-color .15s, color .15s;
}
.emergency-calls a:hover {
  background: #fff;
  color: var(--danger);
}
.emergency-calls .call-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  opacity: .8;
}
.emergency-calls .call-number {
  margin-top: .25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===================== PAGES "DOCUMENT" (annuaire, detail, rdv, auth...) ===================== */
.doc-main {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}
.doc-main.narrow { max-width: 48rem; }
.doc-main.medium { max-width: 56rem; }
.doc-main.auth { max-width: 28rem; }

.doc-eyebrow {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--neutral-500);
}
.doc-title {
  margin-top: .5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
}
@media (min-width: 768px) {
  .doc-title { font-size: 2.25rem; }
}
.doc-lead {
  margin-top: .75rem;
  max-width: 42rem;
  color: var(--neutral-700);
  line-height: 1.6;
}

.doc-header {
  border-bottom: 1px solid var(--neutral-200);
  padding-bottom: 1.5rem;
}

.doc-toolbar {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.doc-field { flex: 1; min-width: 16rem; }
.doc-field label {
  display: block;
  margin-bottom: .25rem;
  font-size: .875rem;
  color: var(--neutral-700);
}
.doc-field input,
.doc-field select,
.doc-field textarea {
  width: 100%;
  border: 1px solid var(--neutral-300);
  background: #fff;
  padding: .5rem .75rem;
  font-size: .875rem;
  outline: none;
}
.doc-field input:focus,
.doc-field select:focus,
.doc-field textarea:focus {
  border-color: var(--primary);
}

.doc-count {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--neutral-600);
}

.doc-error {
  margin-top: 1rem;
  border-left: 2px solid var(--danger);
  background: var(--neutral-50);
  padding: .5rem .75rem;
  font-size: .875rem;
  color: var(--neutral-700);
}

.listing {
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--neutral-200);
}
.listing-item {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--neutral-200);
}
@media (min-width: 768px) {
  .listing-item { grid-template-columns: 18rem 1fr; }
}
.listing-photo {
  display: block;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background: var(--neutral-100);
}
.listing-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.listing-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}
.listing-body h2 a:hover {
  text-decoration: underline;
}
.listing-body p {
  margin-top: .5rem;
  color: var(--neutral-700);
  line-height: 1.55;
}
.listing-body .muted {
  color: var(--neutral-600);
}
.listing-body .cta {
  margin-top: 1rem;
  display: inline-block;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.listing-body .cta:hover {
  color: var(--danger);
}

.empty-box {
  margin-top: 2.5rem;
  border: 1px dashed var(--neutral-300);
  padding: 2.5rem;
  text-align: center;
  color: var(--neutral-600);
}

/* ---- fiche etablissement ---- */
.detail-banner {
  border-bottom: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}
.detail-banner-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
}
.detail-logo {
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  border: 1px solid var(--neutral-200);
  background: #fff;
  object-fit: contain;
  padding: .25rem;
}
.detail-back {
  margin-top: 1rem;
  display: inline-block;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tabs {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  border-bottom: 1px solid var(--neutral-200);
  font-size: .875rem;
}
.tabs button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: .75rem 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--neutral-600);
  cursor: pointer;
}
.tabs button:hover {
  color: var(--primary);
}
.tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  padding: 2rem 0;
}
.tab-panel > * + * { margin-top: 2rem; }

.gallery-grid {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.def-list {
  max-width: 40rem;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  font-size: .875rem;
}
.def-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--neutral-200);
}
.def-row:last-child { border-bottom: none; }
.def-row dt { color: var(--neutral-500); margin: 0; }
.def-row dd { color: var(--neutral-900); margin: 0; }

.service-block {
  border-top: 1px solid var(--neutral-200);
}
.service-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--neutral-200);
}
.service-item h3 {
  color: var(--neutral-900);
  font-weight: 600;
  font-size: 1rem;
}
.service-item p {
  margin-top: .25rem;
  color: var(--neutral-700);
}
.service-item .load {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--neutral-600);
}
.service-item .cta {
  margin-top: .5rem;
  display: inline-block;
  font-size: .875rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pill-filters {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  row-gap: .5rem;
  font-size: .875rem;
}
.pill-filters button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--neutral-600);
  text-underline-offset: 4px;
}
.pill-filters button.active {
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}
.pill-filters button:hover {
  color: var(--primary);
}

.infos-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .infos-grid { grid-template-columns: repeat(2, 1fr); }
}
.infos-grid h3 {
  margin-bottom: .5rem;
  font-weight: 600;
  font-size: 1rem;
}
.infos-grid p { color: var(--neutral-800); }
.infos-grid p.muted { color: var(--neutral-700); margin-top: .1rem; }
.infos-grid a.map-link {
  margin-top: .5rem;
  display: inline-block;
  font-size: .875rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
table.data-table thead tr {
  border-top: 1px solid var(--neutral-300);
  border-bottom: 1px solid var(--neutral-300);
  background: var(--neutral-50);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .75rem;
  color: var(--neutral-600);
}
table.data-table th, table.data-table td {
  padding: .7rem .75rem;
}
table.data-table tbody tr {
  border-bottom: 1px solid var(--neutral-200);
}
table.data-table a.cta {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.table-scroll {
  margin-top: 1rem;
  overflow-x: auto;
}

/* ---- RDV wizard ---- */
.wizard-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem .5rem;
  border-bottom: 1px solid var(--neutral-200);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--neutral-500);
}
.wizard-steps li.done { color: var(--neutral-700); }
.wizard-steps li.current { font-weight: 600; color: var(--primary); }

.wizard-panel {
  margin-top: 2rem;
}
.wizard-panel h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-900);
}
.wizard-panel .sub {
  margin-top: .25rem;
  font-size: .875rem;
  color: var(--neutral-600);
}

.hopital-pick-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .hopital-pick-grid { grid-template-columns: repeat(2, 1fr); }
}
.hopital-pick {
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  background: #fff;
  text-align: left;
  cursor: pointer;
  padding: 0;
}
.hopital-pick:hover { border-color: var(--primary); }
.hopital-pick.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.hopital-pick img {
  height: 8rem;
  width: 100%;
  object-fit: cover;
}
.hopital-pick .info { padding: .75rem; }
.hopital-pick .info .name { font-weight: 600; color: var(--neutral-900); }
.hopital-pick .info .zone { font-size: .875rem; color: var(--neutral-600); }

.radio-list {
  margin-top: 1rem;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.radio-option {
  display: flex;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--neutral-200);
  cursor: pointer;
}
.radio-option:last-child { border-bottom: none; }
.radio-option input { margin-top: .3rem; accent-color: var(--primary); }
.radio-option .name { display: block; font-weight: 500; color: var(--neutral-900); }
.radio-option .sub { display: block; font-size: .875rem; color: var(--neutral-700); }
.radio-option .sub.muted { color: var(--neutral-600); }

.slot-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.time-slots button {
  border: 1px solid var(--neutral-300);
  background: #fff;
  padding: .35rem .75rem;
  font-size: .875rem;
  color: var(--neutral-800);
  cursor: pointer;
}
.time-slots button:hover { border-color: var(--primary); }
.time-slots button.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.summary-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  font-size: .875rem;
}
.summary-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--neutral-200);
}
.summary-row:last-child { border-bottom: none; }
.summary-row dt { color: var(--neutral-500); margin: 0; }
.summary-row dd { color: var(--neutral-900); margin: 0; }

.confirm-box {
  border-left: 4px solid var(--success);
  background: var(--neutral-50);
  padding: 1.5rem;
}
.confirm-box h2 { font-size: 1.25rem; font-weight: 600; }
.confirm-box p { margin-top: .75rem; color: var(--neutral-800); }
.confirm-box .ref { font-family: monospace; font-weight: 600; }
.confirm-box .links { margin-top: 1.5rem; font-size: .875rem; }
.confirm-box .links a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.confirm-box .links .sep { margin: 0 .75rem; color: var(--neutral-400); }

.wizard-nav {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--neutral-200);
  padding-top: 1.5rem;
}
.wizard-nav .back {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .875rem;
  color: var(--neutral-600);
}
.wizard-nav .back:hover { text-decoration: underline; }
.wizard-nav .back:disabled { opacity: .4; cursor: not-allowed; }
.wizard-nav .next {
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  padding: .65rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
}
.wizard-nav .next:disabled { opacity: .5; cursor: not-allowed; }

/* ---- formulaires (auth) ---- */
.form-stack { display: flex; flex-direction: column; gap: 1rem; }
.form-row-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
}
.form-field label {
  display: block;
  margin-bottom: .25rem;
  font-size: .875rem;
  color: var(--neutral-800);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1px solid var(--neutral-300);
  background: #fff;
  padding: .55rem .75rem;
  font-size: .875rem;
  outline: none;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--primary);
}
.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  padding: .65rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-submit:disabled { opacity: .5; cursor: not-allowed; }
.form-footnote { padding-top: .5rem; font-size: .875rem; color: var(--neutral-600); }
.form-footnote a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.form-error { border-left: 2px solid var(--danger); background: var(--neutral-50); padding: .5rem .75rem; font-size: .875rem; color: var(--danger); }

/* ---- dashboard ---- */
.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dash-user { display: flex; align-items: center; gap: .75rem; }
.dash-avatar {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(12,50,128,.1);
  color: var(--primary);
  font-size: 1.3rem;
}
.dash-user h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.dash-user p { font-size: .875rem; color: var(--muted-foreground); }
.dash-actions { display: flex; gap: .5rem; }
.btn-outline {
  border: 1px solid var(--neutral-300);
  background: #fff;
  color: var(--foreground);
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-outline:hover { background: var(--neutral-50); }
.btn-solid {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-solid:hover { background: var(--primary-dark); }

.dash-section { margin-top: 2.5rem; }
.dash-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--foreground); }
.dash-list { margin-top: .75rem; display: grid; gap: .75rem; }
.appt-card {
  border: 1px solid var(--neutral-200);
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.appt-card .title { font-weight: 600; color: var(--neutral-900); }
.appt-card .meta { margin-top: .25rem; font-size: .875rem; color: var(--neutral-700); }
.appt-card .status { margin-top: .25rem; font-size: .875rem; color: var(--neutral-600); }
.appt-card .cancel {
  background: none; border: none; cursor: pointer;
  font-size: .875rem; color: var(--danger);
  text-decoration: underline; text-underline-offset: 4px;
}
.appt-card .cancel:hover { color: var(--danger-dark); }
.empty-dashed {
  border: 1px dashed var(--neutral-300);
  padding: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}
.empty-dashed a { font-weight: 600; color: var(--primary); }
.empty-dashed a:hover { text-decoration: underline; }

/* ---- admin ---- */
.admin-select-row { margin-top: 1rem; font-size: .875rem; }
.admin-select-row select {
  border: 1px solid var(--neutral-300);
  background: #fff;
  padding: .35rem .75rem;
}
.admin-section { margin-top: 2.5rem; }
.admin-section h2 { font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.row-confirmed { background: #F0FBF4; }
.row-refused { background: var(--neutral-50); }
.status-ok { color: var(--success); }
.status-ko { color: var(--danger); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.4);
  padding: 1rem;
}
.modal-box {
  width: 100%;
  max-width: 28rem;
  background: #fff;
  padding: 1.5rem;
}
.modal-box h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.modal-box p { margin-top: .25rem; font-size: .875rem; color: var(--neutral-600); }
.modal-box textarea {
  margin-top: .75rem;
  width: 100%;
  border: 1px solid var(--neutral-300);
  padding: .5rem .75rem;
  font-size: .875rem;
}
.modal-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.modal-actions .cancel { background: none; border: none; cursor: pointer; font-size: .875rem; color: var(--neutral-600); text-decoration: underline; }
.modal-actions .confirm { border: none; cursor: pointer; background: var(--danger); color: #fff; padding: .5rem 1rem; font-size: .875rem; }
.modal-actions .confirm:disabled { opacity: .5; cursor: not-allowed; }

/* ===================== 404 ===================== */
.not-found {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}
.not-found h1 { font-size: 4.5rem; font-weight: 700; color: var(--foreground); }
.not-found h2 { margin-top: 1rem; font-size: 1.25rem; color: var(--foreground); }
.not-found p { margin-top: .5rem; color: var(--muted-foreground); }

/* ===================== BADGES DISPONIBILITE ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .15rem .55rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}
.badge-disponible { background: var(--success); }
.badge-peu_charge { background: var(--warning); }
.badge-tres_charge { background: var(--danger); }

/* ===================== ICONES EN LIGNE ===================== */
.i-inline {
  display: inline-block;
  vertical-align: -3px;
  margin-left: .35rem;
  flex-shrink: 0;
}
.i-inline-lead {
  display: inline-block;
  vertical-align: -3px;
  margin-right: .35rem;
  flex-shrink: 0;
}

.skeleton {
  background: var(--neutral-100);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
