/*
  normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
*/

.rw-scaffold *,
.rw-scaffold ::after,
.rw-scaffold ::before {
  box-sizing: inherit;
}
.rw-scaffold main {
  color: #4a5568;
  display: block;
}
.rw-scaffold h1,
.rw-scaffold h2 {
  margin: 0;
}
.rw-scaffold a {
  background-color: transparent;
}
.rw-scaffold ul {
  margin: 0;
  padding: 0;
}
.rw-scaffold input {
  font-family: inherit;
  font-size: 100%;
  overflow: visible;
}
.rw-scaffold input:-ms-input-placeholder {
  color: #a0aec0;
}
.rw-scaffold input::-ms-input-placeholder {
  color: #a0aec0;
}
.rw-scaffold input::placeholder {
  color: #a0aec0;
}
.rw-scaffold table {
  border-collapse: collapse;
}

/*
  Style
*/

.rw-scaffold,
.rw-toast {
  background-color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol', 'Noto Color Emoji';
}
.rw-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem 1rem 2rem;
}
.rw-main {
  margin-left: 1rem;
  margin-right: 1rem;
  padding-bottom: 1rem;
}
.rw-segment {
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: #e5e7eb;
  overflow: hidden;
  width: 100%;
  scrollbar-color: #a1a1aa transparent;
}
.rw-segment::-webkit-scrollbar {
  height: initial;
}
.rw-segment::-webkit-scrollbar-track {
  background-color: transparent;
  border-color: #e2e8f0;
  border-style: solid;
  border-radius: 0 0 10px 10px;
  border-width: 1px 0 0 0;
  padding: 2px;
}
.rw-segment::-webkit-scrollbar-thumb {
  background-color: #a1a1aa;
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 10px;
}
.rw-segment-header {
  background-color: #e2e8f0;
  color: #4a5568;
  padding: 0.75rem 1rem;
}
.rw-segment-main {
  background-color: #f7fafc;
  padding: 1rem;
}
.rw-link {
  color: #4299e1;
  text-decoration: underline;
}
.rw-link:hover {
  color: #2b6cb0;
}
.rw-forgot-link {
  font-size: 0.75rem;
  color: #a0aec0;
  text-align: right;
  margin-top: 0.1rem;
}
.rw-forgot-link:hover {
  font-size: 0.75rem;
  color: #4299e1;
}
.rw-heading {
  font-weight: 600;
}
.rw-heading.rw-heading-primary {
  font-size: 1.25rem;
}
.rw-heading.rw-heading-secondary {
  font-size: 0.875rem;
}
.rw-heading .rw-link {
  color: #4a5568;
  text-decoration: none;
}
.rw-heading .rw-link:hover {
  color: #1a202c;
  text-decoration: underline;
}
.rw-cell-error {
  font-size: 90%;
  font-weight: 600;
}
.rw-form-wrapper {
  box-sizing: border-box;
  font-size: 0.875rem;
  margin-top: -1rem;
}
.rw-cell-error,
.rw-form-error-wrapper {
  padding: 1rem;
  background-color: #fff5f5;
  color: #c53030;
  border-width: 1px;
  border-color: #feb2b2;
  border-radius: 0.25rem;
  margin: 1rem 0;
}
.rw-form-error-title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
}
.rw-form-error-list {
  margin-top: 0.5rem;
  list-style-type: disc;
  list-style-position: inside;
}
.rw-button {
  border: none;
  color: #718096;
  cursor: pointer;
  display: flex;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.025em;
  border-radius: 0.25rem;
  line-height: 2;
  border: 0;
}
.rw-button:hover {
  background-color: #718096;
  color: #fff;
}
.rw-button.rw-button-small {
  font-size: 0.75rem;
  border-radius: 0.125rem;
  padding: 0.25rem 0.5rem;
  line-height: inherit;
}
.rw-button.rw-button-green {
  background-color: #48bb78;
  color: #fff;
}
.rw-button.rw-button-green:hover {
  background-color: #38a169;
  color: #fff;
}
.rw-button.rw-button-blue {
  background-color: #3182ce;
  color: #fff;
}
.rw-button.rw-button-blue:hover {
  background-color: #2b6cb0;
}
.rw-button.rw-button-red {
  background-color: #e53e3e;
  color: #fff;
}
.rw-button.rw-button-red:hover {
  background-color: #c53030;
}
.rw-button-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 0.25rem;
}
.rw-button-group {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0.5rem;
}
.rw-button-group .rw-button {
  margin: 0 0.25rem;
}
.rw-form-wrapper .rw-button-group {
  margin-top: 2rem;
  margin-bottom: 0;
}
.rw-label {
  display: block;
  margin-top: 1.5rem;
  color: #4a5568;
  font-weight: 600;
  text-align: left;
}
.rw-label.rw-label-error {
  color: #c53030;
}
.rw-input {
  display: block;
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.5rem;
  border-width: 1px;
  border-style: solid;
  border-color: #e2e8f0;
  color: #4a5568;
  border-radius: 0.25rem;
  outline: none;
}
.rw-check-radio-item-none {
  color: #4a5568;
}
.rw-check-radio-items {
  display: flex;
  justify-items: center;
}
.rw-input[type='checkbox'] {
  display: inline;
  width: 1rem;
  margin-left: 0;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}
.rw-input[type='radio'] {
  display: inline;
  width: 1rem;
  margin-left: 0;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}
.rw-input:focus {
  border-color: #a0aec0;
}
.rw-input-error {
  border-color: #c53030;
  color: #c53030;
}

.rw-input-error:focus {
  outline: none;
  border-color: #c53030;
  box-shadow: 0 0 5px #c53030;
}

