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

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

/* --- DESIGN SYSTEM : COULEURS & FONTS (THEME FONCÉ BLEU/GRIS) ---- */

:root {
  --ap-bg: #020617;              /* fond global très sombre (bleu nuit) */
  --ap-bg-soft: #020617;
  --ap-surface: #020617;
  --ap-surface-soft: #02081a;
  --ap-surface-card: #020617;
  --ap-border-subtle: rgba(148, 163, 184, 0.35);

  --ap-primary: #38bdf8;         /* bleu clair / cyan */
  --ap-primary-soft: rgba(56, 189, 248, 0.16);
  --ap-primary-strong: #0ea5e9;

  --ap-accent: #facc15;          /* jaune doux, optionnel */
  --ap-accent-alt: #22c55e;      /* vert, optionnel */

  --ap-text: #e5e7eb;            /* texte principal clair */
  --ap-text-muted: #9ca3af;      /* texte secondaire */
}

/* Thèmes alternatifs possibles plus tard */
.theme-ocean {
  --ap-primary: #0ea5e9;
  --ap-primary-soft: rgba(14, 165, 233, 0.18);
  --ap-primary-strong: #0369a1;
  --ap-accent: #22c55e;
}

.theme-sunset {
  --ap-primary: #f97316;
  --ap-primary-soft: rgba(249, 115, 22, 0.18);
  --ap-primary-strong: #ea580c;
  --ap-accent: #6366f1;
}

/* --- GLOBAL ------------------------------------------------------ */

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #000000 100%);
  color: var(--ap-text);
  min-height: 100vh;
}

.aplipy-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- TOPBAR ------------------------------------------------------ */



.aplipy-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.98),
    rgba(8, 47, 73, 0.98)
  );
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(14px);
}

.aplipy-topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo à gauche, nom à droite */
}


.aplipy-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.aplipy-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}

.aplipy-login-link,
.aplipy-logout-link {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-decoration: none;
  color: #e5e7eb;
}

.aplipy-login-link:hover,
.aplipy-logout-link:hover {
  border-color: var(--ap-primary);
  background: rgba(15, 23, 42, 0.9);
}



/* Bouton connexion : cercle sombre, icône bleu/cyan */
.aplipy-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  background: #020617;                 /* fond sombre */
  color: var(--ap-primary);            /* icône bleu/cyan */
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.9);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.aplipy-login-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.9);
  background: #0b1120;
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 1);
}

.aplipy-login-icon:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}



/* Groupement logo + texte */
.aplipy-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo client */
.aplipy-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85), 0 8px 20px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at top left, #1e293b, #020617);
}

.aplipy-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo placeholder avec initiales */
.aplipy-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ap-primary);
}

/* Brand (texte) */

.aplipy-brand {
  display: flex;
  flex-direction: column;
}

.aplipy-brand-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ap-primary);
}

.aplipy-brand-subtitle {
  font-size: 13px;
  color: var(--ap-text-muted);
}

/* --- CONTENU PRINCIPAL ------------------------------------------- */

.aplipy-app {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 18px auto 24px;
  padding: 18px 16px 24px;
  border-radius: 22px;
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(30, 64, 175, 0.5);
}




/* --- TYPOGRAPHIE ------------------------------------------------- */

h1,
h2,
h3 {
  font-family: "Poppins", system-ui, sans-serif;
  margin: 0 0 10px;
  color: #e5f3ff;
}

/* Titre principal : un peu “affiche”, mais lisible */
h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.9);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

/* Sous-titres : légèrement moins forts, plus doux */
h2 {
  font-size: clamp(20px, 2.7vw, 28px);
  letter-spacing: 0.03em;
  text-transform: none;
  color: #f9fafb;
}

/* H3 : plus discret, pour des sous-sections */
h3 {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #cbd5f5;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ap-text);
}

/* Pas de souligné dans les titres qui contiennent un lien */
h1 a,
h2 a,
h3 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover {
  color: var(--ap-primary);
}





/* --- MENU "CHIPS" ----------------------------------------------- */

.aplipy-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.aplipy-menu a {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ap-text);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.8);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.12s ease;
}

/* État sélectionné */
.aplipy-menu a.is-active,
.aplipy-menu a[aria-current="page"] {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-strong));
  border-color: var(--ap-primary-strong);
  color: #f9fafb;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.9);
}

.aplipy-menu a:hover {
  transform: translateY(-1px);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 1));
  border-color: var(--ap-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.95);
}

