/* ===================================
   CSS GLOBAL - CLINIQUE DENTAIRE PREMIUM
   Fondations, reset et styles de base
   =================================== */

/* ========== RESET & FONDATIONS ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333333;
  background: #F9F4ED;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: 77px;
}

/* ========== TYPOGRAPHIE ÉLÉGANTE ========== */
h1, h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: -0.025em;
}

h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a1a;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
  color: #2d3748;
  font-size: clamp(1.125rem, 2.2vw, 1.2rem);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== COULEURS BRAND ========== */
:root {
  /* Couleurs principales */
  --color-primary: #B89051;
  --color-primary-dark: #9a7644;

  --color-secondary: #0F2D4E;

  --color-text: #333333;

  --color-bg: #F9F4ED;
  --color-bg-white: #FFFFFF;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 25px 60px rgba(0,0,0,0.15);

  /* Rayons */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ========== BOUTONS CTA UNIFORMISÉS ========== */
.hero-premium__cta,
.promo-btn,
.cta-final,
.video-btn,
.testimonials-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #B89051 0%, #A67E44 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 30px rgba(184, 144, 81, 0.4), 0 4px 15px rgba(184, 144, 81, 0.3);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.hero-premium__cta:hover,
.promo-btn:hover,
.cta-final:hover,
.video-btn:hover,
.testimonials-btn:hover {
  background: linear-gradient(135deg, #A67E44 0%, #9a7644 100%);
  box-shadow:
    0 12px 40px rgba(184, 144, 81, 0.6),
    0 6px 20px rgba(184, 144, 81, 0.45),
    0 0 30px rgba(182, 138, 74, 0.5);
  transform: translateY(-3px) scale(1.03);
}

.hero-premium__cta:active,
.promo-btn:active,
.cta-final:active,
.video-btn:active,
.testimonials-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(184, 144, 81, 0.45), 0 3px 12px rgba(184, 144, 81, 0.35);
}

/* ========== UTILITAIRES ========== */
.container-width {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 100px 5%;
}

.text-center {
  text-align: center;
}

.section-title-center {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-subtitle-center {
  font-size: clamp(1.15rem, 2.7vw, 1.3rem);
  color: #4a5568;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.65;
}

/* ========== ESPACEMENT SECTIONS ========== */
section {
  width: 100%;
  padding: 48px 8% 48px !important;
  margin-bottom: 0;
}

section:last-of-type {
  margin-bottom: 0;
}

/* ========== ALTERNATING SECTION BACKGROUNDS FOR CONTRAST ========== */
.why-us-section {
  background: #FFFFFF !important;
}

.before-after-gallery {
  background: #F8F6F2 !important;
}

.invisalign-promo {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F1EA 100%) !important;
}

.faq-section {
  background: #FFFFFF !important;
}

.lead-form-wrap {
  background: #F5F1EA !important;
}

.temoignages {
  background: #FFFFFF !important;
}

/* ========== FOOTER PREMIUM ========== */
.footer-premium {
  background: var(--color-secondary);
  color: #FFFFFF;
  padding: 60px 5% 30px;
  width: 100%;
  margin-bottom: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 60px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 0;
  margin-top: -10px;
}

.footer-logo img {
  opacity: 0.95;
  height: 90px;
  max-height: 90px;
}

.footer-info {
  text-align: left;
}

.footer-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #e4eaf4;
  font-weight: 600;
}

