@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --ink: #241c16;
  --muted: #6f6458;
  --gold: #9a7844;
  --gold-soft: #c4a574;
  --line: rgba(154, 120, 68, 0.5);
  --night: #161310;
  --cream: #f3eadf;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

button,
.pick,
.ghost {
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.invite {
  color: var(--ink);
  color-scheme: light;
  background:
    radial-gradient(900px 480px at 50% -10%, #fffaf3, transparent 55%),
    var(--paper);
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

a.marque-lien {
  position: fixed;
  right: 16px;
  bottom: 12px;
  z-index: 20;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6d5a48;
  text-decoration: none;
}

body.invite.theme-anniversaire a.marque-lien {
  color: #6a3058;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 48px;
}

.card {
  width: min(460px, 100%);
  text-align: center;
  padding: 48px 28px 36px;
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 7px rgba(244, 239, 230, 0.94),
    0 0 0 8px rgba(154, 120, 68, 0.4);
}

.card.wide {
  width: min(560px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1.script,
.script {
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-weight: 400;
  font-style: normal;
}

h1.script {
  margin: 0;
  font-size: clamp(3.1rem, 12vw, 4.7rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

h1.script.is-long {
  font-size: clamp(2.3rem, 8vw, 3.3rem);
  line-height: 1.05;
}

.date {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date[hidden] {
  display: none;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 8px;
}

.ornament span {
  width: 72px;
  height: 1px;
  background: var(--gold-soft);
}

.ornament i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.lead {
  margin: 18px 0 26px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pick:active {
  transform: scale(0.99);
}

.card[aria-busy="true"] .pick {
  opacity: 0.7;
}

@media (hover: hover) {
  .pick:hover {
    background: #3a2e26;
  }
}

.hint,
.count,
.folder {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
}

.status {
  min-height: 1.4em;
  margin: 18px 0 0;
  font-size: 1.25rem;
}

.status.is-ok {
  color: #3d5c45;
  font-style: italic;
}

.status.is-error {
  color: #8a3e32;
  font-style: italic;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.thumbs:empty {
  display: none;
}

.thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.host-links[hidden] {
  display: none !important;
}

.host-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 26px 0 0;
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

.host-links a,
.folder,
.url {
  color: var(--muted);
}

.host-links a:hover,
.url:hover {
  color: var(--ink);
}

.qr-box {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  line-height: 0;
}

.qr-box img,
.qr-box canvas,
.qr-box table {
  display: block;
}

.url {
  display: block;
  margin-top: 14px;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.4;
  word-break: break-all;
  text-decoration: none;
}

.steps {
  margin: 8px 0 0;
  padding-left: 1.15em;
  text-align: left;
  font-size: 1.15rem;
}

.steps li {
  margin: 8px 0;
  padding-left: 0.2em;
}

.warn {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #c47b6a;
  background: #f8ece7;
  color: #6e3228;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: left;
}

.warn[hidden] {
  display: none !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.folder {
  font-family: "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-style: normal;
  word-break: break-all;
}

body.show {
  overflow: hidden;
  color: var(--cream);
  color-scheme: dark;
  background: var(--night);
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

body.show.ui-idle,
body.show.ui-idle * {
  cursor: none;
}

.stage {
  position: fixed;
  inset: 0 0 120px 0;
  z-index: 1;
}

.frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.15s ease;
}

.frame.is-on {
  opacity: 1;
  z-index: 2;
}

.frame.is-under {
  opacity: 1;
  z-index: 1;
  transition: none;
}

.frame .blur {
  position: absolute;
  inset: -48px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(32px) brightness(0.42) saturate(1.15);
  transform: scale(1.08);
}

.frame img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 92%;
  height: auto;
  max-height: 100%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.frame img:not([src]) {
  visibility: hidden;
}

.frame.is-on img.settled {
  animation: drift var(--hold, 8.5s) linear forwards;
}

.frame.is-on img.yoyo {
  animation: drift-yoyo 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes drift-yoyo {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.5) 100%);
}

.empty {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.empty[hidden] {
  display: none !important;
}

.empty .script {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.95;
}

.empty .wait {
  margin: 18px 0 0;
  color: rgba(243, 234, 223, 0.78);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.caption {
  position: fixed;
  right: 24px;
  bottom: 18px;
  left: 24px;
  z-index: 4;
  text-align: center;
}

.caption[hidden] {
  display: none !important;
}

.caption .script {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.caption .date {
  margin: 4px 0 0;
  color: rgba(243, 234, 223, 0.82);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.controls {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: min(860px, calc(100% - 24px));
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}

body.show.ui-idle .controls {
  opacity: 0;
  pointer-events: none;
}

#sortir[hidden] {
  display: none !important;
}

.controls button,
.controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid rgba(243, 234, 223, 0.35);
  background: rgba(22, 19, 16, 0.55);
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

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

  .frame.is-on img.settled,
  .frame.is-on img.yoyo {
    animation: none;
  }
}

@media print {
  body.invite {
    background: white;
  }

  .card {
    border: none;
    box-shadow: none;
    background: white;
  }

  .no-print {
    display: none !important;
  }
}

.pick[hidden],
.qr-box[hidden],
.form[hidden],
#choix[hidden] {
  display: none !important;
}

body.board-page .wrap {
  align-items: flex-start;
}

.card.board {
  width: min(880px, 100%);
}

.tabs,
#choix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.ghost.is-on {
  background: var(--ink);
  color: var(--paper);
}

.field {
  display: block;
  margin: 14px 0;
  text-align: left;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
}

.text-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-style: italic;
  cursor: pointer;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.actions .pick {
  text-decoration: none;
}

.profil-bouton {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.panneau {
  position: fixed;
  top: 68px;
  right: 16px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 88px);
  overflow: auto;
  padding: 22px 18px 18px;
  background: #fffdf9;
  border: 1px solid var(--line);
  text-align: left;
}

.panneau[hidden] {
  display: none !important;
}

.acces-ligne {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.choix-interfaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  resize: vertical;
}

body.fond-papier { background: #f4efe6; color: var(--ink); }
body.fond-lin { background: #f3ead7; color: #2a2118; }
body.fond-rose { background: #f6e4e1; color: #3a2422; }
body.fond-sauge { background: #e3ebe3; color: #1d2a22; }
body.fond-nuit { background: #161310; color: #f3eadf; }

.carte-trait {
  box-shadow: none;
  border-width: 1px;
}

.carte-nude {
  background: #fff;
  box-shadow: none;
}

.carte-plein {
  background: #241c16;
  color: #f4efe6;
  border-color: #241c16;
}

body.fond-nuit .card,
.carte-plein .eyebrow,
.carte-plein .lead,
.carte-plein .date,
.carte-plein .count {
  color: inherit;
}

#invitation[hidden],
#lien-album[hidden],
#lien-qr[hidden],
#blanc[hidden],
#reglages[hidden] {
  display: none !important;
}

.barre-compte {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  gap: 8px;
}

.barre-compte .profil-bouton,
.barre-compte .invitation-bouton {
  position: static;
}

.invitation-bouton {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid rgba(243, 234, 223, 0.45);
  background: rgba(22, 19, 16, 0.72);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.invitation-bouton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a.profil-bouton {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.retour {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.studio {
  margin: 0;
  color: #e8edf5;
  background: #0e1116;
  font-family: "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.studio-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
}

.studio-marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.studio-logo {
  height: 78px;
  width: auto;
  display: block;
}

.studio-lien {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.studio-lien-fort {
  margin-top: 18px;
  background: #fff;
  color: #0e1116;
  border-color: #fff;
}

.studio-hero,
.studio-galerie,
.studio-fonctions,
.studio-offres,
.studio-contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px 36px;
}

.studio-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding-top: 28px;
}

.studio-kicker {
  margin: 0 0 8px;
  color: #9aa6b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio h1,
.studio-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.studio-texte {
  max-width: 38rem;
  color: #c5ceda;
  font-size: 1.05rem;
}

.studio-hero-photo {
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #171c24;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b8;
  text-align: center;
  padding: 24px;
}

.studio-hero-photo img,
.studio-grille img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-hero-photo img {
  min-height: 320px;
}

.studio-entete h2,
.studio-fonctions h2,
.studio-contact h2,
.compte-bloc h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.studio-entete p,
.studio-fonctions p,
.studio-contact p,
.compte p {
  margin: 0;
  color: #c5ceda;
}

.studio-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.studio-grille img {
  height: 220px;
  border-radius: 14px;
  background: #171c24;
}

.studio-fonctions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.studio-fonctions article,
.studio-offres article,
.compte-bloc {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #141922;
}

.studio-offres {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
  gap: 14px;
}

.studio-prix {
  margin: 0;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #fff;
}

.studio-offres ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.studio-offres li {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-offres p {
  margin: 10px 0 0;
  color: #c5ceda;
}

.studio-contact {
  margin-bottom: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.studio-contact a {
  color: #fff;
}

.studio-avis,
.studio-contact .studio-form {
  max-width: 1120px;
}

.studio-avis {
  margin: 0 auto;
  padding: 12px 24px 8px;
  text-align: center;
}

.studio-avis h2,
.studio-contact h2 {
  margin: 0 0 16px;
}

.studio-avis .studio-form,
.studio-contact .studio-form {
  max-width: 520px;
  text-align: left;
}

.studio-avis .studio-form {
  margin: 8px auto 0;
}

.studio-avis .studio-form .studio-lien-fort {
  justify-self: center;
}

.studio-contact .studio-form {
  margin: 18px auto 0;
}

.studio-form textarea {
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #141922;
  color: #fff;
  font: inherit;
  resize: vertical;
}

.avis-note {
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e8edf5;
}

.avis-note span {
  color: #9aa6b8;
  font-weight: 500;
}

.etoiles-choix {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-top: 6px;
}

.etoiles-choix button {
  border: 0;
  padding: 0 1px;
  background: transparent;
  color: #3d4654;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.etoiles-choix button.is-on {
  color: #f5c451;
}

.avis-liste {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 22px auto 0;
}

.avis-liste article {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #141922;
}

.avis-liste article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.avis-liste strong {
  font-size: 1.05rem;
}

.avis-liste article > div:first-child span {
  color: #9aa6b8;
  font-size: 0.85rem;
}

.avis-liste p {
  margin: 10px 0;
  color: #e8edf5;
}

.avis-liste article > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.avis-liste .coeur {
  border: 0;
  background: transparent;
  color: #9aa6b8;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.avis-liste .coeur.is-on {
  color: #ff6b9a;
}

body.show.theme-anniversaire {
  background: #1b1030;
  color: #ffe9f6;
}

body.show.theme-anniversaire .vignette {
  background: radial-gradient(ellipse at center, transparent 36%, rgba(90, 10, 70, 0.62) 100%);
}

body.show.theme-anniversaire .empty .script,
body.show.theme-anniversaire .caption .script {
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.show.theme-anniversaire .controls button,
body.show.theme-anniversaire .invitation-bouton {
  border-radius: 999px;
  border-color: rgba(255, 150, 210, 0.45);
  background: rgba(48, 12, 58, 0.78);
}

body.invite.theme-anniversaire {
  background: linear-gradient(180deg, #ffe4f4, #fff6df);
  color: #3a1738;
}

body.invite.theme-anniversaire .card {
  border-radius: 28px;
  border-color: #f0b7d4;
  background: #fff;
  box-shadow: 0 18px 50px rgba(120, 30, 80, 0.08);
}

body.invite.theme-anniversaire .script {
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

body.invite.theme-anniversaire .ornament {
  display: none;
}

body.invite.theme-anniversaire .eyebrow {
  color: #c43b78;
}

body.board-page .barre-compte .invitation-bouton {
  border-color: rgba(36, 28, 22, 0.2);
  background: rgba(255, 252, 247, 0.92);
  color: #241c16;
}

body.invite.theme-anniversaire .barre-compte .invitation-bouton {
  border-color: #f0b7d4;
  background: #fff;
  color: #3a1738;
}

body.qr-page.theme-anniversaire {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 95, 162, 0.45), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(125, 92, 255, 0.4), transparent 30%),
    #241028;
  color: #fff6ea;
}

body.qr-page.theme-anniversaire .card {
  border: none;
  border-radius: 32px;
  background: #fffaf6;
  color: #3a1844;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

body.qr-page.theme-anniversaire .card::before {
  content: "";
  display: block;
  height: 8px;
  margin: -48px -28px 28px;
  background: linear-gradient(90deg, #ff5fa2, #ffd36a, #7d5cff);
}

body.qr-page.theme-anniversaire .eyebrow {
  color: #c43b78;
}

body.qr-page.theme-anniversaire .script {
  font-family: "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.qr-page.theme-anniversaire .ornament {
  display: none;
}

body.qr-page.theme-anniversaire .ghost {
  border-color: #f0b7d4;
  border-radius: 999px;
  color: #3a1844;
}

@media (max-width: 800px) {
  .studio-hero,
  .studio-fonctions,
  .studio-offres,
  .studio-grille,
  .compte-vues {
    grid-template-columns: 1fr;
  }
}

button.studio-lien {
  font: inherit;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

button.studio-lien.studio-lien-fort {
  background: #fff;
  color: #0e1116;
}

.admin {
  width: min(980px, calc(100% - 32px));
  margin: 8px auto 64px;
}

.admin-liste {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-ligne {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #151a22;
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-ligne span {
  color: #b7c0ce;
  font-size: 14px;
}

.admin-ligne.is-on {
  border-color: #fff;
}

.admin-fiche {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #151a22;
}

.admin-fiche h2 {
  margin: 4px 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-danger {
  border-color: #a85a5a;
  color: #ffd0d0;
}

.studio-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.studio-auth {
  width: min(480px, calc(100% - 32px));
  margin: 12px auto 80px;
}

.studio-onglets {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.studio-onglets .studio-lien-fort,
.studio-form .studio-lien-fort {
  margin-top: 0;
  justify-self: start;
  width: auto;
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.studio-onglets .is-on {
  background: #fff;
  color: #0e1116;
  border-color: #fff;
}

.studio-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.studio-form label {
  display: grid;
  gap: 6px;
  color: #9aa6b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-form input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #141922;
  color: #fff;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

body.studio .status {
  color: #d7deea;
  font-size: 1rem;
  font-style: normal;
}

body.studio .status.is-error {
  color: #ffb4a8;
}

.studio-form[hidden],
#qr-ouvert[hidden],
#qr-bloque[hidden],
#vue[hidden],
#vide[hidden] {
  display: none !important;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.qr-etapes {
  display: inline-block;
  margin: 14px auto 0;
  padding-left: 1.2em;
  text-align: left;
  font-size: 0.95rem;
}

.qr-etapes li + li {
  margin-top: 6px;
}

.qr-actions button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#carte-qr,
#qr-ouvert {
  text-align: center;
}

#carte-qr {
  border-radius: 28px;
  overflow: hidden;
}

#qr-titre {
  margin: 0;
  font-size: 2.7rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

#carte-qr .qr-box {
  display: block;
  width: max-content;
  margin: 18px auto 0;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(58, 24, 68, 0.12);
}

#carte-qr .qr-box img,
#carte-qr .qr-box canvas {
  display: block;
}

#carte-qr.theme-anniversaire {
  padding-top: 22px;
  background: linear-gradient(180deg, #fff7fb, #fff6e8);
}

#carte-qr.theme-anniversaire::before {
  content: "";
  display: block;
  height: 8px;
  margin: -22px -18px 18px;
  background: linear-gradient(90deg, #ff5fa2, #ffd36a, #7d5cff);
}

@media print {
  body.studio header,
  body.studio .compte-vues > :first-child,
  body.studio #album,
  body.studio .status,
  body.studio #besoin-serveur,
  .no-print {
    display: none !important;
  }

  body.studio {
    background: #fff;
  }

  body.studio #carte-qr {
    box-shadow: none;
  }
}

.compte {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.compte h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.compte-vues {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

#album {
  margin-top: 14px;
}

.studio-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lecteur {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #0b0e13;
}

.lecteur img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lecteur-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lecteur-boutons button,
.lecteur-boutons a,
.album-grille button,
.album-grille a {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.album-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.album-grille figure {
  position: relative;
  margin: 0;
}

.photo-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  padding: 22px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  border-radius: 0 0 10px 10px;
}

.photo-actions button,
.photo-actions a {
  flex: 1 1 0;
  min-height: 28px;
  padding: 4px 6px;
  font-size: 12px;
  white-space: nowrap;
}

.album-grille img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  background: #0b0e13;
}

.vignette-invitation {
  min-height: 220px;
  padding: 18px;
  border-radius: 14px;
}

.vignette-invitation h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.vignette-invitation .studio-kicker,
.vignette-invitation p,
.vignette-invitation h3 {
  color: inherit;
}

.vignette-invitation .qr-box {
  display: inline-block;
  margin-top: 12px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
}

.vignette-invitation.theme-mariage {
  background: #f4efe6;
  color: #241c16;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.vignette-invitation.theme-anniversaire {
  background: linear-gradient(180deg, #ffe4f4, #fff6df);
  color: #3a1738;
}

.vignette-invitation.theme-neutre {
  background: #0b0e13;
}

.site-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 0;
}

.marque {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.site {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero,
.apercu,
.tarif,
.contact {
  text-align: center;
}

.hero .lead,
.contact .lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.vitrine {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
  text-align: left;
}

.ecran,
.carte-mini {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.ecran {
  background: #161310;
  color: #f3eadf;
}

.ecran-titre {
  margin: 0 0 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.glisse {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  height: 160px;
}

.glisse span {
  display: block;
  background: linear-gradient(160deg, #c4a574, #6f6458 55%, #241c16);
}

.glisse span:nth-child(2) {
  background: linear-gradient(180deg, #f6e4e1, #9a7844);
}

.glisse span:nth-child(3) {
  background: linear-gradient(200deg, #e3ebe3, #1d2a22);
}

.carte-mini h2 {
  margin: 8px 0;
  font-size: 2.4rem;
}

.prix {
  margin: 8px 0 0;
  font-family: "Great Vibes", cursive;
  font-size: 4.2rem;
  font-weight: 400;
}

.tarif ul {
  max-width: 18rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 1.35rem;
}

.tarif li + li {
  margin-top: 6px;
}

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

@media (max-width: 700px) {
  .vitrine {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 36px 18px 28px;
  }

  .ornament span {
    width: 48px;
  }

  .stage {
    inset: 0 0 96px 0;
  }
}
