/* ============================================================
   jmhardy.fr — feuille de style principale
   Palette : orange #E8651A · gris foncé #2C3E50 · gris clair #F7F7F7
   ============================================================ */

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

:root {
  --orange:   #3FA535;
  --orange-d: #2F8A28;
  --blue:     #1070B0;
  --navy:     #1C2A63;
  --dark:     #1C2A63;
  --mid:      #4A5568;
  --light:    #F7F7F7;
  --white:    #ffffff;
  --border:   #E2E8F0;
  --radius:   8px;
  --shadow:   0 2px 8px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---- NAV ---------------------------------------------------------- */
.nav {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo span { font-size: .75rem; font-weight: 400; color: var(--mid); }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  padding: .4rem .75rem;
  border-radius: var(--radius);
  color: var(--dark);
  font-size: .9rem;
  transition: background .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--light); text-decoration: none; color: var(--orange); }
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: " ▾"; font-size: .7rem; }
.nav-links .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow);
  padding: .5rem 0;
  list-style: none;
  z-index: 200;
}
.nav-links .has-sub:hover .sub { display: block; }
.nav-links .sub a { display: block; padding: .5rem 1rem; font-size: .88rem; color: var(--dark); }
.nav-links .sub a:hover { background: var(--light); color: var(--orange); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .5rem 1.1rem !important;
  border-radius: 20px !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--orange-d) !important; color: var(--white) !important; }
.nav-phone { color: var(--mid); font-size: .88rem; }

/* ---- HERO --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #eef5fb 0%, #ecf6ea 100%);
  padding: 4rem 1.5rem 3rem;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}
.hero-portrait {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--green, #3FA535), 0 6px 20px rgba(0,0,0,.15);
}
.nav-logo-img { height: 40px; width: auto; display: block; }
.hero-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-d); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: .72rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .15s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--orange); color: var(--white); text-decoration: none; }

.hero-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(232,101,26,.12);
  padding: 2rem;
}
.hero-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 1rem; }
.qual-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.qual-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--mid);
}
.qual-list li::before { content: "✓"; color: var(--orange); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
.hosp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin-top: 1rem;
}
.hosp-badge {
  background: var(--light);
  border-radius: 6px;
  padding: .4rem .6rem;
  font-size: .78rem;
  color: var(--mid);
  text-align: center;
}

/* ---- SECTIONS ----------------------------------------------------- */
.section { padding: 3.5rem 1.5rem; }
.section:nth-child(even) { background: var(--light); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.section-sub { color: var(--mid); margin-bottom: 2rem; max-width: 600px; }

/* ---- CARDS GRID --------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card-icon { font-size: 1.6rem; margin-bottom: .75rem; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--dark); }
.card p { font-size: .88rem; color: var(--mid); line-height: 1.5; }
.card a { font-size: .85rem; color: var(--orange); display: inline-block; margin-top: .75rem; }

/* ---- TARIFS ------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.price-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.price-card.featured {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(232,101,26,.15);
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
}
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--mid); }
.price-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: .5rem 0; }
.price-duration { font-size: .88rem; color: var(--mid); margin-bottom: 1rem; }
.price-desc { font-size: .9rem; color: var(--mid); line-height: 1.6; }

/* ---- LIEUX -------------------------------------------------------- */
.lieux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.lieu-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}
.lieu-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.lieu-info { display: flex; flex-direction: column; gap: .5rem; }
.lieu-info p { font-size: .9rem; color: var(--mid); display: flex; gap: .5rem; }
.lieu-info p strong { color: var(--dark); min-width: 70px; }
.transport-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.transport-list li { font-size: .85rem; color: var(--mid); padding-left: 1.2rem; position: relative; }
.transport-list li::before { content: "🚇"; position: absolute; left: 0; font-size: .75rem; }

