/* =========================================================
   Cabinet Kinésithérapie Tribolet — style.css
   Vanilla CSS, mobile-first, aucune dépendance externe
   ========================================================= */

:root {
  /* Palette santé / bien-être */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f8;
  --color-text: #1f2d2b;
  --color-text-muted: #5b6b68;
  --color-border: #e2e8e7;

  --color-primary: #1f5f5b;      /* bleu-vert clinique, sobre */
  --color-primary-dark: #163f3c;
  --color-primary-light: #e5f0ef;

  --color-accent: #e8703a;       /* accent chaud, réservé aux CTA */
  --color-accent-dark: #c8592a;

  --radius: 12px;
  --shadow: 0 4px 16px rgba(31, 45, 43, 0.08);
  --shadow-lg: 0 12px 32px rgba(31, 45, 43, 0.12);

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container-width: 1120px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0 0 0.75em; }

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

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-cta {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-cta:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary-light);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo span {
  display: block;
  font-size: 0.85em;
  color: var(--color-primary);
  font-weight: 600;
}

.main-nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 6px;
}
.lang-switch a,
.lang-switch .lang-current {
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1;
}
.lang-switch a {
  color: var(--color-text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.lang-switch .lang-current {
  background: var(--color-primary);
  color: #fff;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--color-primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.main-nav.open a {
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.main-nav.open a:last-child { border-bottom: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-primary-light) 0%, #ffffff 60%);
  padding: 56px 0 64px;
}
.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  align-items: center;
}
.hero-text { max-width: 640px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-primary-dark);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-shape {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-lg);
}

/* ---------- Sections communes ---------- */
section { padding: 64px 0; scroll-margin-top: 96px; }
section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--color-primary-dark);
}
.section-intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* ---------- Spécialités ---------- */
.specialites { background: var(--color-bg); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.card-icon svg { width: 100%; height: 100%; }

.card h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}
.card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ---------- À propos ---------- */
.a-propos { background: var(--color-bg-alt); }

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.about-text { max-width: 640px; }
.about-text p { color: var(--color-text-muted); }
.about-text strong { color: var(--color-text); }

/* ---------- Infos pratiques ---------- */
.infos-pratiques { background: var(--color-bg); }

.infos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.info-block h3 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.4em;
}
.info-block p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.info-block a {
  color: var(--color-primary);
  font-weight: 600;
}
.info-block a:hover { text-decoration: underline; }

.text-muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff6ee;
  border: 1px solid #f2d4b8;
  border-radius: var(--radius);
  padding: 20px 22px;
}
.callout-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.callout h3 {
  font-size: 1rem;
  color: var(--color-accent-dark);
  margin-bottom: 0.3em;
}
.callout p {
  color: var(--color-text);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--color-primary-dark);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact-text p { color: #d8e6e4; }
.contact-text a { color: #fff; font-weight: 600; }
.contact-text a:hover { text-decoration: underline; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.contact .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.contact .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
}
.footer-inner p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* =========================================================
   Breakpoints
   ========================================================= */

/* Tablette / petit desktop */
@media (min-width: 640px) {
  .infos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 780px) {
  .about-inner {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .hero-text { flex: 1 1 auto; }
  .hero-visual {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .infos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  .hero-text { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .about-inner { text-align: center; }
}

/* =========================================================
   Pages légales (mentions légales, confidentialité, CGU)
   ========================================================= */

.legal-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0;
}
.legal-hero .breadcrumb {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
}
.legal-hero .breadcrumb:hover { text-decoration: underline; }
.legal-hero h1 {
  color: var(--color-primary-dark);
  margin-bottom: 0.2em;
}
.legal-hero .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.legal-content {
  padding: 48px 0 72px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-top: 2em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.legal-content li { margin-bottom: 0.4em; }
.legal-content a {
  color: var(--color-primary);
  font-weight: 600;
}
.legal-content a:hover { text-decoration: underline; }

.legal-content .placeholder {
  background: #fff6ee;
  border: 1px solid #f2d4b8;
  border-radius: 6px;
  padding: 0.05em 0.5em;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.92em;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
}
.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.footer-legal-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
