﻿@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Parisienne&display=swap");

:root {
  --paper-base: #f4f2f1;
  --paper-shade: #ebeaeb;
  --paper-vein: rgba(195, 191, 193, 0.28);
  --ink: #171314;
  --muted: #4f4744;
  --accent: #df9aa9;
  --accent-strong: #cd798f;
  --line: rgba(171, 140, 146, 0.34);
  --card-bg: rgba(255, 255, 255, 0.72);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  background-color: var(--paper-base);
  background-image:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 84% 22%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, var(--paper-base), var(--paper-shade));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body::before,
body::after,
main::before,
main::after {
  content: none;
}

@media (min-width: 901px) {
  body {
    background-image: url("assets/fond.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  body::before,
  body::after,
  main::before,
  main::after {
    content: "";
    position: fixed;
    width: min(26vw, 260px);
    aspect-ratio: 460 / 320;
    pointer-events: none;
    z-index: 0;
  }

  body::before {
    top: -6px;
    left: -18px;
    background: url("assets/rose-haut.svg") no-repeat center / contain;
  }

  body::after {
    top: -6px;
    right: -18px;
    background: url("assets/rose-haut.svg") no-repeat center / contain;
    transform: scaleX(-1);
  }

  main::before {
    bottom: -6px;
    right: -18px;
    background: url("assets/rose-bas.svg") no-repeat center / contain;
  }

  main::after {
    bottom: -6px;
    left: -18px;
    background: url("assets/rose-bas.svg") no-repeat center / contain;
    transform: scaleX(-1);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(83, 52, 59, 0.12);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-logo {
  padding: 0;
  overflow: hidden;
}

.badge-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
  font-family: "Parisienne", "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.05rem, 3vw, 2.7rem);
}

h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  margin-bottom: 12px;
}

p,
li,
label,
input,
textarea,
button,
select,
.small {
  font-size: clamp(1.14rem, 1.1vw, 1.35rem);
  line-height: 1.45;
}

strong {
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.notice {
  border: 1px solid rgba(186, 112, 136, 0.45);
  background: rgba(255, 247, 249, 0.9);
  border-radius: 14px;
  padding: 10px 12px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid rgba(190, 145, 156, 0.48);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  padding: 10px 18px;
  font-size: clamp(1.02rem, 1vw, 1.12rem);
  line-height: 1.2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(186, 115, 137, 0.5);
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.46);
}

.btn.danger {
  border-color: rgba(190, 145, 156, 0.48);
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.stack.compact {
  gap: 10px;
}

.adminSections {
  gap: 12px;
}

.adminSection {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 14px 30px rgba(90, 59, 66, 0.13);
  overflow: hidden;
}

.adminSection > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.64);
}

.adminSection > summary::-webkit-details-marker {
  display: none;
}

.adminSection > summary h2 {
  margin: 0;
  grid-column: 1;
}

.adminSection > summary p {
  margin: 0;
  grid-column: 1;
}

.adminSection > summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 700;
  line-height: 1;
}

.adminSection[open] > summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.adminSection[open] > summary::after {
  content: "-";
}

.adminSection > .card {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(90, 59, 66, 0.13);
  backdrop-filter: blur(1px);
}

.full {
  grid-column: 1 / -1;
}

.list {
  margin: 0;
  padding-left: 22px;
}

.cta {
  margin-top: 14px;
}

.form {
  display: grid;
  gap: 12px;
}

.htmlEditor {
  display: grid;
  gap: 8px;
}

.htmlToolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbarBtn {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.1;
}

.rainbow-text {
  display: inline-block;
  background-image: linear-gradient(
    90deg,
    #ff4d4d 0%,
    #ff9f1a 18%,
    #ffd166 36%,
    #2ecc71 54%,
    #3498db 72%,
    #9b59b6 90%,
    #ff4d4d 100%
  );
  background-size: 220% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 4s linear infinite;
}

@keyframes rainbowShift {
  to {
    background-position: 220% center;
  }
}

.form.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form.two-cols .row {
  grid-column: 1 / -1;
}

.menuConfigGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menuConfigCard {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.menuConfigCard legend {
  font-weight: 700;
  padding: 0 6px;
}

label {
  display: grid;
  gap: 6px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  font-family: "Cormorant Garamond", Georgia, serif;
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent-strong);
  flex: 0 0 auto;
}

label.row.align-start {
  align-items: center;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(186, 112, 136, 0.65);
  box-shadow: 0 0 0 3px rgba(211, 154, 170, 0.25);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row.wrap {
  flex-wrap: wrap;
}

.row.space {
  justify-content: space-between;
}

.row.align-start {
  align-items: flex-start;
}

.top-gap {
  margin-top: 10px;
}

.itemRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
}

.memberLineMeta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.memberThumbBtn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.memberThumbBtn:hover {
  border-color: rgba(186, 115, 137, 0.5);
}

.memberThumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memberThumbFallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.memberAllergiesInput {
  width: min(320px, 100%);
  min-width: 220px;
}

.photoOverlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(20, 16, 18, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.photoOverlayDialog {
  position: relative;
  width: min(92vw, 900px);
}

.photoOverlayImg {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(18, 14, 15, 0.92);
}

.photoOverlayClose {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  padding: 8px 12px;
}

body.overlayOpen {
  overflow: hidden;
}

.tableWrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  font-weight: 700;
}

.booleanCell {
  text-align: center;
  white-space: nowrap;
}

.booleanCell input[type="checkbox"] {
  pointer-events: none;
}

.tableThumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.tableThumbFallback {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
}

.feed {
  display: grid;
  gap: 12px;
}

.post {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.postTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.postName {
  font-weight: 700;
}

.postDate {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.postMsg {
  white-space: pre-wrap;
  margin: 10px 0 0;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.photos img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.imageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.imageCard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 8px;
}

.imageCard img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.siteIconPanel {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.siteIconPreview {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px rgba(90, 59, 66, 0.13);
}

.homeImagePicker {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.homeImagePickerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.homeImagePickerCard {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.homeImagePickerCard:hover,
.homeImagePickerCard:focus-visible {
  border-color: rgba(186, 112, 136, 0.65);
  background: rgba(255, 255, 255, 0.96);
}

.homeImagePickerCard:active {
  transform: translateY(1px);
}

.homeImagePickerPreview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.homeImagePickerCaption {
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.3;
  word-break: break-word;
}

.contentPhoto {
  width: min(100%, 560px);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.qrWrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.qrWrap img {
  width: min(280px, 100%);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

.hidden {
  display: none !important;
}

.footer {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 30px;
}

.container.footer {
  background: transparent;
  border-top: none;
}

@media (max-width: 900px) {
  .form.two-cols {
    grid-template-columns: 1fr;
  }

  .menuConfigGrid {
    grid-template-columns: 1fr;
  }

  .siteIconPanel {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 560px;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 18px;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table {
    min-width: 480px;
  }

  .memberThumbBtn,
  .memberThumbFallback {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .memberAllergiesInput {
    min-width: 100%;
  }

  .photoOverlay {
    padding: 12px;
  }
}
