/**
 * Training Manager - Frontend Styles
 */

/* Variables */
:root {
    --tm-primary: #E91E8C;
    --tm-secondary: #00B4D8;
    --tm-dark: #1a1a1a;
    --tm-gray: #666666;
    --tm-light: #f5f5f5;
    --tm-white: #ffffff;
    --tm-border-radius: 12px;
    --tm-transition: 0.3s ease;
}

/* ==========================================================================
   Hide theme duplicate elements on formation pages
   The formation hero shortcode generates its own title, image, etc.
   ========================================================================== */

/* Hide Ollie's default post elements on formation standalone pages */
body.single-training_standalone .wp-block-post-title,
body.single-training_standalone .wp-block-post-date,
body.single-training_standalone .wp-block-post-featured-image,
body.single-training_standalone main > .wp-block-group > .wp-block-group > h1,
body.single-training_standalone main > .wp-block-group > .wp-block-group > .wp-block-group:has(.wp-block-post-date),
body.single-training_standalone main > .wp-block-group > .wp-block-group > figure {
    display: none !important;
}

/* Hide the entire first group that contains title/date/image */
body.single-training_standalone main > .wp-block-group.alignfull:first-child {
    display: none !important;
}

/* Reset main padding when hero is moved outside */
body.single-training_standalone.tm-hero-moved main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Also hide on cycles and modules if needed */
body.single-training_cycle .wp-block-post-title,
body.single-training_cycle .wp-block-post-featured-image,
body.single-training_module .wp-block-post-title,
body.single-training_module .wp-block-post-featured-image {
    display: none !important;
}

/* Modules Grid */
.tm-modules-grid {
    display: grid;
    gap: 20px;
}

.tm-modules-grid.tm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tm-modules-grid.tm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tm-modules-grid.tm-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Grille dynamique - Pattern alterné 4 colonnes */
.tm-modules-grid.tm-grid-dynamic {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Pattern ligne 1: petite + grande (2 cols) + petite */
.tm-modules-grid.tm-grid-dynamic .tm-module-card:nth-child(6n+2) {
    grid-column: span 2;
}

/* Pattern ligne 2: grande (2 cols) + petite + petite */
.tm-modules-grid.tm-grid-dynamic .tm-module-card:nth-child(6n+4) {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .tm-modules-grid.tm-columns-3,
    .tm-modules-grid.tm-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Grille dynamique en tablette - 2 colonnes */
    .tm-modules-grid.tm-grid-dynamic {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* En tablette: alterner petite + grande */
    .tm-modules-grid.tm-grid-dynamic .tm-module-card:nth-child(odd) {
        grid-column: span 1;
    }
    
    .tm-modules-grid.tm-grid-dynamic .tm-module-card:nth-child(even) {
        grid-column: span 1;
    }
    
    /* Réinitialiser les grandes cartes desktop */
    .tm-modules-grid.tm-grid-dynamic .tm-module-card:nth-child(6n+2),
    .tm-modules-grid.tm-grid-dynamic .tm-module-card:nth-child(6n+4) {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .tm-modules-grid,
    .tm-modules-grid.tm-grid-dynamic {
        grid-template-columns: 1fr;
    }
    
    .tm-modules-grid.tm-grid-dynamic .tm-module-card {
        grid-column: span 1;
    }
}

/* Module Card */
.tm-module-card {
    position: relative;
    display: block;
    border-radius: var(--tm-border-radius);
    overflow: hidden;
    background-color: var(--tm-dark);
    background-size: cover;
    background-position: center;
    height: 400px;
    text-decoration: none;
    color: var(--tm-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tm-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--tm-white);
}

@media (max-width: 600px) {
    .tm-module-card {
        height: 300px;
    }
}

.tm-module-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-module-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-module-number {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tm-dark);
    color: var(--tm-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tm-module-number::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--tm-primary);
    border-radius: 50%;
}

.tm-teaching-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tm-white);
}

.tm-module-content {
    color: var(--tm-white);
}

.tm-module-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    text-wrap: pretty;
}

@media (max-width: 600px) {
    .tm-module-overlay {
        padding: 15px;
    }
    
    .tm-module-title {
        font-size: 1.1rem;
    }
    
    .tm-module-subtitle {
        font-size: 0.85rem;
    }
    
    .tm-module-badges {
        gap: 6px;
    }
    
    .tm-module-number,
    .tm-teaching-type {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

.tm-module-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 8px;
}

.tm-module-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.tm-module-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--tm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tm-transition);
    pointer-events: none;
}

.tm-module-card:hover .tm-module-link {
    transform: translateX(-50%) scale(1.1);
}

.tm-icon-eye {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    background-size: contain;
}

/* Modules Details */
.tm-modules-details {
    max-width: 900px;
}

.tm-module-detail {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.tm-module-detail:last-child {
    border-bottom: none;
}

.tm-module-detail-header {
    margin-bottom: 30px;
}

.tm-module-detail-title {
    font-size: 2rem;
    margin: 0 0 15px;
    color: var(--tm-dark);
}

.tm-module-detail-title .tm-hash {
    color: var(--tm-primary);
    margin-left: 10px;
}

.tm-module-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.tm-module-detail-date,
.tm-module-detail-number {
    font-size: 0.9rem;
    color: var(--tm-gray);
}

.tm-module-detail-content {
    margin-bottom: 30px;
}

.tm-module-brief,
.tm-module-teachings {
    margin-bottom: 25px;
}

.tm-module-brief h3,
.tm-module-teachings h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--tm-dark);
}

.tm-module-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Buttons */
.tm-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--tm-transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

@media (max-width: 480px) {
    .tm-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .tm-module-ctas,
    .tm-details-ctas {
        flex-direction: column;
    }
}

.tm-btn-primary {
    background: var(--tm-primary);
    color: var(--tm-white);
}

.tm-btn-primary:hover {
    background: #c4177a;
    color: var(--tm-white);
}

.tm-btn-secondary {
    background: transparent;
    color: var(--tm-dark);
    border: 2px solid var(--tm-dark);
}

.tm-btn-secondary:hover {
    background: var(--tm-dark);
    color: var(--tm-white);
}

/* Formation Details Box */
.tm-formation-details-box {
    background: var(--tm-white);
    border-radius: var(--tm-border-radius);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tm-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.tm-detail-item {
    text-align: center;
}

.tm-detail-label {
    display: block;
    font-size: 0.85rem;
    color: var(--tm-gray);
    margin-bottom: 5px;
}

.tm-detail-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tm-dark);
}

.tm-details-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Formation Aperçu */
.tm-formation-apercu {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .tm-formation-apercu {
        grid-template-columns: 1fr;
    }
}

.tm-apercu-section {
    margin-bottom: 30px;
}

.tm-apercu-section h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--tm-dark);
}

.tm-apercu-sidebar {
    position: sticky;
    top: 100px;
}

.tm-after-training {
    background: var(--tm-light);
    padding: 25px;
    border-radius: var(--tm-border-radius);
}

.tm-after-training h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--tm-dark);
}

