/* Entre 2 Mondes — palette dérivée du logo (violet / or / crème) */
:root {
  --purple-deep: #5c3568;
  --purple-mid: #8b5a96;
  --purple-soft: #b89bc4;
  --gold: #c9a84c;
  --gold-light: #e8d5a8;
  --cream: #faf6f0;
  --cream-dark: #f0e8dc;
  --ink: #2a1f2e;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(44, 31, 46, 0.12);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92, 53, 104, 0.08);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__brand img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.site-header__nav a:hover {
  color: var(--purple-deep);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
}

.social-link:hover {
  color: var(--purple-deep);
}

.social-link__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social-link--header {
  padding: 0.35rem;
  margin: 0 -0.15rem;
  border-radius: 10px;
  color: var(--purple-deep);
}

.social-link--header:hover {
  background: rgba(92, 53, 104, 0.08);
  text-decoration: none;
}

.social-link--header .social-link__icon {
  width: 24px;
  height: 24px;
}

.contact-social {
  text-align: center;
  margin: 1.25rem 0 0;
}

.social-link--inline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--purple-deep);
}

.social-link--inline:hover {
  text-decoration: underline;
}

.social-link--inline .social-link__icon {
  width: 26px;
  height: 26px;
}

.footer-social {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0 0;
}

.social-link--footer {
  padding: 0.5rem;
  margin: 0 auto;
  border-radius: 12px;
  color: var(--gold-light);
}

.social-link--footer:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.social-link--footer .social-link__icon {
  width: 28px;
  height: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-mid));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(92, 53, 104, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(92, 53, 104, 0.45);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), #b8923a);
  color: var(--ink);
}

.btn--outline {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple-soft);
}

.btn--outline:hover {
  background: rgba(92, 53, 104, 0.06);
}

/* Hero + carousel */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 1.5rem 3rem;
  margin-top: 0;
}

.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(42, 31, 46, 0.45) 0%,
    rgba(42, 31, 46, 0.75) 55%,
    rgba(42, 31, 46, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--cream);
}

.hero__logo-wrap {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.hero__logo-wrap img {
  height: min(72vw, 420px);
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 40px rgba(42, 31, 46, 0.35));
}

.hero h1.hero__tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0 0 0.35rem;
  opacity: 0.95;
  color: var(--cream);
}

.hero__location {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(232, 213, 168, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__dots {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s,
    transform 0.3s;
}

.hero__dots button.is-active {
  background: var(--gold);
  transform: scale(1.15);
}

.hero__arrows {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
}

.hero__arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}

.hero__arrows button:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section--alt {
  background: var(--cream-dark);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--purple-deep);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--ink);
  opacity: 0.9;
}

.notice {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  background: rgba(201, 168, 76, 0.15);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.notice strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--purple-deep);
}

/* Cards grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.info-card {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(92, 53, 104, 0.06);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--purple-deep);
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Service categories */
details.service-cat {
  margin-bottom: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(92, 53, 104, 0.1);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 31, 46, 0.06);
}

details.service-cat summary {
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--purple-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

details.service-cat summary::-webkit-details-marker {
  display: none;
}

details.service-cat summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s;
}

details.service-cat[open] summary::after {
  content: "−";
}

.service-cat__desc {
  padding: 0 1.25rem 0.75rem;
  font-size: 0.9rem;
  opacity: 0.85;
  border-bottom: 1px solid rgba(92, 53, 104, 0.08);
}

.offer {
  position: relative;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(92, 53, 104, 0.06);
}

.offer:last-child {
  border-bottom: none;
}

.offer h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.offer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--purple-mid);
  font-weight: 500;
}

.offer__price {
  color: var(--purple-deep);
  font-weight: 700;
}

.offer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.88;
}

.offer--highlight {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(139, 90, 150, 0.08));
}

.admin-edit-btn {
  display: none;
  border: 1px solid rgba(92, 53, 104, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-deep);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
}

body.is-admin .admin-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-edit-btn:hover {
  background: var(--cream-dark);
  text-decoration: none;
}

.admin-edit-btn--category {
  margin-left: auto;
}

.admin-edit-btn--offer {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
}

.admin-order-controls {
  display: none;
  align-items: center;
  gap: 0.2rem;
}

body.is-admin .admin-order-controls {
  display: inline-flex;
}

