@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --cream: #FBF6EE;
  --cream-2: #F4EBDB;
  --gold: #B98D3E;
  --gold-soft: #D7B571;
  --gold-dark: #8E6A28;
  --ink: #221F1B;
  --slate: #4B4F58;
  --line: #E3D3AE;
  --white: #FFFFFF;
  --danger: #A5433A;
}

*{ box-sizing: border-box; }

html,body{
  margin:0; padding:0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0;
}

.script{
  font-family: 'Alex Brush', cursive;
  line-height: 1;
}

.hairline{ border:none; border-top: 1px solid var(--line); }

a{ color: inherit; }

.container{ max-width: 620px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header.site-header{
  padding: 1.3rem 1.5rem;
  display:flex; justify-content:space-between; align-items:center;
  border-bottom: 1px solid var(--line);
}
.brand{ display:flex; align-items:baseline; gap:0.5rem; cursor:pointer; }
.brand .script{ font-size: 2rem; }
.brand .tagline{ font-size:0.68rem; letter-spacing:0.08em; color:var(--slate); }
nav.site-nav{ display:flex; gap:0.5rem; }

/* Boutons */
.btn{
  font-family:'Jost',sans-serif; font-size:0.95rem; letter-spacing:0.02em;
  padding:0.75rem 1.6rem; border-radius:999px; border:1px solid var(--gold);
  background:transparent; color:var(--gold-dark); cursor:pointer;
  transition:all .2s ease; display:inline-flex; align-items:center; gap:0.5rem;
}
.btn:hover{ background:var(--gold); color:var(--white); }
.btn:disabled{ opacity:0.4; cursor:not-allowed; }
.btn:disabled:hover{ background:transparent; color:var(--gold-dark); }
.btn-solid{ background:var(--ink); border-color:var(--ink); color:var(--cream); }
.btn-solid:hover{ background:var(--gold-dark); border-color:var(--gold-dark); color:var(--white); }
.btn-ghost{ border-color:transparent; color:var(--slate); padding:0.5rem 0.9rem; }
.btn-ghost:hover{ background:var(--cream-2); color:var(--ink); }
.btn-danger{ border-color:var(--danger); color:var(--danger); padding:0.5rem 0.9rem; }
.btn-danger:hover{ background:var(--danger); color:var(--white); }

/* Formulaires */
.field{
  width:100%; font-family:'Jost',sans-serif; font-size:0.95rem;
  padding:0.7rem 0.9rem; border-radius:10px; border:1px solid var(--line);
  background:var(--white); color:var(--ink); outline:none;
}
.field:focus{ border-color:var(--gold); }
label.label{ font-size:0.78rem; letter-spacing:0.03em; color:var(--slate); display:block; margin-bottom:0.4rem; }

/* Hero */
.hero{ text-align:center; max-width:640px; margin:3rem auto 4rem; padding:0 1.5rem; }
.hero .script{ font-size:clamp(3rem,10vw,5.5rem); display:block; }
.hero .subtitle{ letter-spacing:0.12em; font-size:0.85rem; color:var(--slate); margin-top:0.4rem; }
.hero p.intro{ font-size:1.15rem; font-family:'Cormorant Garamond',serif; line-height:1.6; }

/* Liste de prestations (accueil) */
.services-list .service-row{ display:flex; justify-content:space-between; padding:0.85rem 0.2rem; align-items:center; }
.services-list .service-row .name{ font-family:'Cormorant Garamond',serif; font-size:1.2rem; }
.services-list .service-row .duration{ color:var(--gold-dark); font-size:0.85rem; }

/* Etapes réservation */
.stepper{ display:flex; align-items:center; justify-content:center; gap:0.5rem; margin-bottom:2.2rem; }
.step-dot{
  width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'Cormorant Garamond',serif; font-weight:600; font-size:0.95rem;
  border:1px solid var(--line); background:var(--white); color:var(--slate); flex-shrink:0;
}
.step-dot.active{ background:var(--ink); border-color:var(--ink); color:var(--cream); }
.step-dot.done{ background:var(--gold); border-color:var(--gold); color:var(--white); }
.step-line{ width:28px; height:1px; background:var(--line); }

.row-card{ border:1px solid var(--line); border-radius:12px; background:var(--white); padding:1rem 1.1rem; }
.service-choice{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; text-align:left; margin-bottom:0.6rem; }
.service-choice.selected{ border-color: var(--gold); }
.service-choice .name{ font-family:'Cormorant Garamond',serif; font-size:1.15rem; }
.service-choice .duration{ color:var(--slate); font-size:0.85rem; }

/* Calendrier */
.cal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:0.9rem; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:0.3rem; }
.cal-dow{ text-align:center; font-size:0.75rem; color:var(--slate); margin-bottom:0.4rem; }
.cal-cell{
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  border-radius:8px; font-size:0.9rem; cursor:pointer; color:var(--ink); border:1px solid transparent;
}
.cal-cell.disabled{ color:#C9C2B4; cursor:not-allowed; }
.cal-cell.selected{ background:var(--ink); color:var(--cream); }
.cal-cell.today:not(.selected){ border-color:var(--gold-soft); }
.cal-cell:not(.disabled):not(.selected):hover{ border-color:var(--gold); }

/* Créneaux */
.slots-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(78px,1fr)); gap:0.5rem; }
.slot-btn{
  font-family:'Jost',sans-serif; padding:0.6rem 0.4rem; border-radius:8px; border:1px solid var(--line);
  background:var(--white); color:var(--ink); cursor:pointer; font-size:0.9rem;
}
.slot-btn:hover{ border-color:var(--gold); }
.slot-btn.selected{ background:var(--gold); border-color:var(--gold); color:var(--white); }

