/* -------------------------------------------------------------------------- */
/* SETUP                                   */
/* -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --brand-green: #6B8A7A;
  --brand-green-dark: #5a786a;
  --brand-light: #F8F6F1; /* Main background */
  --brand-dark-blue: #2E3D40; /* Main text */
  --brand-accent: #D1C7BE; /* Beige accent */
  --brand-accent-light: #EBE5DE; /* Lighter beige for backgrounds */
  --white: #FFFFFF;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --warning-bg: #fefce8;
  --warning-border: #facc15;

  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(46, 61, 64, 0.1), 0 2px 4px -2px rgba(46, 61, 64, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(46, 61, 64, 0.1), 0 4px 6px -4px rgba(46, 61, 64, 0.1);
}

/* Base styles and resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--brand-light);
  color: var(--brand-dark-blue);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.75rem, 5vw, 4rem); }
h2 { font-size: clamp(2.25rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 0.875rem; text-transform: uppercase; font-weight: 600; }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--brand-dark-blue);
}

/* -------------------------------------------------------------------------- */
/* LAYOUT                                    */
/* -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}
.section-white {
  background-color: var(--white);
}
.section-accent-bg {
    background-color: var(--brand-accent-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray-700);
  font-size: 1.125rem;
}

/* -------------------------------------------------------------------------- */
/* COMPONENTS                                 */
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: var(--white);
}
.btn-secondary {
  background-color: transparent;
  border-color: var(--brand-green);
  color: var(--brand-green);
}
.btn-secondary:hover {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--white);
}
.btn-accent {
  background-color: transparent;
  border-color: var(--brand-dark-blue);
  color: var(--brand-dark-blue);
  font-size: 1.125rem;
  padding: 1rem 2.25rem;
}
.btn-accent:hover {
  background-color: var(--brand-dark-blue);
  color: var(--white);
}
.btn-full {
  width: 100%;
  font-size: 1.125rem;
}

/* Header */
.main-header {
  background-color: rgba(248, 246, 241, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.25rem 0;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.main-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(248, 246, 241, 0.95);
  padding: 0.75rem 0;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-dark-blue);
  white-space: nowrap;
}
.nav-links {
  display: none;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}
.nav-links a {
    position: relative;
    padding: 0.25rem 0;
    font-weight: 500;
    color: var(--brand-dark-blue);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-green);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.header-cta-desktop {
  display: none;
  gap: .75rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .header-cta-desktop { display: flex; }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-dark-blue);
}
@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 1.25rem;
  border-top: 1px solid var(--brand-accent);
  background-color: rgba(248, 246, 241, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  box-shadow: var(--shadow-md);
}
.mobile-menu.active {
  display: flex;
}

.mobile-menu a.btn {
  width: fit-content;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 246, 241, 0) 0%, var(--brand-light) 95%);
}
.hero-content h1 {
  margin-bottom: 1rem;
}
.hero-content .subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--gray-700);
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}
.benefit-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-accent-light);
}
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  display: inline-flex;
  padding: 1rem;
  background-color: rgba(107, 138, 122, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.benefit-icon i {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--brand-green);
}
.benefit-card h3 {
  margin-bottom: 0.5rem;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
@media (min-width: 768px) {
  .about-content { flex-direction: row; }
}
.about-image {
  flex: 1;
  max-width: 420px;
}
.about-text {
    flex: 1.2;
}
.about-image img {
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about-text h2 {
    margin-bottom: 1.5rem;
}
.about-text .large-text {
  font-size: 1.125rem;
  color: var(--gray-700);
}
.about-text .btn {
  margin-top: 2rem;
}


/* Steps Timeline */
.steps-timeline {
  display: grid;
  gap: 3rem;
  position: relative;
}
@media (min-width: 768px) {
  .steps-timeline { grid-template-columns: repeat(3, 1fr); }
  .steps-timeline::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 2px;
    background-color: var(--brand-accent-light);
    z-index: 0;
  }
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background-color: var(--brand-accent);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark-blue);
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: 5px solid var(--brand-light);
  box-shadow: var(--shadow-md);
}
.step h3 {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
.testimonial-card {
  background-color: var(--brand-light);
  padding: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--brand-accent-light);
}
.testimonial-card p {
  font-style: italic;
  color: var(--gray-700);
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  display: block;
  margin-top: 1.5rem;
  color: var(--brand-dark-blue);
}

/* Contact Section */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.25fr; }
}
.info-card, .contact-form-card {
  border-radius: 0.5rem;
  padding: 2.5rem;
}
.info-card {
  background-color: var(--white);
  border: 1px solid var(--brand-accent-light);
}
.info-card h3, .contact-form-card h3 {
  margin-bottom: 1.5rem;
}
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-list i {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.25rem;
  color: var(--brand-green);
}
.disclaimer {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--gray-600);
  margin-top: 2rem;
}
.contact-form-card {
  background-color: var(--brand-accent-light);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--white);
  border: 1px solid var(--brand-accent);
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(107, 138, 122, 0.2);
}
.contact-form textarea {
  resize: vertical;
}