/* --- CARTES & SECTIONS ------------------------------------------- */

article,
.aplipy-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: radial-gradient(circle at top left, #020617, #02081a);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.95);
}

/* Accès rapide (si utilisé) */
.aplipy-quick-links .aplipy-card-link > div {
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    #020617,
    #02081a
  );
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.95);
  color: var(--ap-text);
}

.aplipy-quick-links .aplipy-card-link h2,
.aplipy-quick-links .aplipy-card-link p {
  color: var(--ap-text) !important;
}

/* --- HOME (PAGE D'ACCUEIL CLIENT) -------------------------------- */

.aplipy-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  margin-top: 6px;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.home-hero-image {
  width: 190px;
  max-width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1e293b, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ap-primary);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px;
}

.home-hero-text h1 {
  margin-bottom: 6px;
}

.home-hero-text p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ap-text-muted);
  font-size: 14px;
}

/* Gros boutons centraux */

.home-menu-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 260px));
  gap: 12px;
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 230px));
  }
}

.home-menu-btn {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, #020617, #02081a);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.85);
  color: var(--ap-text);
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-menu-title {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  color: #e5f3ff;
}

.home-menu-sub {
  font-size: 13px;
  color: var(--ap-text-muted);
}

.home-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.95);
  border-color: var(--ap-primary);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 1),
    rgba(8, 47, 73, 1)
  );
}

/* --- NEWS (LISTE & DETAIL) --------------------------------------- */

.aplipy-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

/* Carte d’actu : look magazine sobre, sans radial kitch */
.news-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    90deg,
    #020617 0%,
    #020617 55%,
    #02081a 100%
  );
  padding: 10px 14px;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
}

/* Filet doré discret à gauche */
.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(250, 204, 21, 0.0),
    rgba(250, 204, 21, 0.7),
    rgba(250, 204, 21, 0.0)
  );
}

/* Hover léger, façon presse haut de gamme */
.news-item:hover {
  border-color: rgba(129, 140, 248, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

.news-item-layout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Image un peu plus valorisée */
.news-thumb {
  flex: 0 0 130px;
  max-width: 130px;
  overflow: hidden;
  border-radius: 12px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  max-height: 100px;
  object-fit: cover;
  display: block;
}

/* Texte */
.news-body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-item-title {
  font-size: 15px;
  margin: 0 0 4px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-item-title a {
  color: #e5f3ff;
  text-decoration: none;
}

.news-item-title a:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

.news-meta {
  margin: 0 0 6px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.news-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}



/* --- GALERIES (LISTE) -------------------------------------------- */

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

@media (min-width: 768px) {
  .aplipy-gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-card {
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: linear-gradient(135deg, #020617, #02081a);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.95);
  overflow: hidden;
}

.gallery-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.gallery-card-thumb {
  width: 100%;
  max-height: 180px;
  overflow: hidden;
  background: #020617;
}

.gallery-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-body {
  padding: 10px 12px 12px;
}

.gallery-card-body h2 {
  font-size: 17px;
  margin: 0 0 4px;
  color: #e5f3ff;
}

.gallery-meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ap-text-muted);
}

.gallery-description {
  margin: 0;
  font-size: 14px;
  color: var(--ap-text);
}

/* Badges de visibilité */

.gallery-visibility,
.gallery-detail-visibility {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.gallery-badge-public,
.gallery-visibility.gallery-badge-public,
.gallery-detail-visibility.gallery-badge-public {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.8);
  color: #e0f2fe;
}

.gallery-badge-client,
.gallery-visibility.gallery-badge-client,
.gallery-detail-visibility.gallery-badge-client {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.8);
  color: #bbf7d0;
}

.gallery-badge-private,
.gallery-visibility.gallery-badge-private,
.gallery-detail-visibility.gallery-badge-private {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

/* Détail galerie */

.gallery-detail-header {
  margin-bottom: 8px;
}

.gallery-detail-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ap-text-muted);
}

.gallery-detail-meta .gallery-detail-date {
  margin-right: 6px;
}

.gallery-detail-description {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ap-text);
}

/* --- GALERIES D'IMAGES (PAGE DETAIL IMAGES) ---------------------- */

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





