/* ============================================
   STYLES GLOBAUX — Clinic Malak Beauty
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600;700&display=swap');

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

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

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

p { color: var(--color-charcoal-soft); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ---- Titres de section ---- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mauve-deep);
  background: var(--gradient-soft);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--color-charcoal);
  border: 1.5px solid rgba(94, 59, 34, 0.3);
}

.btn-outline:hover {
  border-color: var(--color-mauve);
  color: var(--color-mauve-deep);
  transform: translateY(-3px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-mauve-deep);
  box-shadow: var(--shadow-soft);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-sm {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
}

/* ---- Blobs organiques en arrière-plan ---- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: blob-float 14s ease-in-out infinite;
}

.blob-sky { background: var(--color-sky-light); }
.blob-pink { background: var(--color-pink-light); }
.blob-mauve { background: var(--color-mauve-light); }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

/* ---- Curseur personnalisé (desktop) ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-mauve-deep);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--color-mauve);
  transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft), opacity 0.25s;
  opacity: 0.6;
}

.cursor-ring.hovering {
  width: 54px;
  height: 54px;
  opacity: 1;
  background: rgba(139, 94, 60, 0.08);
}

/* ---- Fil d'Ariane ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-charcoal-soft);
  padding: calc(76px + 2.8rem + 1rem) 0 0.5rem; /* sous le header fixe */
}

.breadcrumb a { color: var(--color-charcoal-soft); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--color-mauve-deep); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--color-mauve-deep); font-weight: 500; }

/* ---- AOS fallback (au cas où le script tarde) ---- */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}
[data-aos].aos-animate {
  opacity: 1;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb {
  background: var(--color-mauve-light);
  border-radius: var(--radius-full);
}

/* ---- Sélection de texte ---- */
::selection {
  background: var(--color-mauve-light);
  color: var(--color-charcoal);
}
