/* Cécile Gréa – ostéopathe à Meximieux. Same look as the 2017 Material Kit site, plain CSS. */

/* Roboto Condensed (SIL Open Font License, assets/fonts/OFL.txt), latin subset, self-hosted */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/roboto-condensed-latin-300.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-condensed-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/roboto-condensed-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/roboto-condensed-latin-700.woff2) format("woff2"); }

:root {
  --purple: #7b398a;
  --text: #333;
  --muted: #6b6b6b;      /* was #999 (2.8:1), darkened for contrast */
  --title: #3c4858;
  --red: #f44336;
  --green: #4caf50;
  --doctolib: #0378b8;   /* Doctolib blue, slightly darker than #0596de so white text passes AA */
  --navbar-h: 70px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--navbar-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 300;
  font-size: 18.6667px;
  line-height: 28px;
  color: var(--text);
  background: #ccc;
  padding-bottom: 76px; /* room for the Doctolib bar on phones */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #f0a020; outline-offset: 2px; }
strong { color: var(--purple); font-weight: 700; }
h1, h2, h3 { font-family: inherit; line-height: 1.1; }

.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;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: #fff; color: var(--purple); padding: 8px 12px; border-radius: 3px; }
.skip-link:focus { top: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { max-width: 750px; } }
@media (min-width: 992px)  { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: var(--purple); color: #fff;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.42), 0 3px 20px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.2);
}
.navbar-inner { display: flex; flex-wrap: wrap; align-items: center; min-height: var(--navbar-h); padding-top: 10px; padding-bottom: 10px; }
.logo-container { display: flex; align-items: center; color: #fff; }
.logo-container:hover { text-decoration: none; }
.logo { width: 50px; height: 50px; border-radius: 50%; border: 1px solid #333; }
.logo-container .brand { margin-left: 10px; margin-top: 7px; width: 120px; font-size: 16px; line-height: 18px; color: #fff; }
.logo-container .brand strong { color: #fff; font-weight: 400; display: block; }

.navbar-toggle {
  margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer;
  width: 44px; height: 44px; border-radius: 3px;
}
.navbar-toggle svg { width: 26px; height: 26px; fill: currentColor; display: block; margin: auto; }
.menu { flex-basis: 100%; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: flex; align-items: center; gap: 6px; padding: 12px 15px; border-radius: 3px;
  color: #fff; font-size: 12px; line-height: 20px; font-weight: 400; text-transform: uppercase;
}
.menu a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.menu svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
/* phones: the menu folds behind the button once site.js has run */
.js .menu { display: none; }
.js .menu.open { display: block; padding-bottom: 6px; }
@media (min-width: 768px) {
  .navbar-toggle { display: none; }
  .menu, .js .menu { display: block; flex-basis: auto; margin-left: auto; }
  .menu ul { display: flex; }
  .menu a { padding: 15px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .logo-container .brand { display: none; }
  .menu a { padding: 15px 8px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: 90vh; min-height: 300px;
  background: #777 url(../img/hero-800.jpg) center / cover no-repeat;
  background-image: image-set(url(../img/hero-800.webp) type("image/webp"), url(../img/hero-800.jpg) type("image/jpeg"));
  color: #fff; text-align: center;
}
@media (min-width: 801px) {
  .hero {
    background-image: url(../img/hero-1200.jpg);
    background-image: image-set(url(../img/hero-1200.webp) type("image/webp"), url(../img/hero-1200.jpg) type("image/jpeg"));
  }
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(100,100,100,.64); }
.hero-brand { position: relative; z-index: 1; padding: 30vh 15px 0; }
.hero h1 { font-size: 4.8em; font-weight: 700; line-height: 1.15; margin: 0 0 10px; }
.hero-subtitle { font-size: 28px; line-height: 1.4; font-weight: 400; text-transform: uppercase; max-width: 400px; margin: 10px auto 0; }

/* ---------- main card ---------- */
.main { position: relative; z-index: 3; background: #fff; }
.main-raised {
  margin: -60px 10px 0; border-radius: 6px;
  box-shadow: 0 16px 24px 2px rgba(0,0,0,.14), 0 6px 30px 5px rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.2);
}
@media (min-width: 768px) { .main-raised { margin: -60px 30px 0; } }

.section { padding: 15px 0 70px; }
h2 {
  text-transform: uppercase; color: var(--purple); font-weight: 500;
  font-size: 30px; line-height: 50px;
  min-height: 70px; padding: 10px 0 0 55px; margin: 20px 0 10px;
  background: url(../img/title-overlay.png) 0 0 / 52px auto no-repeat;
}
@media (min-width: 768px) {
  h2 { font-size: 40px; line-height: 60px; height: 100px; padding: 20px 0 0 55px; background-size: auto; margin-left: -15px; }
  .contact-form { margin-left: -15px; margin-right: -15px; }
}
h3 { text-transform: uppercase; color: var(--purple); font-weight: 400; font-size: 26px; line-height: 1.4; margin: 20px 0 10px; }
@media (min-width: 768px) { h3 { font-size: 34px; } }
.description { color: var(--muted); }
p { margin: 0 0 10px; }
ul.description { padding-left: 40px; margin: 0 0 10px; }

.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { font-size: 1.7em; line-height: 1.15; margin: 0 0 10px; }
.quote cite { font-style: italic; }

.cols-2, .cols-3 { display: grid; gap: 0 30px; }
.cols-2 > *, .cols-3 > * { min-width: 0; }
@media (min-width: 992px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- consultation tabs ---------- */
.tabs { text-align: center; }
.tablist { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.tab {
  font: inherit; font-size: 12px; line-height: 24px; font-weight: 500; text-transform: uppercase;
  min-width: 100px; padding: 10px 15px; margin: 0 2px 4px; border: 0; border-radius: 4px;
  background: transparent; color: #555; cursor: pointer; transition: background-color .3s, color .3s;
}
.tab svg { display: block; width: 30px; height: 30px; margin: 15px auto; fill: currentColor; }
.tab:hover { color: var(--purple); }
.tab[aria-selected="true"] {
  background: var(--purple); color: #fff;
  box-shadow: 0 16px 26px -10px rgba(156,39,176,.56), 0 4px 25px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(156,39,176,.2);
}
.tabpanel { margin: 0 auto 16px; }
.tabpanel img { display: block; margin: 0 auto; width: 750px; height: auto; border-radius: 6px; }
.tabpanel[hidden] { display: none; }
@media (max-width: 767px) {
  .tab { min-width: 0; flex: 1 1 30%; padding: 6px 4px; }
  .tab svg { margin: 8px auto; }
}

/* ---------- tarifs ---------- */
.info { max-width: 360px; margin: 0 auto; padding: 40px 0 30px; text-align: center; }
@media (min-width: 992px) { .info { padding-top: 70px; } }
.info-icon { width: 82px; height: 82px; display: block; margin: 0 auto; fill: currentColor; }
.icon-primary { color: var(--purple); }
.icon-danger { color: var(--red); }
.icon-success { color: var(--green); }
.info .info-title { color: var(--title); font-weight: 700; font-size: 24.27px; line-height: 34px; text-transform: none; margin: 30px 0 15px; }
.info p { color: var(--muted); }

/* ---------- contact ---------- */
.contact-cols { margin: 20px 0 10px; }
.contact-cols .description { margin-bottom: 20px; }
.contact-form { margin-top: 20px; }
.form-row { padding: 0; }
.form-group { margin: 0 0 24px; }
.form-group label { display: block; font-size: 14px; line-height: 20px; font-weight: 400; color: #666; }
.form-group input, .form-group textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; line-height: 22px; color: #555;
  padding: 7px 0; border: 0; border-bottom: 1px solid #c8c8c8; border-radius: 0; background: transparent;
  transition: border-color .2s, box-shadow .2s;
}
.form-group textarea { resize: vertical; min-height: 75px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--purple); box-shadow: 0 1px 0 0 var(--purple); }
.form-group input:focus-visible, .form-group textarea:focus-visible { outline: none; }
.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { text-align: center; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 12px; line-height: 17px; font-weight: 400; text-transform: uppercase;
  padding: 12px 30px; margin: 10px 1px; border: 0; border-radius: 3px;
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 2px 0 rgba(156,39,176,.14), 0 3px 1px -2px rgba(156,39,176,.2), 0 1px 5px 0 rgba(156,39,176,.12);
  transition: box-shadow .2s;
}
.btn:hover { text-decoration: none; box-shadow: 0 14px 26px -12px rgba(156,39,176,.42), 0 4px 23px 0 rgba(0,0,0,.12), 0 8px 10px -5px rgba(156,39,176,.2); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-outline { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }

.alert { position: relative; display: flex; gap: 12px; align-items: flex-start; color: #fff; border-radius: 3px; padding: 18px 48px 18px 18px; margin: 0 0 20px; line-height: 22px; }
.alert-info { background: #00838f; }   /* Material cyan, darker for contrast */
.alert-danger { background: #d32f2f; }
.alert strong { color: #fff; }
.alert-close { position: absolute; top: 10px; right: 8px; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; border-radius: 3px; }
.alert-close svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ---------- map (loaded only on click) ---------- */
.map-section { padding-top: 0; }
.map { max-width: 600px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #f3eef5; text-align: center; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; }
.map-pin { width: 48px; height: 48px; fill: var(--purple); }
.map-address { color: var(--text); margin: 8px 0; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; margin: 0; }
.map-note { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 420px; margin: 8px 0 0; }
@media (max-width: 480px) { .map { aspect-ratio: auto; min-height: 340px; } }

/* ---------- footer ---------- */
.footer { padding: 15px 0; color: var(--text); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer nav a { display: block; padding: 15px; color: var(--text); font-size: 12px; font-weight: 500; text-transform: uppercase; border-radius: 3px; }
.footer .copyright { margin: 0; padding: 15px 0; }
@media (max-width: 767px) { .footer-inner { justify-content: center; text-align: center; } }

/* ---------- Doctolib booking box (bottom right, a bar on phones) ---------- */
.doctolib {
  position: fixed; z-index: 1000; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; background: var(--doctolib); color: #fff; font-size: 14px; line-height: 18px;
  box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}
.doctolib img { width: 90px; height: auto; flex: none; }
.doctolib-text { flex: 1; text-align: center; }
.doctolib-btn {
  display: block; flex: none; padding: 0 14px; height: 44px; line-height: 44px; border-radius: 4px;
  background: #fff; color: var(--doctolib); text-transform: uppercase; font-weight: 400; text-align: center;
}
.doctolib-btn:hover { text-decoration: none; background: #eef6fb; }
@media (min-width: 768px) {
  .doctolib {
    left: auto; right: 5px; width: 346px; height: 153px; display: block; text-align: center;
    padding: 15px 0 0; border-radius: 4px 4px 0 0; box-shadow: none;
  }
  .doctolib img { width: auto; height: 29px; margin: 0 auto; display: block; }
  .doctolib-text { display: block; margin: 12px; line-height: 28px; }
  .doctolib img { margin-top: 0; }
  .doctolib-btn { width: 176px; margin: 0 auto; padding: 0; }
}
.alert p { margin: 0; }
