/* ============================================
   RouHealthTravel — Congrès Dentaires & Pédodontie
   Design inspired by jwexquisite.com (luxury minimal)
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #0b1d3a;
  --dark:    #0e1a2b;
  --teal:    #1a6b5a;
  --gold:    #c8a96e;
  --gold-light: #e4cfa0;
  --cream:   #f5f0e8;
  --white:   #ffffff;
  --grey:    #8a8a8a;
  --light-bg:#f9f7f3;
  --radius:  8px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,169,110,.35);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(11,29,58,.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2944 50%, var(--teal) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a96e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}
.hero-content h1 {
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-content h1 span { color: var(--gold); }

.hero-content p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(200,169,110,.5);
  border-radius: 50px;
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}
.hero-scroll svg { width: 28px; height: 28px; stroke: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Section Common ---------- */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-cream {
  background: var(--cream);
}
.section-light {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}
.section-header p {
  margin-top: 16px;
  color: var(--grey);
  font-size: 1.05rem;
}
.section-dark .section-header p { color: rgba(255,255,255,.65); }

/* ---------- About / Intro ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--teal), var(--navy));
}
.about-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(255,255,255,.15);
}
.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text .section-subtitle { text-align: left; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; color: var(--grey); }
.about-text .btn { margin-top: 16px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px 0;
}
.stat-item {
  text-align: center;
  padding: 30px 20px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: .7;
}

/* ---------- Congress Cards ---------- */
.congress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.congress-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.congress-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.congress-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.congress-card-image .card-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.3);
  transition: var(--transition);
}
.congress-card:hover .card-bg { transform: scale(1.05); }

.congress-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.congress-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.congress-card-date {
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.congress-card-body h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.congress-card-body p {
  color: var(--grey);
  font-size: .95rem;
  flex: 1;
  margin-bottom: 20px;
}
.congress-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.congress-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--grey);
}
.congress-card-location svg { width: 16px; height: 16px; }
.congress-card-link {
  color: var(--gold);
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.congress-card-link:hover { gap: 8px; }
.congress-card-link svg { width: 16px; height: 16px; }

/* Congress card color themes */
.card-dentistry   { background: linear-gradient(135deg, #1a6b5a, #0e4a3e); }
.card-pedodontics  { background: linear-gradient(135deg, #3a5ba0, #1e3564); }
.card-orthodontics { background: linear-gradient(135deg, #8b5e3c, #5c3d28); }
.card-implantology { background: linear-gradient(135deg, #6b3f7a, #3e2548); }
.card-surgery      { background: linear-gradient(135deg, #a05050, #6b2e2e); }
.card-paro         { background: linear-gradient(135deg, #2a7a8a, #184a54); }

/* ---------- Services / Specialties ---------- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.specialty-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(200,169,110,.15);
  transition: var(--transition);
}
.specialty-card:hover {
  background: rgba(200,169,110,.08);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.specialty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(200,169,110,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.specialty-card h3 {
  margin-bottom: 12px;
  color: var(--gold);
}
.specialty-card p {
  font-size: .95rem;
  opacity: .7;
  line-height: 1.7;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: .2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-card p {
  font-style: italic;
  color: var(--grey);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-weight: 700;
  font-size: .9rem;
}
.testimonial-role {
  font-size: .8rem;
  color: var(--gold);
}

/* ---------- Newsletter ---------- */
.newsletter {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
}
.newsletter h2 { margin-bottom: 16px; }
.newsletter p { opacity: .8; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 24px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: var(--gold); }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0dbd3;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--navy);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200,169,110,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.contact-info-text p {
  color: var(--grey);
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { font-size: 1.3rem; margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: .9rem; opacity: .6; max-width: 300px; line-height: 1.7; }

.footer h4 {
  font-size: .95rem;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: .9rem;
  opacity: .6;
  transition: var(--transition);
}
.footer ul a:hover { opacity: 1; color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  background: var(--gold);
}
.footer-social svg { width: 18px; height: 18px; fill: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  opacity: .5;
}

/* ---------- Page Header (Inner pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a96e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 16px; }
.page-header p { opacity: .7; max-width: 600px; margin: 0 auto; }

/* ---------- Congress Detail / Filter ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 24px;
  border: 2px solid #e0dbd3;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--navy);
  letter-spacing: .5px;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: .3;
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .specialties-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-image { max-height: 400px; }

  .specialties-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .congress-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .newsletter-form { flex-direction: column; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