.rw-field-error {
  display: block;
  margin-top: 0.25rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #c53030;
}
.rw-table-wrapper-responsive {
  overflow-x: auto;
}
.rw-table-wrapper-responsive .rw-table {
  min-width: 48rem;
}
.rw-table {
  table-layout: auto;
  width: 100%;
  font-size: 0.875rem;
}
.rw-table th,
.rw-table td {
  padding: 0.75rem;
}
.rw-table td {
  background-color: #ffffff;
  color: #1a202c;
}
.rw-table tr:nth-child(odd) td,
.rw-table tr:nth-child(odd) th {
  background-color: #f7fafc;
}
.rw-table thead tr {
  color: #4a5568;
}
.rw-table th {
  font-weight: 600;
  text-align: left;
}
.rw-table thead th {
  background-color: #e2e8f0;
  text-align: left;
}
.rw-table tbody th {
  text-align: right;
}
@media (min-width: 768px) {
  .rw-table tbody th {
    width: 20%;
  }
}
.rw-table tbody tr {
  border-top-width: 1px;
}
.rw-table input {
  margin-left: 0;
}
.rw-table-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 17px;
  padding-right: 0.25rem;
}
.rw-table-actions .rw-button {
  background-color: transparent;
}
.rw-table-actions .rw-button:hover {
  background-color: #718096;
  color: #fff;
}
.rw-table-actions .rw-button-blue {
  color: #3182ce;
}
.rw-table-actions .rw-button-blue:hover {
  background-color: #3182ce;
  color: #fff;
}
.rw-table-actions .rw-button-red {
  color: #e53e3e;
}
.rw-table-actions .rw-button-red:hover {
  background-color: #e53e3e;
  color: #fff;
}
.rw-text-center {
  text-align: center;
}
.rw-login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24rem;
  margin: 4rem auto;
  flex-wrap: wrap;
}
.rw-login-container .rw-form-wrapper {
  width: 100%;
  text-align: center;
}
.rw-login-link {
  margin-top: 1rem;
  color: #4a5568;
  font-size: 90%;
  text-align: center;
  flex-basis: 100%;
}
.rw-webauthn-wrapper {
  margin: 1.5rem 1rem 1rem;
  line-height: 1.4;
}
.rw-webauthn-wrapper h2 {
  font-size: 150%;
  font-weight: bold;
  margin-bottom: 1rem;
}
/* ============================================================
   Ateliers du Soleil — admin (Éditeur de contenu)
   Faithful port of the approved design prototype
   « Éditeur de contenu.html » — keep class names aligned with it.
   ============================================================ */

:root {
  --red: #e0342a;
  --orange: #ee7326;
  --gold: #f4c233;
  --green: #5ba653;
  --sky: #2e89c4;
  --navy: #22314f;
  --violet: #8b3e94;
  --ink: #23202a;
  --muted: #6c6772;
  --line: #e9e4db;
  --line2: #f0ece4;
  --bg: #f4f1ea;
  --card: #ffffff;
  --shadow: 0 8px 30px rgba(60, 40, 15, 0.1);
}

