/* V3 - Mobile-first CSS (keeps current look & tokens) */

:root {
  --color_dore: #FFD700;
  --text: #111;
  --muted: #555;
  --bg: #fff;

  --shadow: 6px 6px 12px #555;
  --shadow-sm: 4px 4px 8px #555;

  --container: 1200px;

  /* Mobile-first sizes */
  --header-h: 76px;
  --hamburger-size: 52px;
  --hamburger-bar: 4px;
  --hamburger-gap: 12px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Playfair Display", serif;
}

a { color: inherit; }

/* Layout */
.container {
  width: min(92%, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 6px solid var(--color_dore);
  box-shadow: 4px 4px 10px #555;
  z-index: 1000;
  display: grid;
  align-items: center;
}

.site-main {
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: 12px;
  min-height: calc(100vh - var(--header-h) - 160px);
}

.site-footer {
  border-top: 2px solid var(--color_dore);
  padding: 14px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: center;
  font-family: "Playfair Display", serif;
}

/* Brand (logo + title) */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand__title {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  margin: 0;
  line-height: 1;
}

.brand__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Section title like current */
.h-section {
  font-size: 1.8em;
  margin: 0 0 20px 0;
  border-bottom: 2px solid gold;
  padding-bottom: 8px;
}

/* Forms */
.form {
  max-width: 520px;
}

.form label {
  display: block;
  font-weight: 600;
}

.form input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
}

.form button {
  padding: 10px 12px;
  font-weight: 700;
}

/* Hamburger menu (class-based, still uses input id for label) */
.menu__toggle {
  opacity: 0;
  position: absolute;
}

.menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
}
.menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: rotate(0deg);
}
.menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
.menu__toggle:checked ~ .menu__box {
  left: 0;
}

.menu__btn {
  position: fixed;
  top: calc((var(--header-h) - var(--hamburger-size)) / 2);
  left: 16px;
  width: var(--hamburger-size);
  height: var(--hamburger-size);
  cursor: pointer;
  z-index: 1100;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: var(--hamburger-bar);
  background-color: #616161;
  transition-duration: .25s;
  top: 50%;
  transform: translateY(-50%);
}

.menu__btn > span::before {
  content: '';
  top: calc(50% - var(--hamburger-gap));
  transform: translateY(-50%);
}

.menu__btn > span::after {
  content: '';
  top: calc(50% + var(--hamburger-gap));
  transform: translateY(-50%);
}

.menu__box {
  display: block;
  position: fixed;
  top: 0;
  left: -110%;
  width: min(20em, 86vw);
  height: 100%;
  margin: 0;
  padding: calc(var(--header-h) + 32px) 0 16px;
  list-style: none;
  background-color: #ECEFF1;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
  transition-duration: .25s;
  z-index: 1050;
}

.menu__item {
  display: block;
  padding: 12px 24px;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition-duration: .25s;
}

.menu__item:hover {
  background-color: #CFD8DC;
}

.menu__separator {
  height: 12px;
}

.menu__li--admin {
  margin-top: 1rem;
  border-top: 1px solid #CFD8DC;
}

/* Fullscreen layout */
.layout-fullscreen,
.layout-fullscreen body {
  height: 100%;
}

.fs-root {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.fs-btn {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 2000;
}

/* Reusable fullscreen screen helpers */
.screen-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.screen-title {
  font-size: 48px;
  font-weight: 700;
}

.screen-subtitle {
  font-size: 22px;
  margin-top: 12px;
}

.screen-hint {
  font-size: 18px;
  margin-top: 24px;
  opacity: 0.8;
}

/* Responsive: scale up like current site */
@media (min-width: 900px) {
  :root {
    --header-h: 100px;
    --hamburger-size: 80px;
    --hamburger-bar: 6px;
    --hamburger-gap: 16px;
  }

  .brand__title { font-size: 3rem; }
  .brand__logo { width: 80px; height: 80px; }

  .menu__btn { left: 3em; }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
  }
}

/* ── Live page ────────────────────────────────────────────────────── */
.live-msg {
  background: #f5f0e8;
  border-left: 4px solid var(--gold, #c9a84c);
  padding: .6rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 4px;
}

.live-form {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 480px;
  margin-bottom: 1.8rem;
}
.live-form__row {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.live-form label {
  font-weight: 600;
  font-size: .9rem;
}
.live-form input,
.live-form select {
  padding: .45rem .7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.live-btn {
  display: inline-block;
  padding: .55rem 1.4rem;
  background: var(--gold, #c9a84c);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}
.live-btn:hover { opacity: .88; }
.live-btn--sm { font-size: .85rem; padding: .4rem 1rem; }

.live-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .93rem;
}
.live-table th,
.live-table td {
  padding: .5rem .7rem;
  border-bottom: 1px solid #e5e0d5;
  text-align: left;
}
.live-table thead tr { background: #f5f0e8; }

.live-like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}
.color-dot.green  { background: #3cb371; }
.color-dot.yellow { background: #f0b429; }

/* ── Galerie ──────────────────────────────────────────────────────── */
.gal-container { padding-bottom: 3rem; }

/* Back link */
.gal-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .5rem;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.gal-back:hover { color: var(--color_dore); }

/* Section header */
.gal-section-title {
  margin: 2.5rem 0 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color_dore);
  position: relative;
  padding-bottom: .5rem;
}
.gal-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--color_dore);
}

/* ── Category cards ───────────────────────────────── */
.gal-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.gal-cat-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 16 / 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gal-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.gal-cat-card__img {
  position: absolute;
  inset: 0;
}
.gal-cat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gal-cat-card:hover .gal-cat-card__img img {
  transform: scale(1.06);
}

.gal-cat-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f5f0e8, #e0d9cc);
}

.gal-cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}
.gal-cat-card__name {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}
.gal-cat-card__count {
  font-size: .8rem;
  opacity: .8;
  margin-top: .2rem;
}

/* ── Image mosaic grid (inside category) ─────────── */
.gal-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 1.5rem;
}

.gal-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: #f5f0e8;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gal-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  z-index: 1;
}
.gal-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: filter .25s ease;
}
.gal-item:hover img {
  filter: brightness(1.05);
}
.gal-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .4rem .6rem;
  font-size: .75rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.gal-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pagination ───────────────────────────────────── */
.gal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin: 1rem 0 2rem;
}
.gal-pagination__num,
.gal-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  border: 1px solid #d5d0c8;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.gal-pagination__btn {
  font-size: 1.3rem;
  font-weight: 400;
}
.gal-pagination__num:hover,
.gal-pagination__btn:hover {
  background: var(--color_dore);
  color: #fff;
  border-color: var(--color_dore);
}
.gal-pagination__num--active {
  background: var(--color_dore);
  color: #fff;
  border-color: var(--color_dore);
  pointer-events: none;
}

/* ── Lightbox ─────────────────────────────────────── */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.gal-lightbox--open {
  opacity: 1;
  visibility: visible;
}

.gal-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s, transform .2s;
  z-index: 2;
}
.gal-lightbox__close:hover {
  opacity: 1;
  transform: scale(1.15);
}

.gal-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .6;
  transition: opacity .2s, background .2s;
  z-index: 2;
}
.gal-lightbox__arrow:hover {
  opacity: 1;
  background: rgba(255,255,255,.25);
}
.gal-lightbox__arrow--prev { left: 1rem; }
.gal-lightbox__arrow--next { right: 1rem; }

.gal-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
}
.gal-lightbox__content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}

.gal-lightbox__caption {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .75rem;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  text-align: center;
  max-width: 80vw;
}
.gal-lightbox__counter {
  white-space: nowrap;
  background: rgba(255,255,255,.15);
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
}

