/* ================================================================
   PHOTO DU MOIS — Interface publique
   Thème : sombre élégant, accents dorés/ambrés
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

/* --- Palette -------------------------------------------------- */
:root {
  --pdm-bg:          #0a0a0a;
  --pdm-bg-card:     #131313;
  --pdm-bg-hover:    #1c1c1c;
  --pdm-border:      #2a2a2a;
  --pdm-gold:        #c9a96e;
  --pdm-gold-light:  #e8c98a;
  --pdm-gold-dark:   #9a7840;
  --pdm-text:        #e4eaf4;
  --pdm-muted:       #8896ab;
  --pdm-error:       #e05252;
  --pdm-success:     #52c278;
  --pdm-r1:          #ffd700;
  --pdm-r2:          #c0c0c0;
  --pdm-r3:          #cd7f32;
  --pdm-font-title:  'Playfair Display', Georgia, serif;
  --pdm-font-body:   'Source Sans 3', system-ui, sans-serif;
  --pdm-radius:      10px;
  --pdm-transition:  .22s ease;
}

/* --- Reset ciblé --------------------------------------------- */
.pdm-wrap,
.pdm-wrap *,
.pdm-wrap *::before,
.pdm-wrap *::after {
  box-sizing: border-box;
}

.pdm-wrap {
  background:  var(--pdm-bg);
  color:       var(--pdm-text);
  font-family: var(--pdm-font-body);
  font-size:   1rem;
  line-height: 1.6;
  max-width:   1200px;
  margin:      0 auto;
  padding:     2.5rem 1.5rem 4rem;
}

.pdm-wrap h1, .pdm-wrap h2, .pdm-wrap h3 {
  font-family: var(--pdm-font-title);
  line-height: 1.25;
}

.pdm-wrap img { max-width: 100%; display: block; }
.pdm-wrap button { cursor: pointer; }

/* ── HEADER ─────────────────────────────────────────────────── */
.pdm-hdr {
  text-align: center;
  padding:    2rem 0 2.5rem;
  border-bottom: 1px solid var(--pdm-border);
  margin-bottom: 2.5rem;
}

.pdm-theme-badge {
  display:         inline-flex;
  align-items:     center;
  gap:             .4rem;
  background:      rgba(201, 169, 110, .12);
  border:          1px solid rgba(201, 169, 110, .3);
  color:           var(--pdm-gold);
  border-radius:   50px;
  padding:         .3rem 1rem;
  font-size:       .85rem;
  letter-spacing:  .05em;
  text-transform:  uppercase;
  margin-bottom:   1.2rem;
}

.pdm-theme-icon { font-size: 1rem; }

.pdm-hdr-title {
  font-size:   2.2rem;
  font-weight: 700;
  color:       var(--pdm-text);
  margin:      0 0 .8rem;
}

@media (max-width: 600px) { .pdm-hdr-title { font-size: 1.6rem; } }

.pdm-hdr-desc {
  color:     var(--pdm-muted);
  font-size: 1rem;
  max-width: 600px;
  margin:    0 auto 1.5rem;
  font-style: italic;
}

.pdm-hdr-meta {
  display:     flex;
  align-items: center;
  justify-content: center;
  flex-wrap:   wrap;
  gap:         1.5rem;
  margin-top:  1rem;
}

/* Countdown */
.pdm-countdown {
  display:     flex;
  align-items: center;
  gap:         .5rem;
  font-size:   .9rem;
}

.pdm-cd-label { color: var(--pdm-muted); }

.pdm-cd-timer {
  font-family:   var(--pdm-font-title);
  font-weight:   600;
  color:         var(--pdm-gold);
  font-size:     1rem;
  letter-spacing: .04em;
}

.pdm-expired { color: var(--pdm-error); }

.pdm-voters-wrap {
  display:     flex;
  align-items: center;
  gap:         .35rem;
  font-size:   .95rem;
  color:       var(--pdm-muted);
}

