/* =====================================================
   EVENT MANAGER   MASQUAGE COMPLET (SAFE, SANS  CRAN BLANC)
===================================================== */

/* Blocs meta Event Manager */
.em-event-meta,
.em-event-when,
.em-event-where,
.em-event-add-to-calendar,
.em-location-map,
.em-event-bookings,
.em-separator,
.em-recurrence-description,
.em-event-title {
  display: none !important;
}

/* S curit  : ne jamais masquer le contenu r el */
.entry-content,
.elementor-widget-container,
.elementor-section,
.elementor-container {
  display: block !important;
}

/* =====================================================
   HEADER PERSONNALIS    FEUILLE DE PR SENCE
===================================================== */

.pm-event-header {
  text-align: center;
  margin: 48px auto 36px;
  max-width: 900px;
}

.pm-event-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #1f2937;
}

.pm-event-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 16px;
  color: #6b7280;
}

.pm-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  padding: 6px 14px;
  border-radius: 999px;
}

/* =====================================================
   CONTENEUR GLOBAL PR SENCE
===================================================== */

.pm-presence {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto 48px;
  display: block !important;
}

/* =====================================================
   STATS   VERSION PREMIUM
===================================================== */

.pm-stats {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
  justify-content: center;
  vertical-align: middle;
}