/* ── Gallery responsive ──────────────────────────── */
@media (max-width: 600px) {
  .gal-cats {
    grid-template-columns: 1fr;
  }
  .gal-cat-card {
    aspect-ratio: 16 / 9;
  }
  .gal-mosaic {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 5px;
  }
  .gal-item { border-radius: 6px; }
  .gal-lightbox__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
  }
  .gal-lightbox__arrow--prev { left: .4rem; }
  .gal-lightbox__arrow--next { right: .4rem; }
  .gal-lightbox__content img {
    max-width: 96vw;
    max-height: 75vh;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .gal-cats {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-mosaic {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (min-width: 901px) {
  .gal-mosaic {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
}

/* ═══════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════ */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.admin-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}
.admin-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
  transform: translateY(-2px);
}
.admin-card__icon  { font-size: 2.2rem; }
.admin-card__title { font-weight: 700; font-size: 1rem; }
.admin-card__desc  { font-size: .82rem; color: #666; }

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-top: .75rem;
}
.admin-table thead tr {
  background: #2c2c2c;
  color: #fff;
}
.admin-table th,
.admin-table td {
  padding: .55rem .75rem;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
}
.admin-table tbody tr:nth-child(even) { background: #f8f8f8; }
.admin-table tbody tr:hover           { background: #f0f4ff; }
.admin-table__row--active             { background: #eafff0 !important; }

/* Buttons */
.admin-btn {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 6px;
  border: none;
  background: #2c2c2c;
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
}
.admin-btn:hover          { background: #444; }
.admin-btn--sm            { padding: .25rem .6rem; font-size: .8rem; }
.admin-btn--danger        { background: #c0392b; }
.admin-btn--danger:hover  { background: #a93226; }
.admin-btn--success       { background: #27ae60; }
.admin-btn--success:hover { background: #219150; }

/* Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 600px;
  margin-top: 1rem;
}

/* Login card */
.login-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
  min-height: 60vh;
}
.login-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 400px;
}
.login-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.login-card__icon {
  font-size: 2.2rem;
  line-height: 1;
}
.login-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}
.login-card__msg {
  font-size: .88rem;
  color: #555;
  text-align: center;
  margin: 0 0 .75rem;
}
.login-card .admin-form {
  max-width: none;
  margin-top: 0;
}
.login-card .admin-btn {
  width: 100%;
  justify-content: center;
  padding: .6rem;
  font-size: 1rem;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 600;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  resize: vertical;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { outline: 2px solid #2c2c2c; }

/* Two-column layout (contacts) */
.admin-two-col {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) {
  .admin-two-col { grid-template-columns: 1fr; }
}
.admin-two-col__list {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
}
.admin-two-col__list ul { list-style: none; margin: 0; padding: 0; }
.admin-two-col__list li a {
  display: block;
  padding: .65rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
  font-size: .88rem;
  transition: background .15s;
}
.admin-two-col__list li a:hover,
.admin-two-col__list li a.active { background: #f0f4ff; }
.admin-two-col__list li.unread a { font-weight: 700; }
.admin-two-col__detail {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 1.5rem;
  min-height: 300px;
}
.admin-two-col__detail h4 { margin-top: 0; font-size: 1.05rem; }

/* Messages / notices */
.admin-msg {
  padding: .7rem 1rem;
  margin: .75rem 0;
  border-radius: 6px;
  font-weight: 600;
  background: #eafff0;
  border: 1px solid #27ae60;
  color: #1a5c36;
}
.admin-msg.error {
  background: #fff0f0;
  border-color: #c0392b;
  color: #7b1c13;
}

/* Actions cell */
.admin-actions { white-space: nowrap; display: flex; gap: .35rem; align-items: center; }

/* Planning table */
.planning-table { width: 100%; }
.planning-table .weekend-row { background: #f5efe0; }
.planning-table .event-row   { background: #e8f0fe; }
.planning-table .past-row    { opacity: .55; }

/* ═══════════════════════════════════════════════════════════
   FINANCES / BILAN
═══════════════════════════════════════════════════════════ */
.fin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fin-kpi {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.09);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-top: 4px solid #2c2c2c;
}
.fin-kpi--green  { border-top-color: #27ae60; }
.fin-kpi--orange { border-top-color: #e67e22; }
.fin-kpi--blue   { border-top-color: #3498db; }
.fin-kpi--purple { border-top-color: #8e44ad; }
.fin-kpi__label  { font-size: .78rem; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fin-kpi__value  { font-size: 1.55rem; font-weight: 700; color: #1a1a1a; }
.fin-kpi__sub    { font-size: .75rem; color: #999; }

.fin-section-title {
  margin: 1.75rem 0 .5rem;
  font-size: 1rem;
  font-weight: 700;
  border-left: 4px solid #2c2c2c;
  padding-left: .6rem;
}

.fin-chart-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.fin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) {
  .fin-two-col { grid-template-columns: 1fr; }
}

.fin-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
}

.fin-progress {
  height: 5px;
  background: #eee;
  border-radius: 3px;
  margin-top: 3px;
  overflow: hidden;
}
.fin-progress__bar {
  height: 100%;
  background: #27ae60;
  border-radius: 3px;
  transition: width .3s;
}

.fin-promo-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: #856404;
  background: #fff3cd;
  border-radius: 4px;
  padding: .05rem .35rem;
  margin-top: .15rem;
}

/* CGV preview */
.admin-cgv-preview {
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
  border-radius: 8px;
  background: #fafafa;
  font-size: .9rem;
  line-height: 1.6;
  max-height: 70vh;
  overflow-y: auto;
}

/* ── Admin Galerie ─────────────────────────────────────────────────────────── */
.ag-upload-details  { margin-bottom: 1.5rem; border: 1px solid #ddd; border-radius: 8px; }
.ag-upload-summary  { cursor: pointer; padding: .6rem .9rem; font-weight: 600; font-size: .9rem; background: #f5f5f5; border-radius: 8px; }
.ag-upload-form     { padding: .9rem; border-top: 1px solid #ddd; }

.ag-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.ag-img-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.ag-img-card--editing { border-color: #27ae60; box-shadow: 0 0 0 2px #b3f0cc; }

.ag-img-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #eee;
}

.ag-img-info    { padding: .35rem .5rem; font-size: .78rem; flex: 1; }
.ag-img-name    { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-img-actions { padding: .35rem .5rem; display: flex; gap: .35rem; border-top: 1px solid #f0f0f0; }

.ag-img-edit-form {
  padding: .5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ag-img-edit-form input,
.ag-img-edit-form textarea {
  width: 100%;
  padding: .3rem .4rem;
  font-size: .8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* ── Home — Présentation ───────────────────────────────────────────────────── */

/* Grand bandeau hero — remplace le header compact sur la page d'accueil */
.site-header--home {
  position: relative;        /* pas fixé : fait partie du flux normal */
  height: auto;
  display: block;
  padding: 3.5rem 0 2.8rem;
  text-align: center;
  background: linear-gradient(160deg, #fff 55%, #fffde7 100%);
  border-bottom: 6px solid var(--color_dore);
  box-shadow: 4px 4px 10px #555;
}

.site-header--home__inner {
  max-width: 700px;
  margin-inline: auto;
}

/* Pas de padding-top sur site-main quand le header n'est pas fixé */
body.page-home .site-main {
  padding-top: 12px;
  min-height: auto;
}

/* Classes helper du hero (réutilisés depuis le header sur home) */
.hp-hero__supra   { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #888; margin: 0 0 .4rem; }
.hp-hero__sub     { font-size: 1.1rem; color: #555; margin: 0 0 .8rem; letter-spacing: .04em; }
.hp-hero__tagline { font-style: italic; color: #777; margin: 0 0 1.6rem; }
.hp-hero__cta     { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Agrandir le titre dans le header home */
.site-header--home .brand__title { font-size: 3.2rem; margin: 0 0 .2rem; }

/* Buttons */
.hp-btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
}
.hp-btn:hover          { opacity: .87; transform: translateY(-1px); }
.hp-btn--gold          { background: var(--color_dore); color: #111; border: 2px solid var(--color_dore); }
.hp-btn--outline       { background: transparent; color: #333; border: 2px solid #bbb; }
.hp-btn--outline:hover { border-color: var(--color_dore); color: #111; }

/* Generic section wrapper */
.hp-section            { padding: 2.5rem 0; }
.hp-section--alt       { background: #fafaf7; }

.hp-section__title {
  font-size: 1.5rem;
  margin: 0 0 1.4rem;
  border-bottom: 2px solid var(--color_dore);
  padding-bottom: .5rem;
  display: inline-block;
}

/* Services grid */
.hp-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.hp-service-card {
  border: 1px solid #e8e3d8;
  border-radius: 8px;
  padding: 1.25rem 1rem 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .15s;
}
.hp-service-card:hover              { box-shadow: 0 4px 14px rgba(0,0,0,.13); transform: translateY(-2px); }
.hp-service-card__ico               { font-size: 2rem; }
.hp-service-card strong             { font-size: 1rem; }
.hp-service-card p                  { font-size: .88rem; color: #555; margin: 0; line-height: 1.5; }

/* About / zones */
.hp-about {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hp-about__text   { flex: 2 1 300px; line-height: 1.7; }
.hp-about__text p { margin: 0 0 .9rem; font-size: .95rem; }
.hp-about__zones  { flex: 1 1 220px; }

.hp-zones__title  { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.hp-zones__list   { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .3rem; }
.hp-zones__list li { font-size: .9rem; }
.hp-zones__note   { font-size: .85rem; color: #888; margin: 0 0 1rem; }
.hp-zones__partner { font-size: .88rem; border-top: 1px solid #e0e0e0; padding-top: .7rem; }
.hp-zones__partner a { color: inherit; }

/* CTA band */
.hp-cta-band {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}
.hp-cta-item {
  background: #fff;
  border: 1px solid #e8e3d8;
  border-radius: 8px;
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.hp-cta-item__ico { font-size: 2.2rem; }
.hp-cta-item strong { font-size: 1rem; }
.hp-cta-item p { font-size: .85rem; color: #666; margin: 0; line-height: 1.45; }

/* Photo cards – home */
.hp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.hp-photo-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 4px 4px 12px rgba(0,0,0,.25);
}
.hp-photo-card img {
  width: 100%;
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hp-photo-card img:hover {
  transform: scale(1.02);
  box-shadow: 6px 6px 18px rgba(0,0,0,.35);
}
@media (max-width: 640px) {
  .hp-photo-grid { grid-template-columns: 1fr; }
  .hp-photo-card--hidden { display: none; }
}

/* Responsive tweaks */
@media (min-width: 900px) {
  .site-header--home .brand__title { font-size: 4.4rem; }
}

/* ── Tarifs / Devis ────────────────────────────────────────────────────────── */
.tf-intro { font-style: italic; color: #666; margin-bottom: 1.4rem; }

.tf-errors {
  background: #fff3f3;
  border-left: 4px solid #c0392b;
  padding: .7rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 4px;
}
.tf-errors p { margin: .2rem 0; font-size: .9rem; color: #c0392b; }

/* Form */
.tf-form          { max-width: 680px; }
.tf-fieldset      { border: 1px solid #ddd; border-radius: 8px; padding: .8rem 1rem 1rem; margin-bottom: 1.2rem; }
.tf-fieldset legend { font-weight: 700; padding: 0 .4rem; font-size: .9rem; }
.tf-radio         { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.tf-radio input   { accent-color: var(--color_dore); width: 16px; height: 16px; }

.tf-form__grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
@media (max-width: 600px) { .tf-form__grid { grid-template-columns: 1fr; } }

.tf-label         { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.tf-label--full   { grid-column: 1 / -1; }
.tf-label input,
.tf-label textarea,
.tf-label select  { padding: .5rem .7rem; border: 1px solid #ccc; border-radius: 4px; font-size: .95rem; width: 100%; box-sizing: border-box; }
.tf-label textarea { resize: vertical; }
.tf-hint          { font-weight: 400; font-size: .78rem; color: #888; }

/* Buttons */
.tf-btn {
  display: inline-block;
  padding: .6rem 1.5rem;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: opacity .2s, transform .15s;
  line-height: 1.4;
}
.tf-btn + .tf-btn       { margin-left: .6rem; }
.tf-btn:hover           { opacity: .87; transform: translateY(-1px); }
.tf-btn--gold           { background: var(--color_dore); color: #111; border-color: var(--color_dore); }
.tf-btn--outline        { background: transparent; color: #333; border-color: #bbb; }
.tf-btn--outline:hover  { border-color: var(--color_dore); color: #111; }
.tf-btn--sm             { padding: .35rem .9rem; font-size: .83rem; }

/* Devis result */
.tf-devis             { max-width: 760px; }
.tf-devis__header     { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tf-devis__info       { font-size: .93rem; color: #444; }

.tf-recap             { border: 1px solid #e5e0d5; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.tf-recap__row        { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; gap: .5rem; border-bottom: 1px solid #f0ede5; font-size: .93rem; }
.tf-recap__row:last-child     { border-bottom: none; }
.tf-recap__row--option        { background: #f9fdf9; font-style: italic; }
.tf-recap__opt-price          { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.tf-recap__total      { background: #fffde8; font-size: 1.05rem; font-weight: 700; }

.tf-rem-btn {
  background: none; border: 1px solid #ccc; border-radius: 50%;
  width: 20px; height: 20px; cursor: pointer; font-size: .7rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: #c0392b; padding: 0;
}
.tf-rem-btn:hover { background: #fdecea; }

.tf-note     { font-size: .82rem; color: #999; margin-bottom: 1rem; }

.tf-details                   { border: 1px solid #ddd; border-radius: 6px; margin-bottom: 1.2rem; }
.tf-details summary            { cursor: pointer; padding: .6rem .9rem; font-weight: 600; font-size: .9rem; }
.tf-details__body              { padding: .5rem 1rem 1rem; font-size: .88rem; line-height: 1.6; border-top: 1px solid #eee; }
.tf-details__body h5           { margin: .8rem 0 .3rem; font-size: .9rem; }
.tf-details__body p            { margin: 0 0 .5rem; }

/* Options */
.tf-opts-title  { margin: 1.8rem 0 .8rem; font-size: 1.1rem; border-bottom: 1px solid #e5e5e5; padding-bottom: .4rem; }
.tf-opts-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

.tf-opt-card {
  border: 1px solid #e5e0d5;
  border-radius: 8px;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  background: #fff;
  font-size: .88rem;
}
.tf-opt-card__name   { font-size: .95rem; }
.tf-opt-card__desc   { color: #666; flex: 1; line-height: 1.45; margin: 0; }
.tf-opt-card__footer { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-top: .3rem; flex-wrap: wrap; }
.tf-opt-card__price  { font-weight: 700; color: #333; white-space: nowrap; }

/* Contact form devis summary */
.tf-contact-summary {
  background: #f5f0e8;
  border-left: 4px solid var(--color_dore);
  padding: .7rem 1rem;
  margin-bottom: 1.4rem;
  border-radius: 4px;
  font-size: .9rem;
}

/* Confirmation */
.tf-confirm {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.tf-confirm__ico { font-size: 3.5rem; display: block; margin-bottom: .8rem; }
.tf-confirm h4   { font-size: 1.4rem; margin: 0 0 .6rem; }
.tf-confirm p    { color: #555; margin-bottom: 1.5rem; }

/* ── Contact ──────────────────────────────────────────────────────────────────────── */
.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 720px) { .ct-grid { grid-template-columns: 1fr; } }

.ct-info { display: flex; flex-direction: column; gap: 1rem; }

.ct-info-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: #fff;
  border: 1px solid #e8e3d8;
  border-radius: 8px;
  padding: .9rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.ct-info-card__ico { font-size: 1.5rem; line-height: 1; }
.ct-info-card div  { display: flex; flex-direction: column; gap: .15rem; }
.ct-info-card strong { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #888; }
.ct-info-card a,
.ct-info-card span { font-size: .95rem; color: #222; text-decoration: none; }
.ct-info-card a:hover { color: var(--color_dore); text-decoration: underline; }

.ct-devis-hint {
  font-size: .88rem;
  color: #666;
  margin: .5rem 0 0;
}
.ct-devis-hint a { color: inherit; font-weight: 700; }
.ct-devis-hint a:hover { color: var(--color_dore); }

.ct-form { display: flex; flex-direction: column; gap: .9rem; }

.ct-label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-weight: 600;
  font-size: .9rem;
}
.ct-label--full { grid-column: 1 / -1; }
.ct-label input,
.ct-label textarea {
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  resize: vertical;
}
.ct-label input:focus,
.ct-label textarea:focus { outline: 2px solid var(--color_dore); border-color: var(--color_dore); }

.ct-required { color: #c0392b; }

.ct-confirm {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}
.ct-confirm__ico { font-size: 3.5rem; display: block; margin-bottom: .8rem; }
.ct-confirm h3   { font-size: 1.4rem; margin: 0 0 .6rem; }
.ct-confirm p    { color: #555; margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════
   CONTRATS (co-*)
═══════════════════════════════════════════ */
.co-detail { display: flex; flex-direction: column; gap: 1.5rem; }

.co-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,.13), 0 1px 4px rgba(0,0,0,.07);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
}
.co-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-bottom: 2px solid #c8c8c8;
  padding-bottom: .5rem;
  margin-bottom: .75rem;
}
.co-box__header .co-box__title {
  margin: 0;
  border: none;
  padding: 0;
}
.co-box__title {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #c8c8c8;
  padding-bottom: .5rem;
}

/* Status badges */
.co-badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: #888;
}
.co-badge--draft  { background: #f39c12; }
.co-badge--signed { background: #3498db; }
.co-badge--ok     { background: #27ae60; }
.co-badge--done   { background: #2c3e50; }
.co-badge--cancel { background: #c0392b; }
.co-badge--sent      { background: #e67e22; }
.co-badge--paid      { background: #27ae60; }
.co-badge--cancelled { background: #c0392b; }

.co-status-row { margin-bottom: 1rem; }
.co-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* Detail table overrides */
.co-table th { width: 160px; background: #fafafa; }
.co-table__sep {
  text-align: center;
  background: #2c2c2c !important;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* Personnel */
.co-personnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.co-personnel-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f8f9fa;
  border-radius: 8px;
  padding: .65rem .9rem;
}
.co-personnel-card small { display: block; color: #666; font-size: .8rem; }
.co-personnel-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2c2c2c;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}

/* Planning timeline */
.co-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid #ddd;
  padding-left: 1.25rem;
}
.co-timeline li {
  padding: .5rem 0;
  position: relative;
}
.co-timeline li::before {
  content: '';
  width: 10px; height: 10px;
  background: #2c2c2c;
  border-radius: 50%;
  position: absolute;
  left: -1.55rem;
  top: .75rem;
}

/* Styles musicaux */
.co-style-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.co-style-list li { padding: .3rem 0; border-bottom: 1px solid #f0f0f0; }
.co-style-del {
  color: #c0392b; text-decoration: none; font-weight: 700;
  margin-left: .5rem;
}
.co-style-del:hover { text-decoration: underline; }

/* Payment info */
.co-payment-info {
  background: #f0faf5;
  border: 1px solid #27ae60;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.co-payment-info h5 { margin: 0 0 .5rem; }
.co-payment-info p { margin: .2rem 0; font-size: .9rem; }

/* Collapsible details */
.co-details {
  margin-top: .75rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.co-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
}
.co-details[open] summary { margin-bottom: .75rem; }

.co-fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: .5rem 0;
}
.co-fieldset legend { font-weight: 600; font-size: .88rem; padding: 0 .4rem; }

.co-avenant-ligne {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: .5rem;
}
.co-avenant-ligne select,
.co-avenant-ligne input { font-size: .82rem; padding: .3rem .5rem; }

.co-inline-form {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: flex-end;
  margin-top: .5rem;
}
.co-inline-form select,
.co-inline-form input {
  padding: .4rem .6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: .88rem;
}

/* Form specific to contrat creation */
.co-form fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin: .75rem 0;
}
.co-form fieldset legend { font-weight: 700; font-size: .95rem; padding: 0 .4rem; }
.co-form__checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .25rem .75rem;
}
.co-form__check { display: flex; align-items: center; gap: .4rem; font-weight: 400; font-size: .88rem; }
.co-form__check input[type="checkbox"] { width: auto; }

@media (max-width: 600px) {
  .co-personnel-grid { grid-template-columns: 1fr; }
  .co-avenant-ligne { flex-direction: column; }

  /* ── Key-value tables (co-table) → stacked cards ─── */
  .co-table:not(.co-table--keep),
  .co-table:not(.co-table--keep) tbody,
  .co-table:not(.co-table--keep) tr,
  .co-table:not(.co-table--keep) th,
  .co-table:not(.co-table--keep) td { display: block; width: 100%; box-sizing: border-box; }
  .co-table:not(.co-table--keep) tr { padding: .4rem 0; border-bottom: 1px solid #eee; }
  .co-table:not(.co-table--keep) th {
    width: 100% !important;
    background: transparent;
    border: none;
    padding: .25rem 0 0;
    color: #888;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .3px;
  }
  .co-table:not(.co-table--keep) td { border: none; padding: .1rem 0 .35rem; }
  .co-table:not(.co-table--keep) .co-table__sep td {
    background: #2c2c2c !important;
    border-radius: 4px;
    margin-top: .5rem;
    padding: .45rem .6rem !important;
  }
  /* ── co-table--keep : reste un tableau, th plus étroit ─── */
  .co-table--keep th { width: 110px !important; }

  /* ── Data tables (co-responsive) → card rows ─── */
  .co-responsive,
  .co-responsive thead,
  .co-responsive tbody,
  .co-responsive tr,
  .co-responsive th,
  .co-responsive td { display: block; width: 100%; box-sizing: border-box; }
  .co-responsive thead { display: none; }
  .co-responsive tbody tr {
    background: #f8f9fa;
    border-radius: 8px;
    padding: .65rem .75rem;
    margin-bottom: .65rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    border: 1px solid #e8e8e8;
  }
  .co-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    border: none;
    border-bottom: 1px solid #e8e8e8;
  }
  .co-responsive td:last-child { border-bottom: none; }
  .co-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    font-size: .82rem;
    flex-shrink: 0;
    margin-right: .75rem;
  }
  .co-responsive td[data-label=""]::before { display: none; }
  .co-responsive td[data-label=""] { justify-content: flex-end; }
}

/* ── FEO (Famille en Or) ─────────────────────────────────────────────────── */
.feo-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.admin-btn--outline {
  background: transparent; color: #333; border: 1px solid #999;
}
.admin-btn--outline:hover { background: #f0f0f0; }

.feo-details {
  background: #f8f9fa; border-radius: 8px; padding: .6rem .8rem;
  margin-bottom: .5rem; border: 1px solid #e8e8e8;
}
.feo-details summary {
  cursor: pointer; font-weight: 600; font-size: .92rem;
}
.feo-top-list { margin: .3rem 0; }
.feo-top-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .5rem; border-bottom: 1px solid #eee; font-size: .88rem;
}
.feo-top-row:last-of-type { border-bottom: none; }
.feo-top-row--top8 {
  background: linear-gradient(90deg, #fff8e1 0%, #fff 60%);
  border-left: 3px solid var(--color_dore, #FFD700);
}
.feo-top-row__rank {
  min-width: 1.5rem; text-align: center; font-weight: 700; color: #888; font-size: .8rem;
}
.feo-top-row--top8 .feo-top-row__rank { color: var(--color_dore, #c8a600); }
.feo-top-row__txt { flex: 1; }
.feo-top-row__score {
  display: flex; align-items: center; gap: .25rem; white-space: nowrap;
}
.feo-top-row__score strong {
  min-width: 1.8rem; text-align: center; font-size: .9rem;
}
.feo-score-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 4px;
  background: #eee; color: #333; text-decoration: none;
  font-weight: 700; font-size: .9rem; line-height: 1;
  border: 1px solid #ccc; cursor: pointer; user-select: none;
}
.feo-score-btn:hover { background: #ddd; }
.feo-inline-add {
  display: flex; gap: .4rem; align-items: flex-end; margin-top: .4rem;
}
.feo-inline-add input[type="text"],
.feo-inline-add input[type="number"] {
  padding: .3rem .5rem; border: 1px solid #bbb; border-radius: 4px; font-size: .85rem;
}
.feo-inline-add input[type="text"] { flex: 1; }

/* ── FEO cards (parties list) ──── */
.feo-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem;
}
.feo-card {
  display: flex; flex-direction: column; gap: .3rem;
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  padding: .9rem 1rem; text-decoration: none; color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow .2s, border-color .2s;
}
.feo-card:hover { border-color: var(--color_dore, #FFD700); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.feo-card__teams { font-weight: 700; font-size: 1.05rem; }
.feo-card__teams small { font-weight: 400; color: #999; }
.feo-card__info { font-size: .82rem; color: #666; }
.feo-card__status {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: .15rem .5rem; border-radius: 4px; width: fit-content;
}
.feo-card__status--0 { background: #fff3cd; color: #856404; }
.feo-card__status--1 { background: #d4edda; color: #155724; }
.feo-card__status--2 { background: #cce5ff; color: #004085; }
.feo-card__status--3 { background: #e2e3e5; color: #383d41; }
.feo-card__status--4 { background: #f8d7da; color: #721c24; }

.feo-card__link {
  display: flex; flex-direction: column; gap: .35rem;
  text-decoration: none; color: inherit;
}
.feo-card__actions {
  display: flex; gap: .4rem; margin-top: .5rem; padding-top: .5rem;
  border-top: 1px solid #eee;
}
.feo-card__btn {
  flex: 1; text-align: center; padding: .3rem .5rem; border-radius: 5px;
  font-size: .75rem; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.feo-card__btn--souvenir { background: #fff3cd; color: #856404; }
.feo-card__btn--souvenir:hover { background: #ffe69c; }
.feo-card__btn--delete { background: #f8d7da; color: #721c24; }
.feo-card__btn--delete:hover { background: #f1aeb5; }

/* ── Questionnaire invité ──────────────────────────────────── */
.feo-q-card {
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  padding: 1rem 1.2rem; margin-bottom: .75rem;
}
.feo-q-card--done { opacity: .7; }
.feo-q-card__txt { font-weight: 600; margin: 0 0 .6rem; font-size: 1rem; }
.feo-q-card__answer { margin: 0; color: #155724; }
.feo-q-card input[type="text"] { width: 100%; box-sizing: border-box; }
.feo-q-radio {
  display: flex; align-items: center; gap: .5rem;
  margin: .35rem 0; cursor: pointer; padding: .3rem .4rem;
  border-radius: 6px; transition: background .15s;
}
.feo-q-radio:hover { background: #f5f5f5; }
.feo-q-radio input { margin: 0; flex-shrink: 0; }
.feo-q-table { border-collapse: collapse; width: 100%; }
.feo-q-table tr:hover { background: #f5f5f5; border-radius: 6px; }
.feo-q-table td { padding: .3rem .4rem; vertical-align: middle; }
.feo-q-table__radio { width: 1.4rem; text-align: center; }
.feo-q-table__label label { cursor: pointer; display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   FEO – ÉCRAN VIDÉOPROJECTEUR  (TV game show)
   ══════════════════════════════════════════════════════════════════════════ */
.feo-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #1f2248 0%, #0d0f1a 100%);
  color: #eee; font-family: 'Playfair Display', serif; overflow: hidden;
}
.feo-screen__panel {
  width: 100%; max-width: 1200px; padding: 2rem 2.5rem;
}
.feo-screen__panel--center { text-align: center; }

/* ── Waiting screen ── */
.feo-screen__title {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin: .2rem 0;
  color: #FFD700; text-shadow: 0 0 30px rgba(255,215,0,.4), 0 2px 0 #b8860b;
}
.feo-wait-star {
  font-size: clamp(3rem, 8vw, 7rem); line-height: 1;
  color: #FFD700; text-shadow: 0 0 40px rgba(255,215,0,.5);
  animation: feo-pulse 2s ease-in-out infinite;
}
@keyframes feo-pulse {
  0%,100% { transform: scale(1); opacity: .85; }
  50%     { transform: scale(1.08); opacity: 1; }
}
.feo-wait-dots { margin-top: .8rem; display: flex; justify-content: center; gap: .6rem; }
.feo-wait-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: #FFD700;
  animation: feo-dot 1.4s ease-in-out infinite;
}
.feo-wait-dots span:nth-child(2) { animation-delay: .2s; }
.feo-wait-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes feo-dot {
  0%,80%,100% { opacity: .2; transform: scale(.8); }
  40%         { opacity: 1; transform: scale(1.1); }
}

/* ── Scoreboard ── */
.feo-scoreboard {
  display: flex; align-items: stretch; gap: 0; margin-bottom: 1.8rem;
}
.feo-scoreboard__team {
  flex: 1; padding: 1.2rem 1.5rem; position: relative;
  border: 2px solid rgba(255,255,255,.08); transition: all .4s;
}
.feo-scoreboard__team--1 {
  border-radius: 16px 0 0 16px;
  background: linear-gradient(135deg, rgba(52,73,94,.6) 0%, rgba(26,26,46,.9) 100%);
}
.feo-scoreboard__team--2 {
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg, rgba(120,40,40,.5) 0%, rgba(26,26,46,.9) 100%);
}
.feo-scoreboard__team--active {
  border-color: #FFD700;
  box-shadow: 0 0 30px rgba(255,215,0,.25), inset 0 0 40px rgba(255,215,0,.05);
}
.feo-scoreboard__team--active::after {
  content: '▼'; position: absolute; top: -1.2rem; left: 50%; transform: translateX(-50%);
  color: #FFD700; font-size: 1rem; text-shadow: 0 0 8px rgba(255,215,0,.6);
}
.feo-scoreboard__center {
  display: flex; align-items: center; padding: 0 1rem;
}
.feo-scoreboard__vs {
  font-size: 1.1rem; font-weight: 700; color: #555;
  text-transform: uppercase; letter-spacing: 3px;
}
.feo-scoreboard__name {
  font-size: clamp(.8rem, 1.5vw, 1.1rem); text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,.5); margin-bottom: .3rem;
}
.feo-scoreboard__score {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.feo-scoreboard__team--1 .feo-scoreboard__score { color: #5dade2; }
.feo-scoreboard__team--2 .feo-scoreboard__score { color: #e74c3c; }
.feo-scoreboard__faults {
  min-height: 1.6rem; margin-top: .3rem; display: flex; justify-content: center; gap: .3rem;
}
.feo-fault-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: .8rem; font-weight: 700;
  background: #c0392b; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4);
  animation: feo-fault-pop .3s ease-out;
}
@keyframes feo-fault-pop {
  0% { transform: scale(0); } 100% { transform: scale(1); }
}

/* ── Question ── */
.feo-question {
  background: linear-gradient(90deg, rgba(255,215,0,.12) 0%, rgba(255,215,0,.04) 100%);
  border: 1px solid rgba(255,215,0,.25); border-radius: 14px;
  padding: 1rem 2rem; margin-bottom: 1.5rem; text-align: center;
  font-size: clamp(1rem, 2vw, 1.5rem);
}
.feo-question__badge {
  display: inline-block; font-weight: 800; color: #1a1a2e; font-size: .8em;
  background: #FFD700; padding: .15em .6em; border-radius: 6px; margin-right: .6rem;
  vertical-align: middle; box-shadow: 0 2px 6px rgba(255,215,0,.3);
}
.feo-question__txt { color: #fff; font-weight: 600; }

/* ── Answer board (panneau type jeu TV) ── */
.feo-board {
  display: flex; flex-direction: column; gap: .5rem;
  max-width: 800px; margin: 0 auto;
}
.feo-cell {
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.4rem; border-radius: 10px; font-size: clamp(1rem, 1.8vw, 1.3rem);
  position: relative; overflow: hidden;
}
.feo-cell--hidden {
  background: linear-gradient(90deg, #252840 0%, #1d1f35 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.feo-cell--hidden .feo-cell__txt {
  flex: 1; height: 1.4em;
  background: repeating-linear-gradient(90deg, rgba(255,215,0,.06) 0px, rgba(255,215,0,.06) 12px, transparent 12px, transparent 16px);
  border-radius: 4px;
}
.feo-cell--revealed {
  border: 1px solid rgba(255,215,0,.3);
}
.feo-cell--flip {
  animation: feo-flip .5s ease-out;
}
.feo-cell--team1 {
  background: linear-gradient(90deg, rgba(93,173,226,.2) 0%, rgba(26,26,46,.8) 100%);
  border-color: rgba(93,173,226,.4);
}
.feo-cell--team2 {
  background: linear-gradient(90deg, rgba(231,76,60,.2) 0%, rgba(26,26,46,.8) 100%);
  border-color: rgba(231,76,60,.4);
}
.feo-cell__rank {
  min-width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .9em; color: #1a1a2e;
  background: #FFD700; box-shadow: 0 2px 8px rgba(255,215,0,.3);
  flex-shrink: 0;
}
.feo-cell--hidden .feo-cell__rank {
  background: rgba(255,215,0,.2); color: rgba(255,215,0,.5);
  box-shadow: none;
}
.feo-cell__txt { flex: 1; font-weight: 600; color: #fff; }
.feo-cell__pts {
  font-weight: 900; font-size: 1.1em; color: #FFD700;
  text-shadow: 0 0 8px rgba(255,215,0,.3);
  min-width: 2.5rem; text-align: right;
}
.feo-cell--hidden .feo-cell__pts { color: rgba(255,215,0,.3); }

@keyframes feo-flip {
  0%   { transform: scaleY(0); opacity: 0; }
  50%  { transform: scaleY(1.05); }
  100% { transform: scaleY(1); opacity: 1; }
}

/* ── Final screen ── */
.feo-trophy {
  font-size: clamp(4rem, 10vw, 8rem); line-height: 1;
  animation: feo-trophy-bounce 1s ease-out;
}
@keyframes feo-trophy-bounce {
  0%   { transform: scale(0) rotate(-10deg); }
  60%  { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
.feo-final {
  display: flex; justify-content: center; align-items: center; gap: 2rem;
  margin-top: 2rem;
}
.feo-final__side { text-align: center; }
.feo-final__side--1 .feo-final__score { color: #5dade2; }
.feo-final__side--2 .feo-final__score { color: #e74c3c; }
.feo-final__name {
  font-size: 1.1rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 2px;
}
.feo-final__score {
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 900;
  text-shadow: 0 0 20px currentColor;
}
.feo-final__sep { font-size: 2rem; color: #444; }

/* ══════════════════════════════════════════════════════════════════════════
   FEO – SMARTPHONE PRÉSENTATEUR
   ══════════════════════════════════════════════════════════════════════════ */
.feo-pres {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #eee; font-family: system-ui, -apple-system, sans-serif; padding: 1rem;
}
.feo-pres__panel { max-width: 500px; margin: 0 auto; }
.feo-pres h2 {
  font-size: 1.4rem; text-align: center; margin-bottom: .5rem;
  color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,.3);
}

/* Scores mini */
.pres-scores { display: flex; gap: .5rem; margin-bottom: .8rem; }
.pres-scores__t {
  flex: 1; text-align: center; padding: .6rem .5rem; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 2px solid transparent;
  transition: all .3s;
}
.pres-scores__t--active {
  border-color: #FFD700; background: rgba(255,215,0,.08);
  box-shadow: 0 0 12px rgba(255,215,0,.2);
}
.pres-scores__pts { display: block; font-size: 2rem; font-weight: 800; }

/* Buttons */
.pres-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1rem; border: none; border-radius: 10px;
  font-size: .9rem; font-weight: 600; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  transition: background .2s, transform .1s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.pres-btn:active { transform: scale(.95); }
.pres-btn--big {
  display: block; width: 100%; padding: 1.2rem; font-size: 1.3rem; border-radius: 14px;
}
.pres-btn--sm { padding: .4rem .8rem; font-size: .82rem; border-radius: 8px; }
.pres-btn--green  { background: #27ae60; }
.pres-btn--green:hover { background: #2ecc71; }
.pres-btn--red    { background: #c0392b; }
.pres-btn--red:hover { background: #e74c3c; }
.pres-btn--blue   { background: #2980b9; }
.pres-btn--blue:hover { background: #3498db; }
.pres-btn--gold   { background: linear-gradient(135deg, #c8a600, #e6bf00); color: #1a1a2e; }
.pres-btn--gold:hover { background: linear-gradient(135deg, #e6bf00, #f0d000); }
.pres-btn--active { outline: 2px solid #FFD700; outline-offset: 2px; }

/* Team buttons */
.pres-team-btns { display: flex; gap: .5rem; margin-bottom: .8rem; }
.pres-team-btns .pres-btn { flex: 1; }
.pres-btn--team1 { background: linear-gradient(135deg, #2471a3, #1a5276); }
.pres-btn--team2 { background: linear-gradient(135deg, #a93226, #78281f); }

/* Question */
.pres-question {
  background: rgba(255,215,0,.08); border: 1px solid rgba(255,215,0,.2);
  border-radius: 10px; padding: .7rem 1rem; margin-bottom: .8rem; font-size: .95rem;
}
.pres-question #pres-qnum { font-weight: 800; color: #FFD700; }

/* Top answers — le présentateur voit tout */
.pres-tops { margin-bottom: .8rem; }
.pres-top {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .7rem; border-radius: 8px; margin-bottom: .35rem;
  font-size: .9rem; border-left: 3px solid transparent;
}
.pres-top--pending {
  background: rgba(255,255,255,.04); border-left-color: rgba(255,215,0,.3);
}
.pres-top--revealed { background: rgba(255,215,0,.08); }
.pres-top--team1 { border-left-color: #5dade2; }
.pres-top--team2 { border-left-color: #e74c3c; }
.pres-top__rank {
  font-weight: 800; color: #FFD700; min-width: 1.8rem; text-align: center;
}
.pres-top__txt { flex: 1; font-weight: 500; }
.pres-top__pts {
  font-size: .78rem; color: rgba(255,255,255,.4); white-space: nowrap; font-weight: 700;
}
.pres-top--revealed .pres-top__pts { color: #FFD700; }

/* Faults & Nav */
.pres-faults {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-bottom: .8rem; font-size: .85rem;
}
.pres-faults > div { flex: 1; }
.pres-nav { display: flex; gap: .5rem; }
.pres-nav .pres-btn { flex: 1; }

/* ══════════════════════════════════════════════════════════════════════════════
   BLIND TEST – ÉCRAN VIDÉOPROJECTEUR
   ══════════════════════════════════════════════════════════════════════════════ */
.bt-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #1a1040 0%, #0a0a18 100%);
  color: #eee; font-family: 'Segoe UI', system-ui, sans-serif; overflow: hidden;
}
.bt-screen__panel { width: 100%; max-width: 1200px; padding: 2rem 2.5rem; }
.bt-screen__panel--center { text-align: center; }
.bt-screen__title {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin: .2rem 0;
  color: #a855f7; text-shadow: 0 0 30px rgba(168,85,247,.4), 0 2px 0 #6b21a8;
}

/* Waiting */
.bt-wait-icon {
  font-size: clamp(3rem, 8vw, 7rem); line-height: 1;
  animation: feo-pulse 2s ease-in-out infinite;
}
.bt-wait-dots { margin-top: .8rem; display: flex; justify-content: center; gap: .6rem; }
.bt-wait-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: #a855f7;
  animation: feo-dot 1.4s ease-in-out infinite;
}
.bt-wait-dots span:nth-child(2) { animation-delay: .2s; }
.bt-wait-dots span:nth-child(3) { animation-delay: .4s; }

/* Header */
.bt-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.5rem;
}
.bt-header__theme {
  font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700; color: #a855f7;
  text-transform: uppercase; letter-spacing: 2px;
}
.bt-header__track { font-size: .95rem; color: rgba(255,255,255,.4); font-weight: 600; }

/* Scoreboard multi-team */
.bt-scoreboard {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin-bottom: 2rem;
}
.bt-team {
  text-align: center; min-width: 100px; padding: .6rem 1rem; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 2px solid;
  transition: all .3s;
}
.bt-team__name {
  font-size: clamp(.7rem, 1.2vw, .9rem); text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.5); margin-bottom: .2rem;
}
.bt-team__score { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1; }

/* ── Promotions — page publique ─────────────────────────────────────────── */
.promo-intro {
  margin-bottom: 1.6rem; color: var(--muted, #555);
}
.promo-intro .promo-link-tarif {
  margin-left: .6rem; color: var(--color_dore, #FFD700);
  font-weight: 600; text-decoration: none;
}
.promo-intro .promo-link-tarif:hover { text-decoration: underline; }

.promo-empty {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 3rem 1rem; color: var(--muted, #555); text-align: center;
}
.promo-empty__ico { font-size: 3rem; }

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.promo-card {
  border: 2px solid var(--color_dore, #FFD700);
  border-radius: 12px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.promo-card__badge {
  background: var(--color_dore, #FFD700);
  color: #111;
  font-size: 1.4rem; font-weight: 900;
  text-align: center;
  padding: .6rem .5rem;
  letter-spacing: .5px;
}

.promo-card__body {
  padding: 1rem 1.1rem;
  flex: 1;
}

.promo-card__desc {
  margin: 0 0 .8rem; font-size: .95rem; color: #333;
}

.promo-card__code-wrap {
  display: flex; align-items: center; gap: .4rem;
  background: #f5f5f5; border-radius: 6px;
  padding: .45rem .7rem;
  margin-bottom: .5rem;
}

.promo-card__code {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 1.5px;
  flex: 1;
}

.promo-copy-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: 0 .2rem;
  transition: transform .15s;
}
.promo-copy-btn:hover { transform: scale(1.2); }

.promo-card__expire {
  font-size: .8rem; color: var(--muted, #777);
  margin: 0;
}

.promo-card__cta {
  display: block; text-align: center;
  background: #111; color: #fff;
  padding: .65rem .5rem;
  text-decoration: none; font-weight: 600;
  transition: background .2s;
}
.promo-card__cta:hover { background: var(--color_dore, #FFD700); color: #111; }

/* ── Promotions — admin ──────────────────────────────────────────────────── */
.ap-badge {
  display: inline-block; padding: .15rem .55rem;
  border-radius: 12px; font-size: .78rem; font-weight: 700;
}
.ap-badge--on  { background: #d4edda; color: #155724; }
.ap-badge--off { background: #f8d7da; color: #721c24; }
.ap-badge--exp { background: #fff3cd; color: #856404; }

.ap-row--inactive { opacity: .55; }
.ap-row--expired  { background: #fffbf0; }

.ap-stat { color: var(--muted, #777); }

/* ── Tarifs — ligne de réduction promo ───────────────────────────────────── */
.tf-recap__row--promo {
  background: #fffde7;
  border-radius: 6px;
}
.tf-promo-val {
  color: #388e3c;
}

/* Stage — disc + answer */
.bt-stage { text-align: center; }
.bt-disc-container { display: inline-block; }
.bt-disc {
  width: clamp(140px, 25vw, 240px); height: clamp(140px, 25vw, 240px);
  border-radius: 50%; background: radial-gradient(circle, #333 20%, #111 60%, #000 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(168,85,247,.3), inset 0 0 20px rgba(0,0,0,.5);
  position: relative; margin: 0 auto 1.5rem;
}
.bt-disc::before {
  content: ''; position: absolute; inset: 10%;
  border-radius: 50%; border: 2px solid rgba(168,85,247,.15);
}
.bt-disc__inner { font-size: 2.5rem; }
.bt-disc--spinning { animation: bt-spin 2s linear infinite; }
@keyframes bt-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.bt-answer {
  animation: feo-flip .5s ease-out;
  background: linear-gradient(90deg, rgba(168,85,247,.15) 0%, rgba(168,85,247,.05) 100%);
  border: 1px solid rgba(168,85,247,.35); border-radius: 14px;
  padding: 1rem 2rem; display: inline-block; margin-top: 1rem;
}
.bt-answer__title {
  font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 800; color: #fff;
}
.bt-answer__artist {
  font-size: clamp(.9rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.5); margin-top: .2rem;
}
.bt-answer__stats {
  font-size: clamp(.7rem, 1.2vw, .9rem); color: rgba(255,255,255,.4); margin-top: .3rem;
}

/* Chrono (screen) */
.bt-chrono {
  margin-top: 1rem; text-align: center;
}
.bt-chrono__time {
  font-family: 'Courier New', monospace;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,.4);
}

/* Final */
.bt-trophy {
  font-size: clamp(4rem, 10vw, 8rem); line-height: 1;
  animation: feo-trophy-bounce 1s ease-out;
}
.bt-final-scores { margin-top: 2rem; display: inline-block; text-align: left; }
.bt-final__team {
  display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem;
  font-size: clamp(1rem, 2vw, 1.5rem);
}
.bt-final__medal { font-size: 1.3em; }
.bt-final__name { font-weight: 700; color: #fff; }
.bt-final__pts { color: #a855f7; font-weight: 800; }

/* ══════════════════════════════════════════════════════════════════════════════
   BLIND TEST – SMARTPHONE PRÉSENTATEUR
   ══════════════════════════════════════════════════════════════════════════════ */
.bt-pres {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a1040 0%, #16213e 100%);
  color: #eee; font-family: system-ui, -apple-system, sans-serif; padding: 1rem;
}
.bt-pres__panel { max-width: 500px; margin: 0 auto; }
.bt-pres h2 { font-size: 1.4rem; text-align: center; margin-bottom: .5rem; color: #a855f7; text-shadow: 0 0 10px rgba(168,85,247,.3); }

/* Scores mini */
.btp-scores { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.btp-score-card {
  flex: 1; min-width: 70px; text-align: center; padding: .5rem .3rem;
  border-radius: 8px; background: rgba(255,255,255,.05); border: 2px solid;
}
.btp-score-card__name { font-size: .7rem; text-transform: uppercase; color: rgba(255,255,255,.5); }
.btp-score-card__pts { font-size: 1.6rem; font-weight: 800; }

/* Controls */
.btp-controls { display: flex; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.btp-controls .pres-btn { flex: 1; }

/* Chrono (presenter) */
.btp-chrono {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,215,0,.1); border: 1px solid rgba(255,215,0,.3);
  border-radius: 8px; padding: .3rem .7rem; white-space: nowrap;
}
.btp-chrono__icon { font-size: 1.1rem; }
.btp-chrono__time { font-family: 'Courier New', monospace; font-size: 1.2rem; font-weight: 800; color: #FFD700; }

/* Difficulty feedback */
.btp-diff-feedback {
  text-align: center; padding: .4rem .6rem; border-radius: 6px;
  font-size: .82rem; font-weight: 600; margin: .3rem 0;
}
.btp-diff--easy { color: #155724; background: #d4edda; }
.btp-diff--ok   { color: #856404; background: #fff3cd; }
.btp-diff--hard { color: #721c24; background: #f8d7da; }

/* Point buttons */
.btp-point-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.btp-point-btn { color: #fff !important; }

/* Answer hint (présentateur voit toujours) */
.btp-answer-hint {
  background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2);
  border-radius: 8px; padding: .5rem .8rem; font-size: .85rem; color: #c084fc;
  margin: .5rem 0; min-height: 1.6rem;
}

/* Tabs admin */
.bt-tabs { display: flex; gap: 0; margin-bottom: 1rem; border-bottom: 2px solid #ddd; }
.bt-tab {
  padding: .5rem 1.2rem; text-decoration: none; color: #666; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: .95rem;
}
.bt-tab--active { color: #333; border-bottom-color: #a855f7; }
.bt-tab:hover { color: #333; }


/* 
   LOCATION  Page publique
    */
.loc-intro { color: var(--muted); margin-bottom: 1.5rem; }
.loc-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .loc-layout { grid-template-columns: 1fr 380px; align-items: start; } }

/* Catalogue */
.loc-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; border-bottom: 2px solid var(--color_dore); padding-bottom: .3rem; }
.loc-category { margin-bottom: 2rem; }
.loc-cat-name  { font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; color: var(--muted); }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

.loc-card { border: 2px solid #eee; border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s; background: #fff; }
.loc-card:hover { border-color: var(--color_dore); box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.loc-card--selected { border-color: var(--color_dore) !important; background: #fffbea; }
.loc-card__img { height: 110px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.loc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.loc-card__img--placeholder { font-size: 2.5rem; color: #ccc; }
.loc-card__body { padding: .65rem .75rem; }
.loc-card__name { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.loc-card__desc { font-size: .78rem; color: var(--muted); margin-bottom: .4rem; line-height: 1.4; }
.loc-card__footer { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; }
.loc-card__price { font-size: .82rem; font-weight: 700; color: var(--text); }
.loc-card__btn { font-size: .75rem; padding: .25rem .55rem; background: var(--color_dore); border: none; border-radius: 4px; cursor: pointer; font-family: inherit; font-weight: 600; transition: opacity .15s; }
.loc-card__btn:hover { opacity: .8; }

/* Panier sélection */
.loc-cart { background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: .75rem; margin-bottom: 1rem; min-height: 52px; }
.loc-cart__empty { color: #aaa; font-size: .85rem; margin: 0; }
.loc-cart__list { list-style: none; margin: 0; padding: 0; }
.loc-cart__item { display: flex; align-items: center; gap: .4rem; padding: .3rem 0; border-bottom: 1px solid #eee; font-size: .85rem; }
.loc-cart__item:last-child { border-bottom: none; }
.loc-cart__item span:first-child { flex: 1; }
.loc-cart__price { color: var(--muted); white-space: nowrap; }
.loc-cart__remove { background: none; border: none; cursor: pointer; color: #c62828; font-size: .8rem; padding: .1rem .3rem; border-radius: 3px; line-height: 1; }
.loc-cart__remove:hover { background: #fdecea; }

/* Formulaire */
.loc-form-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
.loc-form { display: flex; flex-direction: column; gap: .6rem; }
.loc-hint { font-size: .75rem; color: #999; margin: -.25rem 0 0; }

/* Admin : badges statut */
.loc-status { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .78rem; font-weight: 600; color: #fff; }
.loc-status--0 { background: #0066cc; }
.loc-status--1 { background: #e07b00; }
.loc-status--2 { background: #2e7d32; }
.loc-status--3 { background: #c62828; }

/* Admin : upload image article location */
.loc-img-preview { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; padding: .5rem; background: #f5f5f5; border: 1px solid #ddd; border-radius: 6px; }
.loc-img-preview img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; }
.loc-img-preview small { font-size: .8rem; color: #666; }
.admin-form__file { display: block; width: 100%; padding: .4rem; border: 1.5px dashed #bbb; border-radius: 6px; background: #fafafa; cursor: pointer; font-family: inherit; font-size: .9rem; }
.admin-form__file:hover { border-color: var(--color_dore, #FFD700); background: #fffdf0; }
.admin-form__hint { margin: .15rem 0 .5rem; font-size: .8rem; color: #888; }

/* ═══════════════════════════════════════════════════════════════════════════
   IMPRESSION / PRINT — contrat & facture
   ═══════════════════════════════════════════════════════════════════════════ */

/* Bouton impression contrat */
.co-print-btn { text-align: right; margin-bottom: .5rem; }

/* Facture imprimable */
.print-invoice { max-width: 800px; margin: 1.5rem auto; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 2rem; border-radius: 6px; }
.print-invoice__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.print-invoice__header { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 3px solid #333; }
.print-invoice__title { margin: 0; font-size: 2rem; color: #333; letter-spacing: .1em; }
.print-invoice__uid { font-size: 1.05rem; color: #666; margin: .4rem 0 0; }
.print-invoice__parties { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.print-invoice__party { flex: 1; min-width: 180px; }
.print-invoice__party h3 { margin: 0 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #333; }
.print-invoice__party p { line-height: 1.75; margin: 0; font-size: .88rem; }
.print-invoice__meta { background: #f5f5f5; padding: .85rem 1rem; border-radius: 4px; margin-bottom: 1.5rem; }
.print-invoice__meta table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.print-invoice__meta td { padding: .25rem .4rem; }
.print-invoice__meta td:last-child { text-align: right; }
.print-invoice__lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .88rem; }
.print-invoice__lines thead tr { background: #333; color: #fff; }
.print-invoice__lines th, .print-invoice__lines td { padding: .65rem .85rem; border: 1px solid #ddd; }
.print-invoice__lines .pi-num { text-align: right; width: 100px; }
.print-invoice__lines tbody tr:nth-child(even) { background: #fafafa; }
.print-invoice__total-bloc { text-align: right; margin-bottom: 1.5rem; padding-top: 1rem; border-top: 2px solid #333; }
.print-invoice__tva { font-size: .8rem; color: #555; font-style: italic; margin: 0 0 .4rem; }
.print-invoice__total { font-size: 1.3rem; margin: 0; color: #333; }
.print-invoice__payment { background: #e8f4f8; padding: 1.25rem 1.5rem; border-radius: 4px; border-left: 4px solid #0066cc; margin-bottom: 1.5rem; }
.print-invoice__payment h3 { margin: 0 0 .6rem; color: #0066cc; font-size: .95rem; }
.print-invoice__payment p { line-height: 1.9; margin: 0; font-size: .88rem; }
.print-invoice__payment code { background: #fff; padding: 2px 7px; border-radius: 3px; font-size: .83rem; }
.print-invoice__ref { font-weight: 700; color: #c00; }
.print-invoice__footer { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; font-size: .76rem; color: #666; line-height: 1.6; }

/* ── Contrat imprimable ─────────────────────────────────────────────────── */
.print-contract { max-width: 800px; margin: 1.5rem auto; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 2rem; border-radius: 6px; }
.print-contract__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.print-contract__header { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 3px solid #333; }
.print-contract__title { margin: 0; font-size: 2rem; color: #333; letter-spacing: .1em; }
.print-contract__uid { font-size: 1.05rem; color: #666; margin: .4rem 0 0; }
.print-contract__parties { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.print-contract__party { flex: 1; min-width: 180px; }
.print-contract__party h3 { margin: 0 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #333; }
.print-contract__party p { line-height: 1.75; margin: 0; font-size: .88rem; }
.print-contract__section { margin-bottom: 1.5rem; }
.print-contract__section h3 { margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .95rem; color: #333; }
.print-contract__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.print-contract__table th, .print-contract__table td { padding: .5rem .75rem; border: 1px solid #ddd; text-align: left; }
.print-contract__table thead tr { background: #333; color: #fff; }
.print-contract__table tbody tr:nth-child(even) { background: #fafafa; }
.print-contract__table td:first-child { width: 35%; font-weight: 500; background: #f9f9f9; }
.print-contract__total-row { background: #f0f0f0 !important; }
.print-contract__total-row td { font-size: 1.05rem; }
.print-contract__tva { font-size: .8rem; color: #555; font-style: italic; margin: .5rem 0 0; }
.print-contract__cgv { margin-top: 1.5rem; padding-top: 1rem; }
.print-contract__cgv h3 { margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid #333; font-size: .95rem; color: #333; }
.print-contract__cgv-content { font-size: .82rem; line-height: 1.7; color: #333; column-count: 2; column-gap: 2rem; }
.print-contract__footer { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; font-size: .76rem; color: #666; line-height: 1.6; }

/* @media print — masquer le chrome, garder le contenu */
@media print {
    .hamburger-menu,
    .site-header,
    .site-footer,
    .co-actions,
    .co-details,
    .no-print,
    .print-invoice__actions,
    .print-contract__actions { display: none !important; }

    body { background: #fff !important; color: #000; }
    .container { max-width: 100%; padding: 0; }
    .co-box { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
    .print-invoice { box-shadow: none; border: none; padding: 0; margin: 0; }
    .print-contract { box-shadow: none; border: none; padding: 0; margin: 0; }
    .print-contract__cgv { page-break-before: always; }
    .print-contract__cgv-content { column-count: 2; }
    a { color: inherit !important; text-decoration: none !important; }
    code { background: none !important; border: 1px solid #aaa; }
}