/* Formateurs Section */
.tm-formateurs-section {
    padding: 40px 0;
}

.tm-section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--tm-dark);
}

.tm-section-title span {
    color: var(--tm-primary);
}

.tm-formateurs-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.tm-formateur-card {
    text-align: center;
    max-width: 200px;
}

a.tm-formateur-card.tm-formateur-link {
    display: block;
    text-decoration: none;
    transition: var(--tm-transition);
}

a.tm-formateur-card.tm-formateur-link:hover {
    transform: translateY(-5px);
}

a.tm-formateur-card.tm-formateur-link:hover .tm-formateur-photo img {
    transform: scale(1.05);
}

a.tm-formateur-card.tm-formateur-link .tm-formateur-name {
    transition: var(--tm-transition);
}

a.tm-formateur-card.tm-formateur-link:hover .tm-formateur-name {
    color: var(--tm-primary);
}

.tm-formateur-photo {
    width: 150px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
}

.tm-formateur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tm-formateur-name {
    font-size: 1.1rem;
    margin: 0 0 5px;
    color: var(--tm-dark);
}

.tm-formateur-title {
    font-size: 0.85rem;
    color: var(--tm-gray);
    margin: 0;
}

/* Sponsors Section */
.tm-sponsors-section {
    padding: 40px 0;
}

.tm-sponsors-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.tm-sponsor-logo {
    max-width: 150px;
}

.tm-sponsor-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--tm-transition);
}

.tm-sponsor-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.tm-sponsor-name {
    font-weight: 500;
    color: var(--tm-gray);
}

/* Programme Section */
.tm-programme-section {
    padding: 40px 0;
}

.tm-programme-list {
    max-width: 800px;
}

.tm-programme-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--tm-primary);
}

.tm-programme-item-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--tm-dark);
}

.tm-programme-item-content {
    color: var(--tm-gray);
    line-height: 1.7;
}

/* Gallery Section */
.tm-gallery-section {
    padding: 40px 0;
}

.tm-gallery-slider {
    position: relative;
    overflow: hidden;
}

.tm-gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.tm-gallery-track::-webkit-scrollbar {
    display: none;
}

.tm-gallery-slide {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.tm-gallery-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--tm-transition);
}

.tm-gallery-slide:hover img {
    transform: scale(1.05);
}

.tm-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--tm-white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--tm-transition);
}

.tm-gallery-nav:hover {
    background: var(--tm-primary);
    color: var(--tm-white);
}

.tm-gallery-prev {
    left: 10px;
}

.tm-gallery-next {
    right: 10px;
}

/* Formations Liste */
.tm-formations-grid {
    display: grid;
    gap: 30px;
}

.tm-formations-grid.tm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tm-formations-grid.tm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Grille dynamique - Pattern alterné 4 colonnes */
.tm-formations-grid.tm-grid-dynamic {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Pattern ligne 1: petite + grande (2 cols) + petite */
.tm-formations-grid.tm-grid-dynamic .tm-formation-card:nth-child(6n+2) {
    grid-column: span 2;
}

/* Pattern ligne 2: grande (2 cols) + petite + petite */
.tm-formations-grid.tm-grid-dynamic .tm-formation-card:nth-child(6n+4) {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .tm-formations-grid.tm-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Grille dynamique en tablette - 2 colonnes */
    .tm-formations-grid.tm-grid-dynamic {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tm-formations-grid.tm-grid-dynamic .tm-formation-card:nth-child(odd) {
        grid-column: span 1;
    }
    
    .tm-formations-grid.tm-grid-dynamic .tm-formation-card:nth-child(even) {
        grid-column: span 1;
    }
    
    /* Réinitialiser les grandes cartes desktop */
    .tm-formations-grid.tm-grid-dynamic .tm-formation-card:nth-child(6n+2),
    .tm-formations-grid.tm-grid-dynamic .tm-formation-card:nth-child(6n+4) {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .tm-formations-grid,
    .tm-formations-grid.tm-grid-dynamic {
        grid-template-columns: 1fr;
    }
    
    .tm-formations-grid.tm-grid-dynamic .tm-formation-card {
        grid-column: span 1;
    }
}

.tm-formation-card {
    position: relative;
    display: block;
    border-radius: var(--tm-border-radius);
    overflow: hidden;
    background-color: var(--tm-dark);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: var(--tm-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 400px;
}

.tm-formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--tm-white);
}

@media (max-width: 600px) {
    .tm-formation-card {
        height: 300px;
    }
}

.tm-formation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-formation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tm-formation-number {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tm-dark);
    color: var(--tm-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tm-formation-number::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--tm-primary);
    border-radius: 50%;
}

.tm-formation-content {
    color: var(--tm-white);
}

.tm-formation-card .tm-formation-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    color: var(--tm-white) !important;
    text-transform: none !important;
    text-wrap: pretty;
}

.tm-formation-card h3 {
    color: var(--tm-white) !important;
    text-transform: none !important;
}

.tm-formation-card .tm-formation-dates {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
    color: var(--tm-white) !important;
}

.tm-formation-card .tm-formation-content span {
    color: var(--tm-white) !important;
}

.tm-formation-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--tm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tm-transition);
    pointer-events: none;
}

.tm-formation-card:hover .tm-formation-link {
    transform: translateX(-50%) scale(1.1);
}

@media (max-width: 600px) {
    .tm-formation-card .tm-formation-overlay {
        padding: 15px;
    }
    
    .tm-formation-card .tm-formation-title {
        font-size: 1.1rem;
    }
    
    .tm-formation-card .tm-formation-dates {
        font-size: 0.85rem;
    }
    
    .tm-formation-card .tm-formation-badges {
        gap: 6px;
    }
}