@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.gallery-item {
  position: relative;
  background: linear-gradient(145deg, #020617, #02081a);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.95);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item-caption {
  padding: 8px 10px 10px;
  font-size: 13px;
  color: var(--ap-text);
}

/* Image pleine largeur dans une page de détail */
.image-full {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* --- LIGHTBOX (ZOOM IMAGE) --------------------------------------- */

.aplipy-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.aplipy-lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.aplipy-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
}

.aplipy-lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  font-size: 26px;
  color: #ffffff;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Curseur pour les vignettes zoomables */
.gallery-item img.js-zoomable {
  cursor: zoom-in;
}

/* --- BADGES DE NOTATION (0–3) ------------------------------------ */

.rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-align: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.rating-neutral {
  background: rgba(148, 163, 184, 0.95);
}

.rating-0 {
  background: rgba(239, 68, 68, 0.98);
}

.rating-1 {
  background: rgba(249, 115, 22, 0.98);
}

.rating-2 {
  background: rgba(234, 179, 8, 0.99);
}

.rating-3 {
  background: rgba(34, 197, 94, 0.99);
}

/* --- CONTROLES DE NOTATION --------------------------------------- */

.rating-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 10px;
  font-size: 12px;
}

.rating-controls-label {
  margin-right: 4px;
  color: var(--ap-text-muted);
}

.rating-btn {
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.35), #020617);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--ap-text);
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease, color 0.12s ease;
}

.rating-btn:hover {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.55), #020617);
  transform: translateY(-1px);
}

.rating-btn.is-active {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-strong));
  border-color: var(--ap-primary-strong);
  color: #f9fafb;
}






/* ====== Layout header centré ====== */

.aplipy-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

/* ====== Accueil : cartes d'accès rapide ====== */

.home-quick-actions {
  margin-top: 22px;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .home-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-quick-card {
  display: block;
  border-radius: 18px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ap-text);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: linear-gradient(135deg, #020617, #02081a);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.95);
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

/* Variantes de couleur par carte */
.home-quick-card--dashboard {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), #020617);
  border-color: rgba(34, 197, 94, 0.7);
}

.home-quick-card--galeries {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), #020617);
  border-color: rgba(56, 189, 248, 0.7);
}

.home-quick-card--news {
  background: radial-gradient(circle at top left, rgba(234, 179, 8, 0.22), #020617);
  border-color: rgba(234, 179, 8, 0.7);
}

.home-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.95);
  border-color: var(--ap-primary);
}

/* Layout interne de la carte : icône à gauche, texte à droite */

.home-quick-main {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.home-quick-icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.9);
}

.home-quick-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-quick-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Titre + badge "Nouveau" */

.home-quick-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.home-quick-body h2 {
  font-size: 15px;
  margin: 0;
  color: #e5f3ff;
}

.home-quick-body p {
  font-size: 13px;
  margin: 0;
  color: var(--ap-text-muted);
}

/* Badge "Nouveau" */

.home-quick-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* ====== Dashboard stats "à la GA" ====== */

.client-dashboard-header {
  max-width: 840px;
  margin: 0 auto 16px auto;
}

.client-dashboard-header h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.client-dashboard-intro {
  font-size: 0.95rem;
  color: #9ca3af;
}

.client-dashboard-statsbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.stat-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Responsive stats */
@media (max-width: 900px) {
  .client-dashboard-statsbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .client-dashboard-statsbar {
    grid-template-columns: 1fr;
  }
}

/* ====== Légende des notes 0–3 ====== */

.rating-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rating-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.rating-pill-3 {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(22, 163, 74, 0.15);
  color: #bbf7d0;
}

.rating-pill-2 {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.12);
  color: #fef3c7;
}

.rating-pill-1 {
  border-color: rgba(148, 163, 184, 0.6);
}

.rating-pill-0 {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

/* ====== Blocs favoris (3★) / à revoir (2★) ====== */

.client-dashboard-block {
  margin-top: 24px;
  padding: 16px 14px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0.9));
}

.client-dashboard-block--favorites {
  border-color: rgba(34, 197, 94, 0.5);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.95));
}

.client-dashboard-block--toreview {
  border-color: rgba(234, 179, 8, 0.5);
  background: radial-gradient(circle at top left, rgba(234, 179, 8, 0.18), rgba(15, 23, 42, 0.95));
}

.client-dashboard-block-header h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.client-dashboard-note {
  font-size: 0.8rem;
  color: #e5e7eb;
  opacity: 0.8;
}

.client-dashboard-empty {
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.9;
  margin-top: 6px;
}

