/*
Theme Name: Estetik@Paris
Theme URI: https://estetikparis.fr
Author: Scarabe
Author URI: https://scarabe.fr
Description: Thème premium pour le cabinet de médecine esthétique du Dr Philippe Azoulay, Paris 16e. Conçu pour Elementor.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: estetikparis
Tags: medical, elementor, dark, luxury, french
*/

/* ============================================================
   ESTETIK@PARIS — DESIGN SYSTEM
   Reproduit fidèlement depuis l'application Next.js d'origine.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Design tokens --- */
:root {
  --ep-bg:           #0D0D0D;
  --ep-fg:           #F5F0E8;
  --ep-primary:      #D4B896;
  --ep-primary-fg:   #0D0D0D;
  --ep-secondary:    #161616;
  --ep-card:         #111111;
  --ep-card-alt:     #111111;
  --ep-border:       #1E1E1E;
  --ep-muted:        rgba(245,240,232,0.5);
  --ep-muted-dim:    rgba(245,240,232,0.35);
  --ep-accent:       #D4B896;
  --ep-accent-dim:   rgba(212,184,150,0.45);
  --ep-accent-bg:    rgba(212,184,150,0.08);
  --ep-accent-bg12:  rgba(201,169,110,0.12);
  --ep-font-sans:    'DM Sans', sans-serif;
  --ep-font-display: 'Cormorant Garamond', serif;
  --ep-radius:       0px;
}

/* --- Global reset & base 
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--ep-bg);
  color: var(--ep-fg);
  font-family: var(--ep-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
} --- */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

h1,h2,h3,h4,h5,h6,p { margin: 0; }
a { text-decoration: none; }

/* --- Typography helpers --- */
.ep-font-display { font-family: var(--ep-font-display); }
.ep-font-sans    { font-family: var(--ep-font-sans); }

.ep-text-hero {
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.ep-text-section {
  font-size: clamp(2.75rem, 5.5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.ep-label {
  font-size: 0.5625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- Gold decorative elements --- */
.ep-gold-line {
  width: 3rem;
  height: 1px;
  background-color: var(--ep-accent);
  display: inline-block;
  flex-shrink: 0;
}
.ep-gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ep-accent), transparent);
  opacity: 0.3;
}

/* --- Buttons --- */
.ep-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background-color: var(--ep-accent);
  color: var(--ep-primary-fg);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ep-accent);
  border-radius: var(--ep-radius);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-family: var(--ep-font-sans);
}
.ep-btn-primary:hover {
  background-color: transparent;
  color: var(--ep-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212,184,150,0.2);
}

.ep-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background-color: transparent;
  color: var(--ep-fg);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: var(--ep-radius);
  transition: border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  font-family: var(--ep-font-sans);
}
.ep-btn-outline:hover {
  border-color: var(--ep-accent);
  color: var(--ep-accent);
}

.ep-btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2.5rem;
  background-color: transparent;
  color: rgba(245,240,232,0.8);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(245,240,232,0.25);
  border-radius: var(--ep-radius);
  transition: border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  font-family: var(--ep-font-sans);
}
.ep-btn-outline-light:hover {
  border-color: var(--ep-accent);
  color: var(--ep-accent);
}

/* --- Tag pill --- */
.ep-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  background-color: var(--ep-accent-bg);
  color: var(--ep-accent);
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(212,184,150,0.2);
}

/* --- Soft card --- */
.ep-card {
  background: var(--ep-card);
  border: 1px solid var(--ep-border);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.ep-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}

/* --- Watermark text --- */
.ep-watermark {
  font-family: var(--ep-font-display);
  font-size: clamp(6rem, 18vw, 16rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,184,150,0.04);
  pointer-events: none;
  user-select: none;
  position: absolute;
  white-space: nowrap;
}

/* --- Reveal animations --- */
.ep-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.ep-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll track (horizontal carousels) --- */
.ep-scroll-track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-bottom: 0.5rem;
}
.ep-scroll-track::-webkit-scrollbar { display: none; }
.ep-scroll-track:active { cursor: grabbing; }

/* --- Form fields --- */
.ep-form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ep-border);
  padding: 0.875rem 0;
  font-size: 0.875rem;
  color: var(--ep-fg);
  font-family: var(--ep-font-sans);
  outline: none;
  transition: border-color 0.3s ease;
}
.ep-form-field::placeholder {
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
}
.ep-form-field:focus {
  border-bottom-color: var(--ep-accent);
}

/* --- Social icon link --- */
.ep-social-link {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s ease;
}
.ep-social-link:hover { color: var(--ep-accent); }

/* --- Nav link --- */
.ep-nav-link {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s ease;
  color: rgba(245,240,232,0.8);
  position: relative;
}
.ep-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background-color: var(--ep-accent);
  transition: width 0.3s cubic-bezier(0.2,1,0.3,1);
}
.ep-nav-link:hover::after { width: 100%; }
.ep-nav-link:hover { color: var(--ep-accent); }

/* --- Header scrolled state --- */
.ep-header-scrolled {
  background: rgba(13,13,13,0.95) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(245,240,232,0.08);
}

/* --- Image hover zoom --- */
.ep-img-zoom {
  transition: transform 0.8s cubic-bezier(0.2,1,0.3,1);
}
.ep-img-zoom:hover { transform: scale(1.06); }

/* --- Slide transition --- */
.ep-slide { transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1); }

/* --- Instagram grid item --- */
.ep-insta-item {
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.ep-insta-item img {
  transition: transform 0.7s cubic-bezier(0.2,1,0.3,1);
  width: 100%; height: 100%; object-fit: cover;
}
.ep-insta-item:hover img { transform: scale(1.08); }
.ep-insta-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,0);
  transition: background 0.4s ease;
  display: flex; align-items: center; justify-content: center;
}
.ep-insta-item:hover .ep-insta-overlay { background: rgba(13,13,13,0.55); }

/* --- Noise texture --- */
.ep-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Elementor overrides */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1280px; }
.e-con-inner { max-width: 1280px; }
.elementor-widget-wrap { padding: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .ep-reveal, .ep-img-zoom, .ep-slide { transition: none; }
}