/* Notices */
.tm-error,
.tm-notice {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.tm-error {
    background: #fee;
    color: #c00;
}

.tm-notice {
    background: var(--tm-light);
    color: var(--tm-gray);
}

/* Single Module Page */
.tm-single-module {
    max-width: 900px;
    margin: 0 auto;
}

/* Header Bar for Single Module */
.tm-module-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

@media (max-width: 480px) {
    .tm-module-header-bar {
        gap: 8px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .tm-module-number,
    .tm-teaching-type,
    .tm-module-date-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* ==========================================================================
   FORMATION HERO - 3 Layouts (fullscreen, wide, centered)
   Uses CSS breakout technique to escape theme container
   ========================================================================== */

/* Wrapper - Breakout from theme container */
.tm-formation-hero-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    z-index: 10;
    box-sizing: border-box;
}

/* Fix for Ollie's entry-content overflow constraints */
body.single-training_standalone .entry-content.wp-block-post-content {
    overflow: visible !important;
}

body.single-training_standalone .wp-site-blocks {
    overflow-x: clip;
}

/* ==========================================================================
   LAYOUT: FULLSCREEN - Background image + card on right
   L'image est en background-image sur le wrapper (pas un élément <img>)
   ========================================================================== */
.tm-hero-layout-fullscreen {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 60px;
    box-sizing: border-box;
    
    /* Background image properties - !important to override any theme styles */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Dark overlay for better text readability */
.tm-hero-layout-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Hero container - positioned relative for z-index */
.tm-hero-layout-fullscreen .tm-formation-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

/* Content card - white background */
.tm-hero-layout-fullscreen .tm-formation-content {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

/* Forcer les éléments qui doivent prendre toute la largeur */
.tm-hero-layout-fullscreen .tm-formation-practical-info,
.tm-hero-layout-fullscreen .tm-sessions-wrapper,
.tm-hero-layout-fullscreen .tm-formation-description {
    align-self: stretch;
    width: 100%;
}

/* Typography adjustments for fullscreen card */
.tm-hero-layout-fullscreen .tm-formation-label {
    font-size: 0.8rem;
    color: var(--tm-dark);
    margin-bottom: 10px;
}

.tm-hero-layout-fullscreen .tm-formation-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.tm-hero-layout-fullscreen .tm-formation-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

.tm-hero-layout-fullscreen .tm-formation-description p {
    margin: 0;
}

/* Practical info in fullscreen */
.tm-hero-layout-fullscreen .tm-formation-practical-info {
    padding: 15px 0;
    margin: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tm-hero-layout-fullscreen .tm-practical-details {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Practical metas with icons */
.tm-practical-metas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.tm-practical-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.tm-practical-meta svg {
    color: #888;
    flex-shrink: 0;
}

/* Sessions in fullscreen card - more compact */
.tm-hero-layout-fullscreen .tm-sessions-wrapper {
    margin-top: 20px;
}

.tm-hero-layout-fullscreen .tm-sessions-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.tm-hero-layout-fullscreen .tm-session-card {
    padding: 0;
}

.tm-hero-layout-fullscreen .tm-session-inprogress-banner {
    margin-bottom: 15px;
}

/* ==========================================================================
   LAYOUT: WIDE - Large image left (~55%) + content right
   ========================================================================== */
.tm-hero-layout-wide {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.tm-hero-layout-wide .tm-formation-hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
}

.tm-hero-layout-wide .tm-formation-image {
    flex: 0 0 55%;
    max-width: 55%;
}

.tm-hero-layout-wide .tm-formation-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tm-hero-layout-wide .tm-formation-content {
    flex: 1 1 auto;
    padding-top: 10px;
}

/* ==========================================================================
   LAYOUT: CENTERED - Small image left (~35%) + content right
   ========================================================================== */
.tm-hero-layout-centered {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.tm-hero-layout-centered .tm-formation-hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
}

.tm-hero-layout-centered .tm-formation-image {
    flex: 0 0 35%;
    max-width: 35%;
}

.tm-hero-layout-centered .tm-formation-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tm-hero-layout-centered .tm-formation-content {
    flex: 1 1 auto;
    padding-top: 10px;
}

/* ==========================================================================
   POSITION: IMAGE RIGHT - Inverser l'ordre image/contenu
   ========================================================================== */
.tm-hero-position-image-right .tm-formation-hero {
    flex-direction: row-reverse;
}

/* ==========================================================================
   PRACTICAL INFO & DOWNLOAD PROGRAMME
   ========================================================================== */
.tm-formation-practical-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 25px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tm-practical-details {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.tm-download-programme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-primary, #E91E63);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.tm-download-programme:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.tm-download-programme svg {
    flex-shrink: 0;
}

/* ==========================================================================
   COMMON HERO STYLES
   ========================================================================== */
.tm-formation-content {
    display: flex;
    flex-direction: column;
}

.tm-formation-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tm-dark);
    margin-bottom: 10px;
}

.tm-formation-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--tm-dark);
    margin: 0 0 25px 0;
    text-transform: uppercase;
    text-wrap: balance;
}

.tm-formation-category {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tm-dark);
    margin-bottom: 15px;
}

.tm-formation-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--tm-dark);
    margin-bottom: 30px;
}

.tm-formation-description p {
    margin: 0;
}

.tm-formation-info-box {
    background: var(--tm-white);
    border: 1px solid #e0e0e0;
    border-radius: var(--tm-border-radius);
    padding: 20px 25px;
    margin-bottom: 25px;
}

.tm-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: flex-start;
}

.tm-info-grid .tm-info-item {
    text-align: left;
}

.tm-info-grid .tm-info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--tm-gray);
    margin-bottom: 4px;
}

.tm-info-grid .tm-info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tm-dark);
}

.tm-dot {
    width: 8px;
    height: 8px;
    background: var(--tm-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bouton dans l'encadré info */
.tm-info-box-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.tm-info-box-cta .tm-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Lien programme centré sous l'encadré */
.tm-programme-link-centered {
    text-align: center;
    margin-top: 20px;
}

.tm-programme-link-centered .tm-download-programme {
    display: inline-flex;
}

.tm-formation-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

.tm-btn-link {
    color: var(--tm-dark);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--tm-transition);
}

.tm-btn-link:hover {
    color: var(--tm-primary);
}

/* ==========================================================================
   HERO RESPONSIVE - 3 Layouts
   ========================================================================== */
@media (max-width: 1024px) {
    .tm-hero-layout-fullscreen {
        padding: 40px 30px;
    }
    
    .tm-hero-layout-fullscreen .tm-formation-hero {
        max-width: 450px;
    }
    
    .tm-hero-layout-fullscreen .tm-formation-content {
        padding: 30px;
    }
    
    .tm-hero-layout-wide .tm-formation-hero {
        gap: 30px;
        padding: 40px 30px;
    }
    
    .tm-hero-layout-wide .tm-formation-image {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .tm-hero-layout-centered .tm-formation-hero {
        gap: 30px;
        padding: 40px 20px;
    }
}

@media (max-width: 900px) {
    /* Fullscreen: card takes more width */
    .tm-hero-layout-fullscreen {
        min-height: 80vh;
        justify-content: center;
        padding: 30px 20px;
    }
    
    .tm-hero-layout-fullscreen .tm-formation-hero {
        max-width: 90%;
    }
    
    /* Wide: stack vertically */
    .tm-hero-layout-wide .tm-formation-hero {
        flex-direction: column;
    }
    
    .tm-hero-layout-wide .tm-formation-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .tm-hero-layout-wide .tm-formation-image img {
        aspect-ratio: 16 / 9;
    }
    
    /* Centered: stack vertically */
    .tm-hero-layout-centered .tm-formation-hero {
        flex-direction: column;
    }
    
    .tm-hero-layout-centered .tm-formation-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .tm-hero-layout-centered .tm-formation-image img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 768px) {
    .tm-formation-info-box {
        padding: 15px 20px;
    }
    
    .tm-info-grid {
        gap: 20px;
    }
    
    .tm-info-grid .tm-info-item {
        flex: 1 1 45%;
    }
    
    .tm-session-inprogress-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .tm-formation-practical-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .tm-hero-layout-fullscreen {
        min-height: auto;
        padding: 100px 15px 40px;
    }
    
    .tm-hero-layout-fullscreen .tm-formation-hero {
        max-width: 100%;
    }
    
    .tm-hero-layout-fullscreen .tm-formation-content {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .tm-hero-layout-wide .tm-formation-hero,
    .tm-hero-layout-centered .tm-formation-hero {
        padding: 30px 15px;
    }
    
    .tm-formation-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .tm-formation-hero {
        margin-bottom: 30px;
    }
    
    .tm-formation-info-box {
        padding: 15px;
    }
    
    .tm-info-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .tm-info-grid .tm-info-item {
        flex: 1 1 100%;
    }
    
    .tm-formation-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .tm-btn-link {
        text-align: center;
    }
    
    .tm-formation-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .tm-formation-label {
        font-size: 0.75rem;
    }
}

/* Formation Gallery Slider */
.tm-gallery-slider {
    position: relative;
    margin: 40px 0;
    overflow: visible;
}

.tm-slider-container {
    overflow: hidden;
    margin: 0 -10px;
}

.tm-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 0 10px;
}

.tm-slider-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.tm-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tm-slider-slide:hover img {
    transform: scale(1.05);
}

.tm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--tm-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: var(--tm-transition);
    z-index: 10;
}

.tm-slider-nav:hover {
    background: var(--tm-light);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.tm-slider-prev {
    left: 20px;
}

.tm-slider-next {
    right: 20px;
}

.tm-slider-nav svg {
    color: var(--tm-dark);
}

@media (max-width: 1024px) {
    .tm-slider-slide {
        flex: 0 0 calc(33.333% - 13px);
        min-width: calc(33.333% - 13px);
    }
}

@media (max-width: 768px) {
    .tm-slider-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    .tm-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .tm-slider-prev {
        left: 10px;
    }
    
    .tm-slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .tm-slider-slide {
        flex: 0 0 calc(80% - 10px);
        min-width: calc(80% - 10px);
    }
    
    .tm-slider-track {
        gap: 15px;
    }
}

/* Formations Slider Section */
.tm-formations-slider-section {
    padding: 60px 0;
    margin: 40px 0;
}

.tm-slider-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
    color: var(--tm-dark);
}

.tm-formations-slider {
    position: relative;
    overflow: visible;
}

.tm-formations-slider .tm-slider-container {
    overflow: hidden;
    margin: 0 -10px;
}

.tm-formations-slider .tm-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s ease;
    padding: 10px;
}