/* Un peu d'air entre les vignettes du dashboard */
.client-dashboard-grid .gallery-item {
  background: rgba(15, 23, 42, 0.75);
}





/* --- FOOTER ------------------------------------------------------ */

.aplipy-footer {
  padding: 8px 16px 16px;
  font-size: 12px;
  color: var(--ap-text-muted);
}

.aplipy-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 4px;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

.aplipy-footer-text {
  opacity: 0.9;
}

.aplipy-footer-links {
  opacity: 0.9;
}

.aplipy-footer-link {
  color: var(--ap-primary);
  text-decoration: none;
}

.aplipy-footer-link:hover {
  text-decoration: underline;
}

/* --- RESPONSIVE -------------------------------------------------- */

@media (min-width: 1400px) {
  .aplipy-app {
    max-width: 1400px;
  }

  .aplipy-footer-inner {
    max-width: 1400px;
  }

  body {
    font-size: 16px;
  }

  p {
    font-size: 16px;
  }
}


/* ====== Bandeau image header dans le container ====== */

.page-hero {
  position: relative;

  /* On compense le padding de .aplipy-app (18px top, 16px côtés) */
  width: calc(100% + 32px);        /* 16px à gauche + 16px à droite */
  margin: -18px -16px 16px -16px;  /* on monte dans le padding + on déborde sur les côtés */

  height: 220px;

  /* Coins : arrondis en haut, carrés en bas */
  border-radius: 22px 22px 0 0;

  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.15),
    rgba(15, 23, 42, 0.65)
  );
}

/* Sur petits écrans, on réduit un peu la hauteur */
@media (max-width: 640px) {
  .page-hero {
    height: 160px;
    margin-bottom: 12px;
    border-radius: 16px 16px 0 0;
  }
}

/* Fallback visuel quand il n'y a pas d'image */
.page-hero--empty {
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 184, 0.3),
    rgba(15, 23, 42, 0.95)
  );
}

.page-hero-debug {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  font-size: 11px;
  color: #e5e7eb;
  opacity: 0.8;
}
.page-hero-debug code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}











/* === ADMIN APLIPY ================================================ */

.admin-page-header {
  margin-bottom: 18px;
}

.admin-page-header h1 {
  margin-bottom: 6px;
}

.admin-page-intro {
  font-size: 14px;
  color: var(--ap-text-muted);
}

/* Grille de clients */

.admin-client-list {
  margin-top: 8px;
}

.admin-client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 900px) {
  .admin-client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-client-card {
  border-radius: 18px;
  padding: 12px 14px 14px;
  background: radial-gradient(circle at top left, #020617, #02081a);
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.95);
}

.admin-client-card-header {
  margin-bottom: 8px;
}

.admin-client-card-header h2 {
  margin: 0;
  font-size: 18px;
}

.admin-client-slug {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ap-text-muted);
}

/* On réutilise la barre de stats du dashboard client */

.admin-client-stats {
  margin-top: 10px;
}

/* Liens du bas de carte */

.admin-client-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aplipy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ap-primary);
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-primary-strong));
  color: #f9fafb;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.aplipy-button:hover {
  text-decoration: none;
  border-color: var(--ap-primary-strong);
}

.admin-link-secondary {
  font-size: 13px;
  color: var(--ap-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}



/* ====== TOPBAR LAYOUT & ACTIONS (connexion / déconnexion) ====== */

/* La barre en haut (déjà définie chez toi, mais on redonne les bases) */
.aplipy-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.98),
    rgba(8, 47, 73, 0.98)
  );
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(14px);
}

/* Conteneur centré (max-width comme le reste de l'app) */
.aplipy-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

/* Bloc gauche cliquable (logo + titre) */
.aplipy-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;        /* pas de lien bleu */
}

.aplipy-topbar-left:hover {
  text-decoration: none; /* on garde le look “app” */
}

/* Bloc droite : état de connexion */
.aplipy-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}

/* Lien Connexion / Déconnexion */
.aplipy-login-link,
.aplipy-logout-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-decoration: none;
  color: #e5e7eb;
  background: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.aplipy-login-link:hover,
.aplipy-logout-link:hover {
  border-color: var(--ap-primary);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* Petit ajustement pour l’indicateur utilisateur */
.aplipy-user-indicator strong {
  color: #e5e7eb;
}







.aplipy-user-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ap-text-soft, #e5e7eb);
}