.admin {
  font-family: 'Figtree', sans-serif;
  color: var(--ink);
  background: var(--bg);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.admin *,
.admin *::before,
.admin *::after {
  box-sizing: border-box;
}
.admin button {
  font-family: inherit;
  cursor: pointer;
}
.admin input,
.admin select,
.admin textarea {
  font-family: inherit;
}
.admin ::selection {
  background: #fbd9a0;
}
.admin h1,
.admin h2,
.admin h3,
.admin p,
.admin figure {
  margin: 0;
}

/* top bar */
.topbar {
  height: 58px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 16px;
  position: relative;
  z-index: 30;
}
.topbar .left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar .logo img {
  height: 34px;
  display: block;
}
.topbar .crumb {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .crumb b {
  color: var(--ink);
  font-weight: 700;
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  border: 0;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 9px;
  transition: 0.13s;
  white-space: nowrap;
}
.btn-ghost {
  background: var(--bg);
  color: var(--ink);
}
.btn-ghost:hover {
  background: #ece7de;
}
/* button with a leading icon (← Gestion, 👁 Aperçu) */
.btn-ico {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: #c52a20;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* shells */
.shell {
  display: grid;
  grid-template-columns: 1fr 308px;
  height: calc(100vh - 58px);
}
.full {
  height: calc(100vh - 58px);
  overflow-y: auto;
}
.col-right {
  background: var(--card);
  border-left: 1px solid var(--line);
  height: 100%;
  overflow-y: auto;
}
.editmain {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ===== classic toolbar ===== */
.etoolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 8px 16px;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.tb {
  height: 34px;
  min-width: 34px;
  border-radius: 7px;
  border: 0;
  background: none;
  color: #3f3a47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  padding: 0 8px;
}
.tb:hover {
  background: var(--bg);
}
.tb.on {
  background: #fbefe6;
  color: var(--orange);
}
.tb.tbtxt {
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}
/* text-colour picker */
.tbcolor {
  position: relative;
  display: inline-flex;
}
.tbcolor-btn {
  flex-direction: column;
  gap: 2px;
}
.tbcolor-a {
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.tbcolor-bar {
  width: 16px;
  height: 3px;
  border-radius: 2px;
}
.tbcolor-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(120, 70, 20, 0.16);
  padding: 10px;
}
.tbcolor-grid {
  display: grid;
  grid-template-columns: repeat(4, 22px);
  gap: 6px;
}
.tbcolor-sw {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
}
.tbcolor-sw.on {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.tbcolor-none {
  background:
    linear-gradient(
      45deg,
      transparent 46%,
      var(--red) 46%,
      var(--red) 54%,
      transparent 54%
    ),
    #fff;
}
.tbcolor-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b6470;
}
.tbcolor-custom input[type='color'] {
  width: 34px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.tsep {
  width: 1px;
  height: 24px;
  background: var(--line);
  margin: 0 5px;
}

/* document */
.epagewrap {
  padding: 30px 30px 90px;
  display: flex;
  justify-content: center;
}
.page {
  width: 100%;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cover {
  aspect-ratio: 16/8;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.cover .imgtools {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(20, 16, 24, 0.28);
  opacity: 0;
  transition: 0.15s;
}
.cover:hover .imgtools {
  opacity: 1;
}
.cover .imgbtn {
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cover .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 16, 24, 0.8);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 7px;
}
.pbody {
  padding: 30px 38px 44px;
}
.ptype {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.pdate {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.admin [contenteditable] {
  outline: 0;
  border-radius: 6px;
}
.admin [contenteditable]:empty::before {
  content: attr(data-ph);
  color: #b3aeb9;
}
.ptitle {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
  padding: 2px 2px;
}
.ptitle:focus {
  box-shadow: 0 0 0 2px #f0e3d2;
}
/* Title is a borderless input so the document reads like paper */
input.ptitle {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  outline: 0;
  border-radius: 6px;
}
input.ptitle::placeholder {
  color: #b3aeb9;
}
.pcontent {
  font-size: 16.5px;
  line-height: 1.72;
  color: #3f3a47;
  min-height: 160px;
  padding: 2px;
}
.pcontent:focus {
  box-shadow: 0 0 0 2px #f0e3d2;
  border-radius: 8px;
}
.pcontent p {
  margin: 0 0 14px;
}
.pcontent h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 18px 0 10px;
  color: var(--ink);
}
.pcontent h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--ink);
}
.pcontent a {
  color: var(--red);
  text-decoration: underline;
}
.pcontent ul,
.pcontent ol {
  margin: 0 0 14px;
  padding-left: 24px;
}
.pcontent li {
  margin-bottom: 5px;
}
/* TipTap placeholder (mirrors the prototype's data-ph behavior) */
.pcontent p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
  color: #b3aeb9;
}

/* inline image */
.pcontent figure.inl-img,
.sv-body figure.inl-img {
  margin: 18px 0;
  position: relative;
}
.pcontent figure.inl-img .imgbox,
.sv-body figure.inl-img .imgbox {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pcontent figure.inl-img .imgbox img,
.sv-body figure.inl-img .imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcontent figure.inl-img figcaption,
.sv-body figure.inl-img figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 9px;
  font-style: italic;
  outline: 0;
}
.pcontent figure.inl-img figcaption:empty::before {
  content: 'Ajouter une légende…';
  color: #bcb7c1;
}
.imgctl {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: 0.12s;
  z-index: 2;
}
.pcontent figure.inl-img:hover .imgctl {
  opacity: 1;
}
.imgctl button {
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 700;
}
.imgctl button:hover {
  color: var(--red);
}

/* inline video — mirrors figure.inl-img; dark box reads better behind a
   letterboxed <video> than the cream surface */
.pcontent figure.inl-video,
.sv-body figure.inl-video {
  margin: 18px 0;
  position: relative;
}
.pcontent figure.inl-video .vidbox,
.sv-body figure.inl-video .vidbox,
.pcontent figure.inl-video > video,
.sv-body figure.inl-video > video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #1b1820;
}
.pcontent figure.inl-video .vidbox video,
.pcontent figure.inl-video > video,
.sv-body figure.inl-video .vidbox video,
.sv-body figure.inl-video > video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.pcontent figure.inl-video:hover .imgctl {
  opacity: 1;
}
/* upload progress overlay on the in-editor video */
.medup {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(27, 24, 32, 0.92), transparent);
  color: #fff;
}
.medup-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.medup-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.15s ease;
}
.medup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.medup-row button {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 7px;
}
.medup-row button:hover {
  background: rgba(255, 255, 255, 0.28);
}
.medup-row button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* toolbar inline upload progress (image button row) */
.tbprog {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  padding: 0 8px;
  white-space: nowrap;
}

/* inline PDF attachment — quiet utility card, opens in a new tab */
.pdf-wrap {
  position: relative;
  margin: 18px 0;
}
.pcontent .pdf-attach,
.sv-body .pdf-attach {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, #fbf7f0);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.pcontent .pdf-attach .pdf-ico,
.sv-body .pdf-attach .pdf-ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--red);
  background: #fbe9e6;
}
.pcontent .pdf-attach .pdf-meta,
.sv-body .pdf-attach .pdf-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.pcontent .pdf-attach .pdf-name,
.sv-body .pdf-attach .pdf-name {
  font-weight: 700;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcontent .pdf-attach .pdf-act,
.sv-body .pdf-attach .pdf-act {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.pdf-wrap:hover .pdf-attach {
  border-color: #f3dcc2;
  box-shadow: 0 4px 14px rgba(120, 70, 20, 0.08);
}
.pdf-wrap:hover .imgctl {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .medup-bar span,
  .pcontent .pdf-attach,
  .sv-body .pdf-attach {
    transition: none;
  }
}

/* right panel */
.rsec {
  padding: 20px 20px;
  border-bottom: 1px solid var(--line2);
}
.rsec h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.field {
  margin-bottom: 14px;
}
.field:last-child {
  margin-bottom: 0;
}
.field label,
.field .flabel {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 115, 38, 0.12);
}

/* Auto-save feedback: a field pulses gold while saving, settles green when
   saved, with a transient "✓ Enregistré" chip. */
.field input,
.field textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field.is-saving input,
.field.is-saving textarea {
  border-color: var(--gold);
  animation: fieldSaving 1s ease-in-out infinite;
}
@keyframes fieldSaving {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(244, 194, 51, 0.1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(244, 194, 51, 0.28);
  }
}
.field.is-saved input,
.field.is-saved textarea {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 166, 83, 0.16);
}
.fsaved {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  animation: fsavedIn 0.22s ease-out;
}
.field .flabel .fsaved {
  margin-top: 0;
  margin-left: 8px;
}
@keyframes fsavedIn {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .field.is-saving input,
  .field.is-saving textarea {
    animation: none;
    box-shadow: 0 0 0 3px rgba(244, 194, 51, 0.2);
  }
  .fsaved {
    animation: none;
  }
}
.statusrow {
  display: flex;
  gap: 8px;
}
.statusrow button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.statusrow button.on[data-v='Publié'] {
  border-color: var(--green);
  color: var(--green);
  background: #f1f8ef;
}
.statusrow button.on[data-v='Brouillon'],
.statusrow button.on[data-v='Masqué'] {
  border-color: var(--gold);
  color: #b5860c;
  background: #fdf8ea;
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.swatches button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid transparent;
}
.swatches button.on {
  border-color: var(--ink);
}
.metaline {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.pi-st {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* toggle switch */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tg {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--line);
  border: 0;
  position: relative;
  transition: 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.tg.on {
  background: var(--green);
}
.tg::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: 0.15s;
}
.tg.on::after {
  left: 20px;
}
.switch span {
  font-size: 13.5px;
  font-weight: 600;
}

/* tags editor */
.tagbox {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.tagchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fbefe6;
  color: #b8531e;
  border: 1px solid #f3d6bf;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 6px 4px 11px;
  border-radius: 999px;
}
.tagchip button {
  border: 0;
  background: none;
  color: #c98a5e;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  padding: 0;
}
.tagchip button:hover {
  background: #f3d6bf;
  color: var(--red);
}
.taginput {
  position: relative;
}
.taginput input {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
}
.taginput input:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 115, 38, 0.12);
}
.tagsug {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 4px;
  box-shadow: var(--shadow);
  z-index: 5;
  overflow: hidden;
}
.tagsug button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.tagsug button:hover {
  background: var(--bg);
  color: var(--orange);
}

/* ===== management ===== */
.mgr {
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 30px 70px;
}
.mgrhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.mgrhead h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.mgrhead p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs a,
.tabs button {
  border: 0;
  background: none;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 11px 16px;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  cursor: pointer;
}
.tabs a.on,
.tabs button.on {
  color: var(--red);
  border-color: var(--red);
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
}
.filters button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.table {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trow {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line2);
}
.trow:last-child {
  border-bottom: 0;
}
.trow.thead {
  background: #fbf9f4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 18px;
}
.trow:not(.thead):hover {
  background: #fcfaf6;
}
.t-art {
  grid-template-columns: 58px 1fr 116px 88px;
}
.t-page {
  grid-template-columns: 1fr 150px 130px 110px 88px;
}
.tthumb {
  width: 58px;
  height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ttitle {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--ink);
}
.texc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
.minitag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}
.tslug {
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
}
.pill.pub {
  background: #f1f8ef;
  color: var(--green);
}
.pill.draft {
  background: #fdf8ea;
  color: #b5860c;
}
.tactions {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
}
.iconbtn {
  border: 0;
  background: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 0;
}
.iconbtn:hover {
  background: var(--bg);
  color: var(--ink);
}
.iconbtn.dng:hover {
  color: var(--red);
}

