/* ===================================
   SITE OSTÉOPATHIE - DESIGN MODERNE
   =================================== */

:root{
  --header-h: 72px;
  
  /* Palette minimaliste et professionnelle */
  --primary: #10b981; /* Vert émeraude subtil */
  --primary-dark: #059669;
  --primary-light: #34d399;
  --accent: #10b981; /* Unifié */
  --accent-light: #6ee7b7;
  
  /* Neutres élégants */
  --text: #111827;
  --text-light: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-accent: #f9fafb;
  
  /* Ombres ultra-subtiles */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.07);
  
  /* Espacements cohérents */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions fluides */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   BASE & RESET
   =================================== */

*, *::before, *::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body{
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   TYPOGRAPHIE
   =================================== */

h1, h2, h3, h4, h5, h6{
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1{ font-size: clamp(2rem, 5vw, 3rem); }
h2{ font-size: clamp(1.75rem, 4vw, 2.25rem); margin-top: 2rem; }
h3{ font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4{ font-size: 1.125rem; }

p{ margin-bottom: 1rem; }
strong{ font-weight: 600; }

a{ 
  color: var(--primary); 
  text-decoration: none; 
  transition: var(--transition); 
}
a:hover{ color: var(--primary-dark); }

.lead{
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: 400;
}

.muted{
  color: var(--muted);
  font-size: 0.95rem;
}

.small{
  font-size: 0.875rem;
}

/* ===================================
   CONTAINER & UTILITIES
   =================================== */

.container{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 999;
}

.skip-link:focus{
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
}

:target{
  scroll-margin-top: var(--header-h);
}

/* ===================================
   HEADER
   =================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
  min-height: var(--header-h);
}

.logo{
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.logo:hover{
  color: var(--primary);
}

.logo-dot{
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
}

/* ===================================
   NAVIGATION
   =================================== */

.main-nav{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav ul,
.menu-left{
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a{
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.main-nav a:hover{
  color: var(--primary);
  background: var(--bg-accent);
}

.right-tabs{
  display: flex;
  gap: 0.5rem;
}

.right-tabs a{
  padding: 0.625rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.right-tabs a:hover{
  color: var(--primary);
  background: var(--bg-accent);
}

.nav-toggle{
  display: none;
  background: transparent;
  border: 2px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
}

.nav-toggle:hover{
  border-color: var(--primary);
  color: var(--primary);
}

/* Dropdown */
.dropdown{
  position: relative;
}

.dropbtn{
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9375rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.dropbtn:hover{
  border-color: var(--primary);
  color: var(--primary);
}

.dropdown-content{
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 240px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 1000;
}

.dropdown.open .dropdown-content{
  display: block;
}

.dropdown-content li{
  list-style: none;
  margin: 0;
}

.dropdown-content a{
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-content a:hover{
  background: var(--bg-accent);
  color: var(--primary);
}

/* ===================================
   CTA & BUTTONS
   =================================== */

.cta{
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn.primary{
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn.primary:hover{
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover{
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-accent);
}

/* ===================================
   HERO
   =================================== */

.hero{
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg) 100%);
  padding: 4rem 0;
  overflow: hidden;
}

.hero::before{
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-photo{
  width: 100%;
  margin: 2rem 0;
}

.hero-photo img{
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.intro-accueil{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 0;
}

.intro-accueil h1{
  margin-bottom: 1rem;
}

.intro-accueil .lead{
  max-width: 700px;
  margin: 0 auto 2rem;
}

.intro-accueil .cta{
  justify-content: center;
  margin-bottom: 2rem;
}

/* Intro Categories */
.intro-categories{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.intro-categories .cat{
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  cursor: default;
}

.intro-categories .cat:hover{
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===================================
   SECTIONS
   =================================== */

.section{
  padding: 5rem 0;
  position: relative;
}

.section.alt{
  background: linear-gradient(180deg, #f0fdf4 0%, #f9fafb 100%);
  position: relative;
}

.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15) 50%, transparent);
}

.section.alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15) 50%, transparent);
}

.section.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

.section h2{
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.section h2::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section h3{
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ===================================
   CARDS & GRIDS
   =================================== */

.grid{
  display: grid;
  gap: 1.5rem;
}

.grid.cards{
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1.25rem;
}

.card{
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 380px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
  border-color: var(--primary);
}

.card h3{
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.card p{
  color: var(--text-light);
  line-height: 1.65;
  flex-grow: 1;
  margin: 0;
}

.contact-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-infos{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===================================
   ABOUT / PARCOURS
   =================================== */

.about-two{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo-fixed{
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-right h2{
  margin-top: 0;
}

.about-right p{
  margin-bottom: 1.25rem;
}

.about-right em{
  display: block;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--primary);
}

/* Lists */
.tick{
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.tick li{
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.6;
}

.tick li::before{
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Media Square */
.media-square-wrap{
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
}

.media-square{
  width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   STEPS / TIMELINE
   =================================== */

.steps{
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.steps li{
  background: white;
  border: 2px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.steps li:hover{
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.steps li::before{
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

/* ===================================
   PRICING / TARIFS
   =================================== */

.pricing,
.tarifs-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.price-card,
.tarif-card{
  background: white;
  border: 2px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.price-card::before,
.tarif-card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.price-card:hover::before,
.tarif-card:hover::before{
  transform: scaleX(1);
}

.price-card:hover,
.tarif-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.price-card h3,
.tarif-card h3{
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.375rem;
}

.price{
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.75rem 0;
  color: var(--primary);
  line-height: 1;
}

.duration{
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.tarifs-note{
  text-align: center;
  color: var(--muted);
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

/* ===================================
   FAQ
   =================================== */

details{
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

details:hover{
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

details[open]{
  border-color: var(--primary);
}

summary{
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  color: var(--text);
  transition: var(--transition);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker{
  display: none;
}

summary::after{
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

details[open] summary::after{
  content: '−';
}

summary:hover{
  color: var(--primary);
}

details p{
  margin-top: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.form-card{
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-card h3{
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
}

form{
  display: grid;
  gap: 1.25rem;
}

form label{
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea{
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
}

form input:focus,
form textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

form textarea{
  resize: vertical;
  min-height: 120px;
}

form .consent{
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.9375rem;
}

form .consent input[type="checkbox"]{
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

form button[type="submit"]{
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

form button[type="submit"]:hover{
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hidden{
  display: none;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer{
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.site-footer p{
  color: var(--muted);
  margin: 0;
}

.site-footer a{
  color: var(--text-light);
  font-weight: 500;
  text-decoration: underline;
}

.site-footer a:hover{
  color: var(--primary);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 900px){
  .about-two{
    grid-template-columns: 1fr;
  }
  
  .about-left{
    order: -1;
  }
  
  .about-photo-fixed{
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  .media-square-wrap{
    justify-content: center;
  }
  
  .media-square{
    width: min(320px, 92vw);
  }
  
  .contact-grid{
    grid-template-columns: 1fr;
  }
  
  .section{
    padding: 3.5rem 0;
  }
}

@media (max-width: 768px){
  .intro-categories{
    flex-direction: column;
    align-items: stretch;
  }
  
  .intro-categories .cat{
    text-align: center;
  }
  
  .hero-photo img{
    max-height: 350px;
  }
}

@media (max-width: 640px){
  .cta{
    flex-direction: column;
    width: 100%;
  }
  
  .btn{
    width: 100%;
  }
  
  .section h2{
    font-size: 1.75rem;
  }
  
  .lead{
    font-size: 1.125rem;
  }
}

/* ===================================
   DARK MODE (if needed)
   =================================== */

@media (prefers-color-scheme: dark){
  :root[data-theme="auto"]{
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --bg-accent: #1e293b;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --muted: #94a3b8;
    --border: #334155;
  }
}
