/* ═══════════════════════════════════════════════════
   Cabinet Dentaire Bouznika — Stylesheet
   Palette : Teal / White / Off-white / Charcoal
═══════════════════════════════════════════════════ */
:root {
  --teal:        #0D9488;
  --teal-light:  #2DD4BF;
  --teal-dark:   #0F766E;
  --teal-pale:   #E0F7F5;
  --teal-faint:  #F0FDFA;
  --charcoal:    #0F2027;
  --dark:        #1A3A3A;
  --mid:         #2D5A5A;
  --gray:        #64748B;
  --light-gray:  #94A3B8;
  --border:      #B2DFDB;
  --white:       #FFFFFF;
  --off-white:   #F8FFFE;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito Sans', Arial, sans-serif; background: var(--white); color: var(--charcoal); overflow-x: hidden; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal); color: var(--white);
  padding: 15px 38px; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; font-family: 'Nunito Sans', sans-serif;
  display: inline-block; border-radius: 2px;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.35); }

.btn-outline {
  border: 2px solid var(--teal); color: var(--teal);
  padding: 13px 36px; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; font-family: 'Nunito Sans', sans-serif;
  display: inline-block; border-radius: 2px; background: transparent;
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

.btn-white {
  background: var(--white); color: var(--teal);
  padding: 15px 38px; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; display: inline-block; border-radius: 2px;
}
.btn-white:hover { background: var(--teal-pale); transform: translateY(-2px); }

/* ── SECTION ── */
.section-tag {
  font-size: 0.62rem; letter-spacing: 5px; text-transform: uppercase;
  color: var(--teal); font-weight: 700; display: block; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 400;
  line-height: 1.25; color: var(--charcoal);
}
.section-title em { color: var(--teal); font-style: italic; }
.section-header { margin-bottom: 55px; }
.section-header.centered { text-align: center; }
.section-divider {
  width: 48px; height: 3px; background: var(--teal);
  margin: 18px 0; border-radius: 2px;
}
.section-divider.centered { margin: 18px auto; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%; display: flex; align-items: center;
  justify-content: space-between; height: 72px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(13,148,136,0.1); }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--charcoal); letter-spacing: 1px; }
.logo-sub { font-size: 0.55rem; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--gray); text-decoration: none; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s; position: relative; padding: 4px 0;
}
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width 0.3s; border-radius: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-rdv {
  background: var(--teal) !important; color: var(--white) !important;
  padding: 10px 24px !important; border-radius: 2px !important;
  letter-spacing: 1.5px !important; font-weight: 700 !important;
}
.nav-rdv:hover { background: var(--teal-dark) !important; box-shadow: 0 4px 14px rgba(13,148,136,0.3) !important; }
.nav-rdv::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--teal); transition: all 0.3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 999; background: var(--white); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px 5%; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--gray); text-decoration: none; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--border); transition: color 0.3s; font-weight: 600; }
.mobile-nav a:last-child { border-bottom: none; color: var(--teal); }
.mobile-nav a:hover { color: var(--teal); }

/* ── HERO ── */
#home {
  min-height: 100vh;
  background:
    linear-gradient(to right, rgba(11,32,39,0.88) 45%, rgba(11,32,39,0.4) 100%),
    url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1600&q=85&auto=format&fit=crop') center/cover no-repeat;
  display: flex; align-items: center;
  padding: 0 5%; padding-top: 72px; position: relative; overflow: hidden;
}
.hero-inner { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(45,212,191,0.12); border: 1px solid rgba(45,212,191,0.3);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge-dot { width: 7px; height: 7px; background: var(--teal-light); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero-badge-text { font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal-light); font-weight: 700; }
#home h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 400; color: var(--white); line-height: 1.15; margin-bottom: 20px; }
#home h1 em { color: var(--teal-light); font-style: italic; }
#home h1 span { display: block; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { position: absolute; right: 4%; bottom: 0; height: 88vh; opacity: 0.85; pointer-events: none; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--teal-light); line-height: 1; }
.hero-stat-label { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 5px; }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; }
.scroll-hint p { font-size: 0.55rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 8px; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(45,212,191,0.6), transparent); margin: 0 auto; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.4;transform:scaleY(0.6)} }

/* ── TRUST BAR ── */
.trust-bar { background: var(--teal); padding: 0; display: flex; overflow: hidden; }
.trust-item { flex: 1; min-width: 180px; padding: 22px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; gap: 12px; }
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 1.3rem; }
.trust-text { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.9); font-weight: 700; }

/* ── ABOUT ── */
#about { padding: 100px 5%; background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.about-img-wrapper { position: relative; }
.about-img { width: 100%; border-radius: 4px; display: block; }
.about-badge-float {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--teal); color: var(--white);
  padding: 22px 28px; text-align: center; border-radius: 4px;
  box-shadow: 0 12px 36px rgba(13,148,136,0.35);
}
.about-badge-float .num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.about-badge-float .lbl { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.about-list-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: var(--gray); line-height: 1.6; }
.about-list-item::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── SERVICES ── */
#services { padding: 100px 5%; background: var(--white); }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; }
.service-card {
  background: var(--off-white); padding: 40px 36px;
  transition: all 0.35s; position: relative; overflow: hidden;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--teal); transition: height 0.35s; }