/* tags manager */
.tagmgr {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tagcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tagcard .nm {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tagcard .nm .pt {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--orange);
}
.tagcard .ct {
  font-size: 12.5px;
  color: var(--muted);
}
.tagcard .acts {
  display: flex;
  gap: 2px;
}
.addtagbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 420px;
}
.addtagbar input {
  flex: 1;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
}
.addtagbar input:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 115, 38, 0.12);
}

/* ===== réglages (no prototype — same design language) ===== */
.cfgwrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
/* When a page stacks several cells (e.g. Stockage), keep the same 18px rhythm
   between their grids as within them. */
.cfgwrap + .cfgwrap {
  margin-top: 18px;
}
.cfgcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.cfgcard > h2 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}
.cfgcard.span2 {
  grid-column: span 2;
}
.cardrow {
  display: grid;
  grid-template-columns: 24px 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line2);
}
.cardrow:last-child {
  border-bottom: 0;
}
.cardrow.no-thumb {
  grid-template-columns: 24px 1fr auto;
}
.cardrow .ord {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cardrow .ord button {
  border: 0;
  background: none;
  color: var(--muted);
  width: 22px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 10px;
  padding: 0;
}
.cardrow .ord button:hover:not(:disabled) {
  background: var(--bg);
  color: var(--ink);
}
.cardrow .ord button:disabled {
  opacity: 0.3;
  cursor: default;
}
.cardrow .cthumb {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.cfgempty {
  font-size: 13.5px;
  color: var(--muted);
  padding: 14px 0;
}
/* institution logos (Institutions) */
.cfghint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: -8px 0 16px;
  max-width: 62ch;
}
.instrow {
  display: grid;
  grid-template-columns: 24px auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line2);
}
.instrow:last-child {
  border-bottom: 0;
}
.instrow .plogo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 6px 12px;
}
.instrow .plogo img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.instrow .plogo {
  width: 92px;
  height: 46px;
  padding: 4px 8px;
}
.instrow .plogo .noimg {
  color: var(--line);
  display: grid;
  place-items: center;
}
/* the homepage flag sits under the name, reusing the toggle switch */
.instflag {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  cursor: pointer;
}
.instflag span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
/* per-page institution toggles in the editor panel */
.instpick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.instpick .switch span {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.tg:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ===== page modules (logo + horaires, F7) ===== */
/* the "add module" affordance — a dashed, full-width invitation */
.modadd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.modadd:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.modadd:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.modadd:disabled {
  opacity: 0.6;
}
/* present-module controls (replace / remove) */
.modbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.modbtn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.modbtn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.modbtn:disabled {
  opacity: 0.6;
}
.modbtn-rm:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.modlogo-prev {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f2;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.modlogo-prev img {
  display: block;
  max-width: 100%;
  max-height: 96px;
  width: auto;
  object-fit: contain;
}
.modlogo-acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* opening-hours editable rows */
.hoursrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.hoursrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}
.hoursrow-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hoursrow-fields input {
  width: 100%;
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
}
.hoursrow-fields input:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 115, 38, 0.12);
}
.hoursrow-acts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rowbtn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
}
.rowbtn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.rowbtn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.rowbtn:disabled {
  opacity: 0.4;
}
.rowbtn-rm:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.hoursfoot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== équipe manager ===== */
.teamsecrow {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line2);
}
.teamsecrow:last-child {
  border-bottom: 0;
}
/* add-a-member form: photo picker beside the name fields */
.teamadd {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.teamphoto-pick {
  flex-shrink: 0;
  width: 92px;
  height: 115px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: var(--bg);
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
}
.teamphoto-pick.has {
  border-style: solid;
  border-color: var(--line);
}
.teamphoto-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teamphoto-pick .ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.teamphoto-pick:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}
.teamphoto-pick:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
/* section assignment chips (toggle buttons) */
.teamsecpick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 999px;
}
.chip.sm {
  font-size: 12px;
  padding: 4px 11px;
}
.chip.on {
  /* Softer than a hard black fill: a warm orange tint that reads "selected"
     without shouting. */
  background: #fdeee5;
  color: var(--orange);
  border-color: #fad2ba;
}
.chip:hover:not(.on) {
  border-color: var(--orange);
  color: var(--orange);
}
/* "+ Section" affordance for adding a member to a section they're not in. */
.chip.add {
  border-style: dashed;
}
.chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
/* existing-members gallery */
.teamgrid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.teamcard-admin {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px 16px;
}
/* top row: portrait · name · actions */
.teamcard-top {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
}
.teamphoto-admin {
  width: 48px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.teamphoto-admin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmlabel {
  margin: 15px 0 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
/* per-section function slots — one soft lozenge per membership */
.tmslots {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tmslot {
  background: #f8f4ec;
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 9px 11px 11px;
}
.tmslot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.tmslot-sec {
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tmslot-x {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  padding: 3px;
  border-radius: 6px;
  cursor: pointer;
}
.tmslot-x:hover {
  color: var(--red);
  background: rgba(224, 52, 42, 0.08);
}
.tmslot-x:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.tmslot .field {
  margin: 0;
}
.tmslot .field input {
  background: #fff;
  padding: 7px 9px;
  font-size: 13px;
}
/* add-to-a-section footer */
.tmadd {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line2);
}
.tmadd-label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.tmadd .teamsecpick {
  margin-top: 0;
}

/* ===== site preview ===== */
.sv {
  background: #fcfaf6;
}
.sv-banner {
  background: var(--orange);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
}
.sv-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.sv-head .in {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 26px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sv-head img {
  height: 46px;
}
.sv-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.sv-nav span {
  font-weight: 600;
  font-size: 13.5px;
  color: #46414d;
  padding: 7px 10px;
  border-radius: 7px;
}
.sv-nav span.on {
  color: var(--red);
}
.sv-art {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 26px 70px;
}
.sv-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
.sv-back:hover {
  color: var(--red);
}
.sv-cover {
  aspect-ratio: 16/7;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.sv-date {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.sv-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 8px 0 20px;
}
.sv-body {
  font-size: 17.5px;
  line-height: 1.75;
  color: #3f3a47;
}
.sv-body p {
  margin: 0 0 16px;
}
.sv-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 24px 0 12px;
}
.sv-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 18px 0 10px;
}
.sv-body a {
  color: var(--red);
  text-decoration: underline;
}
.sv-body ul,
.sv-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.sv-body figure.inl-img {
  margin: 22px 0;
}
.sv-body figure.inl-img .imgbox {
  aspect-ratio: 16/9;
  border-radius: 14px;
}
.sv-body figure.inl-img .imgbox .lab,
.sv-body .imgctl {
  display: none;
}
.sv-body figure.inl-img figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.sv-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.sv-tags span {
  font-size: 13px;
  font-weight: 700;
  color: #b8531e;
  background: #fbefe6;
  padding: 5px 13px;
  border-radius: 999px;
}
.sv-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* toast — react-hot-toast styled as the prototype's dark pill */
.admin-toast {
  background: var(--ink) !important;
  color: #fff !important;
  font-family: 'Figtree', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 14px !important;
  border-radius: 11px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3) !important;
}

/* loading / empty states */
.admin-loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* inline field validation */
.field input.invalid {
  border-color: var(--red);
}
.field input.invalid:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224, 52, 42, 0.12);
}
.ferr {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.5;
}
.fhint {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

/* slug field with a locked parent prefix */
.slugrow {
  display: flex;
  align-items: stretch;
}
.slugrow .slug-prefix {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  padding: 0 2px 0 11px;
}
.slugrow input {
  flex: 1;
  min-width: 0;
  width: auto;
  border-radius: 0 9px 9px 0;
}
.ferr-fix {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sky);
  text-decoration: underline;
}
.ferr-fix:hover {
  color: var(--navy);
}