.pdm-voters-num {
  font-family:  var(--pdm-font-title);
  font-size:    1.2rem;
  font-weight:  700;
  color:        var(--pdm-text);
}

/* ── VOTE PANEL ─────────────────────────────────────────────── */
.pdm-vote-panel {
  background:    var(--pdm-bg-card);
  border:        1px solid var(--pdm-border);
  border-radius: var(--pdm-radius);
  padding:       2rem;
  margin-bottom: 2.5rem;
  position:      sticky;
  top:           1rem;
  z-index:       10;
}

@media (max-width: 768px) { .pdm-vote-panel { position: static; } }

.pdm-vp-title {
  font-size:    1.4rem;
  margin:       0 0 .3rem;
  color:        var(--pdm-gold-light);
}

.pdm-vp-hint {
  color:       var(--pdm-muted);
  font-size:   .9rem;
  margin:      0 0 1.5rem;
}

/* Slots */
.pdm-slots {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   .75rem;
  margin-bottom:         1.25rem;
}

@media (max-width: 580px) { .pdm-slots { grid-template-columns: 1fr; } }

.pdm-slot {
  background:    rgba(255,255,255,.03);
  border:        2px dashed var(--pdm-border);
  border-radius: var(--pdm-radius);
  padding:       .9rem .75rem;
  display:       flex;
  align-items:   center;
  gap:           .6rem;
  min-height:    72px;
  transition:    border-color var(--pdm-transition), background var(--pdm-transition);
  cursor:        default;
}

.pdm-slot.pdm-slot-filled {
  border-style:  solid;
  border-color:  var(--pdm-gold-dark);
  background:    rgba(201, 169, 110, .08);
  cursor:        pointer;
}

.pdm-slot.pdm-slot-filled:hover {
  background: rgba(201, 169, 110, .14);
}

.pdm-slot-medal { font-size: 1.5rem; flex-shrink: 0; }

.pdm-slot-body { flex: 1; min-width: 0; }

.pdm-slot-empty {
  color:     var(--pdm-muted);
  font-size: .85rem;
  font-style: italic;
}

.pdm-slot-img-row {
  display:     flex;
  align-items: center;
  gap:         .6rem;
}

.pdm-slot-thumb {
  width:         48px;
  height:        48px;
  object-fit:    cover;
  border-radius: 5px;
  flex-shrink:   0;
}

.pdm-slot-info { flex: 1; min-width: 0; }

.pdm-slot-photo-title {
  font-size:     .85rem;
  font-weight:   600;
  color:         var(--pdm-text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  display:       block;
}

.pdm-slot-remove {
  background:  transparent;
  border:      none;
  color:       var(--pdm-muted);
  font-size:   .85rem;
  padding:     0;
  line-height: 1;
  transition:  color var(--pdm-transition);
}

.pdm-slot-remove:hover { color: var(--pdm-error); }

@keyframes pdm-slot-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.pdm-slot-animate { animation: pdm-slot-pop .35s ease; }

@keyframes pdm-shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-6px); }
  75%     { transform: translateX(6px); }
}

.pdm-slots-full .pdm-slot:not(.pdm-slot-filled) {
  animation: pdm-shake .4s ease;
}

/* Voter name */
.pdm-voter-row { margin-bottom: 1rem; }

.pdm-voter-input {
  width:         100%;
  background:    rgba(255,255,255,.05);
  border:        1px solid var(--pdm-border);
  border-radius: var(--pdm-radius);
  color:         var(--pdm-text);
  padding:       .75rem 1rem;
  font-family:   var(--pdm-font-body);
  font-size:     1rem;
  transition:    border-color var(--pdm-transition);
}

.pdm-voter-input:focus {
  outline:       none;
  border-color:  var(--pdm-gold-dark);
}

.pdm-voter-input::placeholder { color: var(--pdm-muted); }