.pm-stat {
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  background: #f9fafb;
  display: flex;
  align-items: center;
  vertical-align: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.pm-stat strong {
  font-size: 20px;
  font-weight: 800;
}

/* Accent couleur */
.pm-stat.present { border-left: 6px solid #16a34a; }
.pm-stat.late    { border-left: 6px solid #f59e0b; }
.pm-stat.absent  { border-left: 6px solid #dc2626; }
.pm-stat.rate    { border-left: 6px solid #2563eb; }

/* =====================================================
   TABLEAU
===================================================== */

.pm-presence table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.pm-presence thead {
  background: #f9fafb;
}

.pm-presence th {
  padding: 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  font-weight: 700;
  text-align: left;
}

.pm-presence td {
  padding: 14px;
  border-top: 1px solid #e5e7eb;
}

/* =====================================================
   LIGNES    TAT DISCRET
===================================================== */

.pm-row.status-present { background: #f8fffb; }
.pm-row.status-late    { background: #fffaf0; }
.pm-row.status-absent  { background: #fff5f5; }

.pm-row {
  transition: background .2s ease;
}

/* =====================================================
   TOGGLES STATUT   MODERNES
===================================================== */

.pm-presence td:nth-child(3) {
  display: flex;
  gap: 8px;
}

.pm-presence input[type="radio"] {
  display: none;
}

.pm-presence td:nth-child(3) label {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid transparent;
  transition: all .15s ease;
}

/*  tats actifs */
.pm-presence label:has(input[value="present"]:checked) {
  background: #ecfdf5;
  color: #065f46;
  border-color: #86efac;
}

.pm-presence label:has(input[value="late"]:checked) {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.pm-presence label:has(input[value="absent"]:checked) {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* =====================================================
   OBSERVATION
===================================================== */

.pm-note {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

.pm-note:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

/* =====================================================
   SUPPRESSION DES BADGES RONDS (S CURIT )
===================================================== */

.pm-row .pm-status-badge,
.pm-row .status-badge,
.pm-row .pm-pill,
.pm-table td:nth-child(3) > span,
.pm-table td:nth-child(3) > div:last-child {
  display: none !important;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
  .pm-presence td:nth-child(3) {
    flex-direction: column;
    align-items: flex-start;
  }

  .pm-stat {
    font-size: 12px;
  }

  .pm-event-header h1 {
    font-size: 28px;
  }
}
/* ================================
   SUPPRESSION  L MENTS EVENT MANAGER
================================ */

/* Event Type + cat gorie */
.em-event-type,
.em-event-type *,
.em-event-categories,
.em-event-location,
.em-item-meta,
.em-item-meta-column,
.em-item-taxonomies,
.em-item-header,
.em-event-categories * {
  display: none !important;
}

/* Carte non disponible (map) */
.em-location-map,
.em-event-location,

.em-location-map *,
.em-map,
.em-map * {
  display: none !important;
}

/* Texte r siduel "Carte non disponible" */
.em-event p:has-text("Carte non disponible"),
.em-event span:has-text("Carte non disponible") {
  display: none !important;
}
/* ================================
   ENT TE  V NEMENT   VERSION PREMIUM
================================ */

.pm-event-header {
  text-align: center;
  margin: 56px auto 40px;
  max-width: 900px;
}

/* Titre */
.pm-event-header h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 18px;
}

/* Date & heure sous forme de pills */
.pm-event-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pm-event-meta span {
  background: #f3f4f6;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}
/* ================================
   STATS   ALIGNEMENT HEADER
================================ */

.pm-stats {
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .pm-event-header h1 {
    font-size: 28px;
  }

  .pm-event-meta span {
    font-size: 14px;
  }
}
/* ================================
   SUPPRESSION EVENT TYPE (FINAL)
================================ */

/* Titre EVENT TYPE */
.em-event h2,
.em-event h3 {
  display: none !important;
}

/* Contenu cat gorie (ex: CGE 1) */
.em-event-type,
.em-event-type *,
.em-event-categories,
.em-event-categories * {
  display: none !important;
}
/* ================================
   SUPPRESSION "CARTE NON DISPONIBLE"
================================ */

/* Bloc carte + map */
.em-location-map,
.em-location-map *,
.em-map,
.em-map * {
  display: none !important;
}

/* Texte r siduel */
.em-event p,
.em-event span {
  max-height: none;
}

/* Ciblage du texte exact */
.em-event p:contains("Carte non disponible"),
.em-event span:contains("Carte non disponible") {
  display: none !important;
}
/* ================================
   ENT TE EVENT   NETTOYAGE ESPACES
================================ */

.em-event {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.em-event > div:empty {
  display: none !important;
}
/* =========================================
   SUPPRESSION DEFINITIVE "Carte non disponible"
   (Event Manager texte orphelin)
========================================= */

/* Cas 1 : paragraphe texte seul */
.em-event p {
  text-align: center;
}

/* Cache les paragraphes courts vides / info map */
.em-event p:empty,
.em-event p:has(> br) {
  display: none !important;
}

/* Cas 2 : bloc map sans map */
.em-event .em-location-map + p {
  display: none !important;
}

/* Cas 3 : texte direct sous em-event */
.em-event > p {
  display: none !important;
}

/* S curit  : ne jamais toucher   ton contenu */
.pm-presence,
.pm-event-header {
  display: block !important;
}
/* =========================================
   TABLE "MES PR SENCES"   ALIGNEMENT FIX
========================================= */

/* Desktop : tableau NORMAL */
@media (min-width: 769px) {

  .presence-table {
    table-layout: fixed;
    width: 100%;
  }

  .presence-table th,
  .presence-table td {
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
  }

  /* D sactive les labels responsives */
  .presence-table td::before {
    content: none !important;
    display: none !important;
  }
}

/* Mobile : affichage responsive */
@media (max-width: 768px) {

  .presence-table thead {
    display: none;
  }

  .presence-table tr {
    display: block;
    margin-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
  }

  .presence-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .presence-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
  }
}
/* =========================================
   FIX D CALAGE TABLE "MES PR SENCES"
========================================= */

.presence-table {
  table-layout: fixed;
  width: 100%;
}

/* Force EXACTEMENT 5 colonnes */
.presence-table colgroup col:nth-child(1) { width: 90px; }
.presence-table colgroup col:nth-child(2) { width: 30%; }
.presence-table col:nth-child(3) { width: 120px; }
.presence-table col:nth-child(4) { width: 220px; }
.presence-table col:nth-child(5) { width: 240px; }

/* S curit  anti-colonne fant me */
.presence-table td:empty {
  display: none;
}
/* =========================================
   FIX D CALAGE TABLE DESKTOP (data-label)
========================================= */

/* D sactive le mode "mobile table" en desktop */
@media (min-width: 769px) {
  .presence-table td::before {
    content: none !important;
    display: none !important;
  }
}
/* ===== FIX COLONNE EVENT ID ===== */
.presence-table {
  table-layout: fixed;
}

.presence-table th:first-child,
.presence-table td:first-child {
  width: 90px;
  text-align: center;
  white-space: nowrap;
}
.pm-refresh-wrap{
  text-align: center;
  margin: 16px 0 24px;
}

.pm-refresh-btn{
  background: #f3f4f6;
  color: #111827;
  border: 1px solid #d1d5db;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}

.pm-refresh-btn:hover{
  background: #e5e7eb;
}

.pm-refresh-btn:active{
  transform: scale(0.97);
}
/* Mon emploi du temps */
.pm-schedule{
  max-width:1100px;
  margin:40px auto;
  font-family:system-ui;
}

.pm-day{
  margin:32px 0 14px;
  font-size:18px;
  font-weight:500;
  color:#0751f2;
}

.pm-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
  gap:16px;
}

.pm-card{
  background:#efecec;
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  transition:.2s;
}

.pm-card:hover{
  transform:translateY(-5px);
}

.pm-time{
  font-size:14px;
  font-weight:700;
  color:#2563eb;
}

.pm-title{
  font-size:16px;
  font-weight:700;
  margin:6px 0;
  color:#f5f508;
}

.pm-teacher{
  font-size:13px;
  color:#6b7280;
}
/*---------------------------------

/* =====================================================
   EMPLOI DU TEMPS STAGIAIRE — RESPONSIVE (CARTES)
   (Ne touche pas la feuille de présence)
===================================================== */

/* Zone globale (si ton shortcode est dans entry-content) */
.pm-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* desktop */
  margin: 10px 0 24px;
}

/* Cartes */
.pm-card {
  background: #ebe9e9;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  overflow: hidden;
}

.pm-card-header {
  padding: 16px 16px 10px;
}

.pm-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #0650f1;
  /* éviter les débordements */
  word-break: break-word;
}

.pm-card-body {
  padding: 0 16px 16px;
  color: #374151;
}

.pm-card-meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.pm-card-meta strong {
  font-weight: 700;
}

/* Titre jour (ex: lundi 12/01/2026) */
.pm-day-title {
  /* si tes jours sont des <h3> sans classe */
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #e5aa16;
}


/* =====================================================
   FILTRES (form) — RESPONSIVE
===================================================== */

.pm-card form {
  width: 100%;
}

.pm-card form[method="get"] {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pm-card form[method="get"] label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #111827;
}

.pm-card input[type="month"] {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
}

/* Bouton (si tu utilises .pm-btn déjà) */
.pm-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

/* =====================================================
   BREAKPOINTS
===================================================== */

/* Tablette */
@media (max-width: 1024px) {
  .pm-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 640px) {
  .pm-cards {
    grid-template-columns: 1fr;
  }

  /* Titre jour (ex: lundi 12/01/2026) */
.pm-day-title
 {
  /* si tes jours sont des <h3> sans classe */
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #edab06;
}

  .pm-card form[method="get"] {
    align-items: flex-start;
  }

  /* Le bouton prend toute la largeur sur mobile (plus UX) */
  .pm-card form[method="get"] .pm-btn {
    width: 100%;
    text-align: center;
  }

  .pm-card-title {
    font-size: 15px;
   }

  .pm-card-meta {
    font-size: 13px;
  }
}
.pm-refresh-wrap,
.pm-export-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* espace entre les boutons */
  flex-wrap: wrap; /* repasse à la ligne sur mobile */
}

/* S'assurer que les liens se comportent comme des boutons */
.pm-export-actions a,
.pm-refresh-wrap button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-actions-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
  flex-wrap: wrap; /* mobile friendly */
}

.pm-actions-line .pm-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   CONTAINER GLOBAL
================================ */
.pm-presence-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
}

.pm-presence-filter label {
  font-weight: 600;
}

.pm-presence-total {
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 500;
  color: #053981;
}

/* ===============================
   TABLE WRAPPER
================================ */
.pm-table-wrap {
  background: linear-gradient(180deg, #9a9b9d, #ffffff);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* ===============================
   TABLE
================================ */
.pm-presence-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}

.pm-presence-table thead th {
  background: #f3f4f6;
  color: #374151;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 700;
  padding: 14px 12px;
  border-bottom: 2px solid #e5e7eb;
}

.pm-presence-table tbody tr {
  transition: background .15s ease, transform .1s ease;
}

.pm-presence-table tbody tr:hover {
  background: #f9fafb;
}

.pm-presence-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f1f3;
  color: #111827;
  vertical-align: middle;
}

.pm-presence-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===============================
   CELLS
================================ */
.pm-title-cell {
  font-weight: 600;
  color: #1d4ed8;
}

.pm-title-cell small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

/* ===============================
   BADGES
================================ */
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Présent */
.pm-status-present {
  background: #ecfdf5;
  color: #047857;
}

/* Absent */
.pm-status-absent {
  background: #fef2f2;
  color: #b91c1c;
}

/* Retard */
.pm-status-late {
  background: #fffbeb;
  color: #92400e;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .pm-presence-table thead {
    display: none;
  }

  .pm-presence-table tbody tr {
    display: block;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    background: #fff;
  }

  .pm-presence-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f1f1;
  }

  .pm-presence-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
  }

  .pm-presence-table tbody tr:last-child td {
    border-bottom: none;
  }
}
.pm-card-with-media{
  display:flex;
  gap:20px;
  align-items:flex-start;
}
/* =====================================================
   ⚠️ ZONE PROTÉGÉE — FEUILLE DE PRÉSENCE
   (NE PAS MODIFIER)
===================================================== */

/* Tout ton CSS actuel de feuille de présence
   (.pm-presence, .pm-stats, tables, radios, etc.)
   👉 STRICTEMENT IDENTIQUE
   👉 JE N’Y TOUCHE PAS
*/

/* =====================================================
   CARTES – EMPLOI DU TEMPS & MES SÉANCES (UNIFIÉ)
===================================================== */

.pm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin: 16px 0 28px;
}

/* ===============================
   CARTE
================================ */
.pm-card {
  background: #f1eeee;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}

.pm-card:hover {
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

/* ===============================
   HEADER (Titre + badge)
================================ */
.pm-card-header {
  background: #e3efff;
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pm-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0b51ff;
  line-height: 1.3;
}

.pm-badge-day {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* États */
.pm-card.future .pm-badge-day {
  background: #dbeafe;
  color: #1d4ed8;
}
.pm-card.today .pm-badge-day {
  background: #dcfce7;
  color: #166534;
}
.pm-card.past .pm-badge-day {
  background: #e5e7eb;
  color: #374151;
}

/* ===============================
   STRUCTURE AVEC IMAGE
================================ */
.pm-card-with-media {
  display: grid;
  grid-template-columns: 1fr 260px;
  column-gap: 24px;
  row-gap: 16px;
}

/* Image */
.pm-card-media {
  grid-column: 2;
  grid-row: 2 / span 3;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
}

.pm-card-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  transition: transform .3s ease;
}

.pm-card:hover .pm-card-media img {
  transform: scale(1.03);
}

/* ===============================
   CONTENU
================================ */
.pm-card-body {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.pm-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

/* ===============================
   FOOTER (Boutons)
================================ */
.pm-card-footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pm-btn {
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}

.pm-btn:hover {
  background: #1e40af;
}

.pm-btn.secondary {
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.pm-btn.secondary:hover {
  background: #eff6ff;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {

  .pm-cards {
    grid-template-columns: 1fr;
  }

  .pm-card-with-media {
    display: flex;
    flex-direction: column;
  }

  /* Ordre mobile */
  .pm-card-header { order: 1; }
  .pm-card-media  { order: 2; }
  .pm-card-body   { order: 3; }
  .pm-card-footer { order: 4; }

  .pm-card-media {
    width: 100%;
    margin: 10px 0 14px;
  }

  .pm-card-media img {
    width: 100%;
    max-height: 220px;
    border-radius: 18px;
  }

  .pm-card-footer {
    flex-direction: column;
  }

  .pm-card-footer .pm-btn {
    width: 100%;
    text-align: center;
  }
}
/* HEADER TOUJOURS PLEINE LARGEUR */
.pm-card-with-media .pm-card-header {
  grid-column: 1 / -1;
}
/* =========================================================
   EMPLOI DU TEMPS STAGIAIRE – HEADER PLEINE LARGEUR
   (alignement identique à "Mes séances")
   ========================================================= */

/* Carte avec image (stagiaire) */
.pm-card.pm-card-with-media {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
}

/* Header toujours sur toute la largeur */
.pm-card.pm-card-with-media .pm-card-header {
  grid-column: 1 / -1;
}

/* Corps des infos à gauche */
.pm-card.pm-card-with-media .pm-card-body {
  grid-column: 1;
}

/* Image à droite */
.pm-card.pm-card-with-media .pm-card-media {
  grid-column: 2;
  align-self: center;
}

/* Image arrondie propre */
.pm-card.pm-card-with-media .pm-card-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}
/*---------------------------------------------------------------------------------*/

/* =====================================================
   FIX DEFINITIF – EMPLOI DU TEMPS STAGIAIRE
   Badge au-dessus du contenu, image à droite
===================================================== */

.pm-card.pm-card-with-media {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas:
    "badge image"
    "content image";
  column-gap: 28px;
  align-items: start;
}

/* Badge */
.pm-card.pm-card-with-media > .pm-badge {
  grid-area: badge;
  position: static;
  margin-bottom: 12px;
}

/* Contenu texte */
.pm-card.pm-card-with-media > .pm-card-content {
  grid-area: content;
  align-items: flex-start;
  text-align: left;
}

/* Mobile : empilement naturel */
@media (max-width: 768px) {
  .pm-card.pm-card-with-media {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "image"
      "content";
  }
}






/* =========================================================
   FIX UNIQUE – Badge / Titre
   Emploi du temps stagiaire & cartes avec image
   ========================================================= */

/* On garde la structure EXISTANTE */
.pm-card.pm-card-with-media {
  position: relative;
}

/* Le badge NE DOIT PAS être absolute */
.pm-card.pm-card-with-media > .pm-badge {
  position: static !important;
  display: inline-block;
  margin-bottom: 12px;
}

/* Le contenu reste naturel */
.pm-card.pm-card-with-media .pm-card-content {
  margin-top: 0;
}

/* Titre toujours lisible */
.pm-card.pm-card-with-media .pm-card-title {
  margin-top: 0;
}