/* modal dialog — same card language as the rest of the admin,
   with the logo's spectrum as a thin top border (cf. login card) */
.dlg-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(35, 32, 42, 0.45);
  display: grid;
  place-items: center;
  animation: dlg-fade 0.18s ease;
}
.dlg {
  position: relative;
  overflow: hidden;
  width: min(480px, calc(100vw - 40px));
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 24px 20px;
  outline: 0;
  animation: dlg-rise 0.18s ease;
}
.dlg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    #e0342a 0%,
    #ee7326 18%,
    #f4c233 36%,
    #5ba653 54%,
    #2e89c4 72%,
    #22314f 86%,
    #8b3e94 100%
  );
}
.dlg h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.dlg-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.dlg-body p {
  margin: 0 0 8px;
}
.dlg-body p:last-child {
  margin-bottom: 0;
}
.dlg-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
@keyframes dlg-fade {
  from {
    opacity: 0;
  }
}
@keyframes dlg-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .col-right {
    display: none;
  }
  .t-art {
    grid-template-columns: 48px 1fr 84px;
  }
  .t-art .tcatcol,
  .t-art .tdatecol,
  .t-art .tstatuscol {
    display: none;
  }
  .t-page {
    grid-template-columns: 1fr 110px 84px;
  }
  .t-page .tslugcol,
  .t-page .tmenucol {
    display: none;
  }
  .cfgwrap {
    grid-template-columns: 1fr;
  }
  .cfgcard.span2 {
    grid-column: auto;
  }
}

/* ── Stockage tab: disk gauge, breakdown tables, orphan sweep ─────────── */
.stgauge {
  margin-bottom: 14px;
}
.stgauge-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}
.stgauge-head b {
  font-weight: 800;
}
.stgauge-pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stgauge-track {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.stgauge-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.stgauge-foot {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.stmeta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.sttable {
  margin-top: 4px;
}
.strow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.strow:last-child {
  border-bottom: 0;
}
.strow input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--orange);
}
.sthead {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
}
.stmid {
  flex: 1;
  min-width: 0;
  color: var(--muted);
}
.stkindcol {
  width: 76px;
  flex: none;
}
.stage {
  width: 48px;
  flex: none;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stbytes {
  width: 92px;
  flex: none;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stkind {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}
.stkind-video {
  background: rgba(224, 52, 42, 0.12);
  color: var(--red);
}
.stkind-image {
  background: rgba(91, 166, 83, 0.16);
  color: #3f7d39;
}
.stkind-pdf {
  background: rgba(238, 115, 38, 0.15);
  color: var(--orange);
}
.stkind-other {
  background: rgba(108, 103, 114, 0.14);
  color: var(--muted);
}
.btn.btn-sm {
  padding: 5px 12px;
  font-size: 12.5px;
}
/* ============================================================
   Ateliers du Soleil — site public
   Faithful port of the approved design prototype
   « Site simple - bandeau œuvre.html » — keep class names aligned.
   Scoped under .site (the admin is scoped under .admin).
   ============================================================ */

.site {
  /* the public maquette uses slightly warmer tokens than the admin */
  --line: #efe7da;
  --bg: #fcfaf6;

  font-family: 'Figtree', sans-serif;
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      900px 480px at 84% -10%,
      rgba(244, 194, 51, 0.16),
      transparent 60%
    ),
    linear-gradient(170deg, #fffdf9 0%, #faf6ef 55%, #f5f0e7 100%);
  background-attachment: fixed;
}
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}
.site h1,
.site h2,
.site h3,
.site h4,
.site p,
.site ul,
.site figure {
  margin: 0;
}
.site a {
  color: inherit;
  text-decoration: none;
}
.site img {
  max-width: 100%;
  display: block;
}
.site button {
  font-family: inherit;
  cursor: pointer;
}
.site ::selection {
  background: #fbd9a0;
}
.site .grow {
  flex: 1;
}
/* visually hidden but available to screen readers & search engines */
.site .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 26px;
  width: 100%;
}

/* header — direct child only, so the page-title <header> on the team page
   (nested in .grow) doesn't inherit the sticky nav chrome */
.site > header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 6px 26px rgba(120, 70, 20, 0.09);
}
.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 104px;
}
.hd .logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.hd .logo .lk-sun {
  height: 56px;
  width: auto;
  display: block;
  transition: transform 0.14s;
}
.hd .logo:hover .lk-sun {
  transform: scale(1.04);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #46414d;
  transition: 0.13s;
}
.nav a:hover {
  background: #fbefe6;
  color: var(--orange);
}
.nav a.active {
  color: var(--red);
}

/* "Historique" — external link to the archived site. Set apart with a hairline
   divider + a leaving-the-site arrow, but uses the same nav-link rhythm. */
.nav a.nav-archive {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding-left: 16px;
  color: #6b6470;
  border-left: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}
.nav a.nav-archive:hover {
  background: #fbefe6;
  color: var(--orange);
}
.nav a.nav-archive .ext {
  opacity: 0.6;
}

/* Facebook — social link shown as an icon at the end of the nav. */
.nav a.nav-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #46414d;
}
.nav a.nav-fb:hover {
  background: #fbefe6;
  color: #1877f2;
}
.nav a.nav-fb svg {
  display: block;
}
.nav-fb-label {
  display: none;
}

/* sub-pages dropdown */
.navgrp {
  position: relative;
  display: flex;
  align-items: center;
}
.navgrp > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.navgrp > a .car {
  opacity: 0.55;
}
.navgrp .drop {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  display: none;
  z-index: 50;
}
.navgrp:hover .drop,
.navgrp:focus-within .drop {
  display: block;
}
.drop-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(120, 70, 20, 0.18);
}
.drop-card a {
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 25px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
/* burger morphs to a close (×) while the menu is open */
.nav.open ~ .burger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav.open ~ .burger span:nth-child(2) {
  opacity: 0;
}
.nav.open ~ .burger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== liseré arc-en-ciel + hero épuré ===== */
/* the logo's spectrum, as a thin band across the top of the homepage —
   same gradient as the login card the client loved. */
.rainbow-stripe {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    #e0342a 0%,
    #ee7326 18%,
    #f4c233 36%,
    #5ba653 54%,
    #2e89c4 72%,
    #22314f 86%,
    #8b3e94 100%
  );
}