/* Error */
.pdm-vote-error {
  background:    rgba(224, 82, 82, .12);
  border:        1px solid rgba(224, 82, 82, .3);
  color:         var(--pdm-error);
  border-radius: var(--pdm-radius);
  padding:       .6rem 1rem;
  font-size:     .9rem;
  margin-bottom: .75rem;
}

/* Submit button */
.pdm-submit-btn {
  width:         100%;
  background:    rgba(201,169,110,.15);
  border:        2px solid var(--pdm-gold-dark);
  border-radius: var(--pdm-radius);
  color:         var(--pdm-muted);
  padding:       .9rem 1.5rem;
  font-family:   var(--pdm-font-title);
  font-size:     1.05rem;
  display:       flex;
  align-items:   center;
  justify-content: center;
  gap:           .6rem;
  transition:    all var(--pdm-transition);
}

.pdm-submit-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pdm-submit-btn.pdm-submit-ready {
  background:   var(--pdm-gold);
  border-color: var(--pdm-gold);
  color:        #0a0a0a;
  font-weight:  700;
}

.pdm-submit-btn.pdm-submit-ready:hover {
  background: var(--pdm-gold-light);
  transform:  translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,169,110,.35);
}

.pdm-submit-icon { font-size: 1.2rem; }

/* Success */
.pdm-success-panel {
  text-align:    center;
  padding:       3rem 2rem;
  background:    var(--pdm-bg-card);
  border:        1px solid rgba(82,194,120,.3);
  border-radius: var(--pdm-radius);
  margin-bottom: 2.5rem;
}

.pdm-success-icon { font-size: 3rem; margin-bottom: 1rem; }

.pdm-success-panel h2 {
  font-size:    1.8rem;
  color:        var(--pdm-success);
  margin:       0 0 .8rem;
}

.pdm-success-sub { color: var(--pdm-muted); }

/* Already voted */
.pdm-already-voted {
  text-align:    center;
  padding:       2.5rem 1.5rem;
  background:    var(--pdm-bg-card);
  border:        1px solid var(--pdm-border);
  border-radius: var(--pdm-radius);
  margin-bottom: 2.5rem;
}

.pdm-av-icon { font-size: 2.5rem; margin-bottom: .8rem; }

/* Closed notice */
.pdm-closed-notice {
  text-align:    center;
  padding:       3rem;
  background:    var(--pdm-bg-card);
  border:        1px solid var(--pdm-border);
  border-radius: var(--pdm-radius);
  color:         var(--pdm-muted);
  font-size:     1.1rem;
}

/* ── GALLERY ─────────────────────────────────────────────────── */
.pdm-gallery-section { margin-top: 2rem; }

.pdm-gallery-title {
  font-size:    1.5rem;
  margin:       0 0 1.5rem;
  color:        var(--pdm-text);
}

.pdm-gallery-theme { color: var(--pdm-gold); font-style: italic; }

.pdm-gallery-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:                   1rem;
}

@media (max-width: 480px) {
  .pdm-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
}

/* Photo card */
.pdm-photo-card {
  background:    var(--pdm-bg-card);
  border:        2px solid transparent;
  border-radius: var(--pdm-radius);
  overflow:      hidden;
  transition:    border-color var(--pdm-transition), transform var(--pdm-transition);
  cursor:        pointer;
}

.pdm-photo-card:hover { transform: translateY(-3px); }

.pdm-photo-card.pdm-selected {
  border-color: var(--pdm-gold);
  box-shadow:   0 0 0 2px rgba(201,169,110,.3);
}

.pdm-photo-img-wrap {
  position:     relative;
  aspect-ratio: 4/3;
  overflow:     hidden;
}

.pdm-photo-img-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.pdm-photo-card:hover .pdm-photo-img-wrap img {
  transform: scale(1.04);
}

/* Hover overlay */
.pdm-photo-hover {
  position:   absolute;
  inset:      0;
  background: rgba(0,0,0,.55);
  display:    flex;
  align-items: center;
  justify-content: center;
  gap:        .6rem;
  opacity:    0;
  transition: opacity var(--pdm-transition);
}