.service-card:hover { background: var(--teal-faint); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,148,136,0.12); }
.service-card:hover::before { height: 100%; }
.service-card-icon { width: 56px; height: 56px; margin-bottom: 22px; }
.service-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--charcoal); }
.service-card-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.8; }
.service-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); text-decoration: none; transition: gap 0.3s; }
.service-card-link:hover { gap: 10px; }

/* ── BEFORE/AFTER ── */
#resultats { padding: 100px 5%; background: var(--teal-pale); }
.resultats-inner { max-width: 1100px; margin: 0 auto; }
.before-after-img { width: 100%; border-radius: 4px; box-shadow: 0 16px 48px rgba(13,148,136,0.15); margin-top: 40px; }

/* ── TEAM ── */
#equipe { padding: 100px 5%; background: var(--white); }
.equipe-inner { max-width: 1200px; margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin-top: 0; }
.team-card { text-align: center; }
.team-card-img { width: 100%; border-radius: 4px; display: block; transition: transform 0.4s; }
.team-card:hover .team-card-img { transform: scale(1.03); }
.team-card-body { padding: 22px 0 0; }
.team-card-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.team-card-title { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.team-card-bio { font-size: 0.8rem; color: var(--gray); line-height: 1.7; margin-top: 10px; }

/* ── TESTIMONIALS ── */
#avis { padding: 100px 5%; background: var(--charcoal); }
.avis-inner { max-width: 1200px; margin: 0 auto; }
.avis-inner .section-title { color: var(--white); }
.avis-inner .section-tag { color: var(--teal-light); }
.avis-inner .section-divider { background: var(--teal-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.testimonial-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(45,212,191,0.15); padding: 32px 28px; border-radius: 4px; transition: border-color 0.3s; }
.testimonial-card:hover { border-color: rgba(45,212,191,0.4); }
.testimonial-stars { color: var(--teal-light); font-size: 1rem; letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-text { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.8; font-style: italic; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--teal); }
.testimonial-name { font-size: 0.78rem; font-weight: 700; color: var(--white); }
.testimonial-info { font-size: 0.62rem; color: var(--light-gray); margin-top: 2px; letter-spacing: 1px; }

/* ── CONTACT ── */
#contact { padding: 100px 5%; background: var(--off-white); }
.contact-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 44px; height: 44px; background: var(--teal-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; color: var(--teal); border: 1px solid var(--border); }
.ci-text h4 { font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 5px; }
.ci-text p, .ci-text a { font-size: 0.85rem; color: var(--gray); line-height: 1.7; text-decoration: none; display: block; transition: color 0.3s; }
.ci-text a:hover { color: var(--teal); }
.map-box { margin-top: 20px; border: 1px solid var(--border); overflow: hidden; border-radius: 4px; }
.map-box iframe { width: 100%; height: 220px; border: none; display: block; }
.wa-btn { display: flex; align-items: center; gap: 14px; padding: 16px 22px; background: #25D366; border-radius: 4px; text-decoration: none; transition: all 0.3s; margin-top: 20px; }
.wa-btn:hover { background: #1ea855; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.wa-icon { font-size: 1.5rem; }
.wa-text-block strong { color: white; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; display: block; }
.wa-text-block span { color: rgba(255,255,255,0.8); font-size: 0.7rem; }

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--charcoal); padding: 13px 16px;
  font-family: 'Nunito Sans', sans-serif; font-size: 0.85rem;
  outline: none; transition: border-color 0.3s; border-radius: 2px;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--light-gray); }
.form-group select option { background: white; color: var(--charcoal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { background: var(--teal); color: var(--white); border: none; padding: 16px 40px; font-family: 'Nunito Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; border-radius: 2px; width: fit-content; }
.form-submit:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13,148,136,0.3); }
.form-success { display: none; background: var(--teal-pale); border: 1.5px solid var(--border); padding: 16px 20px; font-size: 0.82rem; color: var(--teal); border-radius: 2px; font-weight: 600; }

/* ── FOOTER ── */
footer { background: var(--charcoal); padding: 60px 5% 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; margin-bottom: 50px; max-width: 1200px; margin: 0 auto 50px; }
.footer-logo-main { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.footer-logo-sub { font-size: 0.55rem; letter-spacing: 4px; text-transform: uppercase; color: var(--teal-light); font-weight: 700; }
.footer-desc { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.85; margin-top: 14px; }
.footer-col h4 { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal-light); margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.78rem; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { font-size: 0.62rem; color: rgba(255,255,255,0.25); letter-spacing: 1px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.6rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--teal-light); }
.footer-rating { font-size: 0.72rem; color: var(--teal-light); font-weight: 600; margin-top: 12px; }

/* ── BACK TO TOP ── */
#btt { position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; background: var(--teal); color: var(--white); border: none; cursor: pointer; font-size: 1rem; display: none; align-items: center; justify-content: center; z-index: 500; transition: all 0.3s; border-radius: 50%; box-shadow: 0 4px 14px rgba(13,148,136,0.4); }
#btt:hover { background: var(--teal-dark); transform: translateY(-3px); }
#btt.visible { display: flex; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-badge-float { position: static; margin-top: 20px; display: inline-block; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-right { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .trust-bar { flex-wrap: wrap; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