/* Confirmation */
.confirm-box{ text-align:center; max-width:480px; margin:0 auto; padding:2rem 1rem; }
.confirm-check{
  width:64px; height:64px; border-radius:50%; background:var(--gold);
  display:flex; align-items:center; justify-content:center; margin:0 auto 1.2rem; color:white; font-size:1.6rem;
}
.recap-row{ display:flex; justify-content:space-between; padding:0.6rem 0; border-bottom:1px solid var(--line); font-size:0.93rem; }
.recap-row:last-child{ border-bottom:none; }
.recap-row .val{ font-weight:500; }

/* Admin */
.admin-wrap{ max-width:780px; margin:0 auto; padding: 0 1.5rem; }
.admin-tabs{ display:flex; gap:0.5rem; margin-bottom:1.4rem; flex-wrap:wrap; }
.admin-tab{
  font-family:'Jost',sans-serif; font-size:0.9rem; padding:0.6rem 1.1rem; border-radius:999px;
  border:1px solid transparent; background:transparent; color:var(--slate); cursor:pointer;
}
.admin-tab.active{ background:var(--ink); color:var(--cream); }
.apt-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:0.6rem; margin-bottom:0.6rem; }
.apt-row .info .title{ font-family:'Cormorant Garamond',serif; font-size:1.15rem; }
.apt-row .info .service{ font-size:0.9rem; color:var(--gold-dark); }
.apt-row .info .client{ font-size:0.87rem; color:var(--slate); }
.hours-row{ display:flex; align-items:center; gap:0.8rem; flex-wrap:wrap; margin-bottom:0.5rem; }
.hours-row .day-label{ display:flex; align-items:center; gap:0.4rem; min-width:130px; }
.service-edit-row{ display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap; margin-bottom:0.6rem; }

.error-text{ color:var(--danger); font-size:0.88rem; }
.muted{ color:var(--slate); }

.login-box{ max-width:380px; margin:3rem auto; text-align:center; padding: 0 1.5rem; }

footer.site-footer{
  border-top:1px solid var(--line); padding:1.6rem 1.5rem; text-align:center;
  color:var(--slate); font-size:0.82rem; margin-top:3rem;
}
footer.site-footer .script{ font-size:1.3rem; display:block; margin-bottom:0.3rem; }

@media (max-width:640px){ .hide-mobile{ display:none; } }
