/*Boutton*/
.Button-reseau .wp-block-button__link {
  box-shadow: 0 0 12px rgba(255,0,0,0.6);
  display: inline-block;
}


/*homepage*/
  .image-home img{
     border-radius: 24px !important;
    padding: 12px !important;
    background: #111 !important;
    box-shadow: 
        0 12px 26px rgba(0,0,0,0.35),
        0 0 18px rgba(0,255,180,0.06);
}

.histoire {
    display: flex;
    gap: 20px; /* facultatif */
}

.histoire .section {
    flex: 1;              /* chaque section prend la même largeur */
    display: flex;        /* permet d’étirer le contenu */
    flex-direction: column;
    height: 100%;         /* permet d’uniformiser la hauteur */
}

/* Bloc Histoire : colonnes de même hauteur */
.histoire .kt-row-layout-wrap {
    align-items: stretch;   /* on étire toutes les colonnes */
}

/* chaque colonne devient un flex container */
.histoire .wp-block-kadence-column {
    display: flex;
}

/* le contenu interne de la colonne remplit toute la hauteur */
.histoire .wp-block-kadence-column > .kt-inside-inner-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}
/* teinte des info chaufeur*/
.chauffeur a {
    color: #16A74E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chauffeur a:hover {
    color: #F2DC00;
}

/* === Hiérarchie : colonnes de rôle à hauteur identique === */

/* 1) Le container (grid) doit étirer ses items */
.hierarchie .kt-row-column-wrap,
.hierarchie .kt-inside-inner-col {
  align-items: stretch;
}

/* 2) Chaque colonne (tu as mis la classe "colonne-role" sur le bloc Colonne) prend toute la hauteur */
.hierarchie .colonne-role{
  height: 100%;
  display: flex;
}

/* 3) Le wrapper interne Kadence doit aussi s'étirer */
.hierarchie .colonne-role > .kt-inside-inner-col{
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 4) La carte (ton groupe/section "presentation") remplit la colonne */
.hierarchie .colonne-role .presentation{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* ou space-between si tu veux mieux répartir le contenu */
}
/* Conteneur des colonnes */
.colonne-role {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

/* Cartes */
.colonne-role .role-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 220px; /* ajuste si besoin */
}

/*carré couleur*/
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;

  /* couleur par défaut */
  background-color: #138A3F;

  /* optionnel : petite bordure clean */
  border: 2px solid rgba(255,255,255,0.2);
}
.color-yellow {
  background-color: #e5c900;
}

.color-dark-green {
  background-color: #164f2c;
}

/*button réglement*/
/* Conteneur */
.liens-rapides {
  margin: 18px 0 8px;
}

