/* ============================================
   DOLS BEAUTY — SHARED STYLES
   Used by: prestations.html, galerie.html, avis.html, admin.html
   (index.html and rdv.html have their own inline styles)
   ============================================ */

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

:root {
  --gold-dark: #8b6914;
  --gold: #c9a961;
  --gold-bright: #d4af6e;
  --gold-light: #f4e0a8;
  --gold-pale: #f9e6b4;
  --black: #0a0807;
  --cream: #f5ebd6;
}

html { scroll-behavior: smooth; }

body {
  background-color: #f8e4ea;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #1a1010;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === WHITE TEXT (used to be gold, kept class name for compatibility) === */
.gold-text {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.25);
  animation: none;
  filter: none;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

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

.fade-in { animation: fadeUp 1.2s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.5s; opacity: 0; }
.delay-3 { animation-delay: 0.8s; opacity: 0; }

/* === NAV === */
nav.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.top-bar .logo-text {
  font-family: 'Great Vibes', cursive;
  font-style: normal;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}

nav.top-bar .logo-text a { color: inherit; text-decoration: none; }

nav.top-bar ul {
  display: flex;
  gap: 38px;
  list-style: none;
}

nav.top-bar ul a {
  font-family: 'Tenor Sans', sans-serif;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.4s;
}

nav.top-bar ul a:hover,
nav.top-bar ul a.active { color: var(--gold-dark); }

/* === PAGE HEADER === */
.page-header {
  text-align: center;
  padding: 80px 24px 50px;
  position: relative;
}

.page-header .eyebrow {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.page-header .script-sub {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(34px, 4vw, 46px);
  margin-bottom: 28px;
  line-height: 1;
}

.page-header .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 24px;
  color: var(--gold-light);
  font-size: 16px;
  text-shadow: 0 0 12px rgba(244, 224, 168, 0.6);
}

.page-header .divider .line {
  width: 90px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.page-header p.intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: rgba(245, 235, 214, 0.85);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === SECTIONS === */
.section-eyebrow {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 60px);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.1;
}

.section-divider {
  text-align: center;
  margin-bottom: 60px;
  color: var(--gold-light);
  font-size: 16px;
  text-shadow: 0 0 12px rgba(244, 224, 168, 0.6);
}

.section-divider::before,
.section-divider::after {
  content: '';
  display: inline-block;
  width: 90px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  vertical-align: middle;
  margin: 0 18px;
}

/* === BUTTONS === */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #8b6914, #c9a961 30%, #f4e0a8 50%, #c9a961 70%, #8b6914);
  color: #0a0807;
  padding: 16px 38px;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.6s;
}

.btn-gold:hover:not(:disabled)::before { left: 100%; }

.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(244, 224, 168, 0.45);
}

.btn-gold:disabled { opacity: 0.6; cursor: wait; }

.btn-outline {
  display: inline-block;
  background: rgba(10, 7, 5, 0.4);
  border: 0.5px solid var(--gold);
  color: var(--gold-light);
  padding: 16px 38px;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(201, 169, 97, 0.15);
  border-color: var(--gold-light);
}

/* === FOOTER === */
footer {
  padding: 60px 40px 40px;
  text-align: center;
  border-top: 0.5px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(4px);
  color: #1a1a1a;
}

footer .footer-name {
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

footer .footer-info {
  font-family: 'Tenor Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1a1a;
  opacity: 0.75;
  margin-bottom: 10px;
}

footer .footer-credits {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: #1a1a1a;
  opacity: 0.55;
  margin-top: 24px;
}

footer .heart { color: var(--gold-dark); margin: 0 8px; }

/* === ADMIN HAMBURGER TOGGLE === */
.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 26px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(.65, 0, .35, 1);
  position: relative;
}
.admin-toggle span {
  display: block;
  width: 3px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 1.5px;
  transition: background 0.3s ease, height 0.55s cubic-bezier(.65, 0, .35, 1);
}
.admin-toggle:hover span {
  background: var(--gold-dark);
}
/* Animated state: rotate 90° to transform ||| into ≡ */
.admin-toggle.active {
  transform: rotate(90deg);
}
.admin-toggle.active span {
  background: var(--gold-dark);
}

@media (max-width: 768px) {
  .nav-left { gap: 14px; }
  .admin-toggle { width: 26px; height: 22px; gap: 4px; }
  .admin-toggle span { height: 18px; }
}

