/* =============================================
   NAILS BY KYARA — Feuille de style principale
   Rose & Blanc — Élégant
   ============================================= */

/* ---- Variables ---- */
:root {
  --rose:       #e8718a;
  --rose-light: #f5c6d0;
  --rose-pale:  #fff0f3;
  --rose-dark:  #c4566c;
  --gold:       #c9a87c;
  --white:      #ffffff;
  --off-white:  #fdf8f9;
  --text:       #3a2a2e;
  --text-light: #7a6268;
  --border:     #f0dde2;
  --shadow:     rgba(200, 80, 110, 0.12);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: 0.3s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Lato', sans-serif;
  --nav-h:      70px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ---- Utilities ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 90px 0; }
.section-alt { background: var(--off-white); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-title span { color: var(--rose); }

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--rose);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px var(--shadow);
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow); }
.btn-primary:disabled { background: #ccc; box-shadow: none; transform: none; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--rose);
  color: var(--rose);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--rose); color: var(--white); }

.btn-row { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 20px var(--shadow); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: url('../images/logo.png') center 42% / 210% auto no-repeat;
  flex-shrink: 0;
}
.logo span { color: var(--rose); }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-transform: uppercase;
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--rose); border-bottom-color: var(--rose); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fce4ec 0%, #fdf0f3 40%, #fff5f7 100%);
  padding-top: var(--nav-h);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,113,138,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: pulse 6s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,113,138,0.1) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 2rem 1.5rem; }

.hero-logo {
  display: block;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: url('../images/logo.png') center 42% / 210% auto no-repeat;
  margin: 0.8rem auto 3rem;
  box-shadow: 0 10px 50px rgba(232,113,138,0.3);
}

.hero-tag {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose-dark);
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--rose); font-style: italic; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid var(--rose);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--rose);
  border-radius: 2px;
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* =============================================
   TARIFS
   ============================================= */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tarif-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.tarif-card:hover { box-shadow: 0 8px 30px var(--shadow); transform: translateY(-3px); border-color: var(--rose-light); }

.tarif-icon {
  width: 48px; height: 48px;
  background: var(--rose-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--rose);
  flex-shrink: 0;
}

.tarif-info { flex: 1; }
.tarif-info h4 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.2rem; }
.tarif-info p { font-size: 0.88rem; color: var(--text-light); }
.tarif-price {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rose);
  white-space: nowrap;
}

.tarifs-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1.5rem;
  font-style: italic;
}

/* =============================================
   GALERIE
   ============================================= */
.galerie-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.4rem 1.3rem;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.galerie-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: transform var(--transition);
}
.galerie-item:hover { transform: scale(1.02); }
.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.galerie-item span {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white;
  padding: 0.8rem 0.8rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.galerie-placeholder {
  width: 100%; height: 100%;
  background: var(--rose-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--rose-light);
}
.galerie-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 10, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox.hidden { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--rose); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* =============================================
   RDV
   ============================================= */
.rdv-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.rdv-step {
  display: none;
  animation: fadeIn 0.4s ease;
}
.rdv-step.active { display: block; }

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

.rdv-step h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.step-num {
  display: inline-flex;
  width: 34px; height: 34px;
  background: var(--rose);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Service cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.service-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-card:hover { border-color: var(--rose-light); background: var(--rose-pale); }
.service-card.selected { border-color: var(--rose); background: var(--rose-pale); }
.service-card .sc-name { font-weight: 700; font-size: 0.92rem; }
.service-card .sc-price { color: var(--rose); font-weight: 700; font-size: 0.95rem; font-family: var(--font-head); }

/* Calendrier */
.calendar-wrapper {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.cal-header {
  background: var(--rose);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
}
.cal-header button {
  color: white;
  font-size: 1rem;
  background: rgba(255,255,255,0.2);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cal-header button:hover { background: rgba(255,255,255,0.4); }
#calMonthYear {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: capitalize;
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--rose-pale);
  text-align: center;
}
.cal-days-header span {
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rose-dark);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.5rem;
  background: var(--white);
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 400;
}
.cal-day.empty { cursor: default; }
.cal-day.other-month { color: #ccc; cursor: default; }
.cal-day.past { color: #ccc; cursor: not-allowed; }
.cal-day.unavailable { color: #ddd; cursor: not-allowed; }
.cal-day.available { color: var(--text); cursor: pointer; }
.cal-day.available:hover { background: var(--rose-pale); color: var(--rose); }
.cal-day.selected { background: var(--rose); color: white; }
.cal-day.today { font-weight: 700; box-shadow: 0 0 0 2px var(--rose); }

/* Créneaux */
.slots-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  min-height: 60px;
  align-items: flex-start;
}
.slots-info { color: var(--text-light); font-style: italic; }
.slot-btn {
  padding: 0.45rem 1rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition);
}
.slot-btn:hover { border-color: var(--rose-light); background: var(--rose-pale); }
.slot-btn.selected { background: var(--rose); border-color: var(--rose); color: white; }
.slot-btn.booked { border-color: #eee; color: #ccc; cursor: not-allowed; text-decoration: line-through; }

/* Formulaire RDV */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(232,113,138,0.12); }
.form-group input.error,
.form-group textarea.error { border-color: #e05; }

.rdv-recap {
  background: var(--rose-pale);
  border: 1.5px solid var(--rose-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
}
.rdv-recap strong { color: var(--rose); }

/* Confirmation */
.confirm-box {
  text-align: center;
  padding: 2rem 1rem;
}
.confirm-icon {
  font-size: 4rem;
  color: var(--rose);
  margin-bottom: 1rem;
  display: block;
}
.confirm-box h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.confirm-box p { color: var(--text-light); margin-bottom: 0.5rem; }
.confirm-note { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* =============================================
   À PROPOS
   ============================================= */
.apropos-container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}
.apropos-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--rose-pale);
}
.apropos-img img { width: 100%; height: 100%; object-fit: cover; }
.apropos-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--rose-light);
}
.apropos-text p { margin-bottom: 1rem; color: var(--text-light); line-height: 1.9; }
.apropos-text p strong { color: var(--text); }

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover { box-shadow: 0 8px 30px var(--shadow); transform: translateY(-3px); }
.contact-card i {
  font-size: 1.8rem;
  color: var(--rose);
  margin-bottom: 0.75rem;
  display: block;
}
.contact-card h4 { font-family: var(--font-head); margin-bottom: 0.5rem; }
.contact-card p { font-size: 0.88rem; color: var(--text-light); }
.contact-card a { color: var(--rose); font-weight: 700; }

/* Réseaux */
.reseaux-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.reseau-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
}
.reseau-link:hover { background: var(--rose); border-color: var(--rose); color: white; }
.reseau-link i { font-size: 1.1rem; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links li a { display: block; padding: 0.75rem 2rem; }
  .burger { display: flex; }

  .apropos-container { grid-template-columns: 1fr; gap: 2rem; }
  .apropos-img { aspect-ratio: 4/3; max-width: 320px; margin: 0 auto; }
  .apropos-text .section-title { text-align: center; }

  .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 2.8rem; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}