.liens-rapides__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Bouton générique */
.btn-ressource {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #1f1f1f;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

/* Hover global Jim Transport */
.btn-ressource:hover {
  background: #16A74E; /* Vert Vaud */
  color: #F2DC00;      /* Jaune Jim */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 167, 78, 0.35);
}

/* Variantes par plateforme (fond initial) */
.btn-site {
  background: #2a3f36;
  color: #F2DC00;
}

.btn-discord {
  background: #5865F2;
}

.btn-tmp {
  background: #0c1f2e;
}

.btn-trucksbook {
  background: #1a1a1a;
}

.btn-trucky {
  background: #10151a;
}

/* Focus accessibilité (tu l'avais déjà) */
#reglement-jim-transport a:focus,
#reglement-jim-transport button:focus {
  outline: 3px dashed var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* CTA wrapper */
.reg-cta{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  justify-content:center;
  margin:18px 0 0;
  text-align:center;
}

/* Texte d’aide */
.reg-cta__hint{ color:#9fd3b0; font-size:14px; }
.reg-cta__fineprint{ color:#9fd3b0; font-size:12px; }

/* Boutons */
.btn{
  display:inline-block;
  padding:14px 18px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.3px;
  border:none;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

/* Bouton "accept" */
.btn-accept{
  background:linear-gradient(135deg, var(--accent), #ffd84d);
  color:#0b1a14;
}

/* Bouton "cta candidature" */
.btn-cta{
  background:linear-gradient(135deg, var(--brand), #1fd277);
  color:#0b1a14;
}

/* État désactivé du lien */
#cta-join[aria-disabled="true"]{
  pointer-events:none;
  opacity:.5;
}

/* État désactivé du bouton */
#accept-button:disabled{
  cursor:not-allowed;
  opacity: .75;
}

/* Modal */
.reg-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.reg-modal[hidden]{ display:none; }

.reg-modal__panel{
  max-width:560px;
  width:100%;
  background:#10261d;
  color:#eafff3;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  overflow:hidden;
}

.reg-modal__head{
  padding:18px 20px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.reg-modal__title{
  margin:0;
  font-size:20px;
}

.reg-modal__close{
  background:transparent;
  border:none;
  color:#eafff3;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.reg-modal__body{ padding:18px 20px; }
.reg-modal__desc{ margin:0; }

.reg-modal__foot{
  padding:16px 20px;
  display:flex;
  gap:10px;
  justify-content:flex-end;
  border-top:1px solid rgba(255,255,255,.08);
  flex-wrap:wrap;
}
/*formulaire*/
:root{
  --brand:#16A74E;       /* Vert Vaud */
  --brand-dark:#164F2C;  /* Vert foncé profond */
  --accent:#E5C900;      /* Jaune doux vaudois */
  --ink:#0b1a14;
  --soft:#eaf5ef;
  --radius:14px;
  --shadow:0 8px 28px rgba(0,0,0,.18);

  /* =========================
     ESPACEMENTS (AJOUT)
     ========================= */
  --jt-space: 22px;      /* espace entre gros blocs (fieldset, textarea, sections) */
  --jt-space-sm: 12px;   /* espace “petit” (hint, sous-bloc, séparations) */
  --jt-space-xs: 8px;    /* micro-espaces */
}

*{ box-sizing:border-box; }

/* Wrapper isolé -> ne touche pas au theme WP */
.jt-page{
  padding:24px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  background:linear-gradient(180deg,var(--brand-dark) 0%, #0e2f21 40%, #0a241a 100%);
  border-radius:16px;
}

.jt-wrap{ max-width:920px; margin:0 auto; }

/* Texte blanc UNIQUEMENT dans ce module */
.jt-page p,
.jt-page h1, .jt-page h2, .jt-page h3, .jt-page h4, .jt-page h5, .jt-page h6,
.jt-page label,
.jt-page li,
.jt-page span{
  color:#fff;
}

/* =========================
   FORM — ESPACES (AJOUT)
   ========================= */
.jt-form{
  background:linear-gradient(135deg,var(--brand-dark) 0%, #123a2a 50%, #0f2b20 100%);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
  border:1px solid rgba(229,201,0,.18);

  /* AJOUT: gérer les espacements automatiquement */
  display:flex;
  flex-direction:column;
  gap:var(--jt-space);
}

.jt-header{ text-align:center; margin-bottom:var(--jt-space-sm); } /* modif */
.jt-h1{
  margin:0 0 6px;
  font-weight:800;
  letter-spacing:.2px;
  color:var(--accent) !important; /* reste jaune */
  text-transform:uppercase;
}
.jt-intro{
  margin:0 auto var(--jt-space-sm); /* modif */
  max-width:680px;
  opacity:.95;
  font-size:15px;
}

/* Grilles */
.jt-grid{ display:grid; gap:var(--jt-space); } /* modif: 14px -> var */
@media (min-width:720px){ .jt-grid-2{ grid-template-columns:1fr 1fr; } }

.jt-label{ font-weight:600; display:block; margin-bottom:6px; } /* AJOUT */
.jt-req::after{ content:" *"; color:#fff; font-weight:700; }
.jt-hint{ font-size:12px; opacity:.85; margin-top:6px; } /* modif léger */

.jt-form input[type="text"],
.jt-form input[type="number"],
.jt-form input[type="url"],
.jt-form textarea,
.jt-form select{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:var(--ink);
  outline:none;

  /* AJOUT: un peu d’air sous les champs quand ils s’enchaînent */
  margin-bottom:var(--jt-space-xs);
}

.jt-form input:focus,
.jt-form textarea:focus,
.jt-form select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(229,201,0,.25);
}

.jt-form textarea{
  min-height:110px;
  resize:vertical;
  /* AJOUT: les textarea respirent un peu plus */
  margin-bottom:var(--jt-space-sm);
}

.jt-form button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* Fieldset */
.jt-fieldset{
  background:rgba(0,0,0,.15);
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;

  /* modif: padding plus confortable */
  padding:calc(var(--jt-space) - 6px);
}

.jt-legend{
  color:var(--accent) !important;
  font-weight:800;
  margin-bottom:var(--jt-space-sm); /* modif */
  text-transform:uppercase;
  font-size:16px;
  letter-spacing:.4px;
}

/* Checklists / rows */
.jt-checks{ display:flex; flex-direction:column; gap:10px; } /* modif: 8px -> 10px */
.jt-row{ display:flex; align-items:center; gap:10px; }
.jt-row input[type="checkbox"],
.jt-row input[type="radio"]{ width:auto; margin:0; }

/* Sous-blocs dans fieldset (Discord/Trucky etc.) */
.jt-two{ display:grid; gap:var(--jt-space-sm); } /* modif: 12px -> var */
@media (min-width:720px){ .jt-two{ grid-template-columns:1fr auto; align-items:end; } }

.jt-warning{
  background:var(--brand-dark);
  border:1px dashed rgba(255,255,255,.35);
  padding:12px;
  border-radius:10px;
  font-size:13px;
  color:#fff;
  margin-top:var(--jt-space-sm); /* AJOUT */
}

/* Submit */
.jt-submit{
  margin-top:calc(var(--jt-space) - 6px); /* modif: 16px -> plus cohérent */
  width:100%;
  padding:15px 18px;
  background:var(--accent);
  color:#000;
  border:none;
  border-radius:12px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:.2s transform ease, .2s background ease;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.jt-submit:hover{
  background:var(--brand-dark);
  color:#fff;
  transform:translateY(-1px);
}

.jt-footer-note{
  text-align:center;
  font-size:12px;
  color:#eaeaea;
  margin-top:var(--jt-space-sm); /* modif */
  opacity:.9;
}

.jt-small{ font-size:12px; }
.jt-brand-chip{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  background:#0f3a28;
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-size:12px;
}

/* Divider */
.jt-divider{
  height:1px;
  background:rgba(255,255,255,.16);
  margin:var(--jt-space-sm) 0; /* modif: 10px 0 4px -> var */
  border-radius:1px;
}
.jt-disabled-note{ opacity:.6; filter:saturate(.8); }

/* Modal */
.jt-modal{ position:fixed; inset:0; display:none; place-items:center; background:rgba(0,0,0,.55); z-index:9999; padding:16px; }
.jt-modal.show{ display:grid; }
.jt-modal__card{
  max-width:560px; width:100%;
  background:#0f2b20;
  border:1px solid rgba(255,255,255,.15);
  border-radius:16px;
  padding:22px;
  color:#fff;
  box-shadow:0 10px 40px rgba(0,0,0,.45);
}
.jt-modal__card h3{ margin:0 0 6px; color:var(--accent); }

.jt-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; flex-wrap:wrap; }
.jt-btn{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  background:#123a2a;
  color:#fff;
  cursor:pointer;
  text-decoration:none;
}
.jt-btn:hover{ background:#0c2b1f; }

/* Inline errors */
.jt-err{ border-color:#ff5656 !important; }
.jt-err-msg{ color:#ffdede; font-size:12px; margin-top:6px; }

/* DLC highlight */
#jt-legend-dlc{ font-size:22px; letter-spacing:.6px; }
.jt-fieldset-dlc{
  border:2px solid var(--accent);
  box-shadow:0 0 0 3px rgba(229,201,0,.12) inset;
  background:rgba(0,0,0,.18);
}

/* Checkmark ✓ pour inputs valides */
.jt-ok-wrap{ position:relative; display:block; }
.jt-ok-mark{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:var(--brand); color:#fff; border-radius:999px;
  width:20px; height:20px; display:grid; place-items:center;
  font-weight:800; font-size:12px; box-shadow:0 0 0 2px #fff;
  opacity:0; transition:opacity .15s ease;
}
.jt-ok-wrap.valid .jt-ok-mark{ opacity:1; }

/* ✓ vert à côté des radios/checkbox quand sélectionnés */
.jt-page label.jt-row:has(input[type="radio"]:checked)::after,
.jt-page label.jt-row:has(input[type="checkbox"]:checked)::after{
  content:'\2713';
  display:inline-grid; place-items:center;
  width:20px; height:20px; margin-left:8px;
  background:var(--brand); color:#fff; border-radius:999px;
  box-shadow:0 0 0 2px #fff; font-weight:800; font-size:12px;
}

/* ✓ group pour Jeux (au moins une case cochée) */
.jt-checks#jt-jeux{ position:relative; }
.jt-checks#jt-jeux:has(input[type="checkbox"]:checked)::after{
  content:'\2713';
  position:absolute; right:10px; top:-8px;
  width:20px; height:20px; display:grid; place-items:center;
  background:var(--brand); color:#fff; border-radius:999px;
  box-shadow:0 0 0 2px #fff; font-weight:800; font-size:12px;
}

/*american truc*/
.sj-ats-videos{
  --brand:#164f2c33;
  --dark:#164f2c;

  background:#282828;
  border-radius:16px;
  padding:20px;
  max-width:1440px;
  margin:0 auto;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
}

.sj-ats-videos__header{
  background:var(--brand);
  color:#fff;
  border-radius:12px;
  padding:16px;
  text-align:center;
  margin-bottom:16px;
}

.sj-ats-videos__header h2{
  margin:0;
  font-size:1.6rem;
}

.sj-ats-videos__grid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.sj-ats-videos__ratio{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 10px rgba(0,0,0,.25);
}

.sj-ats-videos__ratio iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/*Page blog*/
/* =========================
   BLOG / ARCHIVE - Query Loop
   ========================= */

/* IMPORTANT : on ne force PAS de grid ici.
   Le Query Loop (Grille) gère déjà les colonnes. */
.jt-blog-loop{
  padding: 32px 0;
}

/* La carte = le Groupe dans le modèle de publication */
.jt-postcard{
  background: #282828;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative; /* utile pour le "carte entière cliquable" */
}

/* ✅ Hover premium (desktop only) */
@media (hover:hover){
  .jt-postcard{
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .jt-postcard:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.22);
  }
}

/* ✅ Optionnel : si pas d'image -> faux header "fantôme"
   Ajoute la classe jt-postcard--no-thumb sur le Groupe */
.jt-postcard--no-thumb::before{
  content:"";
  display:block;
  height: 220px; /* doit matcher la hauteur image */
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}

/* Image */
.jt-postcard__thumb{
  margin: 0;
}

.jt-postcard__thumb img{
  width: 100%;
  height: 220px;          /* ajuste si tu veux */
  object-fit: cover;
  display: block;
}

/* Contenu interne : padding sur blocs texte */
.jt-postcard__title,
.jt-postcard__excerpt,
.jt-postcard__meta{
  padding-left: 18px;
  padding-right: 18px;
}

/* Titre */
.jt-postcard__title{
  margin-top: 16px;
  margin-bottom: 8px;
}

/* ✅ Carte entière cliquable :
   On étend le lien du titre sur toute la carte,
   tout en gardant "more-link" cliquable */
.jt-postcard__title a{
  color: #f2dc00;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
  display: inline-block;
}
.jt-postcard__title a:hover{
  text-decoration: underline;
}

/* Pseudo-overlay clickable */
.jt-postcard__title a::after{
  content:"";
  position:absolute;
  inset:0;
}

/* On remet les éléments interactifs au-dessus de l’overlay */
.jt-postcard .wp-block-post-excerpt__more-link{
  position: relative;
  z-index: 2;
}

/* Extrait */
.jt-postcard__excerpt{
  margin-top: 0;
  margin-bottom: 14px;
  color: #ffffff;
  line-height: 1.55;

  /* ✅ Clamp : garde des cartes homogènes */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta (date) collée en bas */
.jt-postcard__meta{
  margin-top: auto;
  padding-bottom: 16px;
  padding-top: 10px;
  font-size: 13px;

  /* ⚠️ Ton ancien color était sombre, sur fond sombre ça se perd */
  color: rgba(255,255,255,.65);

  border-top: 1px solid rgba(255,255,255,.10);
}

/* Pour que le "Lire la suite" soit plus propre */
.jt-postcard .wp-block-post-excerpt__more-link{
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #e5c900;
  text-decoration: none;
}
.jt-postcard .wp-block-post-excerpt__more-link:hover{
  text-decoration: underline;
}

/* Responsive : baisse la hauteur image sur petits écrans */
@media (max-width: 600px){
  .jt-postcard__thumb img{ height: 180px; }
  .jt-postcard--no-thumb::before{ height: 180px; }
}

/* =========================
   PAGINATION
========================= */

.sj-blog-pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  gap: 10px;
}

.sj-blog-pagination a,
.sj-blog-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  background: #164f2c;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.sj-blog-pagination span.current {
  background: #e5c900;
  color: #000;
}

/* =========================
   SEARCH RESULTS (template search)
   ========================= */

.jt-search-wrap{
  padding: 24px 0 10px;
}

/* On laisse le Query Loop gérer la grille */
.jt-search-loop{
  padding: 24px 0 32px;
}

/* La carte */
.jt-search-card{
  background: #282828;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* THUMB / Featured image
   -> on neutralise les styles WP (max-width / height:auto)
   -> on impose un ratio propre
*/
.jt-search-card__thumb{
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;          /* <-- remplace ton 3/2 qui fout le bazar */
  overflow: hidden;
  background: #111;              /* joli fallback si l'image est "bizarre" ou absente */
}

/* Lien interne du bloc featured image */
.jt-search-card__thumb a{
  display: block;
  width: 100%;
  height: 100%;
}

/* Image */
.jt-search-card__thumb img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;    /* <-- kill le max-width:800px */
  object-fit: cover !important;
  display: block;
}

/* Padding texte */
.jt-search-card__title,
.jt-search-card__excerpt,
.jt-search-card__meta{
  padding-left: 18px;
  padding-right: 18px;
}

/* Titre */
.jt-search-card__title{
  margin-top: 16px;
  margin-bottom: 8px;
}

.jt-search-card__title a{
  color: #f2dc00;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
}

.jt-search-card__title a:hover{
  text-decoration: underline;
}

/* Extrait */
.jt-search-card__excerpt{
  margin-top: 0;
  margin-bottom: 14px;
  color: #ffffff;
  line-height: 1.55;
}

/* Meta collée en bas */
.jt-search-card__meta{
  margin-top: auto;
  padding-bottom: 16px;
  padding-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Si WP ajoute un "more link" dans l'extrait */
.jt-search-card .wp-block-post-excerpt__more-link{
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #e5c900;
  text-decoration: none;
}

.jt-search-card .wp-block-post-excerpt__more-link:hover{
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px){
  .jt-search-card__thumb{
    aspect-ratio: 16 / 10;
  }
}
/*Spotify*/
/* =========================
   Spotify Drawer Global
   ========================= */

.jt-spotify-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  background: #282828;
  color: #f2dc00;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.jt-spotify-fab:hover{
  transform: translateY(-1px);
}

.jt-spotify-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
}

.jt-spotify-drawer{
  position: fixed;
  right: 18px;
  bottom: 70px;
  width: min(420px, calc(100vw - 36px));
  background: #282828;
  border-radius: 16px;
  padding: 14px;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.jt-spotify-drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
}

.jt-spotify-drawer__close{
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.jt-spotify-drawer__player iframe{
  width: 100%;
  height: 352px;
  border: 0;
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

.jt-spotify-drawer__cta{
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255,255,255,.92);
  color: #000;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.jt-spotify-drawer__cta:hover{
  text-decoration: underline;
}

/* Mobile: évite que ça prenne toute la place */
@media (max-width: 600px){
  .jt-spotify-drawer{
    right: 12px;
    bottom: 66px;
    width: calc(100vw - 24px);
  }
  .jt-spotify-drawer__player iframe{ height: 240px; }
}

/* ===============================
   Bouton image règlement animé
   =============================== */

.reglement {
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
  animation: reglement-float 4s ease-in-out infinite;
}

/* Hover */
.reglement:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

/* Petit glow animé discret */
.reglement::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(6,213,113,0.35) 0%, rgba(6,213,113,0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.reglement:hover::after {
  opacity: 1;
}

/* Float animation */
@keyframes reglement-float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}
/* =========================
   Popup dernier article
   ========================= */

/* =========================
   Popup style notification (bottom right)
   ========================= */

.jt-popup-overlay {
  position: fixed;
  bottom: 24px;
  right: 24px;
  top: auto;
  left: auto;

  background: none; /* ❌ plus de fond noir */

  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 99999;
}

.jt-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Card */
.jt-popup-card {
  position: relative;
  width: 360px;
  max-width: 90vw;

  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);

  border-radius: 16px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);

  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.jt-popup-overlay.show .jt-popup-card {
  transform: translateY(0) scale(1);
}

/* Bouton fermer (amélioré 🔥) */
.jt-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background: rgba(0,0,0,0.7);
  color: #fff;

  font-size: 18px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 10;

  transition: all 0.2s ease;
}

.jt-popup-close:hover {
  background: #9fdc8c;
  color: #111;
  transform: scale(1.1);
}

/* Texte */
.jt-popup-kicker {
  margin: 0;
  padding: 16px 16px 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fdc8c;
}

.jt-popup-title {
  margin: 4px 0 12px;
  padding: 0 16px;
  font-size: 1.2rem;
  color: #fff;
}

/* Image */
.jt-popup-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.jt-popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenu */
.jt-popup-content {
  padding: 12px 16px 16px;
}

.jt-popup-post-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #ddd;
}

/* Bouton */
.jt-popup-button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #9fdc8c;
  color: #111;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Hover image */
.jt-popup-link:hover .jt-popup-image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .wp-block-buttons > .wp-block-button.wp-block-button__width-25 {
    width: 100% !important;
  }
}