/* ==========================================================================
   Sylvain Guyard – Ostéopathe – Refonte UI
   Palette : #4faab9 (accent) · #dec19b (chaleur) · #ffffff/#f8f9fa (fonds)
   Texte : #0f3a40 (principal) · #5a6a6c (secondaire)
   ========================================================================== */

[hidden] { display: none !important; }

:root {
  --accent: #4faab9;
  --accent-dark: #3c8d9a;
  --warm: #dec19b;
  --warm-dark: #c9a576;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #0f3a40;
  --text-secondary: #5a6a6c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(15, 58, 64, 0.08);
  --shadow-hover: 0 10px 28px rgba(15, 58, 64, 0.14);
  --max-width: 1140px;
  --transition: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: 'Nunito Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; border-radius: var(--radius-sm); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-text { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-text:hover { color: var(--accent); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(15, 58, 64, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { height: 46px; width: auto; border-radius: 0; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: 'Nunito Sans', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text); white-space: nowrap; }
.brand-slogan { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.3; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.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 { display: flex; align-items: center; gap: 20px; min-width: 0; }
.main-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.main-nav ul li { flex-shrink: 0; }
.main-nav a {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); border-color: var(--accent); }
.main-nav .nav-phone { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-rdv-btn { white-space: nowrap; }

@media (max-width: 1199px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 74px;
    width: min(320px, 85vw);
    height: calc(100vh - 74px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 24px rgba(0,0,0,0.08);
    overflow-y: auto;
    gap: 4px;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 4px; }
  .main-nav .nav-phone { display: block; padding: 14px 4px; border-top: 1px solid var(--bg-alt); margin-top: 8px; }
}

@media (max-width: 560px) {
  .brand-slogan { display: none; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 1rem; }
}

@media (max-width: 480px) {
  .nav-rdv-btn { padding: 10px 16px; font-size: 0.88rem; }
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero-carousel {
  position: relative;
  height: min(86vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: var(--text);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,58,64,0.45) 0%, rgba(15,58,64,0.35) 40%, rgba(15,58,64,0.75) 100%);
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.3em; }
.hero-subtitle { color: #fff; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; margin-bottom: 0.2em; }
.hero-caption { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 1.4em; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition);
  backdrop-filter: blur(2px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.45); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { background: #fff; }

@media (max-width: 600px) {
  .hero-arrow { display: none; }
}

/* ==========================================================================
   Cards section ("Prises en Charge")
   ========================================================================== */
.cards-section { padding: 72px 0; background: var(--bg); }
.section-title { margin-bottom: 40px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }

.care-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.care-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.care-card-img { aspect-ratio: 4/3; overflow: hidden; }
.care-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 400ms ease; }
.care-card:hover .care-card-img img { transform: scale(1.06); }
.care-card-body { padding: 20px; }
.care-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.care-card-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.home-title-band { padding: 0 0 64px; background: var(--bg); }
.home-title-band h2 { color: var(--accent); }

/* ==========================================================================
   Page banner / content column
   ========================================================================== */
.page-banner {
  background: var(--bg-alt);
  padding: 56px 0 36px;
  border-bottom: 1px solid rgba(15,58,64,0.06);
}
.page-banner h1 { color: var(--text); margin: 0; }
.page-banner-sm { padding: 40px 0 24px; }
.breadcrumb { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

.content-column {
  max-width: 800px;
  margin: 0 auto;
}
.page-content-wrap, .blog-list-wrap, .contact-form-page { padding: 56px 0 80px; background: var(--bg); }
.page-content-wrap .content-column img,
.article-body img { border-radius: var(--radius); margin: 8px 0 20px; }

.content-column .video-container { width: 100% !important; min-width: 0 !important; }
.content-column .video-container iframe,
.content-column iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 315;
  border-radius: var(--radius);
}

.content-column h2 { color: var(--accent); margin-top: 1.6em; }
.content-column h3 { margin-top: 1.4em; }
.content-column .items.v-center {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.content-column .items.v-center img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }
@media (max-width: 640px) {
  .content-column .items.v-center { grid-template-columns: 1fr; }
}
.content-column .full { display: grid; gap: 24px; margin-bottom: 8px; }
.content-column .one-half, .content-column .one-two,
.content-column .one-three { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.content-column .full:has(.one-half),
.content-column .full:has(.one-two),
.content-column .full:has(.one-three) {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ==========================================================================
   Articles / Blog
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  justify-content: center;
}
.article-layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
.article-toc {
  position: sticky;
  top: 100px;
  width: 220px;
  font-size: 0.9rem;
}
.article-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 12px; }
.article-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.article-toc a { color: var(--text-secondary); }
.article-toc a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; order: 2; margin-top: 32px; }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  display: block;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card h2 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-secondary); font-size: 0.92rem; }
.blog-card-link { color: var(--accent); font-weight: 600; font-size: 0.88rem; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text);
  font-weight: 600;
}
.pagination a.is-active { background: var(--accent); color: #fff; }
.pagination a:hover:not(.is-active) { background: var(--bg-alt); }

/* ==========================================================================
   Testimonials band
   ========================================================================== */
.testimonials-band { background: var(--bg-alt); padding: 72px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 0;
  position: relative;
}
.quote-mark { font-size: 2.6rem; color: var(--warm); font-family: Georgia, serif; line-height: 1; display: block; margin-bottom: 4px; }
.stars { color: var(--warm-dark); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9rem; }
.testimonial-text { color: var(--text-secondary); font-size: 0.95rem; }
.testimonial-author { font-weight: 700; color: var(--text); font-style: normal; }
.testimonials-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Contact band
   ========================================================================== */
.contact-band { background: var(--bg); padding: 64px 0; }
.contact-band-location-title { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.contact-band-location-title-second { margin-top: 48px; }
.contact-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .contact-band-grid { grid-template-columns: 1fr; } }
.contact-band-grid-secondary { grid-template-columns: 1fr; }
.contact-item-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(79,170,185,0.12) center / 20px 20px no-repeat;
}
.contact-icon.icon-phone {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234faab9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/></svg>");
}
.contact-icon.icon-clock {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234faab9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>");
}
.contact-icon.icon-location {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234faab9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 1 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
}
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--accent); }