.herox {
  position: relative;
  text-align: center;
  padding: 66px 0 74px;
}
.herox .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* sun to the left of the wordmark on desktop, stacked on top on mobile */
.herox .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  margin-bottom: 6px;
}
.herox .brand-sun {
  width: clamp(72px, 11vw, 132px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(244, 194, 51, 0.35));
}
.herox .wordmark {
  width: clamp(280px, 52vw, 540px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(224, 52, 42, 0.2));
}
@media (max-width: 640px) {
  .herox .brand {
    flex-direction: column;
    gap: 12px;
  }
}
.herox .htitle {
  margin-top: 16px;
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #2b1d10;
  max-width: 20ch;
}
.herox .htitle b {
  color: var(--red);
  font-weight: 800;
}
.herox .sub {
  font-size: clamp(16px, 1.9vw, 19px);
  color: #5a4632;
  font-weight: 600;
  max-width: 54ch;
  margin-top: 20px;
  line-height: 1.55;
}
.herox .cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}
.herox .cta a {
  font-weight: 700;
  font-size: 15px;
  padding: 13px 25px;
  border-radius: 999px;
  transition: 0.15s;
}
.herox .cta .primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(224, 52, 42, 0.3);
}
.herox .cta .primary:hover {
  background: #c52a20;
  transform: translateY(-2px);
}
.herox .cta .ghost {
  background: rgba(255, 255, 255, 0.72);
  color: #2b1d10;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(120, 70, 20, 0.08);
}
.herox .cta .ghost:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* nos domaines heading */
.hero .dom-title {
  margin: 8px 0 16px;
  text-align: center;
}
.hero .dom-title .k {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.hero .dom-title h2 {
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2b1d10;
  margin-top: 6px;
}

/* ===== hero slideshow ===== */
.hero {
  padding: 18px 0 6px;
}
/* the sticky header is ~104px tall; offset the in-page anchor jump so the
   "Nos domaines d'action" heading lands just below it, not hidden behind it */
#domaines {
  scroll-margin-top: 120px;
}
.slides {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(120, 70, 20, 0.2);
  aspect-ratio: 21/9;
  min-height: 340px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0s linear 0.6s;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  pointer-events: none;
}
.slide.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
  pointer-events: auto;
}
.slide .cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.slide .cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 12, 8, 0.78) 0%,
    rgba(20, 12, 8, 0.5) 42%,
    rgba(20, 12, 8, 0.1) 72%,
    transparent 100%
  );
}
.slide .inner {
  position: relative;
  padding: 42px 48px 50px;
  max-width: 62%;
}
.slide h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 10px 0 10px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.slide p {
  color: #fbeede;
  font-size: clamp(15px, 1.6vw, 17.5px);
  max-width: 46ch;
  line-height: 1.55;
}
.hero .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: 0.14s;
}
.hero .arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.hero .arrow.prev {
  left: 18px;
}
.hero .arrow.next {
  right: 18px;
}
.hero .dots {
  position: absolute;
  left: 48px;
  bottom: 20px;
  z-index: 5;
  display: flex;
  gap: 9px;
}
.hero .dots button {
  width: 30px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: 0.18s;
}
.hero .dots button.on {
  background: #fff;
  width: 42px;
}
/* presentation */
.presentation {
  padding: 30px 0 12px;
}
/* the cards live inside .wrap, so the column gap must sit here — not on the
   section — or multiple cards stack flush against each other. */
.presentation .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.presentation .card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 34px 38px;
  box-shadow: 0 14px 36px rgba(120, 70, 20, 0.12);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.presentation .lead {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.015em;
  color: #2b1d10;
}
.presentation .lead b {
  color: var(--red);
}
.presentation .body p {
  font-size: 15.5px;
  line-height: 1.66;
  color: #4f4a57;
  margin-bottom: 12px;
}
.presentation .body p:last-of-type {
  margin-bottom: 0;
}

/* layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 28px 0 64px;
  align-items: start;
}

/* section title */
.sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 18px;
}
.sechead h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sechead h2::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    var(--gold),
    var(--orange) 70%,
    var(--red)
  );
}

/* featured post */
.feat {
  display: block;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 16px 40px rgba(120, 70, 20, 0.14);
  transition: 0.16s;
}
.feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(120, 70, 20, 0.2);
}
.feat .media {
  aspect-ratio: 16/8;
  position: relative;
  background-size: cover;
  background-position: center;
}
.feat .media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 16, 24, 0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feat .ft {
  padding: 22px 24px 24px;
}
.feat .date {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.feat h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.16;
  margin: 6px 0 8px;
}
.feat:hover h3 {
  color: var(--red);
}
.feat p {
  font-size: 15.5px;
  color: #4f4a57;
}

/* post list */
.posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 6px 20px rgba(120, 70, 20, 0.07);
  transition: 0.16s;
}
.post:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(120, 70, 20, 0.16);
}
.post .thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.post .thumb .mini {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(20, 16, 24, 0.74);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 6px;
}
.post .date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.post h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.22;
  margin: 3px 0 5px;
  letter-spacing: -0.01em;
}
.post:hover h4 {
  color: var(--red);
}
.post p {
  font-size: 14px;
  color: #5a555f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.posts .none {
  font-size: 14.5px;
  color: #6b4a22;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
}

/* sidebar */
.site aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 108px;
}
.box {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(120, 70, 20, 0.1);
}
.box h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.about p {
  font-size: 14.5px;
  color: #4f4a57;
}
.about .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.about .stats .s {
  background: linear-gradient(160deg, #fff6e9, #fdebd8);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.about .stats .n {
  font-size: 24px;
  font-weight: 800;
  color: var(--c);
  line-height: 1;
}
.about .stats .l {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.menu a:last-child {
  border-bottom: 0;
}
.menu a:hover {
  color: var(--orange);
}
.menu a .ar {
  color: var(--line);
}
.menu a:hover .ar {
  color: var(--orange);
}

.contact ul {
  list-style: none;
  font-size: 14.5px;
  color: #4f4a57;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
}
.contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}
.contact a:hover {
  color: var(--red);
}
.contact .cta {
  margin-top: 16px;
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px;
  border-radius: 10px;
  transition: 0.14s;
}
.contact .cta:hover {
  background: #c52a20;
}

/* partners */
.partners {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.partners .wrap {
  padding: 30px 26px;
}
.partners .lbl {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a4a16;
  margin-bottom: 14px;
}
.partners .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.partners .plogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(120, 70, 20, 0.06);
  border-radius: 16px;
  padding: 14px 22px;
}
.partners .plogo img {
  display: block;
  height: 104px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
}
@media (max-width: 880px) {
  .partners .plogo {
    padding: 10px 16px;
  }
  .partners .plogo img {
    height: 64px;
    max-width: 220px;
  }
}

/* footer */
.site footer {
  background: var(--ink);
  color: #bdb8c4;
  font-size: 14px;
}
.site footer .wrap {
  padding: 46px 26px 26px;
}
.fgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 34px;
}
.site footer .logo-chip {
  background: #fff;
  border-radius: 12px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site footer .logo-chip .lk-sun {
  height: 34px;
  width: auto;
}
.site footer .logo-chip .lk-word {
  height: 26px;
  width: auto;
}
.site footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 13px;
  font-weight: 800;
}
.site footer ul {
  list-style: none;
  padding: 0;
}
.site footer li {
  margin-bottom: 8px;
}
.site footer a:hover {
  color: var(--gold);
}
.site footer .fdesc {
  margin-top: 16px;
  max-width: 34ch;
}
.fbot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #857f8d;
}
.fbot .fadmin {
  color: inherit;
  margin-left: auto;
}
.fbot .fadmin:hover {
  color: #fff;
}