.aplipy-user-indicator strong {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Bouton déconnexion : cercle blanc, icône rouge, taille proche du logo */
.aplipy-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  background: #f9fafb;              /* fond blanc */
  color: #b91c1c;                    /* icône rouge */
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(248, 113, 113, 0.95);
  transition: transform 0.12s ease,
              box-shadow 0.12s ease,
              background 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease;
}

.aplipy-logout-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.9);
  background: #ffffff;
  color: #dc2626;
  border-color: rgba(248, 113, 113, 1);
}

.aplipy-logout-icon:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.8);
}









/* ===========================
   NEWS / ACTUALITÉS
   =========================== */





.aplipy-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

/* Carte d’actu : look magazine sobre, sans radial kitch */
.news-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(
    90deg,
    #020617 0%,
    #020617 55%,
    #02081a 100%
  );
  padding: 10px 14px;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
}

/* Filet doré discret à gauche */
.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(250, 204, 21, 0.0),
    rgba(250, 204, 21, 0.7),
    rgba(250, 204, 21, 0.0)
  );
}

/* Hover léger, façon presse haut de gamme */
.news-item:hover {
  border-color: rgba(129, 140, 248, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

.news-item-layout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Image un peu plus valorisée */
.news-thumb {
  flex: 0 0 130px;
  max-width: 130px;
  overflow: hidden;
  border-radius: 12px;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  max-height: 100px;
  object-fit: cover;
  display: block;
}

/* Texte */
.news-body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-item-title {
  font-size: 15px;
  margin: 0 0 4px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-item-title a {
  color: #e5f3ff;
  text-decoration: none;
}

.news-item-title a:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

.news-meta {
  margin: 0 0 6px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.news-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}







.news-read-more-wrap {
  margin-top: 8px;
  text-align: right;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #0b1120;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.85);
  transition: transform 0.1s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.news-read-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
  border-color: #eab308;
  background: linear-gradient(135deg, #38bdf8, #eab308);
}







.news-meta {
  margin: 0 0 4px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.news-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5f5;
}

/* Vue détail */

.news-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(17, 24, 39, 0.95), #020617);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
}

.news-detail > h1 {
  font-size: 20px;
  margin: 0 0 4px 0;
}

.news-detail .news-meta {
  margin-bottom: 10px;
  font-size: 12px;
}

.news-detail-image {
  margin: 8px 0 12px 0;
  border-radius: 14px;
  overflow: hidden;
}

.news-detail-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

/* Texte HTML interne de l’actualité */
.news-detail .post-body p {
  margin: 0 0 10px 0;
}

.news-detail .post-body strong {
  font-weight: 600;
}

.news-detail .post-body a {
  color: #93c5fd;
  text-decoration: underline;
}

.news-detail .post-body a:hover {
  color: #bfdbfe;
}

/* Galerie liée */

.news-gallery-section {
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  margin-top: 18px;
  padding-top: 10px;
}

.news-gallery-section h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.gallery-item-caption {
  padding: 6px 7px 7px 7px;
  font-size: 11px;
  color: #e5e7eb;
}


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

@media (max-width: 640px) {
  .gallery-grid--detail {
    grid-template-columns: 1fr;
  }
}



/* Fil d’Ariane / Breadcrumb */

.aplipy-breadcrumb {
  font-size: 11px;
  color: #9ca3af;
  margin: 6px 0 8px 0;
}

.aplipy-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
}

.aplipy-breadcrumb a:hover {
  color: #e5e7eb;
  text-decoration: underline;
}

.aplipy-breadcrumb-sep {
  margin: 0 4px;
  opacity: 0.7;
}



.aplipy-app {
  background: linear-gradient(
    135deg,
    #020617 0%,
    #020617 55%,
    #020617 75%,
    rgba(234, 179, 8, 0.06) 100%
  );
}



/* ===== FONDS DES CARTES : STYLE MAGAZINE LUXE, SANS RADIAL ===== */

article,
.aplipy-card,
.news-item,
.news-detail,
.gallery-card,
.client-dashboard-block,
.client-dashboard-block--favorites,
.client-dashboard-block--toreview {
  background: linear-gradient(
    120deg,
    #020617 0%,
    #020617 65%,
    #0b1120 85%,
    rgba(234, 179, 8, 0.08) 100%
  );
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
}


/* On enlève l'ancien bord bas des H1 (déjà défini plus haut) */
h1 {
  border-bottom: none;
}


/* H1 : titre principal avec filet doré large */
h1 {
  position: relative;
  padding-bottom: 10px;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  /* longueur du filet sous H1 */
  width: 110px;
  height: 3px;

  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(250, 204, 21, 0.0),
    rgba(250, 204, 21, 0.85),
    rgba(250, 204, 21, 1),
    rgba(250, 204, 21, 0.0)
  );
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.55);
}