.footer-address {
  color: #e4eaf4;
  text-decoration: underline;
  text-decoration-color: rgba(228, 234, 244, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.footer-address:hover {
  color: #B89051;
  text-decoration-color: #B89051;
}

.footer-phone {
  font-size: 1.5rem;
  margin: 1rem 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-phone a {
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-phone a:hover {
  color: #B89051;
  transform: scale(1.05);
}

.footer-hours {
  font-size: 1rem;
  color: #b5c7e6;
  margin-bottom: 0;
}

/* Icônes sociales */
.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184, 144, 81, 0.2);
  color: #B89051;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon svg {
  width: 26px;
  height: 26px;
}

.social-icon:hover {
  background: linear-gradient(135deg, #B89051 0%, #A67E44 100%);
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.1);
  box-shadow:
    0 8px 25px rgba(184, 144, 81, 0.45),
    0 0 20px rgba(182, 138, 74, 0.3);
}

.social-icon:active {
  transform: translateY(-2px) scale(1.05);
}

/* Footer Navigation */
.footer-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin: 20px 0 10px;
}

.footer-nav a {
  color: #e4eaf4;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 4px 0;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #B89051;
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: #B89051;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* Badge de sécurité */
.footer-security-badge {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: rgba(184, 144, 81, 0.15);
  border: 1px solid rgba(184, 144, 81, 0.3);
  border-radius: 12px;
  color: #B89051;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 1rem;
}

.footer-security-badge svg {
  flex-shrink: 0;
  color: #B89051;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.95rem;
  color: #8ba3c7;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ========== STICKY CTA MOBILE BOTTOM ========== */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: linear-gradient(135deg, #B89051 0%, #A67E44 100%);
  color: #FFFFFF;
  padding: 18px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow:
    0 -4px 20px rgba(0, 0, 0, 0.15),
    0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
}

.sticky-cta-mobile svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.sticky-cta-mobile:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, #A67E44 0%, #9a7644 100%);
}

@media (max-width: 768px) {
  .sticky-cta-mobile {
    display: flex;
  }
}

/* ========== BADGE GOOGLE RATING FIXE ========== */
.google-rating-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: none;
  animation: slideInBadge 0.6s ease-out 1s both;
}

@keyframes slideInBadge {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.google-rating-content {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 200px;
}

.google-logo {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.rating-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.google-rating-badge .stars {
  color: #fbbc04;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}

.rating-text {
  font-size: 13px;
  color: #333333;
  font-weight: 500;
  white-space: nowrap;
}

.rating-text strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* ========== ANIMATIONS GLOBALES ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  section {
    padding: 40px 6% 40px !important;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.875rem, 6vw, 2.25rem);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(1.5rem, 5vw, 1.875rem);
    line-height: 1.3;
  }

  p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .container-width {
    padding: 60px 6%;
  }

  section {
    padding: 32px 6% 32px !important;
    margin-bottom: 0;
  }


  .section-title-center {
    margin-bottom: 1rem;
  }

  .section-subtitle-center {
    margin-bottom: 2.5rem;
    line-height: 1.75;
  }

  .footer-premium {
    padding: 60px 6% 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 12px;
  }

  .footer-logo img {
    height: 90px;
    max-height: 90px;
  }

  .footer-info {
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }

  .footer-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e4eaf4;
  }

  .footer-address {
    font-size: 1rem;
    display: inline-block;
    padding: 6px 0;
    line-height: 1.6;
  }

  .footer-phone {
    font-size: 1.5rem;
    margin: 20px 0;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .footer-phone a {
    display: inline-block;
    padding: 12px 0;
    min-height: 48px;
    line-height: 1.4;
  }

  .footer-socials {
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
  }

  .social-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .footer-hours {
    font-size: 1rem;
    line-height: 1.7;
    color: #b5c7e6;
  }

  /* Afficher le badge Google sur mobile - positioned above sticky CTA */
  .google-rating-badge {
    display: block;
    bottom: 70px;
    right: 16px;
  }

  .google-rating-content {
    padding: 10px 14px;
    min-width: 180px;
  }

  .google-logo {
    width: 45px;
  }

  .rating-text {
    font-size: 12px;
  }

  /* Style mobile pour le badge de sécurité footer */
  .footer-security-badge {
    padding: 14px 20px;
    font-size: 0.9rem;
    gap: 8px;
  }

  .footer-security-badge span {
    font-size: 0.88rem;
    line-height: 1.4;
  }
}

/* ========== ACCESSIBILITÉ ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus visible pour l'accessibilité */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========== LOADING SPINNER ========== */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-top-color: #B89051;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
