/* ============================================================
   Clinique Ostea — feuille de style principale
   Palette et mise en page reproduites de la maquette PDF
   ============================================================ */

:root {
  --teal: #1E7D76;
  --teal-dark: #16655F;
  --teal-deeper: #114F4A;
  --teal-soft: #7FC6BE;
  --mint: #EAF5F2;
  --mint-2: #DCEFEA;
  --ink: #222826;
  --body-c: #4A5553;
  --line: #E4EBE9;
  --footer-bg: #262626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 64, 60, 0.10);
  --shadow-soft: 0 6px 18px rgba(23, 64, 60, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--body-c);
  font-size: 16px;
  line-height: 1.6;
  background-color: #fff;
  background-image: url("../img/contours.svg"), url("../img/contours.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: right -260px top 90px, left -280px bottom 40px;
}

h1, h2, h3, h4, .brand-text, .btn {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

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

a { color: var(--teal); text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--mint); }

/* Bouton de réservation GOrendezvous — habillé comme les boutons du site */
.gorendezvous-button {
  display: inline-block !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  line-height: normal !important;
  vertical-align: middle !important;
}
.gorendezvous-button a,
.gorendezvous-button button,
.gorendezvous-button input[type="button"] {
  display: inline-block !important;
  background: var(--teal) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  text-transform: none !important;
  padding: 12px 28px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  white-space: nowrap !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.gorendezvous-button a:hover,
.gorendezvous-button button:hover,
.gorendezvous-button input[type="button"]:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px) !important;
}
/* Sur les bandes turquoise (bas de page) : bouton blanc à texte turquoise */
.cta-band .gorendezvous-button a,
.cta-band .gorendezvous-button button,
.cta-band .gorendezvous-button input[type="button"] {
  background: #fff !important;
  color: var(--teal) !important;
}
.cta-band .gorendezvous-button a:hover,
.cta-band .gorendezvous-button button:hover,
.cta-band .gorendezvous-button input[type="button"]:hover {
  background: var(--mint) !important;
}

.btn-sm {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand svg { width: 44px; height: 44px; flex: none; }

.brand-text {
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 400;
}

.brand-text b { color: var(--teal); font-weight: 700; }

.main-nav { display: flex; gap: 26px; margin-left: 26px; }

.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--teal); }

.main-nav a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 500;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.lang { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; color: #9aa5a3; }

.lang a { color: #9aa5a3; padding-bottom: 2px; border-bottom: 2px solid transparent; }

.lang a.active { color: var(--teal); font-weight: 600; border-bottom-color: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--teal);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Héros ---------- */

.hero-wrap { padding: 28px 0 0; }

.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 60px 24px;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 42, 40, 0.42), rgba(18, 42, 40, 0.28));
}

.hero > * { position: relative; }

.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 720px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin-top: 12px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero .btn { margin-top: 26px; }

/* Héros avec image de la maquette (titre intégré à l'image) */

.hero-baked { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); }

.hero-baked img { width: 100%; }

.hero-full { overflow: hidden; }

.hero-full img { width: 100%; min-height: 240px; object-fit: cover; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }

.section-tight { padding: 44px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin-bottom: 40px;
}

.section-title.teal { color: var(--teal); }

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: -26px auto 44px;
  color: var(--body-c);
}

/* ---------- Cartes ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 24px 30px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card { color: var(--body-c); }

a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(23, 64, 60, 0.16); }

.card .icon { display: block; margin: 0 auto 16px; width: 64px; height: 64px; }

.card .icon svg { width: 100%; height: 100%; }

.card h3 {
  color: var(--teal);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p { font-size: 0.92rem; }

/* ---------- Rangée média (image + texte) ---------- */

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 64px;
}

.media-row:last-child { margin-bottom: 0; }

.media-row img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; }

