/*
Theme Name: Centre Dentaire Cubzac-les-Ponts
Theme URI: https://www.doctolib.fr/centre-dentaire/cubzac-les-ponts/centre-cubzac-les-ponts
Author: Centre Dentaire Cubzac-les-Ponts
Description: Thème one-page pour le Centre Dentaire de Cubzac-les-Ponts. Présentation de l'équipe, des soins, prise de rendez-vous Doctolib.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: centre-dentaire-cubzac
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

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

:root {
  --cream: oklch(97% 0.008 240);
  --cream-dark: oklch(94% 0.012 235);
  --ink: oklch(20% 0.06 255);
  --ink-soft: oklch(42% 0.04 245);
  --sage: oklch(46% 0.14 255);
  --sage-light: oklch(92% 0.04 240);
  --sage-mid: oklch(62% 0.13 230);
  --gold: oklch(70% 0.09 80);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', Helvetica, sans-serif;
  --radius: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); overflow-x: hidden; }

/* ── NAV ── */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.4s, box-shadow 0.4s;
}
nav#site-nav.scrolled {
  background: rgba(242, 246, 252, 0.93);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 oklch(85% 0.02 240);
}
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 400; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--sage); color: white;
  padding: 10px 24px; border-radius: 100px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: oklch(40% 0.14 255); transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 120px 48px 80px; gap: 48px;
  position: relative; overflow: hidden;
}
.hero-bg-circle {
  position: absolute; right: -120px; top: -60px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, oklch(72% 0.1 240 / 0.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-content { display: block; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-light); color: var(--sage);
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.hero-title {
  font-family: var(--serif); font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08; color: var(--ink); padding-bottom: 24px;
  display: block; width: 100%;
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-sub {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
  max-width: 440px; margin-bottom: 44px; display: block; width: 100%;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-primary {
  background: var(--ink); color: var(--cream);
  padding: 14px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }
.btn-ghost {
  color: var(--ink); font-size: 15px; font-weight: 400;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--sage); }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; }
.hero-stat-val { font-family: var(--serif); font-size: 36px; color: var(--ink); line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.04em; }
.hero-visual { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hero-img-main {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4/5;
  background: var(--cream-dark); position: relative;
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-float {
  position: absolute; bottom: 24px; left: -32px;
  background: white; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 8px 40px oklch(18% 0.015 250 / 0.12);
  display: flex; align-items: center; gap: 14px; min-width: 220px;
}
.hero-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sage-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-card-icon svg { width: 22px; height: 22px; stroke: var(--sage); fill: none; stroke-width: 2; }
.hero-card-text { font-size: 13px; color: var(--ink-soft); }
.hero-card-text strong { display: block; font-size: 15px; color: var(--ink); font-weight: 500; }
.hero-tag {
  position: absolute; top: 24px; right: -16px;
  background: var(--sage); color: white; font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 100px; letter-spacing: 0.04em;
}

/* ── SECTIONS SHARED ── */
section { padding: 100px 48px; }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.section-title { font-family: var(--serif); font-size: clamp(30px, 3.5vw, 48px); line-height: 1.15; color: var(--ink); max-width: 540px; }
.section-title em { font-style: italic; color: var(--sage); }

/* ── SERVICES ── */
#services { background: var(--ink); color: var(--cream); }
#services .section-label { color: var(--sage-mid); }
#services .section-title { color: var(--cream); }
#services .section-title em { color: var(--sage-mid); }
.services-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.services-header p { color: oklch(72% 0.01 240); font-size: 15px; line-height: 1.7; max-width: 380px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: oklch(24% 0.015 250); border-radius: var(--radius); padding: 36px 32px;
  position: relative; overflow: hidden; transition: background 0.3s, transform 0.2s; cursor: default;
}
.service-card:hover { background: var(--sage); transform: translateY(-4px); }
.service-number { font-family: var(--serif); font-size: 48px; color: oklch(32% 0.015 250); line-height: 1; margin-bottom: 20px; transition: color 0.3s; }
.service-card:hover .service-number { color: oklch(90% 0.07 240); }
.service-icon { width: 48px; height: 48px; background: oklch(32% 0.015 250); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background 0.3s; }
.service-card:hover .service-icon { background: oklch(38% 0.14 255); }
.service-icon svg { width: 24px; height: 24px; stroke: var(--sage-mid); fill: none; stroke-width: 1.8; transition: stroke 0.3s; }
.service-card:hover .service-icon svg { stroke: white; }
.service-name { font-size: 18px; font-weight: 500; color: var(--cream); margin-bottom: 10px; }
.service-desc { font-size: 13px; line-height: 1.65; color: oklch(65% 0.012 240); }
.service-card:hover .service-desc { color: oklch(92% 0.03 240); }

/* ── TEAM ── */
#team { background: var(--cream-dark); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.team-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px oklch(18% 0.015 250 / 0.1); }
.team-photo { aspect-ratio: 3/4; position: relative; overflow: hidden; }
.team-badge-spec {
  position: absolute; bottom: 12px; left: 12px;
  background: oklch(18% 0.015 250 / 0.8); color: var(--cream);
  font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 100px;
  backdrop-filter: blur(8px); letter-spacing: 0.04em;
}
.team-info { padding: 20px 22px 24px; }
.team-name { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--sage); font-weight: 500; margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ── GALLERY ── */
#gallery { background: var(--ink); padding: 80px 48px; }
#gallery .section-title { color: var(--cream); margin-bottom: 48px; }
#gallery .section-title em { color: var(--sage-mid); }
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; height: 480px; }
.gallery-grid .g-item { border-radius: var(--radius); overflow: hidden; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-grid .g-item img:hover { transform: scale(1.03); }

/* ── BOOKING ── */
#booking {
  background: linear-gradient(135deg, var(--sage) 0%, oklch(38% 0.16 270) 100%);
  color: white; text-align: center; padding: 100px 48px; position: relative; overflow: hidden;
}
#booking::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, oklch(100% 0 0 / 0.06), transparent 60%),
              radial-gradient(ellipse at 70% 50%, oklch(0% 0 0 / 0.08), transparent 60%);
}
.booking-inner { position: relative; max-width: 640px; margin: 0 auto; }
#booking .section-label { color: oklch(88% 0.05 240); }
#booking .section-title { color: white; max-width: none; margin: 0 auto 20px; }
#booking p { font-size: 17px; line-height: 1.7; color: oklch(88% 0.04 240); margin-bottom: 44px; }
.btn-booking {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; color: var(--sage);
  padding: 16px 40px; border-radius: 100px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.15);
}
.btn-booking:hover { transform: translateY(-2px); box-shadow: 0 12px 48px oklch(0% 0 0 / 0.2); }
.btn-booking svg { width: 20px; height: 20px; }
.booking-note { margin-top: 20px; font-size: 13px; color: oklch(82% 0.05 240); }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--cream-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.testimonial-card { background: var(--cream); border-radius: var(--radius); padding: 32px; }
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; color: var(--sage); }
.testimonial-name { font-size: 14px; font-weight: 500; }
.testimonial-date { font-size: 12px; color: var(--ink-soft); }