.pdm-photo-card:hover .pdm-photo-hover { opacity: 1; }

.pdm-btn-select {
  background:    var(--pdm-gold);
  color:         #0a0a0a;
  border:        none;
  border-radius: 50px;
  padding:       .45rem 1rem;
  font-family:   var(--pdm-font-body);
  font-size:     .85rem;
  font-weight:   600;
  display:       flex;
  align-items:   center;
  gap:           .35rem;
  transition:    background var(--pdm-transition), transform var(--pdm-transition);
}

.pdm-btn-select:hover { background: var(--pdm-gold-light); transform: scale(1.04); }

.pdm-selected .pdm-btn-select {
  background:  #444;
  color:       var(--pdm-muted);
}

.pdm-btn-select-icon { font-size: 1.1rem; font-weight: 700; }

.pdm-btn-zoom {
  background:    rgba(255,255,255,.15);
  border:        1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width:         38px;
  height:        38px;
  font-size:     1rem;
  display:       flex;
  align-items:   center;
  justify-content: center;
  transition:    background var(--pdm-transition);
  color:         var(--pdm-text);
}

.pdm-btn-zoom:hover { background: rgba(255,255,255,.25); }

/* Number badge */
.pdm-photo-num {
  position:      absolute;
  top:           .5rem;
  left:          .5rem;
  background:    rgba(0,0,0,.65);
  color:         var(--pdm-muted);
  font-size:     .72rem;
  padding:       .15rem .45rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* Rank badge (🥇🥈🥉) */
.pdm-rank-badge {
  position:   absolute;
  top:        .5rem;
  right:      .5rem;
  font-size:  1.4rem;
  filter:     drop-shadow(0 1px 3px rgba(0,0,0,.8));
  animation:  pdm-badge-in .3s ease;
}

@keyframes pdm-badge-in {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0);      opacity: 1; }
}

/* Photo caption */
.pdm-photo-caption {
  padding:     .65rem .75rem .75rem;
  display:     flex;
  flex-direction: column;
  gap:         .15rem;
}

