/*
Theme Name: Cabinet Orion
Description: Site vitrine cabinet médical — design éditorial calme (crème / sauge). Démo portfolio.
Version: 1.0.0
Author: Boman Jarod
Text Domain: cabinet-orion
*/

:root {
  --bg: #f7f6f2;
  --white: #fffcf8;
  --ink: #1e2a28;
  --muted: #5d6b67;
  --sage: #5f7a72;
  --sage-dark: #3f564f;
  --line: rgba(30, 42, 40, 0.1);
  --shadow: 0 14px 40px rgba(30, 42, 40, 0.07);
  --font: "Jost", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --container: 1120px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-top {
  background: var(--sage-dark);
  color: rgba(255,252,248,.9);
  font-size: .74rem;
  letter-spacing: .04em;
}
.header-top-inner {
  display: flex; justify-content: space-between; gap: .75rem;
  padding: .4rem 0; flex-wrap: wrap;
}
.header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 2px;
  background: var(--sage); color: #fff;
  display: grid; place-items: center;
}
.logo-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.logo-tag { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.main-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem; }
.main-nav a {
  display: block; padding: .55rem .75rem; font-size: .84rem; font-weight: 500; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--sage-dark); border-bottom-color: var(--sage); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.2rem; border-radius: 2px; font-size: .84rem; font-weight: 500;
  letter-spacing: .04em; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--sage-dark); color: #fff; }
.btn-primary:hover { background: var(--sage); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.hero {
  position: relative; min-height: min(72vh, 640px);
  display: grid; align-items: end; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(30,42,40,.78) 0%, rgba(30,42,40,.35) 55%, rgba(30,42,40,.15) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0 3.2rem; color: #fffcf8; }
.kicker {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: #c5d5cf; margin-bottom: .85rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08; max-width: 14ch; margin-bottom: .9rem;
}
.hero h1 em { font-style: italic; color: #d8e6e1; }
.hero-lead { max-width: 40ch; color: rgba(255,252,248,.86); margin-bottom: 1.5rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.section { padding: 4rem 0; }
.section-head { margin-bottom: 1.75rem; }
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500;
}
.section-sub { color: var(--muted); margin-top: .4rem; max-width: 48ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 1.4rem; box-shadow: 0 1px 0 rgba(30,42,40,.02);
  transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 2px; background: rgba(95,122,114,.1);
  color: var(--sage-dark); display: grid; place-items: center; margin-bottom: .9rem;
}
.card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .92rem; }
.card .link { display: inline-block; margin-top: .85rem; color: var(--sage-dark); font-weight: 500; font-size: .88rem; }

.split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center;
}
.split-media {
  border-radius: 2px; overflow: hidden; border: 1px solid var(--line); min-height: 320px;
  background: #e8ebe8;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
}
.member-photo { aspect-ratio: 4/5; background: linear-gradient(160deg, #d7e0dc, #5f7a72 70%); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body { padding: 1.1rem; }
.member h3 { font-family: var(--serif); font-size: 1.2rem; }
.member p { color: var(--muted); font-size: .88rem; margin-top: .25rem; }

.hours {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.hours article {
  background: var(--white); border: 1px solid var(--line); padding: 1.2rem; border-radius: 2px;
}
.hours strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .35rem; }
.hours p { color: var(--muted); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1.4rem;
}
.panel h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .7rem; }
.panel p { color: var(--muted); margin-bottom: .35rem; }
.map-wrap { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }
.map-open { display: inline-block; margin-top: .55rem; color: var(--sage-dark); font-size: .88rem; font-weight: 500; }

.site-footer {
  background: #1e2a28; color: rgba(255,252,248,.78); padding: 3rem 0 1.4rem; margin-top: 1rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
.site-footer .logo-name { color: #fffcf8; }
.site-footer .logo-tag { color: rgba(255,252,248,.55); }
.footer-col h4 { font-family: var(--serif); color: #c5d5cf; margin-bottom: .6rem; font-size: 1.15rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,252,248,.7); font-size: .9rem; margin-bottom: .35rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .8rem;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: rgba(30,42,40,.35);
  opacity: 0; visibility: hidden; pointer-events: none; transition: .25s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(320px, 88vw);
  background: var(--bg); padding: 1.2rem; overflow: auto;
  display: flex; flex-direction: column; gap: .25rem;
}
.mobile-menu a {
  display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-weight: 500;
}
.mobile-close {
  align-self: flex-end; width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; margin-bottom: .5rem;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-main-inner { grid-template-columns: 1fr auto; }
  .cards, .team, .hours, .contact-grid, .split, .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) {
  .menu-toggle { display: none !important; }
}