/* Footer */
.main-footer {
  background-color: var(--brand-dark-blue);
  color: var(--brand-light);
  padding: 5rem 0 2rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}
.footer-brand {
  max-width: 300px;
}
.footer-brand .logo {
  color: var(--brand-light);
}
.footer-brand p {
  margin-top: 0.75rem;
  color: rgba(248, 246, 241, 0.7);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a {
  color: rgba(248, 246, 241, 0.7);
}
.footer-links a:hover {
  text-decoration: underline;
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid var(--gray-600);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(248, 246, 241, 0.6);
}

/* -------------------------------------------------------------------------- */
/* SUB-PAGES (Tarifs, Kinesiologie)         */
/* -------------------------------------------------------------------------- */
.page-header, .tarifs-page-header {
    padding: 6rem 0;
    background-color: var(--brand-dark-blue);
    color: var(--white);
    text-align: center;
}
.page-header h1, .tarifs-page-header h1 {
    color: var(--white);
}
.page-header .subtitle, .tarifs-page-header .subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 1rem auto 0;
    font-size: 1.125rem;
}

.tarifs-section {
    padding-top: 6rem;
}
.tarif-category {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tarif-items{
    display:flex;
    flex-direction:column;
    gap: .75rem;
}
.tarif-category h2,
.tarif-category h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--brand-accent-light);
}

/* Legacy markup support (span-based tarif items) */
.tarif-item .service-name { font-weight: 500; }
.tarif-item .service-price { font-weight: 600; color: var(--brand-green); }
.tarif-item .service-duration { color: var(--gray-600); font-size: .9rem; }

@media (max-width: 640px) {
  .tarif-item {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .tarif-price { padding-left: 0; }
}
.tarif-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--brand-accent-light);
    transition: background-color 0.3s ease;
    border-radius: 0.5rem;
    background-color: rgba(255,255,255,0.65);
}
.tarif-item:hover {
    background-color: var(--white);
}

.tarif-items{
    display:flex;
    flex-direction:column;
    gap: .75rem;
}
.tarif-details h4 {
    text-transform: none;
    font-size: 1.125rem;
    font-family: var(--font-sans);
    font-weight: 500;
}
.tarif-details p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}
.tarif-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-green);
    flex-shrink: 0;
    padding-left: 1.5rem;
}
.special-note {
    background-color: rgba(209, 199, 190, 0.2);
    border-left: 4px solid var(--brand-accent);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
.special-note p {
    margin: 0;
    font-weight: 500;
}
.info-card-style {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--brand-accent-light);
    text-align: center;
}
.info-card-style p {
    margin: 0;
    max-width: none;
}
.payment-methods {
    text-align: center;
    margin-top: 4rem;
    color: var(--gray-600);
    font-style: italic;
}

.content-page-section {
    padding-bottom: 6rem;
}
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.content-text h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}
.content-text p, .content-text ul {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1.05rem;
}
.content-text ul {
    list-style-position: outside;
    padding-left: 1.25rem;
}
.content-text li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}
.disclaimer-box {
    background-color: var(--brand-accent-light);
    border-left: 4px solid var(--brand-accent);
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
.disclaimer-box.warning {
    background-color: var(--warning-bg);
    border-left-color: var(--warning-border);
}
.disclaimer-box p {
    margin: 0;
    font-weight: 500;
}

/* New Layout for Kinesiologie.html */
.approaches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .approaches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .approaches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .approach-card:nth-child(4), .approach-card:nth-child(5) {
        grid-column: span 1;
    }
     .approaches-grid .approach-card:nth-child(4) {
        grid-column-start: 1;
    }
    .approaches-grid .approach-card:nth-child(5) {
        grid-column-start: 2;
    }
    .container .approaches-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
    }
    .container .approaches-grid .approach-card:nth-child(4) {
        grid-column: 2 / 3;
    }
    .container .approaches-grid .approach-card:nth-child(5) {
        grid-column: 3 / 4;
    }
}


.approach-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}
.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.approach-icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: var(--brand-green);
}
.approach-icon i {
    width: 3rem;
    height: 3rem;
}
.approach-card h3 {
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media(min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}
.info-image {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}
.info-column h3 {
    margin-bottom: 1rem;
}



/* --- Améliorations pro : états actifs & accessibilité --- */
.nav-links a.active {
  opacity: 1;
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: .85;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(16, 185, 129, .35);
  outline-offset: 2px;
}


/* FAQ */
.faq details {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: .9rem 1rem;
  margin-top: .75rem;
  background: rgba(255,255,255,.6);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display:none; }
.faq details > p { margin: .75rem 0 0; color: rgba(0,0,0,.75); }