/* H2 : sous-titre avec filet doré plus discret */
h2 {
  position: relative;
  padding-bottom: 8px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  /* un peu plus court et plus fin que H1 */
  width: 80px;
  height: 2px;

  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(250, 204, 21, 0.0),
    rgba(250, 204, 21, 0.85),
    rgba(250, 204, 21, 1),
    rgba(250, 204, 21, 0.0)
  );
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}



.news-read-more-wrap {
  margin-top: 8px;
  text-align: right;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #0b1120;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.85);
  transition: transform 0.1s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.news-read-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
  border-color: #eab308;
  background: linear-gradient(135deg, #38bdf8, #eab308);
}



.news-read-more-wrap {
  margin-top: 8px;
  text-align: right;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #0b1120;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.85);
  transition: transform 0.1s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.news-read-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
  border-color: #eab308;
  background: linear-gradient(135deg, #38bdf8, #eab308);
}


.news-read-more-wrap {
  margin-top: 8px;
  text-align: right;
}

.news-read-more.aplipy-button {
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Bouton d'édition admin (rouge) */
.aplipy-button--danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: rgba(248, 113, 113, 0.95);
  box-shadow: 0 6px 16px rgba(127, 29, 29, 0.9);
}

.aplipy-button--danger:hover {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  border-color: #fecaca;
}

.aplipy-admin-edit-shortcut {
  text-align: right;
  margin: 4px 0 10px;
}

.aplipy-admin-edit-shortcut .aplipy-button {
  font-size: 11px;
  padding: 4px 10px;
}
.aplipy-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #f9fafb;
  font-size: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.aplipy-lightbox-arrow--prev {
  left: -42px;
}

.aplipy-lightbox-arrow--next {
  right: -42px;
}

@media (max-width: 640px) {
  .aplipy-lightbox-arrow--prev {
    left: 8px;
  }
  .aplipy-lightbox-arrow--next {
    right: 8px;
  }
}




/* Forcer 2 colonnes max pour la page détail de galerie */
.gallery-grid.gallery-grid--detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .gallery-grid.gallery-grid--detail {
    grid-template-columns: 1fr;
  }
}






.like-controls {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

/* Cœur par défaut : blanc, légèrement plus grand */
.like-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 999px;
  color: #ffffff;              /* ✅ cœur blanc */
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover : un peu plus gros */
.like-btn:hover {
  transform: scale(1.18);
}

/* Quand l'image est déjà likée (classe ajoutée en JS) */
.like-controls.has-liked .like-btn {
  transform: scale(1.1);
  background-color: rgba(248, 250, 252, 0.12); /* halo clair */
  box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.4);
  color: #f97316; /* orange chaud pour bien se voir */
}

/* Pendant l'appel AJAX (optionnel) */
.like-controls.is-updating .like-btn {
  opacity: 0.6;
  cursor: progress;
}

/* Compteur (pour client/manager/admin) */
.like-count {
  min-width: 1.4em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}




.aplipy-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.aplipy-menu a {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ap-text);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.98));
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.8);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.12s ease;
}






/* =========================================================
   THEME ADMIN — plus clair, plus doré, plus professionnel
   ========================================================= */

body.admin-style {
  --ap-primary: #eab308; /* jaune/or plus premium */
  --ap-primary-strong: #facc15;
  --ap-primary-soft: rgba(234, 179, 8, 0.18);

  --ap-bg: #0a0b12;
  --ap-surface: #0f111a;
  --ap-surface-soft: #131722;

  background: radial-gradient(circle at top, #0f111a, #080a12 70%);
}

body.admin-style .aplipy-topbar {
  background: linear-gradient(
    to right,
    rgba(25, 25, 40, 0.98),
    rgba(70, 64, 41, 0.98)
  );
  border-bottom: 1px solid rgba(250, 204, 21, 0.45);
}

body.admin-style .aplipy-brand-title {
  color: #facc15 !important;
}

body.admin-style .aplipy-button {
  border-color: #facc15;
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

