/* ============================================================
   infochiro.com -- main.css v1.0.2
   Charte : Ardoise & Sauge
   ============================================================ */

:root {
  --ardoise:   #2E3A35;
  --ardoise-d: #1C2620;
  --ardoise-m: #3E4E48;
  --sauge:     #6A9E86;
  --sauge-l:   #8BAF9E;
  --lin:       #E8EDE7;
  --lin-d:     #D0D8D0;
  --blanc:     #F7F9F5;
  --texte:     #1C2620;
  --texte-s:   #5A7065;
  --radius:    8px;
  --radius-lg: 12px;
  --max-w:     1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--blanc);
  color: var(--texte);
  line-height: 1.75;
}

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

h1, h2, h3, h4 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ardoise);
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.5vw, 38px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAV --- */
.site-nav {
  background: var(--ardoise);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid var(--ardoise-m);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo span { color: var(--sauge); }
.nav-logo:hover { text-decoration: none; opacity: 0.9; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  color: var(--sauge-l);
  letter-spacing: 0.04em;
  font-weight: 300;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-nav-ghost {
  font-size: 12px;
  color: var(--sauge-l);
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s;
}

.btn-nav-ghost:hover { color: #fff; text-decoration: none; }

.btn-nav-primary {
  font-size: 12px;
  background: var(--sauge);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.btn-nav-primary:hover { background: #5a8e76; text-decoration: none; }

.nav-burger { display: none; }

/* --- FOOTER --- */
.site-footer {
  background: var(--ardoise-d);
  padding: 40px 0 28px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
  align-items: start;
}

.footer-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--sauge-l);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: rgba(139,175,158,0.5);
  letter-spacing: 0.04em;
}

.footer-links a:hover { color: var(--sauge-l); text-decoration: none; }

.footer-rpps {
  font-size: 11px;
  color: rgba(139,175,158,0.3);
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.footer-copy {
  font-size: 11px;
  color: rgba(139,175,158,0.25);
  grid-column: 1 / -1;
  margin-bottom: 0;
}

/* --- BOUTONS GENERAUX --- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary { background: var(--sauge); color: #fff; }
.btn-primary:hover { background: #5a8e76; text-decoration: none; color: #fff; }

.btn-outline { background: transparent; border: 0.5px solid var(--ardoise); color: var(--ardoise); }
.btn-outline:hover { background: var(--ardoise); color: #fff; text-decoration: none; }

.btn-outline-white { background: transparent; border: 0.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* --- BADGES / TAGS --- */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-patients  { background: #EAF3EE; color: #1F5C33; }
.badge-pros      { background: #E8EDF8; color: #1E3A7A; }
.badge-open      { background: #EAF3EE; color: #1F5C33; }
.badge-soon      { background: #FDF3E4; color: #7A4205; }
.badge-full      { background: #FAECEC; color: #7A2020; }
.badge-sponsored { background: var(--lin); color: var(--ardoise); }

/* --- CARDS --- */
.card {
  background: #fff;
  border: 0.5px solid var(--lin-d);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--sauge-l); }

/* --- SECTIONS --- */
.section {
  padding: 64px 0;
}

.section-alt {
  padding: 64px 0;
  background: var(--lin);
}

.section-dark {
  padding: 64px 0;
  background: var(--ardoise);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sauge);
  margin-bottom: 8px;
  display: block;
}

.section-more {
  font-size: 12px;
  color: var(--sauge);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* --- GRIDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

/* --- STATS BAND --- */
.stats-band {
  background: var(--ardoise);
  padding: 28px 0;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 0 16px;
  border-right: 0.5px solid var(--ardoise-m);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Cormorant Garant', serif;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--sauge-l);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* --- SEARCH BAR --- */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  border: 0.5px solid var(--sauge);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.search-bar input,
.search-bar select {
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--texte);
  font-weight: 300;
}

.search-bar input { flex: 1; }
.search-bar input::placeholder { color: var(--sauge-l); }

.search-sep {
  width: 0.5px;
  height: 28px;
  background: var(--lin-d);
  flex-shrink: 0;
}

.search-bar select { color: var(--texte-s); cursor: pointer; }

/* --- CUSTOM DROPDOWN (toujours vers le bas) --- */

.search-bar button {
  background: var(--sauge);
  color: #fff;
  border: none;
  padding: 13px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}

.search-bar button:hover { background: #5a8e76; }

/* --- FORMULAIRE NEWSLETTER --- */
.nl-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
  border: 0.5px solid rgba(106,158,134,0.4);
  border-radius: var(--radius);
  overflow: hidden;
}

.nl-form input,
.nl-form select {
  border: none;
  outline: none;
  background: rgba(255,255,255,0.07);
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #fff;
  font-weight: 300;
}

.nl-form input { flex: 1; }
.nl-form input::placeholder { color: rgba(139,175,158,0.5); }

.nl-form select {
  border-left: 0.5px solid rgba(106,158,134,0.25);
  color: var(--sauge-l);
  cursor: pointer;
}

.nl-form select option { background: var(--ardoise); }

.nl-form button {
  background: var(--sauge);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.nl-form button:hover { background: #5a8e76; }

/* --- PAGE ERREUR --- */
.main-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--ardoise);
    padding: 16px 24px;
    gap: 16px;
    border-top: 0.5px solid var(--ardoise-m);
  }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }
  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--sauge-l);
  }
  .nav-actions { display: none; }
  .site-nav { position: relative; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 16px 0; }
  .stat-item:nth-child(2) { border-right: none; }

  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-alt { padding: 40px 0; }
}