/* ===== article & page detail ===== */
.detail {
  padding: 36px 0 70px;
}
.detail .wrap {
  max-width: 860px;
}
.detail .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #6b4a22;
  margin-bottom: 18px;
}
.detail .back:hover {
  color: var(--red);
}
.detail .card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 34px 40px 40px;
  box-shadow: 0 18px 44px rgba(120, 70, 20, 0.14);
}
.detail .cover {
  aspect-ratio: 16/7;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  margin-bottom: 22px;
}
.detail .date {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.detail h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 8px 0 20px;
}
.detail .body {
  font-size: 17.5px;
  line-height: 1.75;
  color: #3f3a47;
}
.detail .body p {
  margin: 0 0 16px;
}
.detail .body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 24px 0 12px;
}
.detail .body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 18px 0 10px;
}
.detail .body a {
  color: var(--red);
  text-decoration: underline;
}
.detail .body ul,
.detail .body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}
.detail .body figure.inl-img {
  margin: 22px 0;
}
.detail .body figure.inl-img .imgbox {
  border-radius: 14px;
  overflow: hidden;
}
.detail .body figure.inl-img img {
  width: 100%;
}
.detail .body figure.inl-img figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.detail .body figure.inl-video {
  margin: 22px 0;
}
.detail .body figure.inl-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 14px;
  background: #1b1820;
}
.detail .body .pdf-attach {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #fff6e9, #fde8d3);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.detail .body .pdf-attach:hover {
  border-color: #f3dcc2;
  box-shadow: 0 6px 18px rgba(120, 70, 20, 0.1);
}
.detail .body .pdf-attach:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.detail .body .pdf-attach .pdf-ico {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--red);
}
.detail .body .pdf-attach .pdf-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.detail .body .pdf-attach .pdf-name {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail .body .pdf-attach .pdf-act {
  font-size: 13px;
  font-weight: 600;
  color: #b8531e;
}
@media (prefers-reduced-motion: reduce) {
  .detail .body .pdf-attach {
    transition: none;
  }
}
.detail .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.detail .tags span {
  font-size: 13px;
  font-weight: 700;
  color: #b8531e;
  background: #fbefe6;
  padding: 5px 13px;
  border-radius: 999px;
}
.detail .subpages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.detail .subpages a {
  font-size: 13.5px;
  font-weight: 700;
  color: #6b4a22;
  background: linear-gradient(160deg, #fff6e9, #fde8d3);
  border: 1px solid #f3dcc2;
  padding: 7px 15px;
  border-radius: 999px;
  transition: 0.14s;
}
.detail .subpages a:hover {
  color: var(--red);
}
.detail .none {
  text-align: center;
  padding: 60px 0;
  color: #6b4a22;
  font-weight: 600;
}
.detail .none h1 {
  margin-bottom: 10px;
}

/* ===== page modules sidebar (logo + horaires, F7) ===== */
/* Default page: single reading column. When a module is present the wrap
   widens and the content/aside row mirrors the homepage .layout grid. */
.detail .wrap.has-aside {
  max-width: 1080px;
}
.detail .pagerow {
  display: block;
}
.detail .wrap.has-aside .pagerow {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.pageaside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 108px;
}
/* the page's own logo — a clean plate, contained so wide or tall marks fit */
.pagelogo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.pagelogo img {
  display: block;
  max-width: 100%;
  max-height: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* opening hours — a plaque-like label → hours list with hairline rules */
.pagehours .hourslist {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pagehours .hourline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pagehours .hourline:last-child {
  border-bottom: 0;
}
.pagehours dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.pagehours dd {
  margin: 0;
  font-size: 14px;
  color: #4f4a57;
  text-align: right;
}
/* a row with no label (e.g. « Sur rendez-vous ») reads as a full-width note */
.pagehours dt:empty {
  display: none;
}
.pagehours dt:empty + dd {
  text-align: left;
  font-weight: 600;
  color: var(--orange);
}

/* ===== actualités liées (related news, F3) ===== */
/* full-width band below the page content, above the funding stripe */
.related {
  padding: 8px 0 56px;
}
.related .wrap {
  max-width: 1080px;
}
.related-head {
  margin-bottom: 20px;
}
/* echoes the homepage .sechead gold-dot motif so the section reads as ours */
.related-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-head h2::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    var(--gold),
    var(--orange) 70%,
    var(--red)
  );
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.rcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(120, 70, 20, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.rcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(120, 70, 20, 0.16);
}
.rcard:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.rcard-media {
  aspect-ratio: 16 / 9;
  position: relative;
  background-size: cover;
  background-position: center;
}
.rcard-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(20, 16, 24, 0.78);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 7px;
}
.rcard-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rcard-date {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.rcard h3 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.rcard:hover h3 {
  color: var(--red);
}
.rcard p {
  font-size: 14px;
  color: #5a555f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
/* a quiet warm-gradient pill, matching the .subpages chip family */
.loadmore {
  font-size: 14px;
  font-weight: 700;
  color: #6b4a22;
  background: linear-gradient(160deg, #fff6e9, #fde8d3);
  border: 1px solid #f3dcc2;
  padding: 11px 26px;
  border-radius: 999px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}
.loadmore:hover:not(:disabled) {
  color: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(120, 70, 20, 0.14);
}
.loadmore:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.loadmore:disabled {
  opacity: 0.6;
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .rcard,
  .loadmore {
    transition: none;
  }
}
@media (max-width: 880px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* équipe — public team page (shell shared with the contact page) */
.team,
.contact-page {
  padding: 36px 0 70px;
}
.team .wrap,
.contact-page .wrap {
  max-width: 1080px;
}
.team .back,
.contact-page .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #6b4a22;
  margin-bottom: 18px;
}
.team .back:hover,
.contact-page .back:hover {
  color: var(--red);
}
.team-head,
.contact-head {
  margin-bottom: 34px;
}
.team-head .kick,
.contact-head .kick {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.team-head h1,
.contact-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-top: 6px;
}
.team-section {
  margin-top: 36px;
}
.team-section:first-of-type {
  margin-top: 0;
}
/* the section name is a meaningful grouping (the role), with a gold rule
   tying it to the sun identity. Scoped under `.site` so its margin-bottom
   outranks the `.site h2 { margin: 0 }` reset (which is more specific than a
   bare class) — otherwise the headroom below the rule collapses to nothing. */
.site .team-section-title {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 12px;
  /* headroom below the rule so the cards breathe and a hovered card's lift +
     shadow halo never reaches the rule */
  margin-bottom: 44px;
  border-bottom: 2px solid var(--gold);
  /* a hovered card's transform makes it its own stacking context, which would
     otherwise paint on top of a later section's rule; keep the rule above it */
  position: relative;
  z-index: 1;
}
/* fixed-width tracks left-aligned: 1 member reads as intentional, not as a
   lone card stranded in a 3-up grid; any count wraps tidily */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 220px));
  justify-content: start;
  gap: 22px;
}
.team-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(120, 70, 20, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  /* offset close to the blur keeps the halo below the card, not bleeding up */
  box-shadow: 0 20px 34px rgba(120, 70, 20, 0.16);
}
.team-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #ffe7c7, #f5c9c2);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  padding: 15px 18px 18px;
  font-size: 16.5px;
  line-height: 1.3;
}
.team-name .first {
  font-weight: 600;
  color: #5f5a68;
}
.team-name .last {
  font-weight: 800;
  color: var(--ink);
}
.team-role {
  margin-top: -6px;
  padding: 0 18px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b4a22;
}
/* Members without a function still render an (empty) function row so all cards
   in a section share one height — reserve its line with a non-breaking space. */
.team-role:empty::before {
  content: '\00a0';
}
.team-none {
  padding: 30px 0;
  color: #6b4a22;
  font-weight: 600;
}
@media (max-width: 880px) {
  .team-grid {
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* contact — public contact page (formulaire Kerberus/Hermes, ADR 0003) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 26px;
  align-items: start;
}
/* no coordinates to show (or their query failed): the form takes the stage */
.contact-grid.solo {
  grid-template-columns: minmax(0, 720px);
}
.form-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(120, 70, 20, 0.1);
}
.form-card .kick {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.form-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 4px 0 6px;
}
.field {
  display: block;
  margin-top: 14px;
}
.field span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.field input:disabled,
.field textarea:disabled {
  opacity: 0.6;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4f4a57;
}
.consent input {
  flex: none;
  margin-top: 3px;
  accent-color: var(--orange);
}
.ferr {
  margin-top: 8px;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 600;
}
.fprogress {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.fprogress [role='progressbar'] {
  margin-top: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(120, 70, 20, 0.12);
  overflow: hidden;
}
/* the width is driven by the --p custom property (0–100), same precedent as
   the --c stat colour in HomeCell */
.fprogress .bar {
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.2s ease;
}
/* solve finished: the bar settles to a calm, on-brand confirmation */
.fprogress[data-status='ready'] .bar {
  background: var(--gold);
}
.form-alert {
  margin-top: 16px;
  background: rgba(197, 42, 32, 0.07);
  border: 1px solid rgba(197, 42, 32, 0.28);
  border-radius: 12px;
  padding: 14px;
  font-size: 13.5px;
}
.form-alert strong {
  color: var(--red);
}
.form-alert p {
  margin-top: 4px;
  color: #4f4a57;
}
.form-send {
  margin-top: 18px;
  display: block;
  width: 100%;
  text-align: center;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.14s;
}
.form-send:hover {
  background: #c52a20;
}
.form-send:disabled {
  opacity: 0.65;
  cursor: default;
}
.form-done {
  text-align: center;
  padding: 40px 26px;
}
.form-done .tick {
  font-size: 44px;
  color: var(--orange);
}
.form-done h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 4px;
}
.form-done p {
  color: #4f4a57;
  font-size: 14.5px;
}
.form-done .form-send {
  max-width: 320px;
  margin: 18px auto 0;
}
@media (max-width: 880px) {
  .contact-grid,
  .contact-grid.solo {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* loading */
.site-loading {
  padding: 80px 0;
  text-align: center;
  color: #6b4a22;
  font-weight: 600;
}

@media (max-width: 880px) {
  .herox {
    padding: 46px 0 52px;
  }
  .herox .wordmark {
    width: min(76vw, 360px);
    margin-bottom: 4px;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: stretch;
    top: 104px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(120, 70, 20, 0.14);
    gap: 2px;
    z-index: 60;
  }
  /* full-width, left-aligned rows with comfortable tap targets */
  .nav.open a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15.5px;
  }
  .nav.open a.active {
    background: #fbefe6;
  }
  /* in the burger menu, sub-pages are always visible, indented */
  .nav.open .navgrp {
    position: static;
    display: block;
  }
  .nav.open .navgrp > a {
    display: flex;
  }
  .nav.open .navgrp > a .car {
    display: none;
  }
  .nav.open .drop {
    display: block;
    position: static;
    padding-top: 0;
  }
  .nav.open .drop-card {
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  /* sub-pages read as secondary: smaller, muted, tighter */
  .nav.open .drop-card a {
    padding: 9px 14px;
    font-size: 14px;
    color: #6b6470;
  }
  .burger {
    display: flex;
  }
  /* the Facebook icon reads clearer with its label in the stacked menu */
  .nav.open .nav-fb-label {
    display: inline;
  }
  /* stacked in the burger menu: a top divider reads better than a left one */
  .nav.open a.nav-archive {
    margin-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    margin-top: 6px;
    padding-top: 14px;
    color: #6b6470;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site aside {
    position: static;
  }
  .detail .wrap.has-aside .pagerow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pageaside {
    position: static;
  }
  .presentation .card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 24px;
  }
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .slides {
    aspect-ratio: auto;
    min-height: 0;
  }
  .slide {
    position: relative;
    display: none;
  }
  .slide.on {
    display: block;
  }
  .slide .cover {
    position: relative;
    height: 200px;
  }
  .slide .cover::after {
    background: linear-gradient(
      180deg,
      rgba(20, 12, 8, 0.15),
      rgba(20, 12, 8, 0.45)
    );
  }
  .slide .inner {
    max-width: 100%;
    padding: 24px 24px 28px;
    background: #2a1a10;
  }
  .hero .dots {
    left: 24px;
    bottom: auto;
    top: 172px;
  }
  .hero .arrow {
    width: 40px;
    height: 40px;
  }
  .detail .card {
    padding: 26px 22px 30px;
  }
}
@media (max-width: 560px) {
  .post {
    grid-template-columns: 84px 1fr;
    gap: 14px;
  }
  .fgrid {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 0 18px;
  }
}