.tm-formation-slide {
    background: var(--tm-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: var(--tm-transition);
    text-decoration: none;
    display: block;
}

/* Slides par défaut - 3 colonnes */
.tm-formations-slider:not([data-columns]) .tm-formation-slide,
.tm-formations-slider[data-columns="3"] .tm-formation-slide {
    flex: 0 0 calc(33.333% - 17px);
    min-width: calc(33.333% - 17px);
}

/* Slides pour 1 colonne */
.tm-formations-slider[data-columns="1"] .tm-formation-slide {
    flex: 0 0 calc(100% - 10px);
    min-width: calc(100% - 10px);
}

/* Slides pour 2 colonnes */
.tm-formations-slider[data-columns="2"] .tm-formation-slide {
    flex: 0 0 calc(50% - 13px);
    min-width: calc(50% - 13px);
}

/* Slides pour 4 colonnes */
.tm-formations-slider[data-columns="4"] .tm-formation-slide {
    flex: 0 0 calc(25% - 19px);
    min-width: calc(25% - 19px);
}

a.tm-formation-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.tm-slide-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.tm-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

a.tm-formation-slide:hover .tm-slide-image img {
    transform: scale(1.08);
}

.tm-slide-content {
    padding: 20px 25px 25px;
}

.tm-slide-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tm-gray);
    margin-bottom: 8px;
}

.tm-slide-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tm-dark);
    margin: 0 0 10px;
    transition: var(--tm-transition);
}

a.tm-formation-slide:hover .tm-slide-title {
    color: var(--tm-primary);
}

.tm-slide-dates {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--tm-primary);
    font-weight: 500;
}

.tm-slide-dates::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--tm-primary);
    border-radius: 50%;
    margin-right: 8px;
}

.tm-formations-slider .tm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--tm-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: var(--tm-transition);
    z-index: 10;
}

.tm-formations-slider .tm-slider-nav:hover {
    background: var(--tm-light);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.tm-formations-slider .tm-slider-prev {
    left: -25px;
}

.tm-formations-slider .tm-slider-next {
    right: -25px;
}

.tm-formations-slider .tm-slider-nav svg {
    color: var(--tm-dark);
}

@media (max-width: 1024px) {
    /* Sur tablette, max 2 colonnes */
    .tm-formations-slider .tm-formation-slide,
    .tm-formations-slider[data-columns] .tm-formation-slide {
        flex: 0 0 calc(50% - 13px) !important;
        min-width: calc(50% - 13px) !important;
    }
    
    .tm-formations-slider .tm-slider-prev {
        left: 10px;
    }
    
    .tm-formations-slider .tm-slider-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .tm-slider-section-title {
        font-size: 2rem;
    }
    
    .tm-formations-slider .tm-slider-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    /* Sur mobile, 1 seule colonne */
    .tm-formations-slider .tm-formation-slide,
    .tm-formations-slider[data-columns] .tm-formation-slide {
        flex: 0 0 calc(85% - 10px) !important;
        min-width: calc(85% - 10px) !important;
    }
    
    .tm-slider-section-title {
        font-size: 1.6rem;
    }
}

/* Formateurs Section Title */
.tm-formateurs-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .tm-formateurs-title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .tm-formateurs-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
}

.tm-module-header {
    margin-bottom: 30px;
}

.tm-module-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tm-module-date-badge {
    background: var(--tm-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--tm-gray);
}

/* Module Images Gallery */
.tm-module-images {
    margin: 30px 0;
}

/* Layout Featured: 1 grande image en haut + grille 2x2 en dessous */
.tm-layout-featured {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tm-layout-featured .tm-featured-image {
    width: 100%;
}

.tm-layout-featured .tm-featured-image a {
    display: block;
    width: 100%;
}

.tm-layout-featured .tm-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--tm-border-radius);
    transition: var(--tm-transition);
    cursor: pointer;
}

.tm-layout-featured .tm-featured-image a:hover img {
    opacity: 0.9;
}

.tm-layout-featured .tm-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.tm-layout-featured .tm-thumbnail {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.tm-layout-featured .tm-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--tm-transition);
    cursor: pointer;
}

.tm-layout-featured .tm-thumbnail:hover img {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Layout Grid simple */
.tm-layout-grid {
    display: grid;
    gap: 15px;
}

.tm-layout-grid.tm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tm-layout-grid.tm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tm-layout-grid.tm-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tm-grid-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.tm-grid-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--tm-transition);
    cursor: pointer;
}