/* ---- PAGE CONTENT ------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #fff8f4 0%, #fdebd8 100%);
  padding: 3rem 1.5rem;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero h1 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: .5rem; }
.page-hero p { color: var(--mid); max-width: 600px; }
.breadcrumb { font-size: .85rem; color: var(--mid); margin-bottom: 1rem; }
.breadcrumb a { color: var(--orange); }

.content-section { padding: 3rem 1.5rem; }
.content-inner { max-width: 800px; margin: 0 auto; }
.content-inner h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; padding-top: 1rem; }
.content-inner h2:first-child { margin-top: 0; }
.content-inner p { color: var(--mid); margin-bottom: 1rem; line-height: 1.7; }
.content-inner ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; padding-left: 1rem; }
.content-inner ul li::before { content: "▸ "; color: var(--orange); font-size: .8rem; }
.content-inner ul li { color: var(--mid); font-size: .95rem; }

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
  margin: 1.25rem 0;
}
.symptom-tag {
  background: #fff8f4;
  border: 1px solid #f5d5b8;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-size: .88rem;
  color: var(--dark);
}

.cta-box {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-d) 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.cta-box h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.cta-box p { opacity: .9; margin-bottom: 1.25rem; }
.btn-white {
  background: var(--white);
  color: var(--orange);
  padding: .7rem 1.75rem;
  border-radius: 25px;
  font-weight: 700;
  display: inline-block;
  transition: transform .15s;
}
.btn-white:hover { transform: translateY(-2px); text-decoration: none; color: var(--orange-d); }

/* ---- FOOTER ------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .75rem; }
.footer p, .footer a { font-size: .88rem; color: rgba(255,255,255,.65); }
.footer a:hover { color: var(--orange); text-decoration: none; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ---- ADMIN / LOGIN ------------------------------------------------ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: 1.5rem;
}
.login-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.login-box h1 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; }
.login-box p { color: var(--mid); font-size: .9rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }
.form-group input[type=password],
.form-group input[type=text] {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus { border-color: var(--orange); }
.remember-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--mid); }
.btn-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: .75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: background .15s;
}
.btn-submit:hover { background: var(--orange-d); }
.error-msg {
  background: #fff0f0;
  border: 1px solid #ffc8c8;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .88rem;
  color: #c00;
  margin-bottom: 1.25rem;
}

/* ---- ADMIN ANALYTICS ---------------------------------------------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.admin-header a { font-size: .85rem; color: var(--mid); }
.period-selector { display: flex; gap: .4rem; flex-wrap: wrap; }
.period-btn {
  padding: .35rem .8rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .85rem;
  color: var(--mid);
  transition: all .15s;
}
.period-btn:hover, .period-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  text-decoration: none;
}
.analytics-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.section-block { margin-bottom: 2.5rem; }
.section-block h2 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; border-left: 3px solid var(--orange); padding-left: .75rem; }

.kpi-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 130px;
  flex: 1;
  text-align: center;
}
.kpi-value { font-size: 2rem; font-weight: 800; color: var(--dark); }
.kpi-label { font-size: .78rem; color: var(--mid); margin-top: .15rem; }
.kpi-card-internal .kpi-value { color: var(--orange); }

.table-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.stats-table th { background: var(--light); padding: .5rem .75rem; text-align: left; font-weight: 600; color: var(--dark); border-bottom: 2px solid var(--border); }
.stats-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--border); color: var(--mid); }
.stats-table tr:hover td { background: #fafafa; }
.num { text-align: right; }
.mono { font-family: monospace; }
.small { font-size: .8rem; }
.nowrap { white-space: nowrap; }
.muted { color: var(--mid); }
.text-internal { color: var(--orange); font-weight: 600; }
.row-warning td { background: #fff8f4 !important; }

.badge { display: inline-block; padding: .15rem .55rem; border-radius: 12px; font-size: .75rem; font-weight: 600; background: var(--light); color: var(--mid); }
.badge-admin { background: #e8f4fd; color: #2563eb; }
.badge-failed { background: #fff0f0; color: #c00; }
.badge-ok-status { background: #e8fde8; color: #1a7f1a; }
.badge-failed-status { background: #fff0f0; color: #c00; }

.geo-bars { display: flex; flex-direction: column; gap: .6rem; }
.geo-bar-row { display: flex; align-items: center; gap: .75rem; }
.geo-bar-label { min-width: 160px; font-size: .85rem; color: var(--dark); }
.geo-bar { flex: 1; background: var(--light); border-radius: 4px; height: 22px; position: relative; overflow: hidden; }
.geo-bar-fill { height: 100%; background: var(--orange); opacity: .75; border-radius: 4px; }
.geo-bar-val { position: absolute; right: 6px; top: 3px; font-size: .75rem; color: var(--dark); }

/* ---- RESPONSIVE --------------------------------------------------- */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hosp-grid { grid-template-columns: 1fr 1fr; }
}
