/* Videos ----------------------------------------------------------------- */

.video-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.video-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(226, 231, 240, 0.9); box-shadow: var(--shadow);
}
.video-card video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: #0d1520; object-fit: cover; }
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  background-color: #0d1520; background-size: cover; background-position: center;
}
.video-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 14, 22, 0.05) 0%, rgba(9, 14, 22, 0.5) 100%);
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(10, 16, 26, 0.35);
}
.video-play svg { margin-left: 2px; }
.video-thumb:active .video-play { transform: translate(-50%, -50%) scale(0.94); }
.video-thumb-sm { aspect-ratio: auto; height: 112px; border-radius: 12px; }
.video-thumb-sm .video-play { width: 38px; height: 38px; }
.video-thumb-sm .video-play svg { width: 14px; height: 14px; }
.video-label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2;
  color: #fff; font-size: 11.5px; font-weight: 700; text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.video-body { padding: 14px; }
.video-body h3 { font-size: 15.5px; margin-bottom: 5px; }
.video-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.video-author { display: block; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.video-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }

/* Lecteur plein ecran */

.player-box { position: relative; padding: 0 !important; overflow: hidden; max-width: 940px; }
.player-frame { aspect-ratio: 16 / 9; background: #0b1119; }
.player-frame iframe, .player-frame video { display: block; width: 100%; height: 100%; border: 0; }
.player-ratio { display: block; width: 100%; height: 100%; }
.player-title {
  margin: 0; padding: 12px 54px 12px 15px;
  background: #0b1119; color: #fff;
  font-size: 14.5px; font-weight: 800; line-height: 1.3;
}
.player-close {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: #1b2a41;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 16, 26, 0.3);
}
.player-close svg { width: 16px; height: 16px; }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.player-bar b { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-bar a { font-size: 12.5px; font-weight: 700; }

/* Section video (accueil, prestations, etape de reservation) ------------- */

.video-more { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.video-slot {
  margin-top: 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 10px;
}
.video-slot > b { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.video-inline { display: grid; gap: 10px; grid-template-columns: 1fr; }
.video-inline .video-thumb-sm { height: 140px; }

/* Envoi de videos / photos (administration) ----------------------------- */

.upload-box {
  border: 1.5px dashed var(--line); border-radius: 14px;
  padding: 16px; text-align: center; background: var(--surface-2);
}
.upload-box b { display: block; font-size: 14px; margin-bottom: 4px; }
.upload-box small { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 12px; }
.upload-list { display: grid; gap: 10px; }
.upload-item {
  display: grid; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.upload-item .upload-preview {
  width: 100%; border-radius: 12px; background: #0d1520;
  aspect-ratio: 16 / 9; object-fit: cover; display: block;
}
.upload-item .upload-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upload-item .upload-line b { font-size: 14px; flex: 1; min-width: 130px; }
.upload-item .upload-line small { color: var(--ink-3); font-size: 12px; display: block; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }

/* Grands ecrans ---------------------------------------------------------- */

@media (min-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card.is-wide { grid-column: span 2; }
  .video-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .video-card.is-wide { grid-column: span 2; }
}

/* ==========================================================================
   Topo Gloss - Composants de pages
   ========================================================================== */

/* En-tete de page interieure --------------------------------------------- */

.page-hero {
  background: linear-gradient(155deg, #16202f 0%, #22344f 60%, #1b2a41 100%);
  color: #fff;
  padding: 26px 0 24px;
}
.page-hero h1 { font-size: 25px; margin-bottom: 8px; }
.page-hero p { color: rgba(255, 255, 255, 0.76); font-size: 14.5px; margin: 0; max-width: 620px; }
.page-hero .crumb { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 800; margin-bottom: 8px; }

/* Sections de prestations ----------------------------------------------- */

.cat-block { margin-bottom: 22px; }
.cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin-bottom: 12px;
}
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Bandeau chiffres ------------------------------------------------------ */

.kpi-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.kpi {
  background: var(--surface); border-radius: var(--radius); padding: 15px;
  box-shadow: var(--shadow); border: 1px solid rgba(226, 231, 240, 0.9);
}
.kpi b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.kpi span { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Planning administration ---------------------------------------------- */

.week-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.day-col {
  background: var(--surface); border-radius: var(--radius); padding: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.day-col h4 { font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.day-col h4 small { font-weight: 700; color: var(--ink-3); font-size: 11.5px; }
.appt {
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 8px;
  font-size: 13px;
}
.appt b { display: block; font-size: 12.5px; }
.appt small { color: var(--ink-3); font-size: 11.5px; }
.appt.is-done { border-left-color: var(--success); opacity: 0.72; }
.appt.is-late { border-left-color: var(--warn); }

/* Messages de contact --------------------------------------------------- */

.msg-card {
  background: var(--surface); border-radius: var(--radius); padding: 15px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.msg-card.is-new { border-color: #c6daff; box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.08); }
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-head b { font-size: 14.5px; }
.msg-body { font-size: 13.5px; color: var(--ink-2); white-space: pre-line; }
.msg-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }

/* Fiche client ---------------------------------------------------------- */

.client-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 14px; padding: 13px 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.client-row .avatar { width: 40px; height: 40px; }
.client-row .who { flex: 1; min-width: 0; }
.client-row .who b { display: block; font-size: 14.5px; }
.client-row .who small { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.client-row .amount { font-weight: 800; font-size: 14px; white-space: nowrap; }

/* Documents / mentions -------------------------------------------------- */

.legal h2 { font-size: 17px; margin-top: 22px; }
.legal p, .legal li { font-size: 14px; color: var(--ink-2); }

/* Etapes verticales (procedure) ----------------------------------------- */

.flow { position: relative; padding-left: 26px; }
.flow::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.flow-item { position: relative; margin-bottom: 18px; }
.flow-item::before {
  content: ""; position: absolute; left: -24px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.flow-item b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.flow-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* Tableau de bord admin ------------------------------------------------- */

.big-number { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sub-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Barre de recherche ---------------------------------------------------- */

.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 6px 4px 14px; box-shadow: var(--shadow-sm);
}
.searchbar svg { width: 18px; height: 18px; color: var(--ink-3); flex: 0 0 auto; }
.searchbar input {
  border: 0 !important; box-shadow: none !important; padding: 10px 0 !important;
  background: transparent !important; font-size: 14.5px;
}
.searchbar .btn { flex: 0 0 auto; }

/* Prix mis en avant ----------------------------------------------------- */

.price-hero {
  background: linear-gradient(150deg, #1b2a41, #2a3f5d);
  color: #fff; border-radius: var(--radius); padding: 20px;
}
.price-hero b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.price-hero span { font-size: 13px; color: rgba(255, 255, 255, 0.72); }

/* Galerie ----------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); }
.gallery img:first-child { grid-column: span 2; height: 190px; }

/* Bloc horaires --------------------------------------------------------- */

.hours { display: grid; gap: 8px; }
.hours div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; padding: 9px 12px; background: var(--surface-2); border-radius: 11px;
}
.hours div b { font-weight: 700; }
.hours div.closed { color: var(--ink-3); }

/* Grands ecrans ---------------------------------------------------------- */

@media (min-width: 768px) {
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: 32px; }
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
  .week-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; min-height: 270px; }
  .gallery img { height: 130px; }
  .flow { padding-left: 30px; }
}

@media (min-width: 1100px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
  .week-grid { grid-template-columns: repeat(7, 1fr); }
}