.tm-grid-image:hover img {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Désactiver les effets de clic quand pas de lightbox */
.tm-no-lightbox .tm-featured-image img,
.tm-no-lightbox .tm-thumbnail img,
.tm-no-lightbox .tm-grid-image img {
    cursor: default;
}

.tm-no-lightbox .tm-thumbnail:hover img,
.tm-no-lightbox .tm-grid-image:hover img {
    transform: none;
}

@media (max-width: 768px) {
    .tm-layout-featured .tm-featured-image img {
        height: 280px;
    }
    
    .tm-layout-featured .tm-thumbnail img {
        height: 140px;
    }
    
    .tm-layout-grid.tm-columns-3,
    .tm-layout-grid.tm-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tm-layout-featured .tm-featured-image img {
        height: 220px;
        border-radius: 8px;
    }
    
    .tm-layout-featured .tm-thumbnail-grid {
        gap: 10px;
    }
    
    .tm-layout-featured .tm-thumbnail img {
        height: 100px;
    }
    
    .tm-layout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .tm-layout-grid .tm-grid-image img {
        height: 180px;
    }
}

/* Module Navigation */
.tm-module-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.tm-nav-modules {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.tm-nav-prev,
.tm-nav-next {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--tm-light);
    border-radius: var(--tm-border-radius);
    text-decoration: none;
    color: var(--tm-dark);
    transition: var(--tm-transition);
}

.tm-nav-prev:hover,
.tm-nav-next:hover {
    background: #e8e8e8;
    color: var(--tm-dark);
}

.tm-nav-prev {
    justify-content: flex-start;
}

.tm-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.tm-nav-disabled {
    visibility: hidden;
}

.tm-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--tm-white);
    border-radius: 50%;
    flex-shrink: 0;
}

.tm-nav-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tm-nav-label {
    font-size: 0.8rem;
    color: var(--tm-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-nav-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-nav-cycle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--tm-primary);
    color: var(--tm-white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--tm-transition);
    white-space: nowrap;
}

.tm-nav-cycle:hover {
    background: #c4177a;
    color: var(--tm-white);
}

.tm-nav-cycle .tm-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-nav-center {
    display: flex;
    justify-content: center;
}

.tm-nav-center .tm-nav-cycle {
    flex-direction: row;
    gap: 10px;
}

/* Responsive Navigation */
@media (max-width: 900px) {
    .tm-nav-modules {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .tm-nav-cycle {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        margin-bottom: 10px;
        flex-direction: row;
        gap: 10px;
    }
    
    .tm-nav-prev {
        grid-column: 1;
        grid-row: 2;
    }
    
    .tm-nav-next {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    .tm-module-navigation {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .tm-nav-modules {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tm-nav-cycle {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        justify-content: center;
    }
    
    .tm-nav-prev,
    .tm-nav-next {
        grid-column: 1;
        padding: 15px;
    }
    
    .tm-nav-prev {
        grid-row: 2;
    }
    
    .tm-nav-next {
        grid-row: 3;
        justify-content: flex-start;
        text-align: left;
    }
    
    .tm-nav-next .tm-nav-info {
        order: -1;
    }
    
    .tm-nav-disabled {
        display: none;
    }
    
    .tm-nav-arrow {
        width: 36px;
        height: 36px;
    }
    
    .tm-nav-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .tm-nav-cycle .tm-nav-cycle-text {
        font-size: 0.85rem;
    }
}

.tm-single-module .tm-module-subtitle {
    font-size: 1.25rem;
    color: var(--tm-gray);
    margin: 0;
    line-height: 1.5;
}

.tm-module-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.tm-module-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--tm-border-radius);
}

.tm-module-body {
    margin-bottom: 40px;
}

.tm-module-section {
    margin-bottom: 35px;
}

.tm-module-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--tm-dark);
}

.tm-module-text {
    color: var(--tm-gray);
    line-height: 1.8;
}

.tm-module-text ul,
.tm-module-text ol {
    margin-left: 20px;
}

.tm-single-module .tm-module-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Single Formation Page */
.tm-single-formation {
    max-width: 1000px;
    margin: 0 auto;
}

.tm-single-formation > div {
    margin-bottom: 50px;
}

@media (max-width: 640px) {
    .tm-module-gallery {
        grid-template-columns: 1fr;
    }
    
    .tm-module-gallery img {
        height: 200px;
    }
}

/* =====================================================
   SESSIONS DISPLAY
   ===================================================== */
.tm-sessions-wrapper {
    margin: 20px 0 0 0;
}

/* Animation Pulse pour le point */
@keyframes tm-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* Bandeau Session en cours - Style Figma - HUG content */
.tm-session-inprogress-banner {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: fit-content !important;
    align-self: flex-start !important; /* Ne pas s'étirer dans le conteneur flex */
    align-items: center !important;
    gap: 12px !important;
    background: #DC3545 !important;
    border-radius: 20px !important;
    border: none !important;
    padding: 6px 12px !important;
    margin-bottom: 15px !important;
}

