:root {
  --ivory: #F8F5F0;
  --cream: #EDE8DF;
  --gold: #B8965A;
  --gold-light: #D4AD72;
  --charcoal: #1C1C1E;
  --text: #2C2C2E;
  --muted: #6E6E73;
  --white: #FFFFFF;
  --teal: #2A6B6B;
  --teal-light: #3D8B8B;
  --border: rgba(184, 150, 90, 0.25);
  --shadow: 0 20px 60px rgba(0,0,0,0.08);
  --radius: 16px;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Cormorant Garamond', serif;
  --font-arabic: 'Noto Naskh Arabic', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
}

body.ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 12px 5%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.07);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
}

.nav-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal); }

.nav-right {
  display: flex; align-items: center; gap: 16px;
}

.lang-switcher {
  display: flex; gap: 4px;
  background: var(--cream);
  border-radius: 100px;
  padding: 4px;
}

.lang-btn {
  border: none; background: none;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.lang-btn.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-rdv {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  letter-spacing: 0.02em;
}

.btn-rdv:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42, 107, 107, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}

.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px; transition: all 0.3s;
}

/* ─── HERO ─── */
#accueil {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 70% 20%, rgba(42,107,107,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(184,150,90,0.07) 0%, transparent 60%);
}

.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 5% 80px 8%;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42, 107, 107, 0.08);
  border: 1px solid rgba(42, 107, 107, 0.2);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.78rem; color: var(--teal); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 32px; width: fit-content;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--teal); border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 12px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-title strong {
  font-weight: 600;
  display: block;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  color: var(--teal);
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.15s ease both;
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.25s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white; border: none;
  padding: 14px 32px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(42,107,107,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42,107,107,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal); border: 1.5px solid var(--border);
  padding: 14px 32px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--teal); color: var(--teal);
  background: rgba(42, 107, 107, 0.05);
}

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.3s ease both;
}

.stat-item { text-align: left; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: var(--charcoal);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem; color: var(--muted);
  margin-top: 4px; letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 5%;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-card {
  background: white;
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%; max-width: 380px;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, rgba(42,107,107,0.2), rgba(184,150,90,0.2));
  border-radius: 30px; z-index: -1;
}

.card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}

.card-avatar {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--charcoal);
}

.card-title-doc {
  font-size: 0.78rem; color: var(--teal); font-weight: 500;
  letter-spacing: 0.04em;
}

.service-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.service-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--ivory);
  border-radius: 12px;
  font-size: 0.875rem; color: var(--text);
}

.service-icon {
  width: 32px; height: 32px;
  background: rgba(42, 107, 107, 0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.floating-badge {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  font-size: 0.78rem; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  animation: float 3s ease-in-out infinite;
}

.floating-badge.top-right {
  top: 60px; right: 20px;
  color: var(--teal);
}

.floating-badge.bottom-left {
  bottom: 100px; left: 20px;
  color: var(--gold);
  animation-delay: 1.5s;
}

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

/* ─── SECTIONS ─── */
section { padding: 100px 5%; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.15;
  color: var(--charcoal); margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--teal); }

.section-desc {
  font-size: 1rem; color: var(--muted);
  line-height: 1.75; max-width: 560px;
}

/* ─── SERVICES ─── */
#services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 56px;
}

.service-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid transparent;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0; transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-card-icon {
  font-size: 2rem; margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem; color: var(--muted);
  line-height: 1.65;
}

/* ─── RDV FORM ─── */
#rendez-vous {
  background: linear-gradient(160deg, var(--ivory) 0%, #EDE8DF 100%);
}

.rdv-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: start;
  margin-top: 56px;
}

.rdv-info { }

.rdv-info-item {
  display: flex; gap: 16px; margin-bottom: 32px;
}

.rdv-info-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.rdv-info-text h4 {
  font-weight: 500; color: var(--charcoal);
  margin-bottom: 4px;
}

.rdv-info-text p {
  font-size: 0.875rem; color: var(--muted);
  line-height: 1.5;
}

.form-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text); margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--ivory);
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: all 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 3px rgba(42, 107, 107, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white; border: none;
  border-radius: 12px;
  font-size: 1rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42, 107, 107, 0.35);
}

.form-success {
  display: none;
  text-align: center; padding: 32px;
}

.form-success .check { font-size: 3rem; margin-bottom: 12px; }

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--charcoal); margin-bottom: 8px;
}

.form-success p { color: var(--muted); font-size: 0.9rem; }

/* ─── CONTACT / MAP ─── */
#contact {
  background: var(--charcoal);
  color: white;
  padding: 100px 5%;
}

#contact .section-tag { color: var(--gold-light); }

#contact .section-title { color: white; }

#contact .section-title em { color: var(--gold-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px; margin-top: 56px;
}

.contact-info-items {
  display: flex; flex-direction: column; gap: 28px;
}

.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
}

.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}

.contact-text h4 {
  font-weight: 500; color: white; margin-bottom: 4px;
  font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase;
}

.contact-text p, .contact-text a {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem; line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-text a:hover { color: var(--gold-light); }

.hours-grid {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hours-title {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 16px; font-weight: 500;
}

.hours-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hours-day { color: rgba(255,255,255,0.6); }
.hours-time { color: white; font-weight: 500; }
.hours-closed { color: rgba(255,255,255,0.3); }

.map-container {
  border-radius: 20px;
  overflow: hidden;
  height: 440px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.map-container iframe {
  width: 100%; height: 100%; border: none;
  filter: grayscale(20%) contrast(1.05);
}

/* ─── FOOTER ─── */
footer {
  background: #111;
  padding: 32px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem; color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
  text-align: center;
}

.footer-links {
  display: flex; gap: 24px;
}

.footer-links a {
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RTL ADJUSTMENTS ─── */
body.ar .hero-content { padding: 80px 8% 80px 5%; }
body.ar .hero-stats { flex-direction: row-reverse; }
body.ar .stat-item { text-align: right; }
body.ar .hero-badge { flex-direction: row-reverse; }
body.ar .section-title, body.ar .section-desc { text-align: right; }
body.ar .service-item { flex-direction: row-reverse; }
body.ar .rdv-info-item { flex-direction: row-reverse; }
body.ar .rdv-info-text { text-align: right; }
body.ar .contact-item { flex-direction: row-reverse; }
body.ar .contact-text { text-align: right; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  #accueil { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .rdv-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-container { height: 300px; }
}

@media (max-width: 768px) {
  nav { padding: 14px 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--ivory);
    padding: 24px 5%;
    border-bottom: 1px solid var(--border);
    gap: 20px; z-index: 99;
  }
  .btn-rdv { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .form-card { padding: 28px 20px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 70px 5%; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}