.media-row h2 {
  color: var(--teal);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.media-row h2.dark { color: var(--ink); font-size: 1.7rem; }

.media-row .lead { font-weight: 700; color: var(--ink); margin-bottom: 14px; }

.media-row ul { margin: 0 0 20px 20px; }

.media-row li { margin-bottom: 7px; }

.media-row.flip .media-img { order: 2; }

/* ---------- Témoignages ---------- */

.testimonials { background: var(--mint); }

.testimonials .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.testimonial q, .testimonial p { font-size: 0.95rem; font-style: normal; }

.testimonial .author { margin-top: 10px; font-weight: 700; color: var(--ink); font-size: 0.9rem; }

/* ---------- Bande CTA ---------- */

.cta-band {
  background: var(--teal);
  text-align: center;
  padding: 58px 24px;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.35;
}

/* ---------- Bande infos (Services) ---------- */

.info-band { background: var(--mint-2); }

.info-band .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.info-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1.6px solid var(--teal);
  border-radius: 10px;
  padding: 20px 18px;
  background: transparent;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-align: left;
}

.info-box svg { width: 34px; height: 34px; flex: none; }

.info-box small { display: block; font-weight: 400; font-family: "Roboto", sans-serif; color: var(--body-c); }

/* ---------- Listes à puces / vérifications ---------- */

.why-list { max-width: 620px; margin: 0 auto; }

.why-list ul { margin-left: 20px; }

.why-list li { margin-bottom: 10px; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 34px;
  margin-top: 14px;
}

.check-item { display: flex; align-items: center; gap: 10px; }

.check-item svg { width: 20px; height: 20px; flex: none; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 40px auto 0; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 18px 4px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.faq-q svg { flex: none; width: 18px; height: 18px; transition: transform 0.25s ease; }

.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p { padding: 0 4px 18px; font-size: 0.95rem; }

/* ---------- Page À propos ---------- */

.about-intro {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
}

.about-intro img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }

.about-intro-text {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 34px 36px;
}

.about-intro-text p { margin-bottom: 12px; color: var(--ink); }

.about-intro-text p:last-child { margin-bottom: 0; }

.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.photo-duo img { border-radius: var(--radius); box-shadow: var(--shadow-soft); width: 100%; }

.accred { max-width: 700px; margin: 0 auto; }

.accred ul { margin-left: 20px; }

.accred li { margin-bottom: 10px; }

/* ---------- Page Contact ---------- */

.contact-kicker {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
}

.panel h3 { color: var(--teal); font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }

.panel h3 + p, .panel p { font-size: 0.96rem; }

.panel .spacer { height: 18px; }

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid #b8c8c5;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 125, 118, 0.14);
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 999px;
}

.form-note { margin-top: 12px; font-size: 0.92rem; line-height: 1.45; color: var(--teal-dark); display: none; }
.form-note.success { color: var(--teal-dark); font-weight: 500; }
.form-note.error { color: #b3261e; font-weight: 500; }

.map-full iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

.map-full img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.note-band { background: var(--mint); padding: 34px 0; }

.note-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 20px 26px;
  text-align: center;
  font-size: 0.97rem;
}

.note-card b { color: var(--ink); }

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #C9D4D2;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.7fr 1fr;
  gap: 36px;
  padding: 48px 24px 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-brand svg { width: 34px; height: 34px; }

.site-footer a { color: var(--teal-soft); }

.site-footer a:hover { text-decoration: underline; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a { color: #C9D4D2; }

.footer-links a:hover { color: #fff; }

.footer-heading { color: #fff; font-weight: 700; margin-bottom: 8px; }

.footer-map iframe,
.footer-map img {
  width: 100%;
  max-width: 240px;
  height: 140px;
  border: 0;
  border-radius: 8px;
  display: block;
  background: #fff;
  object-fit: cover;
}

.footer-map a { display: inline-block; margin-top: 8px; font-size: 0.88rem; }

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding: 16px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #8fa09d;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .cards, .cards.cards-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials .container { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-band .container { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; gap: 26px; }
  .media-row.flip .media-img { order: 0; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 16px;
    display: none;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open { display: flex; }

  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .main-nav a.active { border-bottom-color: var(--line); }

  .nav-toggle { display: block; }

  .header-right .btn { display: none; }

  .hero { min-height: 360px; }

  .cards, .cards.cards-4 { grid-template-columns: 1fr; }

  .check-grid { grid-template-columns: 1fr; }

  .photo-duo { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 46px 0; }
}