/* === MOBILE === */
@media (max-width: 768px) {
  nav.top-bar { padding: 16px 24px; flex-wrap: wrap; gap: 12px; background: rgba(255, 255, 255, 0.97); }
  nav.top-bar ul { gap: 18px; }
  nav.top-bar ul a { font-size: 10px; letter-spacing: 2px; color: #1a1a1a; }
  .page-header { padding: 50px 20px 30px; }
}

/* ═══════════ ÉDITION ADMIN (Supabase) — bulles, bouton +, modale ═══════════ */
.adm-add-btn{
  font-family:'Tenor Sans',sans-serif; font-size:13px; letter-spacing:1px; text-transform:uppercase;
  background:linear-gradient(135deg,#c9a24b,#e8d08a); color:#1a1a1a; border:none;
  padding:12px 26px; border-radius:30px; cursor:pointer; box-shadow:0 4px 14px rgba(201,162,75,.35);
  transition:transform .15s, box-shadow .15s;
}
.adm-add-btn:hover{ transform:translateY(-2px); box-shadow:0 7px 20px rgba(201,162,75,.45); }

.adm-bubbles{ position:absolute; top:10px; right:10px; display:flex; gap:6px; z-index:5; }
.adm-bub{
  width:34px; height:34px; border-radius:50%; border:none; cursor:pointer; font-size:15px;
  background:rgba(255,255,255,.95); box-shadow:0 2px 8px rgba(0,0,0,.18);
  display:flex; align-items:center; justify-content:center; transition:transform .12s;
}
.adm-bub:hover{ transform:scale(1.12); }
.adm-del:hover{ background:#ffe3e3; }

/* Modale */
.adm-modal-ov{
  position:fixed; inset:0; background:rgba(40,15,20,.55); backdrop-filter:blur(3px);
  display:flex; align-items:center; justify-content:center; z-index:9999; padding:20px;
  opacity:0; transition:opacity .2s;
}
.adm-modal-ov.show{ opacity:1; }
.adm-modal{
  background:#fff; border-radius:20px; padding:32px 30px; width:100%; max-width:440px;
  box-shadow:0 20px 60px rgba(0,0,0,.3); border:2px solid #e8d08a;
  transform:translateY(12px) scale(.98); transition:transform .2s;
}
.adm-modal-ov.show .adm-modal{ transform:translateY(0) scale(1); }
.adm-modal h3{ font-family:'Playfair Display',serif; font-size:22px; color:#1a1a1a; margin:0 0 18px; text-align:center; }
.adm-modal label{ display:block; font-family:'Tenor Sans',sans-serif; font-size:12px; letter-spacing:1px; text-transform:uppercase; color:#b08d57; margin:14px 0 6px; }
.adm-modal input, .adm-modal textarea{
  width:100%; box-sizing:border-box; padding:12px 14px; border:1px solid #e3d4b8; border-radius:10px;
  font-family:'Cormorant Garamond',serif; font-size:17px; color:#2a1a10; background:#fffdf8; resize:vertical;
}
.adm-modal input:focus, .adm-modal textarea:focus{ outline:none; border-color:#c9a24b; box-shadow:0 0 0 3px rgba(201,162,75,.15); }
.adm-modal-actions{ display:flex; gap:12px; margin-top:22px; }
.adm-btn-cancel, .adm-btn-save{
  flex:1; padding:12px; border-radius:30px; font-family:'Tenor Sans',sans-serif; font-size:13px;
  letter-spacing:1px; text-transform:uppercase; cursor:pointer; border:none; transition:transform .12s;
}
.adm-btn-cancel{ background:#f0e9e9; color:#7a6a6a; }
.adm-btn-save{ background:linear-gradient(135deg,#c9a24b,#e8d08a); color:#1a1a1a; }
.adm-btn-cancel:hover, .adm-btn-save:hover{ transform:translateY(-1px); }

/* Modale large (prestations) + lignes 2 colonnes + select */
.adm-modal-lg{ max-width:560px; max-height:88vh; overflow-y:auto; }
.adm-row2{ display:flex; gap:12px; }
.adm-row2 > label{ display:none; }
.adm-row2 label{ margin-top:14px; }
.adm-modal select{
  width:100%; box-sizing:border-box; padding:12px 14px; border:1px solid #e3d4b8; border-radius:10px;
  font-family:'Cormorant Garamond',serif; font-size:17px; color:#2a1a10; background:#fffdf8;
}
.adm-modal select:focus{ outline:none; border-color:#c9a24b; box-shadow:0 0 0 3px rgba(201,162,75,.15); }
@media (max-width:520px){ .adm-row2{ flex-direction:column; gap:0; } }

/* Champ fichier (upload photo galerie) */
.adm-modal input[type="file"]{
  padding:10px; background:#fffdf8; border:1px dashed #c9a24b; cursor:pointer;
  font-family:'Tenor Sans',sans-serif; font-size:13px; color:#7a6a55;
}
.adm-modal input[type="file"]::file-selector-button{
  margin-right:10px; border:none; border-radius:20px; padding:8px 16px; cursor:pointer;
  background:linear-gradient(135deg,#c9a24b,#e8d08a); color:#1a1a1a; font-family:'Tenor Sans',sans-serif; font-size:12px;
}
