/* ============================================
   SMR Villa Borghese - Réadaptation Cardiaque
   Design inspiré des centres cardiaques modernes
   ============================================ */

:root {
  /* Palette médicale - ton sobre et rassurant */
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #c45c3e;
  --color-accent-soft: #e8a090;
  --color-dark: #0f172a;
  --color-light: #f8fafc;
  --color-white: #ffffff;
  --color-text: #334155;
  --color-text-muted: #64748b;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--light {
  background: var(--color-light);
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--dark a {
  color: var(--color-accent-soft);
}

.section--dark a:hover {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section--dark .section__title {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-md);
}

.header__logo {
  display: block;
}

.header__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header__nav-list {
  display: flex;
  gap: var(--space-lg);
}

.header__nav a {
  font-weight: 500;
  color: var(--color-text);
}

.header__nav a:hover {
  color: var(--color-primary);
}

.header__cta {
  font-weight: 600;
  color: var(--color-accent) !important;
}

.header__cta:hover {
  color: var(--color-primary) !important;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.header__burger span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-dark) 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(196, 92, 62, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero__title-accent {
  color: var(--color-accent-soft);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white) !important;
  border: 2px solid var(--color-accent);
}

.btn--primary:hover {
  background: transparent;
  color: var(--color-white) !important;
  border-color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

/* ============================================
   Notre unité
   ============================================ */

.unite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.unite-content p {
  margin-bottom: var(--space-md);
}

.unite__intro {
  font-size: 1.125rem;
  font-weight: 500;
}

.unite__features {
  margin-top: var(--space-lg);
}

.unite__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

.unite__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.unite-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Programme
   ============================================ */

.programme-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.programme-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.programme-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.programme-text p {
  margin-bottom: var(--space-md);
}

.programme-advice {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-light);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
}

.programme-advice h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.programme-advice ul {
  margin-bottom: var(--space-sm);
}

.programme-advice li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: var(--space-xs);
}

.programme-advice li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ============================================
   Équipe
   ============================================ */

.equipe-banner {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.equipe-banner img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.equipe-card {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-lg);
  border-radius: 8px;
  text-align: center;
  transition: background var(--transition);
}

.equipe-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.equipe-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.equipe-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

/* ============================================
   Galerie
   ============================================ */

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-md);
}

.galerie-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.galerie-item--large {
  grid-column: span 2;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Témoignages
   ============================================ */

.testimonials {
  max-width: 800px;
  margin: 0 auto;
}

.testimonials__track {
  position: relative;
  overflow: hidden;
}

.testimonial {
  display: none;
  padding: var(--space-lg);
  text-align: center;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.testimonial cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
}

.testimonials__btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.testimonials__dots {
  display: flex;
  gap: var(--space-xs);
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  border: none;
  cursor: pointer;
  opacity: 0.4;
  transition: all var(--transition);
}

.testimonials__dot.active {
  background: var(--color-primary);
  opacity: 1;
}

.testimonials__dot:hover {
  opacity: 0.8;
}

/* ============================================
   Contact
   ============================================ */

.section--contact {
  background: var(--color-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-block {
  margin-bottom: var(--space-lg);
}

.contact-block h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.contact-block p,
.contact-block ul {
  margin-bottom: var(--space-xs);
}

.contact-block--highlight {
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-address h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.contact-address h4 {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: var(--space-md) 0 var(--space-xs);
}

.contact-map-embed {
  margin-top: var(--space-md);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.contact-map-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__logo img {
  height: 60px;
  opacity: 0.9;
}

.footer__logo p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: var(--space-xs);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.9);
}

.footer__links a:hover {
  color: var(--color-accent-soft);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  color: rgba(255, 255, 255, 0.9);
}

.footer__copy {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy p {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .unite-grid,
  .programme-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .programme-content {
    flex-direction: column-reverse;
  }
  
  .galerie-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .galerie-item--large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px var(--space-lg) var(--space-lg);
    transition: right var(--transition);
  }
  
  .header__nav.open {
    right: 0;
  }
  
  .header__nav-list {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .header__nav a {
    font-size: 1.125rem;
  }
  
  .header__cta {
    display: none;
  }
  
  .header__burger {
    display: flex;
  }
  
  .header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .galerie-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  
  .galerie-item--large {
    grid-column: span 1;
  }
  
  .footer__container {
    flex-direction: column;
    text-align: center;
  }
}