/* ── INFO ── */
#info { background: var(--cream); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-top: 64px; }
.info-block h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.info-block p, .info-block li { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.info-block ul { list-style: none; }
.info-block li { display: flex; justify-content: space-between; border-bottom: 1px solid oklch(88% 0.014 75); padding: 6px 0; }
.info-block li:last-child { border-bottom: none; }
.info-block li span { font-weight: 500; color: var(--ink); }
.info-map { margin-top: 64px; border-radius: var(--radius); overflow: hidden; height: 360px; border: 1px solid oklch(88% 0.014 75); }
.info-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── FOOTER ── */
footer#site-footer { background: var(--ink); color: oklch(65% 0.012 240); padding: 60px 48px 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 48px; border-bottom: 1px solid oklch(28% 0.015 250); gap: 48px; flex-wrap: wrap; }
.footer-brand img { height: 60px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: oklch(55% 0.012 240); }
.footer-col h4 { color: var(--cream); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: oklch(55% 0.012 240); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--sage-mid); }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: oklch(45% 0.012 240); }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-grid .g-item:last-child { display: none; }
}
@media (max-width: 768px) {
  nav#site-nav { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  #hero { grid-template-columns: 1fr; padding: 100px 24px 60px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; height: auto; }
  .gallery-grid .g-item:last-child { display: block; }
  .gallery-grid .g-item { height: 260px; }
  .footer-top { flex-direction: column; }
}
