@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================
    PALETTE DE COULEURS — Beige & Blanc Cassé
    ============================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: #2C2622;
  background: #F7F4EF radial-gradient(circle at 1px 1px, rgba(138, 120, 105, 0.06) 1.5px, transparent 0), linear-gradient(135deg, #FAF8F5 0%, #F0EAE1 50%, #E6DEC9 100%);
  background-size: 26px 26px, 100% 100%;
  background-attachment: fixed;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.header { text-align: center; margin-bottom: 22px; position: relative; }
.pro-link { position: absolute; top: 0; right: 0; color: #8A7869; font-size: 11.5px; text-decoration: none; font-family: 'IBM Plex Mono', monospace; }
.pro-link:hover { opacity: 0.7; }
.logo-link { text-decoration: none; display: block; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.logo-text { font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: 26px; color: #8C6D53; }
.tagline { font-size: 14px; color: #7A695C; margin-top: 6px; }

.stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; gap: 2px; }
.stepper-item { display: flex; align-items: center; gap: 6px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: #D9CFC4; }
.step-dot.active { background: #8C6D53; }
.step-label { font-size: 12px; font-family: 'IBM Plex Mono', monospace; color: #9E8F82; }
.step-label.active { color: #2C2622; font-weight: 600; }
.step-line { width: 20px; height: 1.5px; margin: 0 6px; background: #D9CFC4; }

.card { background: #FAF7F2; border-radius: 18px; padding: 24px 20px; box-shadow: 0 4px 20px rgba(138, 120, 105, 0.12); border: 1px solid #E3DBD0; }
.section-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 21px; margin: 0 0 4px; color: #2C2622; }
.sub-label { font-size: 13px; color: #7A695C; margin-bottom: 16px; font-family: 'IBM Plex Mono', monospace; }
.muted { font-size: 13px; color: #7A695C; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; margin-bottom: 22px; }
.category-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15px; color: #8C6D53; margin: 18px 0 0; }
.swatch {
  border: 1px solid #E3DBD0; border-radius: 14px; padding: 0; overflow: hidden;
  background: #FAF7F2; cursor: pointer; text-align: left; width: 100%;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(138, 120, 105, 0.2); border-color: #8C6D53; }
.bottle-cap { height: 10px; flex-shrink: 0; background: #D4B28C; }
.bottle-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.service-name { font-size: 14px; font-weight: 600; display: block; color: #2C2622; }
.service-meta { font-size: 12px; color: #7A695C; font-family: 'IBM Plex Mono', monospace; display: block; }

.date-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; justify-content: space-between; }
.nav-btn {
  border: 1px solid #E3DBD0; background: #FAF7F2; border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  text-decoration: none; color: #2C2622; font-size: 16px;
}
.nav-btn:hover { background: #8C6D53; color: #FAF7F2; border-color: #8C6D53; }
.admin-date-display { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: #2C2622; }

.day-row { display: flex; gap: 8px; overflow-x: auto; flex: 1; margin-top: 14px; }
.day-card {
  border: 1.5px solid #E3DBD0; background: #FAF7F2; border-radius: 12px; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: center; cursor: pointer; min-width: 58px;
}
.day-card:hover { border-color: #8C6D53; }
.day-name { font-size: 11px; color: #7A695C; font-family: 'IBM Plex Mono', monospace; }
.day-num { font-size: 18px; font-weight: 600; margin: 2px 0; color: #2C2622; }
.day-month { font-size: 11px; color: #7A695C; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 10px; }
.slot-btn {
  border: 1.5px solid #C2A68C; color: #6E533F; background: #FAF7F2; border-radius: 10px;
  padding: 10px 6px; font-size: 13px; font-family: 'IBM Plex Mono', monospace; cursor: pointer;
}
.slot-btn:hover { background: #8C6D53; color: #FAF7F2; border-color: #8C6D53; font-weight: 600; }

.recap { display: flex; align-items: center; gap: 8px; background: #F0EAE1; border: 1px solid #E3DBD0; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 18px; font-family: 'IBM Plex Mono', monospace; color: #2C2622; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: #5E4E42; }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=time], input[type=number], select {
  border: 1.5px solid #E3DBD0; border-radius: 10px; padding: 11px 12px; font-size: 14px;
  font-family: 'Work Sans', sans-serif; background: #F5F1EB; color: #2C2622;
}
input:focus, select:focus { outline: 2px solid #8C6D53; outline-offset: 1px; }
.error-text { color: #A64D4D; font-size: 13px; }
.success-text { color: #5B7A55; font-size: 13px; background: #EAEFE7; border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }

.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #5E4E42; cursor: pointer; font-weight: normal; }

.btn-add-rdv { display: block; text-align: center; text-decoration: none; margin-top: 12px; }

.btn-primary { background: #8C6D53; color: #FAF7F2; border: none; border-radius: 10px; padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-secondary { background: #FAF7F2; border: 1.5px solid #C2A68C; color: #6E533F; border-radius: 10px; padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none; margin-top: 14px; }
.back-link { background: none; border: none; color: #8C6D53; font-size: 12.5px; cursor: pointer; padding: 0; margin-bottom: 12px; font-family: 'IBM Plex Mono', monospace; }

.confirm-box { text-align: center; padding: 12px 0; }
.confirm-icon { width: 50px; height: 50px; border-radius: 50%; background: #8C6D53; color: #FAF7F2; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 22px; }

.agenda-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.agenda-row { display: flex; align-items: center; gap: 12px; border: 1px solid #E3DBD0; background: #FAF7F2; border-radius: 10px; padding: 10px 12px; }
.agenda-time { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; color: #8C6D53; min-width: 46px; }
.agenda-info { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.agenda-service { font-size: 13.5px; font-weight: 600; color: #2C2622; }
.agenda-client { font-size: 12px; color: #7A695C; }
.del-btn { background: #FAF7F2; border: 1px solid #E3DBD0; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #7A695C; }
.del-btn:hover { background: #B25A5A; color: #FAF7F2; border-color: #B25A5A; }
.agenda-actions { display: flex; gap: 6px; flex-shrink: 0; }
.confirm-btn { background: #FAF7F2; border: 1px solid #E3DBD0; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #5B7A55; }
.confirm-btn:hover { background: #5B7A55; color: #FAF7F2; border-color: #5B7A55; }

a { color: #8C6D53; }

.pay-buttons { display: flex; flex-direction: column; gap: 10px; }
.pay-btn { width: 100%; }

.badge-pending { font-size: 10.5px; font-weight: 600; color: #9E7A45; background: #F5EFE6; border-radius: 6px; padding: 2px 7px; margin-left: 6px; font-family: 'IBM Plex Mono', monospace; vertical-align: middle; }
.badge-paid { font-size: 10.5px; font-weight: 400; color: #5B7A55; font-family: 'IBM Plex Mono', monospace; display: block; margin-top: 2px; }
.badge-confirmed { font-size: 10.5px; font-weight: 600; color: #5B7A55; background: #EAEFE7; border-radius: 6px; padding: 2px 7px; margin-left: 6px; font-family: 'IBM Plex Mono', monospace; vertical-align: middle; }
.badge-cancelled { font-size: 10.5px; font-weight: 600; color: #7A695C; background: #EFEBE7; border-radius: 6px; padding: 2px 7px; margin-left: 6px; font-family: 'IBM Plex Mono', monospace; vertical-align: middle; }
.badge-manuel { font-size: 10.5px; font-weight: 600; color: #6E533F; background: #F0EAE1; border-radius: 6px; padding: 2px 7px; margin-left: 6px; font-family: 'IBM Plex Mono', monospace; vertical-align: middle; }

/* ============================================
    RESPONSIVE — petits téléphones (< 380px)
    ============================================ */
@media (max-width: 380px) {
  .page { padding: 18px 14px 36px; }
  .logo-text { font-size: 22px; }
  .card { padding: 18px 14px; border-radius: 14px; }
  .section-title { font-size: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; }
  .day-card { min-width: 50px; padding: 8px 10px; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
  .slot-btn { padding: 9px 4px; font-size: 12px; }
  .stepper { gap: 0; }
  .step-line { width: 12px; margin: 0 3px; }
  .step-label { font-size: 10.5px; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero-tagline { font-size: 13.5px; }
  .hero-cta { padding: 11px 22px; font-size: 13.5px; }
  .accueil-nav { gap: 9px 12px; font-size: 11px; }
  .accueil-nav a { font-size: 11px; }
}

/* ============================================
    RESPONSIVE — tablette / ordinateur (>= 700px)
    ============================================ */
@media (min-width: 700px) {
  .page { max-width: 680px; padding: 48px 32px 72px; }
  .logo-text { font-size: 30px; }
  .tagline { font-size: 15px; }
  .card { padding: 34px 40px; border-radius: 22px; }
  .section-title { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .day-card { min-width: 68px; padding: 12px 16px; }
  .swatch:hover { transform: translateY(-5px); }
  .btn-primary, .btn-secondary { padding: 14px; font-size: 15px; }
}

@media (min-width: 1100px) {
  .page { max-width: 760px; }
}

@media (hover: none) and (pointer: coarse) {
  .swatch, .day-card, .slot-btn, .btn-primary, .btn-secondary {
    min-height: 44px;
  }
  .nav-btn, .del-btn {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ============================================
    CALENDRIER MENSUEL (admin)
    ============================================ */
.page-wide { max-width: 760px; }
.calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.cal-entete { font-size: 11px; font-family: 'IBM Plex Mono', monospace; color: #7A695C; text-align: center; padding-bottom: 4px; }
.cal-case {
  display: flex; flex-direction: column; gap: 2px; min-height: 64px;
  border: 1px solid #E3DBD0; border-radius: 8px; padding: 4px 3px;
  text-decoration: none; color: #2C2622; background: #FAF7F2;
  transition: border-color 0.15s;
  overflow: hidden;
}
.cal-case:hover { border-color: #8C6D53; }
.cal-case-vide { background: transparent; border: none; }
.cal-case-aujourdhui { border-color: #8C6D53; border-width: 2px; }
.cal-numero { font-size: 12px; font-weight: 600; color: #2C2622; }
.cal-rdv {
  font-size: 9.5px; font-family: 'IBM Plex Mono', monospace; color: #5B7A55;
  background: #EAEFE7; border-radius: 4px; padding: 1px 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-rdv-attente { color: #9E7A45; background: #F5EFE6; }
.cal-plus { font-size: 9px; color: #7A695C; font-family: 'IBM Plex Mono', monospace; }

@media (max-width: 480px) {
  .calendrier { gap: 2px; }
  .cal-case { min-height: 52px; padding: 3px 2px; border-radius: 6px; }
  .cal-numero { font-size: 10.5px; }
  .cal-rdv { font-size: 8px; padding: 0 2px; }
  .cal-entete { font-size: 9.5px; }
}

/* ============================================
    LIEN "OÙ NOUS TROUVER" + CARTE D'ADRESSE
    ============================================ */
.header-sublink { display: inline-block; margin-top: 6px; font-size: 12px; color: #8C6D53; text-decoration: none; font-family: 'IBM Plex Mono', monospace; }
.header-sublink:hover { opacity: 0.75; }

.photo-placeholder {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; margin-bottom: 18px;
  background: #F0EAE1; display: flex; align-items: center; justify-content: center;
  color: #7A695C; font-size: 13px; font-family: 'IBM Plex Mono', monospace;
  border: 1.5px dashed #E3DBD0;
}

.lieu-card {
  display: flex; align-items: flex-start; gap: 10px;
  background: #F5F1EB; border: 1px solid #E3DBD0; border-radius: 12px; padding: 14px 16px;
}
.lieu-pin { font-size: 20px; line-height: 1.3; }
.lieu-adresse { margin: 0; font-size: 14px; line-height: 1.5; color: #2C2622; }

/* ============================================
    POPUP DE NOTATION (avis)
    ============================================ */
.avis-overlay {
  position: fixed; inset: 0; background: rgba(44, 38, 34, 0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.avis-modal {
  background: #FAF7F2; border: 1px solid #E3DBD0; border-radius: 18px; padding: 26px 22px;
  max-width: 380px; width: 100%; box-shadow: 0 12px 40px rgba(138, 120, 105, 0.25);
}
.etoiles { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.etoile { font-size: 34px; color: #D9CFC4; cursor: pointer; transition: color 0.15s, transform 0.1s; user-select: none; }
.etoile:hover { transform: scale(1.1); }
.etoile.active { color: #D4A373; }
.avis-modal textarea {
  width: 100%; border: 1.5px solid #E3DBD0; border-radius: 10px; padding: 11px 12px;
  font-size: 14px; font-family: 'Work Sans', sans-serif; background: #F5F1EB; color: #2C2622;
  resize: none; margin-top: 4px;
}
.avis-compteur { display: block; text-align: right; font-size: 11px; color: #7A695C; font-family: 'IBM Plex Mono', monospace; margin-top: 3px; }
.avis-modal .btn-primary { margin-top: 14px; }
.avis-modal .btn-secondary { margin-top: 8px; width: 100%; }
.avis-modal .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================
    AFFICHAGE DES AVIS (page publique)
    ============================================ */
.avis-note-moyenne { text-align: center; margin-bottom: 18px; }
.avis-note-moyenne .gros-chiffre { font-family: 'Fraunces', serif; font-weight: 600; font-size: 40px; color: #8C6D53; }
.avis-note-moyenne .etoiles-statique { color: #D4A373; font-size: 20px; letter-spacing: 2px; }
.avis-card { border: 1px solid #E3DBD0; background: #FAF7F2; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.avis-card .etoiles-statique { color: #D4A373; font-size: 15px; letter-spacing: 1px; }
.avis-card .avis-auteur { font-size: 12.5px; font-weight: 600; color: #2C2622; margin-top: 4px; }
.avis-card .avis-date { font-size: 11px; color: #7A695C; font-family: 'IBM Plex Mono', monospace; }
.avis-card .avis-texte { font-size: 13.5px; color: #5E4E42; margin-top: 6px; line-height: 1.5; }

/* ============================================
    PAGE D'ACCUEIL PUBLIQUE (sections)
    ============================================ */
.hero-section {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #E3DBD0;
  background: #FAF7F2;
}
.hero-section img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.hero-photo-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #E6DEC9 0%, #F5F1EB 35%, #EFE8DD 100%);
  display: flex; align-items: center; justify-content: center; color: rgba(44, 38, 34, 0.45);
  font-size: 13px; font-family: 'IBM Plex Mono', monospace;
}
.hero-content { text-align: center; padding: 22px 16px 6px; background: #FAF7F2; }
.hero-tagline { font-size: 15px; color: #5E4E42; margin: 8px 0 16px; }
.hero-cta { display: inline-block; text-decoration: none; padding: 13px 30px; width: auto; }

.accueil-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  padding: 10px 0 22px; border-bottom: 1px solid #E3DBD0; margin-bottom: 22px;
}
.accueil-nav a { font-size: 12.5px; font-family: 'IBM Plex Mono', monospace; color: #8C6D53; text-decoration: none; }
.accueil-nav a:hover { opacity: 0.7; }
.insta-link-nav { display: inline-flex; align-items: center; color: #8C6D53; }
.insta-link-nav:hover { color: #6E533F; opacity: 1 !important; }

.accueil-section { padding: 20px 4px 8px; scroll-margin-top: 20px; }
.accueil-section-alt { background: linear-gradient(135deg, #F5F1EB, #FAF7F2); border: 1px solid #E3DBD0; border-radius: 18px; padding: 26px 20px; box-shadow: 0 4px 20px rgba(138, 120, 105, 0.12); }
.accueil-section-title { text-align: center; margin-bottom: 6px; color: #2C2622; }
.accueil-section .sub-label { text-align: center; }

.galerie-placeholder {
  margin-top: 18px; padding: 30px 16px; text-align: center;
  border: 1.5px dashed #E3DBD0; border-radius: 14px; background: #FAF7F2;
}

.apropos-layout { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.apropos-photo-placeholder {
  width: 100%; aspect-ratio: 4/3; border-radius: 14px; background: #F0EAE1;
  display: flex; align-items: center; justify-content: center; color: #7A695C;
  font-size: 13px; font-family: 'IBM Plex Mono', monospace;
  border: 1.5px dashed #E3DBD0;
}
.apropos-texte { font-size: 14.5px; line-height: 1.7; color: #2C2622; }
.apropos-texte p { margin: 0 0 16px; }
.apropos-texte p:last-child { margin-bottom: 0; }

.diplomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.diplome-photo { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(138, 120, 105, 0.15); border: 1px solid #E3DBD0; }
.diplome-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; transition: transform 0.2s ease; }
.diplome-photo:hover img { transform: scale(1.04); }

.faq-item { margin-bottom: 16px; }
.faq-question { font-weight: 600; font-size: 14.5px; color: #8C6D53; margin-bottom: 4px; }
.faq-reponse { font-size: 13.5px; color: #5E4E42; line-height: 1.5; margin: 0; }

.accueil-footer { text-align: center; padding: 24px 0 8px; font-size: 12.5px; color: #7A695C; font-family: 'IBM Plex Mono', monospace; }
.accueil-footer a { color: #8C6D53; }
.insta-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; color: #8C6D53; transition: transform 0.15s, color 0.15s; }
.insta-link:hover { color: #6E533F; transform: scale(1.1); }

@media (min-width: 700px) {
  .hero-content { padding: 30px 20px 10px; }
}

/* ============================================
    GALERIE DE RÉALISATIONS (accueil)
    ============================================ */
.galerie-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px;
}
.galerie-photo { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: #F0EAE1; border: 1px solid #E3DBD0; }
.galerie-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.galerie-photo:hover img { transform: scale(1.05); }

.galerie-photo-admin { position: relative; }
.galerie-photo-suppr { position: absolute; top: 6px; right: 6px; margin: 0; }
.galerie-photo-suppr .del-btn { background: rgba(250, 247, 242, 0.92); }

.apropos-photo { width: 100%; border-radius: 14px; object-fit: cover; aspect-ratio: 4/3; border: 1px solid #E3DBD0; }

.video-vedette-section { padding-top: 0; }
.video-vedette-wrap { max-width: 480px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid #E3DBD0; background: #F0EAE1; box-shadow: 0 6px 20px rgba(44,38,34,0.08); }
.video-vedette-wrap video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 640px; margin: 14px auto 0; }
.video-card { border-radius: 14px; overflow: hidden; border: 1px solid #E3DBD0; background: #F0EAE1; box-shadow: 0 4px 14px rgba(44,38,34,0.06); }
.video-card video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.apropos-texte { max-width: 640px; margin: 0 auto; }

@media (min-width: 700px) {
  .galerie-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}

@media (min-width: 1100px) {
  .galerie-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .hero-tagline { font-size: 17px; }
  .hero-photo-placeholder, .hero-section img { aspect-ratio: 21/9; }
}
