/* ==========================================================================
   Direction artistique Aly's Nails « rose gold »
   Rose gold laqué, ivoire, champagne et ornements rococo en métal rose gold.
   Chargée après les composants : elle habille tout le site et les espaces.
   ========================================================================== */

body {
  background-color: var(--c-red-deep);
  background-image: url("/images/ornaments/damask.svg"), radial-gradient(120% 90% at 50% 0%, var(--c-red), var(--c-red-deep) 75%);
  background-attachment: scroll, fixed;
  background-size: 120px 120px, 100% 100%;
}

h1, h2, h3 { color: var(--c-brown); }
.script { font-family: var(--f-script); font-weight: 400; font-style: normal; color: var(--c-rosegold-deep); letter-spacing: 0; line-height: 1; }
.gold-text {
  background: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rosegold-text {
  background: var(--g-rosegold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* — Fleuron sous les titres — */
.flourish { display: block; width: min(240px, 60%); height: 40px; margin: var(--s-3) 0 var(--s-5); background: url("/images/ornaments/divider.svg") left center / contain no-repeat; }
.flourish--center { margin-inline: auto; background-position: center; }

/* — Vitrine : double filet doré et angles rococo — */
.frame {
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(255 255 255 / .9), transparent 70%),
    var(--c-ivory);
  box-shadow: 0 0 0 1px var(--c-line-gold), 0 40px 90px -60px rgb(70 32 40 / .7);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 60;
  border: 1px solid var(--c-line-gold);
  border-radius: calc(var(--frame-radius) - 9px);
  pointer-events: none;
}
.frame-corners {
  position: absolute;
  inset: 4px;
  z-index: 61;
  pointer-events: none;
  background:
    url("/images/ornaments/corner-tl.svg") top left / 74px no-repeat,
    url("/images/ornaments/corner-tr.svg") top right / 74px no-repeat,
    url("/images/ornaments/corner-bl.svg") bottom left / 74px no-repeat,
    url("/images/ornaments/corner-br.svg") bottom right / 74px no-repeat;
}
@media (max-width: 720px) { .frame-corners { background-size: 46px, 46px, 46px, 46px; } .frame::before { inset: 6px; } }

/* — Logo : « Prothésiste ongulaire » en petites capitales lisibles, nom en capitales, petite couronne — */
.wordmark { position: relative; padding-left: 0; font-size: 1.55rem; color: var(--c-brown); }
.wordmark__small { font-family: var(--f-sans); font-style: normal; font-weight: 650; font-size: .42em; text-transform: uppercase; letter-spacing: .16em; line-height: 1.1; white-space: nowrap; color: var(--c-accent-ink); padding-left: 2.6em; /* place de la couronne */ }
.wordmark__name { text-transform: uppercase; letter-spacing: .14em; font-size: .92em; }
.wordmark__crown { position: absolute; top: -.62em; left: -.1em; width: 1.1em; transform: rotate(-14deg); }

/* — Boutons : rose gold laqué, reflet au survol — */
.btn {
  --btn-bg: var(--g-rosegold);
  --btn-fg: var(--c-ivory);
  --btn-bd: rgb(110 54 65 / .55);
  background: var(--btn-bg);
  background-size: 220% 100%;
  background-position: 0% 50%;
  font-weight: 650;
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 10px 24px -14px rgb(110 54 65 / .75);
  transition: background-position .9s var(--ease-out), transform var(--dur-fast), box-shadow var(--dur);
}
.btn::before {
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn:hover { background-position: 100% 50%; border-color: rgb(110 54 65 / .7); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 14px 30px -14px rgb(110 54 65 / .85); }
.btn:hover::before { transform: translateX(120%); }
.btn--ghost { --btn-bg: rgb(255 255 255 / .55); --btn-fg: var(--c-brown); --btn-bd: var(--c-line-gold); box-shadow: none; }
.btn--ghost:hover { color: var(--c-brown); background: rgb(255 255 255 / .9); border-color: var(--c-gold); }
.btn--ghost::before { background: linear-gradient(100deg, transparent 20%, rgb(243 214 204 / .45) 50%, transparent 80%); }
.btn--light { --btn-bg: var(--g-rosegold-soft); --btn-fg: var(--c-brown); --btn-bd: rgb(142 75 87 / .3); }
.btn--danger { --btn-bg: var(--c-danger); --btn-fg: #fff; box-shadow: none; }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--c-danger); --btn-bd: rgb(155 27 48 / .35); box-shadow: none; }
.btn--danger-ghost:hover { background: var(--c-danger); color: #fff; }
.btn.is-loading::after { border-color: var(--c-ivory); border-right-color: transparent; }
.btn--ghost.is-loading::after, .btn--light.is-loading::after { border-color: var(--c-brown); border-right-color: transparent; }

.link { color: var(--c-accent-ink); text-decoration-color: rgb(201 146 138 / .7); }
.chip[aria-pressed="true"], .chip[aria-current="page"], .chip.is-active { background: var(--g-rosegold); background-size: 200% 100%; color: var(--c-ivory); border-color: rgb(110 54 65 / .55); }

/* — Navigation — */
.nav__links a::after { height: 2px; background: var(--g-gold); }
.nav__account { border-color: var(--c-line-gold); background: rgb(255 255 255 / .5); }
.nav__badge { background: var(--c-framboise); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-line-gold); }
.mobile-menu { background: radial-gradient(120% 80% at 50% 0%, var(--c-red), var(--c-red-deep)); }
.mobile-menu::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(243 214 204 / .35); border-radius: calc(var(--frame-radius) - 10px); pointer-events: none; }
.mobile-menu__links a[aria-current="page"] { color: var(--c-gold-light); }

/* — Panneaux et formulaires — */
.panel { border-color: rgb(201 146 138 / .35); box-shadow: var(--shadow-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--c-rosegold-deep); box-shadow: 0 0 0 3px rgb(232 180 186 / .5); }
.note { background: var(--c-info-bg); border: 1px solid rgb(201 146 138 / .3); }
.toast { background: linear-gradient(135deg, var(--c-red), var(--c-red-deep)); }
.toast > .icon { color: var(--c-gold-light); }

/* — Cadre médaillon perlé (photos ovales) — */
.medallion { position: relative; display: block; aspect-ratio: 300 / 380; padding: 6%; }
.medallion::after { content: ""; position: absolute; inset: 0; background: url("/images/ornaments/medallion.svg") center / 100% 100% no-repeat; pointer-events: none; }
.medallion img, .medallion__inner { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--c-dragee); }

/* — En-têtes des pages intérieures : bandeau pastel et nœud — */
.page-head {
  color: var(--c-ivory);
  background:
    url("/images/ornaments/damask.svg") 0 0 / 120px 120px,
    radial-gradient(120% 140% at 30% 0%, var(--c-red-bright), var(--c-red) 45%, var(--c-red-deep));
  box-shadow: inset 0 -1px 0 var(--c-line-gold);
}
.page-head h1, .page-head h2 { color: var(--c-ivory); }
.page-head a:not(.btn) { color: var(--c-gold-light); }
.page-head .breadcrumb { color: rgb(255 243 238 / .78); }
.page-head { position: relative; isolation: isolate; }
.page-head > .container { position: relative; z-index: 1; }
.page-head__mark { z-index: 0; opacity: .5 !important; filter: drop-shadow(0 0 1px rgb(243 214 204 / .9)); width: clamp(7rem, 13vw, 11rem) !important; right: clamp(.5rem, 2.5vw, 2.5rem) !important; top: 22% !important; }
.page-head h1 em, .page-head .script { color: var(--c-gold-light); }

/* — Pied de page — */
.site-footer {
  background:
    linear-gradient(rgb(94 46 56 / .72), rgb(94 46 56 / .72)),
    url("/images/ornaments/damask.svg") 0 0 / 120px 120px,
    radial-gradient(120% 100% at 50% 0%, var(--c-red), var(--c-red-deep) 70%);
}
.site-footer::before { content: ""; position: absolute; top: -20px; left: 50%; width: 220px; height: 40px; transform: translateX(-50%); background: url("/images/ornaments/divider.svg") center / contain no-repeat; }
.footer__title, .footer__brand .wordmark__small { color: var(--c-gold-light); }
.footer__brand .wordmark { color: var(--c-ivory); }

/* — Badges — */
.badge--confirmed { background: var(--c-pistache); }
.badge--accent { background: var(--c-dragee); }

/* — Back-office : barre latérale posée sur le fond rose gold — */
.admin__side { color: var(--c-ivory); }
.admin__side .wordmark, .admin__side .wordmark__name { color: var(--c-ivory); }
.admin__side .wordmark__small, .admin__tag { color: var(--c-gold-light); }
.admin__nav a, .admin__foot-link { color: var(--c-ivory); }
.admin__nav a:hover, .admin__foot-link:hover { background: rgb(255 255 255 / .14); color: var(--c-white); }
.admin__nav a[aria-current="page"] { color: var(--c-brown); }
.admin__side .admin__count { background: var(--c-ivory); color: var(--c-accent-ink); }