/* ==========================================================================
   Contact pages
   ========================================================================== */
.contact-page { padding: 56px 0 80px; }
.contact-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .contact-page-grid { grid-template-columns: 1fr; } }
.contact-page-info .one-two.box { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.contact-page-info .full { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); margin-bottom: 16px; }
.contact-page-info .title { color: var(--accent); font-size: 1rem; }
.contact-page-info i.im { display: none; }
.contact-page-map iframe { border-radius: var(--radius); box-shadow: var(--shadow); min-height: 350px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  border: 1.5px solid #dbe4e6;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,170,185,0.15);
}
.form-group.has-error input, .form-group.has-error textarea { border-color: #c0392b; }
.form-error { color: #c0392b; font-size: 0.85rem; margin: 0; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-secondary); }
.form-success { background: rgba(79,170,185,0.12); color: var(--accent-dark); padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--text); color: #cfe3e6; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 38px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col p { color: #9fc1c4; font-size: 0.88rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cfe3e6; font-size: 0.9rem; }
.footer-col a:hover { color: var(--warm); }
.footer-bottom { padding: 20px 0 24px; text-align: center; font-size: 0.82rem; color: #82a3a6; }
.footer-bottom a { color: #82a3a6; text-decoration: underline; }

/* ==========================================================================
   Cookie banner / modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e1e7e8;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  z-index: 999;
  padding: 20px 0;
}
.cookie-banner-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.cookie-banner-inner p { margin: 0; flex: 1 1 320px; font-size: 0.88rem; color: var(--text-secondary); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,58,64,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.cookie-modal-inner {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
}
.cookie-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 18px; }
.cookie-list p { font-size: 0.85rem; color: var(--text-secondary); margin: 4px 0 0; }
.cookie-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cookie-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