.pdm-photo-caption-title {
  font-size:     .9rem;
  font-weight:   600;
  color:         var(--pdm-text);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.pdm-photo-caption-author {
  font-size: .8rem;
  color:     var(--pdm-muted);
}

/* ── PODIUM PUBLIC ──────────────────────────────────────────── */
.pdm-podium-public-section {
  margin-bottom: 3rem;
}

.pdm-podium-public-title {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             .6rem;
  margin-bottom:   2.5rem;
  text-align:      center;
}

.pdm-crown { font-size: 2rem; }

.pdm-podium-public-title h2 {
  font-size: 2rem;
  margin:    0;
  background: linear-gradient(135deg, var(--pdm-gold-light), var(--pdm-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Podium stage */
.pdm-podium-stage {
  display:         flex;
  justify-content: center;
  align-items:     flex-end;
  gap:             1rem;
  margin-bottom:   2rem;
  padding-bottom:  1rem;
}

@media (max-width: 640px) {
  .pdm-podium-stage { flex-direction: column; align-items: center; gap: 1.5rem; }
}

.pdm-podium-col {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  width:          220px;
  flex-shrink:    0;
}

@media (max-width: 640px) { .pdm-podium-col { width: 100%; max-width: 280px; } }

/* Column sizes by rank */
.pdm-podium-col-1 .pdm-podium-photo-wrap {
  width:  200px;
  height: 200px;
}

.pdm-podium-col-2 .pdm-podium-photo-wrap {
  width:  170px;
  height: 170px;
}

.pdm-podium-col-3 .pdm-podium-photo-wrap {
  width:  150px;
  height: 150px;
}

@media (max-width: 640px) {
  .pdm-podium-col-1 .pdm-podium-photo-wrap,
  .pdm-podium-col-2 .pdm-podium-photo-wrap,
  .pdm-podium-col-3 .pdm-podium-photo-wrap {
    width: 240px; height: 240px;
  }
}

.pdm-podium-photo-wrap {
  position:      relative;
  border-radius: var(--pdm-radius);
  overflow:      hidden;
  cursor:        zoom-in;
  box-shadow:    0 6px 30px rgba(0,0,0,.5);
  flex-shrink:   0;
}

.pdm-podium-col-1 .pdm-podium-photo-wrap {
  border: 2px solid var(--pdm-r1);
  box-shadow: 0 8px 40px rgba(255,215,0,.25);
}

.pdm-podium-col-2 .pdm-podium-photo-wrap {
  border: 2px solid var(--pdm-r2);
}

.pdm-podium-col-3 .pdm-podium-photo-wrap {
  border: 2px solid var(--pdm-r3);
}

.pdm-podium-photo-wrap img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.pdm-podium-photo-wrap:hover img { transform: scale(1.06); }

.pdm-podium-medal {
  position:  absolute;
  top:       .4rem;
  right:     .4rem;
  font-size: 1.6rem;
  filter:    drop-shadow(0 2px 4px rgba(0,0,0,.8));
}

.pdm-podium-col-info {
  margin-top:  .9rem;
  width:       100%;
}

.pdm-podium-rank-label {
  font-size:     .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color:         var(--pdm-muted);
  margin-bottom: .25rem;
}

.pdm-podium-col-title {
  font-family:  var(--pdm-font-title);
  font-size:    1rem;
  font-weight:  600;
  color:        var(--pdm-text);
  margin-bottom: .35rem;
}

.pdm-podium-col-author {
  font-size:    .8rem;
  color:        var(--pdm-muted);
  margin-bottom: .35rem;
}

.pdm-podium-col-score {
  display:     flex;
  align-items: baseline;
  justify-content: center;
  gap:         .2rem;
}

.pdm-score-big {
  font-family:  var(--pdm-font-title);
  font-size:    2rem;
  font-weight:  700;
  color:        var(--pdm-gold);
}

.pdm-podium-col-1 .pdm-score-big { color: var(--pdm-r1); }
.pdm-podium-col-2 .pdm-score-big { color: var(--pdm-r2); }
.pdm-podium-col-3 .pdm-score-big { color: var(--pdm-r3); }

.pdm-podium-platform {
  width:         100%;
  height:        8px;
  border-radius: 4px 4px 0 0;
  margin-top:    .75rem;
}

.pdm-podium-col-1 .pdm-podium-platform { background: var(--pdm-r1); height: 12px; }
.pdm-podium-col-2 .pdm-podium-platform { background: var(--pdm-r2); height: 8px; }
.pdm-podium-col-3 .pdm-podium-platform { background: var(--pdm-r3); height: 6px; }

/* Full results list */
.pdm-results-full { margin-top: 2rem; }

.pdm-results-full h3 {
  font-size:    1.2rem;
  color:        var(--pdm-muted);
  margin:       0 0 1rem;
  font-style:   italic;
}

.pdm-results-list {
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
}

.pdm-result-row {
  display:     grid;
  grid-template-columns: 2rem 4rem 1fr auto auto;
  align-items: center;
  gap:         .75rem;
  padding:     .5rem .75rem;
  background:  var(--pdm-bg-card);
  border-radius: var(--pdm-radius);
  border:      1px solid var(--pdm-border);
}

@media (max-width: 500px) {
  .pdm-result-row { grid-template-columns: 1.5rem 3rem 1fr auto; }
  .pdm-result-bar-track { display: none; }
}

.pdm-result-pos {
  font-weight: 700;
  color:       var(--pdm-muted);
  text-align:  center;
}

.pdm-result-thumb {
  width:         48px;
  height:        40px;
  object-fit:    cover;
  border-radius: 4px;
  cursor:        zoom-in;
  transition:    opacity var(--pdm-transition);
}

.pdm-result-thumb:hover { opacity: .8; }

.pdm-result-title {
  font-size:     .9rem;
  font-weight:   600;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.pdm-result-bar-track {
  width:         120px;
  height:        6px;
  background:    rgba(255,255,255,.08);
  border-radius: 3px;
  overflow:      hidden;
}

.pdm-result-bar-fill {
  height:     100%;
  background: var(--pdm-gold);
  border-radius: 3px;
  transition: width .8s ease;
}

.pdm-result-pts {
  font-family:  var(--pdm-font-title);
  font-weight:  700;
  color:        var(--pdm-gold);
  font-size:    .95rem;
  white-space:  nowrap;
}

/* ── LIGHTBOX ──────────────────────────────────────────────── */
.pdm-lightbox {
  position:        fixed;
  inset:           0;
  background:      rgba(0,0,0,.92);
  z-index:         99999;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         1rem;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity .25s ease;
}

.pdm-lightbox.pdm-lb-open {
  opacity:        1;
  pointer-events: all;
}

.pdm-lb-inner {
  position:   relative;
  max-width:  90vw;
  max-height: 90vh;
  display:    flex;
  flex-direction: column;
  align-items: center;
}

.pdm-lb-inner img {
  max-width:     90vw;
  max-height:    80vh;
  object-fit:    contain;
  border-radius: var(--pdm-radius);
  box-shadow:    0 20px 60px rgba(0,0,0,.6);
}

.pdm-lb-close {
  position:   absolute;
  top:        -2.5rem;
  right:      0;
  background: transparent;
  border:     none;
  color:      var(--pdm-muted);
  font-size:  1.5rem;
  line-height: 1;
  transition: color var(--pdm-transition);
}

.pdm-lb-close:hover { color: var(--pdm-text); }

.pdm-lb-caption {
  margin-top: .8rem;
  color:      var(--pdm-muted);
  font-style: italic;
  font-size:  .9rem;
  text-align: center;
}

/* ================================================================
   GALERIE PDM — Archive publique des mois
   ================================================================ */

/* ── Grille des mois ─────────────────────────────────────────── */
.pdm-galerie-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:                   1.5rem;
  padding:               .5rem 0 2rem;
}

.pdm-galerie-empty {
  color:      var(--pdm-muted);
  text-align: center;
  padding:    3rem;
  font-style: italic;
}

/* ── Carte mois ──────────────────────────────────────────────── */
.pdm-galerie-card {
  display:         block;
  text-decoration: none;
  background:      #161616;
  border:          1px solid #222;
  border-radius:   var(--pdm-radius);
  overflow:        hidden;
  transition:      transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.pdm-galerie-card:hover {
  transform:    translateY(-4px);
  border-color: var(--pdm-gold-dark);
  box-shadow:   0 10px 35px rgba(200,164,110,.18);
}

.pdm-galerie-card-img {
  position:     relative;
  aspect-ratio: 4/3;
  overflow:     hidden;
  background:   #1a1a1a;
}

.pdm-galerie-card-img img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.pdm-galerie-card:hover .pdm-galerie-card-img img {
  transform: scale(1.05);
}

.pdm-galerie-card-noimg {
  width:           100%;
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       2.5rem;
  color:           #333;
}

.pdm-galerie-card-medal {
  position:  absolute;
  top:       .6rem;
  right:     .6rem;
  font-size: 1.5rem;
  filter:    drop-shadow(0 2px 4px rgba(0,0,0,.7));
}

.pdm-galerie-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.pdm-galerie-card-date {
  font-size:     .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color:         var(--pdm-muted);
  margin-bottom: .3rem;
}

.pdm-galerie-card-theme {
  font-family:  var(--pdm-font-title);
  font-size:    1.05rem;
  font-weight:  600;
  color:        var(--pdm-text);
  margin-bottom: .4rem;
  line-height:  1.25;
}

.pdm-galerie-card-winner {
  font-size:   .82rem;
  color:       var(--pdm-gold);
  margin-bottom: .3rem;
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
}

.pdm-galerie-card-votes {
  font-size: .78rem;
  color:     #555;
}

/* ── Vue détaillée ───────────────────────────────────────────── */
.pdm-galerie-detail {}

.pdm-galerie-detail-nav {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             .5rem;
  margin-bottom:   2.5rem;
  font-size:       .88rem;
}

.pdm-galerie-back,
.pdm-galerie-prev-next a {
  color:           var(--pdm-gold);
  text-decoration: none;
  transition:      color .15s;
}

.pdm-galerie-back:hover,
.pdm-galerie-prev-next a:hover { color: var(--pdm-gold-light); }

.pdm-galerie-prev-next { display: flex; gap: 1.5rem; }

.pdm-galerie-detail-header {
  text-align:    center;
  margin-bottom: 3rem;
}

.pdm-galerie-detail-date {
  font-size:     .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color:         var(--pdm-gold);
  margin-bottom: .5rem;
}

.pdm-galerie-detail-theme {
  font-family:  var(--pdm-font-title);
  font-size:    clamp(1.8rem, 4vw, 2.8rem);
  font-weight:  700;
  color:        var(--pdm-text);
  margin:       0 0 .75rem;
}

.pdm-galerie-detail-stats {
  color:     var(--pdm-muted);
  font-size: .9rem;
}

.pdm-galerie-detail-all {
  margin-top: 3rem;
}

.pdm-galerie-detail-all h3 {
  font-family:  var(--pdm-font-title);
  font-size:    1.3rem;
  color:        var(--pdm-muted);
  margin-bottom: 1.25rem;
  font-style:   italic;
}

.pdm-photo-caption-score {
  font-size:    .78rem;
  color:        var(--pdm-gold);
  font-family:  var(--pdm-font-title);
  font-weight:  600;
}

/* ── Teaser homepage ─────────────────────────────────────────── */
.pdm-teaser {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             1.5rem;
  background:      rgba(200,164,110,.08);
  border:          1px solid rgba(200,164,110,.2);
  border-radius:   var(--pdm-radius);
  padding:         1.5rem 2rem;
}

.pdm-teaser-closed {
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

.pdm-teaser-label {
  display:         inline-block;
  background:      var(--pdm-gold);
  color:           #111;
  font-size:       .7rem;
  font-weight:     700;
  letter-spacing:  .12em;
  text-transform:  uppercase;
  padding:         .2rem .65rem;
  border-radius:   50px;
  margin-bottom:   .6rem;
}

.pdm-teaser-theme {
  font-family: var(--pdm-font-title);
  font-size:   1.2rem;
  color:       var(--pdm-text);
  margin-bottom: .4rem;
}

.pdm-teaser-meta {
  font-size: .85rem;
  color:     var(--pdm-muted);
  display:   flex;
  flex-wrap: wrap;
  gap:       .4rem;
  align-items: center;
}

.pdm-teaser-sep { color: #333; }

.pdm-teaser-btn {
  display:         inline-block;
  background:      var(--pdm-gold);
  color:           #111 !important;
  text-decoration: none;
  padding:         .7rem 1.5rem;
  border-radius:   4px;
  font-weight:     600;
  font-size:       .9rem;
  white-space:     nowrap;
  transition:      background .18s, transform .15s;
}

.pdm-teaser-btn:hover {
  background: var(--pdm-gold-light);
  transform:  translateY(-1px);
}

.pdm-teaser-btn-outline {
  background:   transparent;
  color:        var(--pdm-gold) !important;
  border:       1px solid var(--pdm-gold);
}

.pdm-teaser-btn-outline:hover {
  background: rgba(200,164,110,.12);
}

@media (max-width: 600px) {
  .pdm-galerie-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .pdm-teaser       { flex-direction: column; text-align: center; }
  .pdm-teaser-meta  { justify-content: center; }
}
