:root {
  --bg: #ffffff;
  --fg: #2a2a2a;
  --muted: #666666;
  --line: #e0e0e0;
  --gold: #B8956A;
  --gold-text: #8C6239;
  --maxw: 1100px;
  --serif: "Didot", "Bodoni MT", "Baskerville", "Georgia", serif;
  --sans: "Helvetica Neue", "Futura", "Montserrat", sans-serif;
}

/* RESET & GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Styles supplémentaires pour le calendrier --- */
.calendar-month {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--gold-text);
}

.calendar-container {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  width: 100%;
}

.calendar-header .weekday {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  box-sizing: border-box;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
}

/* --- Carrés des jours --- */
.day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  min-height: 60px;
  font-weight: 500;
  border-radius: 8px;
  background: #f0f0f0;
  color: #1a2b49;
  box-shadow: inset 0 0 0 1px #e0e0e0;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  padding: 4px;
  transition: background 0.2s;
}

.day.selected:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.day.selected {
  background: #e0ddd8;
  color: #1a2b49;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: scale(1.05);
  border: 1px solid var(--gold-text);
  transition: all 0.25s ease-in-out;
}

.day.available:hover {
  background: #d8e6ff;
}

.day.unavailable {
  background: #f0f0f0;
  color: #aaa;
  cursor: not-allowed;
}

.day.past {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
}

/* Indication ultra sobre sur le samedi */
.day.unavailable:nth-child(7n-1) {
  position: relative;
}

.day.unavailable:nth-child(7n-1)::after {
  content: "—";           /* le tiret discret */
  position: absolute;
  bottom: 6px;
  font-size: 0.7rem;
  color: #b0b0b0;         /* gris clair, subtil */
  font-weight: 500;
  text-align: center;
  width: 100%;
  pointer-events: none;
}

/* Message de confirmation */
#confirmation {
  margin-top: 1rem;
  text-align: center;
  color: var(--gold-text);
  font-weight: 500;
  background: rgba(184, 149, 106, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  display: none;
  font-family: var(--sans);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .calendar-header .weekday {
    font-size: 0.75rem;
    height: 30px;
  }
  .day {
    min-height: 50px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .calendar-header .weekday {
    font-size: 0.7rem;
    height: 25px;
  }
  .day {
    min-height: 40px;
    font-size: 0.7rem;
  }
}

/* --- Ajustement visuel et centrage parfait du formulaire modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 380px;
  text-align: left;
  font-size: 0.9rem;
  position: relative;
}

.modal-content h2 {
  font-family: var(--serif);
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--fg);
}

.modal-date-display {
  text-align: center;
  font-weight: 600;
  color: var(--gold-text);
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

.modal-content label {
  font-size: 0.85rem;
  margin: 0.6rem 0 0.2rem;
  display: block;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.modal-content button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background-color: var(--gold-text);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.modal-content button:hover {
  background-color: #a17449;
}

.modal-content button#closeModal {
  background-color: #ccc;
  margin-left: 0.5rem;
}


.rgpd-note {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.8rem;
  text-align: center;
  line-height: 1.4;
}

.selected-date-display {
  text-align: center;
  margin: 10px 0;
  font-weight: 600;
  color: var(--gold-text);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.nav-buttons button {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================
   Bannière cookies
   ===================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 15px 10px;
  z-index: 9999;
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* Empêche toute interaction avant consentement */
body.no-interaction *:not(#cookie-banner):not(#cookie-banner *) {
  pointer-events: none;
  opacity: 0.4;
}

#cookie-banner .cookie-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

#cookie-banner .cookie-content p {
  flex: 1 1 100%;
  margin-bottom: 10px;
}

#cookie-banner .cookie-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 100%;
}

#cookie-banner .cookie-actions button {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  background-color: #fff;
  color: #2a2a2a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

#cookie-banner .cookie-actions button.active,
#cookie-banner .cookie-actions button#cookie-refuse {
  background-color: #888888;
  color: #fff;
}

#cookie-banner .cookie-actions button:hover:not(.active) {
  background-color: #f0f0f0;
}

/* =====================
   Confirmation message après réservation
   ===================== */
/* HEADER */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.logo img {
  height: 36px;
  margin-left: 20px;
}

/* NAVIGATION */
.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  position: relative;
}

#nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 auto;
}

#nav-list a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--fg);
  text-decoration: none;
}

#nav-list a.active-page {
  text-decoration: underline;
  text-decoration-color: var(--gold-text);
  text-underline-offset: 4px;
}