.tm-inprogress-badge,
.tm-inprogress-date {
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.tm-inprogress-badge .tm-pulse-dot {
    display: inline;
    animation: tm-pulse 1.5s ease-in-out infinite;
    margin-right: 3px;
}

/* Titre des sessions */
.tm-sessions-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tm-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-sessions-title-past {
    color: #888;
    font-size: 1rem;
}

.tm-sessions-icon {
    font-size: 1rem;
}

/* Lien "Voir plus de sessions" */
.tm-more-sessions-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: var(--tm-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tm-more-sessions-link:hover {
    background: #f3f4f6;
    border-color: var(--tm-primary);
}

.tm-more-sessions-link svg {
    transition: transform 0.2s ease;
}

.tm-more-sessions-link:hover svg {
    transform: translateX(3px);
}

/* Toggle Sessions passées - Petit lien souligné discret */
.tm-sessions-past-toggle {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tm-toggle-past-sessions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.tm-toggle-past-sessions:hover {
    color: #555;
}

.tm-toggle-past-sessions svg {
    transition: transform 0.2s ease;
    text-decoration: none;
}

.tm-toggle-past-sessions.active svg {
    transform: rotate(180deg);
}

/* Contenu des sessions passées - avec fond gris */
.tm-past-sessions-content {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.tm-past-session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tm-past-session-item:last-child {
    border-bottom: none;
}

.tm-past-session-date {
    font-size: 0.85rem;
    color: #666;
}

.tm-past-session-status {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sessions Grid (Cards Layout) */
.tm-sessions-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card Wrapper pour le badge marketing */
.tm-session-card-wrapper {
    position: relative;
    margin-top: 15px;
}

.tm-session-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--tm-white);
    border: 1px solid #e5e5e5;
    border-radius: var(--tm-border-radius);
    overflow: hidden; /* Pour que le badge date épouse les coins */
    transition: all var(--tm-transition);
}

.tm-session-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Date Badge - Figma specs - Collé au bord */
.tm-session-date-badge {
    background: linear-gradient(121deg, #E91E8C 0%, #C4177A 100%);
    color: var(--tm-white);
    padding: 20px 27px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    margin: 0; /* Pas de marge */
    border-radius: 0; /* Pas de radius propre, c'est la card qui gère */
}

.tm-session-day {
    font-size: 28.9px;
    font-weight: 800;
    line-height: 32px;
}

.tm-session-month {
    font-size: 14.4px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 21.6px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.tm-session-range {
    font-size: 10.7px;
    font-weight: 500;
    line-height: 18px;
    margin-top: 4px;
    opacity: 0.85;
}

/* Session Details - Figma specs */
.tm-session-details {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.tm-session-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-session-date-full {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 26.4px;
    color: #1A1A1A;
}

.tm-session-time {
    font-size: 13.3px;
    font-weight: 500;
    line-height: 21.6px;
    color: #666666;
}

.tm-session-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-gray);
    font-size: 0.95rem;
}

.tm-session-location svg {
    flex-shrink: 0;
    color: var(--tm-primary);
}

.tm-session-address {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 24px;
}

.tm-session-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.tm-session-places {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.9px;
    font-weight: 500;
    line-height: 20.4px;
    color: #28A745;
}

.tm-session-places svg {
    flex-shrink: 0;
    color: #28A745;
}

.tm-session-places.tm-places-low {
    color: #dc3545;
    font-weight: 600;
}

.tm-session-waitlist-badge {
    background: var(--tm-secondary);
    color: var(--tm-white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Session Action - Figma specs */
.tm-session-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    min-width: 160px;
    background: #F5F5F5;
    gap: 12px;
}

.tm-session-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.tm-session-price .tm-price-amount {
    font-size: 24px;
    font-weight: 800;
    line-height: 36px;
    color: #1A1A1A;
}

.tm-session-price .tm-price-label {
    font-size: 11.8px;
    font-weight: 500;
    line-height: 18px;
    color: #666666;
}

.tm-btn-session {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--tm-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14.2px;
    font-weight: 600;
    line-height: 21.6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tm-btn-session:hover {
    background: #c4177a;
    transform: translateY(-1px);
}

.tm-btn-disabled {
    display: inline-block;
    background: #ccc;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    cursor: not-allowed;
}

/* Status Styles */
.tm-session-status-full {
    opacity: 0.7;
}

.tm-session-status-full .tm-session-date-badge {
    background: linear-gradient(135deg, #999, #666);
}

.tm-session-status-waitlist .tm-session-date-badge {
    background: linear-gradient(135deg, var(--tm-secondary), #0096b4);
}

/* Table Layout */
.tm-sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--tm-white);
    border-radius: var(--tm-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tm-sessions-table thead {
    background: var(--tm-light);
}

.tm-sessions-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--tm-dark);
    font-size: 0.9rem;
}

.tm-sessions-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.tm-sessions-table tbody tr:last-child td {
    border-bottom: none;
}

.tm-sessions-table tbody tr:hover {
    background: #fafafa;
}

.tm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tm-badge-full {
    background: #fee;
    color: #dc3545;
}

.tm-badge-low {
    background: #fff3cd;
    color: #856404;
}

.tm-btn-small {
    display: inline-block;
    background: var(--tm-primary);
    color: var(--tm-white) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--tm-transition);
}

.tm-btn-small:hover {
    background: #c4177a;
}

/* Responsive */
@media (max-width: 768px) {
    .tm-session-card {
        flex-direction: column;
    }
    
    .tm-session-date-badge {
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
        min-width: auto;
    }
    
    .tm-session-day {
        font-size: 1.5rem;
    }
    
    .tm-session-details {
        padding: 16px;
    }
    
    .tm-session-action {
        flex-direction: row;
        justify-content: space-between;
        padding: 16px;
    }
    
    .tm-btn-session {
        width: auto;
    }
    
    .tm-sessions-table {
        display: block;
        overflow-x: auto;
    }
}

/* Past Sessions */
.tm-session-past {
    opacity: 0.6;
}

.tm-session-past .tm-session-date-badge {
    background: linear-gradient(135deg, #888, #666);
}

.tm-btn-past {
    display: inline-block;
    background: #888;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    cursor: default;
}

/* ==========================================================================
   Enrollment Modal
   ========================================================================== */

.tm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tm-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: tm-modal-appear 0.3s ease;
}

@keyframes tm-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.tm-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.tm-modal-header {
    padding: 32px 32px 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 24px;
}

.tm-modal-header h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.tm-modal-session-info {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.tm-modal-session-info strong {
    color: var(--tm-primary, #C8102E);
}

.tm-modal-body {
    padding: 32px;
}

/* Style for Enrollment Manager form inside modal */
.tm-modal-body .em-form {
    margin: 0;
}

.tm-modal-body .em-form-section {
    margin-bottom: 24px;
}

.tm-modal-body .em-form-row {
    margin-bottom: 16px;
}

.tm-modal-body .em-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.tm-modal-body .em-form input[type="text"],
.tm-modal-body .em-form input[type="email"],
.tm-modal-body .em-form input[type="tel"],
.tm-modal-body .em-form select,
.tm-modal-body .em-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tm-modal-body .em-form input:focus,
.tm-modal-body .em-form select:focus,
.tm-modal-body .em-form textarea:focus {
    outline: none;
    border-color: var(--tm-primary, #C8102E);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.tm-modal-body .em-form .em-btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--tm-primary, #C8102E);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.tm-modal-body .em-form .em-btn-submit:hover {
    background: var(--tm-primary-dark, #a00d25);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .tm-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .tm-modal-header,
    .tm-modal-body {
        padding: 20px;
    }
    
    .tm-modal-header h3 {
        font-size: 1.25rem;
    }
}

/* Body lock when modal is open */
body.tm-modal-open {
    overflow: hidden !important;
}

/* Pre-selected session (from TM modal) */
.tm-session-preselected {
    pointer-events: none;
}

.tm-session-preselected .em-session-option {
    opacity: 0.5;
}

.tm-session-preselected .em-session-option:has(input:checked) {
    opacity: 1;
    border-color: var(--tm-primary, #C8102E);
    background: rgba(200, 16, 46, 0.05);
}

/* Make sure only checked session is visible when preselected */
.tm-session-preselected .em-session-option:not(:has(input:checked)) {
    display: none;
}

/* =====================================================
   MARKETING SESSIONS - v1.8.7 (Figma specs)
   ===================================================== */

/* Marketing Tag - En haut à gauche du wrapper - Arrondi + Animation */
.tm-session-card-wrapper .tm-session-marketing-tag,
.tm-session-marketing-tag {
    position: absolute;
    top: -12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
    animation: tm-marketing-pulse 2s ease-in-out infinite;
}

@keyframes tm-marketing-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Full/Complete Badge - Similar to marketing tag but red */
.tm-session-card-wrapper .tm-session-full-badge,
.tm-session-full-badge {
    position: absolute;
    top: -12px;
    left: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Session card styling when full */
.tm-session-card.tm-session-status-full {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.tm-session-card.tm-session-status-full .tm-session-date-badge {
    background: linear-gradient(180deg, #fca5a5, #f87171);
}

/* Waitlist button styling */
.tm-btn-waitlist {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
}

.tm-btn-waitlist:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-2px);
}

/* Past Sessions Group */
.tm-sessions-past-group {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.tm-sessions-past-group .tm-sessions-grid {
    opacity: 0.7;
}

.tm-sessions-grid-past .tm-session-card {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.tm-sessions-grid-past .tm-session-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tm-session-card-past .tm-session-date-badge {
    background: linear-gradient(135deg, #adb5bd, #6c757d);
}

.tm-session-card-past .tm-session-details {
    color: #6c757d;
}

/* Link to show more past sessions */
.tm-sessions-more-link {
    display: inline-block;
    margin-top: 16px;
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.tm-sessions-more-link:hover {
    color: var(--tm-primary);
}

.tm-sessions-more-content {
    margin-top: 16px;
}

/* Contact Button */
.tm-btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #6c757d;
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--tm-transition);
    border: none;
    cursor: pointer;
}

.tm-btn-contact:hover {
    background: #5a6268;
}

/* Waitlist Button - Black style */
.tm-btn-waitlist {
    background: #1a1a2e !important;
}

.tm-btn-waitlist:hover {
    background: #16213e !important;
}

/* Past Button */
.tm-btn-past {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #e9ecef;
    color: #6c757d !important;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: default;
}

/* Empty Sessions */
.tm-sessions-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: var(--tm-border-radius);
}

.tm-sessions-empty p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Contact Modal */
#tm-contact-modal .tm-modal-content {
    max-width: 500px;
}

.tm-contact-notice {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.tm-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tm-dark);
}

.tm-form-row input,
.tm-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--tm-transition);
}

.tm-form-row input:focus,
.tm-form-row textarea:focus {
    outline: none;
    border-color: var(--tm-primary);
}

.tm-form-row button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--tm-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--tm-transition);
}

.tm-form-row button[type="submit"]:hover {
    background: #c4177a;
}

.tm-form-row button[type="submit"]:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Form Grid Layout */
.tm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .tm-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Optional Field Label */
.tm-optional {
    font-weight: 400;
    font-size: 0.8rem;
    color: #888;
}

/* Success Message */
.tm-modal-success {
    text-align: center;
    padding: 40px 30px;
}

.tm-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: tm-success-pop 0.5s ease;
}

@keyframes tm-success-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.tm-success-title {
    font-size: 1.5rem;
    color: var(--tm-dark);
    margin: 0 0 12px;
}

.tm-success-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 24px;
}

.tm-modal-close-btn {
    background: var(--tm-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--tm-transition);
}

.tm-modal-close-btn:hover {
    background: #c4177a;
}

/* Form Submit Row */
.tm-form-submit {
    margin-top: 8px;
}

/* Session Card Position Relative for Marketing Tag */
.tm-session-card {
    position: relative;
}

/* Responsive Marketing */
@media (max-width: 768px) {
    .tm-session-marketing-tag {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .tm-sessions-title {
        font-size: 1.1rem;
    }
}


/* ==========================================================================
   DATES COMING SOON - IFCIA Style
   ========================================================================== */

/* "Dates à venir" badge in slider and lists */
.tm-slide-dates.tm-dates-coming,
.tm-formation-dates.tm-dates-coming {
    color: var(--tm-primary, #E91E8C);
    font-weight: 600;
}

/* Sessions empty / Dates coming box - IFCIA Style */
.tm-sessions-empty.tm-dates-coming-box,
.tm-formation-info-box.tm-dates-coming-box {
    background: #fff;
    border: 2px solid var(--tm-primary, #E91E8C);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Info items in dates coming box */
.tm-sessions-empty .tm-info-item,
.tm-formation-info-box .tm-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tm-info-item.tm-info-full {
    grid-column: 1 / -1;
    text-align: center;
}

.tm-info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.tm-info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Past dates styling */
.tm-info-value.tm-info-past {
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-info-value.tm-info-past::before {
    content: "📅";
}

/* Coming dates styling */
.tm-info-value.tm-info-coming {
    color: var(--tm-primary, #E91E8C);
    font-weight: 600;
}

/* ==========================================================================
   NOTIFY FORM - IFCIA Style
   ========================================================================== */

.tm-notify-form {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.tm-notify-text {
    font-size: 14px;
    color: #374151;
    margin-bottom: 16px;
    font-weight: 500;
}

.tm-notify-form-inline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-notify-email-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tm-notify-email {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fff;
}

.tm-notify-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.tm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.4;
}

.tm-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--tm-primary, #E91E8C);
    cursor: pointer;
}

.tm-checkbox-label a {
    color: var(--tm-primary, #E91E8C);
    text-decoration: underline;
}

.tm-checkbox-label a:hover {
    color: #be185d;
}

.tm-notify-rgpd {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.tm-notify-email:focus {
    outline: none;
    border-color: var(--tm-primary, #E91E8C);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.tm-notify-email::placeholder {
    color: #9ca3af;
}

.tm-notify-form-inline .tm-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tm-notify-form-inline .tm-btn-primary {
    background: var(--tm-primary, #E91E8C);
    color: #fff;
    border: none;
}

.tm-notify-form-inline .tm-btn-primary:hover {
    background: #be185d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(233, 30, 140, 0.4);
}

/* Success message */
.tm-notify-success {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tm-notify-success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

/* Error message */
.tm-notify-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    padding: 8px 16px;
    background: #fef2f2;
    border-radius: 8px;
}

/* Contact link under notify form */
.tm-sessions-empty-contact {
    text-align: center;
    margin-top: 8px;
}

.tm-sessions-empty-contact .tm-btn-contact {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.tm-sessions-empty-contact .tm-btn-contact:hover {
    color: var(--tm-primary, #E91E8C);
}

/* ==========================================================================
   RESPONSIVE - Dates coming & Notify form
   ========================================================================== */

@media (max-width: 640px) {
    .tm-sessions-empty.tm-dates-coming-box,
    .tm-formation-info-box.tm-dates-coming-box {
        padding: 20px 16px;
    }
    
    .tm-notify-form {
        padding: 20px 16px;
    }
    
    .tm-notify-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tm-notify-email {
        min-width: 100%;
        max-width: 100%;
    }
    
    .tm-notify-form-inline .tm-btn {
        width: 100%;
    }
}
}

.tm-notify-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 600px) {
    .tm-notify-form-inline {
        flex-direction: column;
    }
    
    .tm-notify-email {
        min-width: 100%;
    }
}

/* Past dates styling */
.tm-info-value.tm-info-past {
    color: #6b7280;
    font-style: italic;
}

.tm-info-value.tm-info-past::before {
    content: "📅 ";
}

/* ===== Pack : bloc tarif / valeur ===== */
.tm-pack-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
}
.tm-pack-count {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}
.tm-pack-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.tm-pack-compare {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}
.tm-pack-price {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}
.tm-pack-savings {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}
.tm-pack-cta {
    display: inline-block;
    padding: 12px 24px;
    background: #E91E8C;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}
.tm-pack-cta:hover {
    background: #c4147a;
    color: #fff;
}

/* ===== Pack : page deux colonnes (contenu + sidebar) ===== */
.tm-pack-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
.tm-pack-main { min-width: 0; }
.tm-pack-aside { position: sticky; top: 24px; }
.tm-pack-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tm-pack-card .tm-pack-pricing { margin: 0; }
.tm-pack-card .tm-pack-count { margin: 0; }
.tm-pack-sessions-summary h4 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777;
}
.tm-pack-sess-item { margin-bottom: 12px; }
.tm-pack-sess-item:last-child { margin-bottom: 0; }
.tm-pack-sess-item > strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.tm-pack-sess-item ul {
    margin: 0;
    padding-left: 18px;
}
.tm-pack-sess-item li {
    font-size: 13px;
    color: #555;
    margin: 2px 0;
}
.tm-pack-sess-none { font-size: 13px; color: #b32d2e; }
.tm-pack-enroll-btn {
    width: 100%;
    text-align: center;
    margin-top: 4px;
}
@media (max-width: 900px) {
    .tm-pack-layout { grid-template-columns: 1fr; }
    .tm-pack-aside { position: static; }
}

/* ===== Pack : détail tarifaire (sidebar) ===== */
.tm-pack-pricing-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tm-pack-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    color: #555;
}
.tm-pack-price-row .tm-pack-price-value { white-space: nowrap; font-weight: 600; color: #333; }
.tm-pack-price-subtotal {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #ececec;
    color: #777;
}
.tm-pack-price-subtotal .tm-pack-price-value { text-decoration: line-through; color: #999; font-weight: 600; }
.tm-pack-price-total {
    padding-top: 8px;
    margin-top: 4px;
    border-top: 2px solid #1a1a1a;
}
.tm-pack-price-total .tm-pack-price-label { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.tm-pack-price-total .tm-pack-price-value { font-size: 26px; font-weight: 800; color: #1a1a1a; }
.tm-pack-pricing-detail .tm-pack-savings {
    align-self: flex-start;
    margin-top: 6px;
}

/* ===== Pack : arguments marketing (avantages) ===== */
.tm-pack-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.tm-pack-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.tm-pack-benefit-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(233,30,140,.08);
    color: #E91E8C;
}
.tm-pack-benefit-icon svg { width: 24px; height: 24px; }
.tm-pack-benefit-text { display: flex; flex-direction: column; gap: 3px; }
.tm-pack-benefit-text strong { font-size: 16px; color: #1a1a1a; }
.tm-pack-benefit-text span { font-size: 14px; color: #666; line-height: 1.5; }

/* ===== Pack : détail tarifaire dépliable ===== */
.tm-pack-detail-toggle {
    border-top: 1px solid #ececec;
    padding-top: 10px;
}
.tm-pack-detail-toggle summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #E91E8C;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tm-pack-detail-toggle summary::-webkit-details-marker { display: none; }
.tm-pack-detail-toggle summary::after {
    content: "▾";
    font-size: 11px;
    transition: transform .2s ease;
}
.tm-pack-detail-toggle[open] summary::after { transform: rotate(180deg); }
.tm-pack-detail-body {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tm-pack-detail-body .tm-pack-price-row { font-size: 13px; color: #666; }

/* ===== Pack : avantages compacts dans la sidebar (sous le bouton) ===== */
.tm-pack-aside-benefits {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tm-pack-aside-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tm-pack-aside-benefit-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(233,30,140,.08);
    color: #E91E8C;
}
.tm-pack-aside-benefit-icon svg { width: 16px; height: 16px; }
.tm-pack-aside-benefit-text { display: flex; flex-direction: column; gap: 1px; }
.tm-pack-aside-benefit-text strong { font-size: 13px; color: #1a1a1a; line-height: 1.3; }
.tm-pack-aside-benefit-text span { font-size: 12px; color: #777; line-height: 1.4; }

/* ===== Formation : autres sessions à venir (dépliable) ===== */
.tm-more-sessions { margin-top: 16px; }
.tm-more-sessions-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #E91E8C;
    padding: 6px 0;
}
.tm-more-sessions-toggle svg { transition: transform .25s ease; }
.tm-more-sessions.open .tm-more-sessions-toggle svg { transform: rotate(180deg); }
.tm-more-sessions-list {
    display: none;
    margin-top: 12px;
    flex-direction: column;
    gap: 10px;
}
.tm-session-card-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
}
.tm-session-card-compact .tm-session-date-badge {
    flex: 0 0 auto;
    text-align: center;
    line-height: 1.1;
    min-width: 44px;
}
.tm-session-card-compact .tm-session-day { display: block; font-size: 20px; font-weight: 800; color: #1a1a1a; }
.tm-session-card-compact .tm-session-month { display: block; font-size: 11px; font-weight: 700; color: #E91E8C; text-transform: uppercase; }
.tm-session-card-compact .tm-session-details { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-session-card-compact .tm-session-date-full { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.tm-session-card-compact .tm-session-loc { font-size: 13px; color: #777; }
.tm-session-card-compact .tm-session-action { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.tm-session-card-compact .tm-session-price .tm-price-amount { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.tm-session-card-compact.tm-session-status-full { opacity: .85; }
@media (max-width: 600px) {
    .tm-session-card-compact { flex-wrap: wrap; }
    .tm-session-card-compact .tm-session-action { width: 100%; justify-content: space-between; }
}

/* ===== Pack : sidebar restructurée (conversion) ===== */
.tm-pack-card-head { border-bottom: 1px solid #ececec; padding-bottom: 12px; }
.tm-pack-card-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #1a1a1a; line-height: 1.25; }
.tm-pack-card-head .tm-pack-count { margin: 0; font-size: 13px; color: #777; font-weight: 600; }
.tm-pack-price-hero { display: flex; flex-direction: column; gap: 6px; }
.tm-pack-price-main { font-size: 34px; font-weight: 800; color: #1a1a1a; line-height: 1; }
.tm-pack-price-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tm-pack-price-sub .tm-pack-compare { font-size: 16px; color: #999; text-decoration: line-through; }
.tm-pack-enroll-btn-secondary { width: 100%; text-align: center; }
.tm-pack-card .tm-pack-detail-toggle { border-top: 1px solid #ececec; padding-top: 12px; }
.tm-pack-card .tm-pack-sessions-summary { border-top: 1px solid #ececec; padding-top: 12px; }

/* ===== Pack : titres des formations incluses (sidebar) ===== */
.tm-pack-card-formations { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.tm-pack-card-formations li { font-size: 13px; color: #555; padding-left: 18px; position: relative; line-height: 1.35; }
.tm-pack-card-formations li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #E91E8C; font-weight: 800; }
.tm-pack-detail-body.tm-pack-sessions-summary { border-top: 0; padding-top: 0; margin-top: 10px; }

/* ===== Pack : note différé + tags sessions (sidebar) ===== */
.tm-pack-defer-note { font-size: 12px; color: #777; font-style: italic; margin: 8px 0 0; text-align: center; }
.tm-pack-sess-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; vertical-align: middle; }
.tm-pack-sess-tag-waitlist { background: #fff4e5; color: #b25e00; border: 1px solid #f0c089; }
.tm-pack-sess-tag-full { background: #f3f3f3; color: #999; border: 1px solid #e0e0e0; }