.admin-order-controls--category {
  margin-left: 0.35rem;
}

.admin-order-controls--offer {
  position: absolute;
  top: 0.6rem;
  right: 4.7rem;
}

.admin-order-btn {
  border: 1px solid rgba(92, 53, 104, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-deep);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  width: 1.6rem;
  height: 1.35rem;
  cursor: pointer;
}

.admin-order-btn:hover {
  background: var(--cream-dark);
}

body.is-admin .admin-editable {
  outline: 1px dashed rgba(92, 53, 104, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline-color 0.2s ease;
}

body.is-admin .admin-editable:focus {
  outline: 2px solid rgba(92, 53, 104, 0.65);
  background: rgba(250, 246, 240, 0.7);
}

body.is-admin #horaires .info-card {
  position: relative;
}

body.is-admin #horaires .info-card::after {
  content: "editable";
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(92, 53, 104, 0.55);
}

body.is-admin .admin-summary-text {
  padding-right: 0.5rem;
}

.admin-toolbar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 250;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.96);
  border: 1px solid rgba(92, 53, 104, 0.15);
  box-shadow: var(--shadow);
}

.admin-toolbar .btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
}

.block-text {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  padding: 0 1.25rem 1rem;
}

.block-text p {
  margin: 0 0 0.75rem;
}

.block-text p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, var(--purple-deep) 0%, #3d2446 100%);
  color: var(--cream);
  text-align: center;
}

.site-footer a {
  color: var(--gold-light);
}

.site-footer__logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 1rem;
}

.site-footer__logo img {
  height: 96px;
  width: auto;
  max-width: min(100%, 280px);
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0.95;
}

.site-footer p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-cta {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 0.25rem 0.5rem;
    padding: 0.35rem 0.75rem;
    row-gap: 0.2rem;
  }

  .site-header__brand img {
    height: 38px;
    max-width: 150px;
  }

  .site-header__nav {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
    gap: 0.25rem 0.45rem;
    line-height: 1.2;
  }

  .site-header__nav a:not(.btn) {
    padding: 0.1rem 0;
  }

  .site-header .btn--primary {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .social-link--header {
    padding: 0.15rem;
    margin: 0 -0.1rem;
  }

  .social-link--header .social-link__icon {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 5.75rem 1.25rem 2.5rem;
    padding-top: calc(env(safe-area-inset-top, 0px) + 5rem);
  }

  .hero__logo-wrap {
    margin-bottom: 0.85rem;
  }

  .hero__logo-wrap img {
    height: min(48vw, 200px);
  }

  .hero__arrows {
    display: none;
  }
}

.admin-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1.25rem;
  background: linear-gradient(160deg, rgba(92, 53, 104, 0.12), rgba(201, 168, 76, 0.12));
}

.admin-login {
  width: min(100%, 460px);
  margin: 0 auto;
}

.admin-login__card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(92, 53, 104, 0.1);
  padding: 1.5rem;
}

.admin-login__logo {
  margin: 0 auto 0.85rem;
}

.admin-login__card h1 {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  color: var(--purple-deep);
}

.admin-login__subtitle {
  margin: 0.35rem 0 1.2rem;
  text-align: center;
  color: var(--ink);
  opacity: 0.85;
  font-size: 0.95rem;
}

.admin-login__form {
  display: grid;
  gap: 0.75rem;
}

.admin-login__form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-deep);
}

.admin-login__form input[type="email"],
.admin-login__form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(92, 53, 104, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  background: #fff;
}

.admin-login__form input:focus {
  outline: 2px solid rgba(92, 53, 104, 0.35);
  outline-offset: 1px;
}

.admin-login__remember {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.15rem 0 0.1rem;
}

.admin-login__remember span {
  font-size: 0.88rem;
  color: var(--ink);
}

.admin-login__form .btn {
  width: 100%;
  margin-top: 0.15rem;
}

.admin-login__error {
  min-height: 1.2rem;
  margin: 0.2rem 0 0;
  color: #a32132;
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 560px) {
  .admin-login-page {
    padding: 0.8rem;
  }

  .admin-login__card {
    border-radius: 14px;
    padding: 1.1rem;
  }

  .admin-login__logo {
    margin-bottom: 0.65rem;
  }

  .admin-login__card h1 {
    font-size: 1.45rem;
  }

  .admin-login__subtitle {
    font-size: 0.9rem;
  }
}