/* LANGUES SUR LA MÊME LIGNE */
.lang-switch {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.lang-switch a.lang {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.lang-switch a.lang.active-lang::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--gold-text);
}

.lang-sep {
  color: var(--muted);
  padding: 0 4px;
}

/* MAIN */
main {
  flex: 1;
  padding-top: 100px;
}

/* --- HERO (Accueil) --- */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.kicker {
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.contact-mail {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
}

.contact-mail a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.contact-mail a:hover {
  color: var(--gold);
}

.notice-email {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

.thumbnail {
  width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: block;
  margin: 1rem auto;
}

/* BUTTONS */
.actions {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--fg);
  text-decoration: none;
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background-color: rgba(184, 149, 106, 0.05);
}

/* --- FOOTER PREMIUM --- */
footer {
  text-align: center;
  padding: 2rem 60px 2rem 20px;
  border-top: 1px solid var(--line);
  background: #fafafa;
  font-size: 0.9rem;
  position: relative;
  min-height: 80px;
}

.footer-francenum {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.footer-francenum img {
  height: 62px;
  width: auto;
  max-width: 150px;
  border: none;
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  padding: 0 10px;
}

.footer-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1rem;
  border-right: 1px solid var(--line);
}

.footer-nav a:hover {
  color: var(--gold-text);
}

.footer-note {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.8rem;
}

/* --- PAGES LÉGALES HARMONISÉES --- */
.legal-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 20px;
  font-family: var(--sans);
  color: var(--muted);
  line-height: 1.8;
}

.legal-container h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: normal;
  color: var(--fg);
  text-align: center;
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-title::after {
  content: "+";
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.legal-title.active::after {
  content: "−";
}

.legal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 0.5rem;
}

.legal-content.inner {
  max-height: 2500px;
  padding: 1rem 0;
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s ease;
}

.legal-content a:hover {
  border-bottom: 1px solid var(--gold-text);
}

.legal-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* --- PAGES CONTENU (Identité, Services, etc.) --- */
.section.container.prestation {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: justify;
  line-height: 1.8;
  color: var(--muted);
}

.section.container.prestation h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: normal;
  color: var(--fg);
  text-align: center;
  margin-bottom: 0.6rem;
}

.section.container.prestation h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
}

.section.container.prestation p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.premium-accroche {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0.6rem 0 1rem;
}

.premium-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 1rem 0 0.5rem;
}

.premium-quote-ss {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  padding-left: 1rem;
  margin: 1rem 0 0.5rem;
}

/* Mail dans le corps (identité & services) */
.contact-mail-prestation {
  text-align: center;
  margin-top: 2rem;
}

.contact-mail-prestation a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-mail-prestation a:hover {
  border-color: var(--gold);
}

/* --- Focus élégant pour conformité RGAA 10.7 --- */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--gold-text);
  outline-offset: 2px;
  box-shadow: 0 0 4px rgba(184,149,106,0.5);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #8C6239;
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  #nav-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .lang-switch {
    position: static;
    margin-top: 0.5rem;
  }
  main {
    padding-top: 180px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 20px 3rem;
  }
  .footer-francenum {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  .hero h1 {
    font-family: "Georgia", serif;
    font-size: 1.9rem;
    line-height: 1.4;
    font-weight: 500;
  }
  .section.container.prestation h2,
  .legal-container h1 {
    font-family: "Georgia", serif;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
  }
  .kicker {
    font-size: 1rem;
  }
  .contact-mail,
  .contact-mail-prestation a {
    font-size: 1rem;
  }
}

/* === Boutons du formulaire === */
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .form-buttons {
    flex-direction: column;
    align-items: center;
  }
  .form-buttons button {
    width: 100%;
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  #cookie-banner .cookie-content {
    flex-direction: column;
    align-items: center;
  }
  #cookie-banner .cookie-actions {
    justify-content: center;
  }
  #cookie-banner .cookie-actions button {
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .calendar-container {
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .calendar,
  .calendar-header {
    min-width: 520px; /* garde la grille lisible */
  }

  .day {
    font-size: 0.75rem;
    min-height: 46px;
    padding: 2px;
  }
}


/* Responsive mobile */
@media (max-width: 480px) {
  .day.unavailable:nth-child(7n-1)::after {
    font-size: 0.6rem;
    bottom: 4px;
  }
}

/* ===========================================================
   ACCESSIBILITÉ NUMÉRIQUE (RGAA / WCAG)
   =========================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}
