@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F0F4F5;
    padding: 10px;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: #006064;
    letter-spacing: -0.02em;
}

.header .subtitle {
    color: #4A90E2;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    flex:1;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #F0F4F5;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}


.sidebar-card h3 {
    color: #006064;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: -0.01em;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
    font-size: 0.85rem;
    font-weight: 400;
    color: #444444 ;
}

.sidebar-card ol {
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
    font-size: 0.85rem;
    font-weight: 300;
}

.sidebar-card li::before {
    content: "•";
    color: #4A90E2;
    position: absolute;
    left: 0;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10px;
    gap: 15px;
}
.workshops-grid3{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.workshops-grid4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.workshops-grid3 .workshop-card:nth-child(3) {
   grid-column: 1 / 3; 
    width: 50%;          
    margin: 0 auto;      
}

.workshop-card {
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.workshop-card.level1 {
    background: #FF6B35;
}

.workshop-card.level2 {
    background: #F0A500;
}

.workshop-card.level3 {
    background: #B8CC00;
}

.workshop-card.level4 {
    background: #00B894;
}

.workshop-card.level5 {
    background: #0097A7;
}

.workshop-card.level6 {
    background: #006064;
}

.workshop-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.workshop-content {
    flex: 1;
}

.level-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: -0.01em;
}

.workshop-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.workshop-subtitle {
    font-size: 0.80rem;
    opacity: 0.9;
    font-weight: 300;
}

.card-description {
    font-size: 0.82rem;
    
    font-weight: 300;
    margin-bottom: 8px;
    color: #ffffff;
}

.expand-button {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expand-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.expand-button.expanded {
    transform: rotate(180deg);
}

.buttons-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.buttons-container.expanded {
    max-height: 250px;
    padding: 0 20px 20px 20px;
}

.buttons-grid {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.buttons-grid.grid-1 {
    grid-template-columns: repeat(2, 1fr);
}

.buttons-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 1 bouton pleine largeur en haut + 2 boutons côte à côte en bas */
.buttons-grid.grid1-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
}

.buttons-grid.grid1-3 .action-button:first-child {
    grid-column: 1 / -1;
}

.buttons-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.buttons-grid.grid-3c {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
}

/*---
.buttons-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.buttons-grid.grid-5 {
      grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
 
}

.buttons-grid.grid-6 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
--*/
.action-button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    letter-spacing: -0.01em;
    text-decoration: none;
    position: relative;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    text-decoration: none;
}

.action-button i {
    font-size: 1.4rem;
    text-decoration: none;
}

/* Tooltip personnalisé sur les boutons d'action */
.action-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 60, 67, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
    letter-spacing: 0;
}

.action-button[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    border: 5px solid transparent;
    border-top-color: rgba(0, 60, 67, 0.92);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.action-button[data-tooltip]:hover::after,
.action-button[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workshop-card {
    animation: fadeInUp 0.6s ease forwards;
}

.workshop-card:nth-child(1) {
    animation-delay: 0.1s;
}

.workshop-card:nth-child(2) {
    animation-delay: 0.2s;
}

.workshop-card:nth-child(3) {
    animation-delay: 0.3s;
}

.workshop-card:nth-child(4) {
    animation-delay: 0.4s;
}

.workshop-card:nth-child(5) {
    animation-delay: 0.5s;
}

.workshop-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .workshops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .workshops-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header .subtitle {
        font-size: 1.5rem;
    }
}


/* Styles pour le bouton replier */
.collapse-button {
    background: #DC3545 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.collapse-button:hover {
    background: #C82333 !important;
    color: white !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.collapse-button i {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* Bouton global flottant */
.global-collapse-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(220, 53, 69, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    pointer-events: none;
}

.global-collapse-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.global-collapse-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.4);
}

.global-collapse-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

/*-------INFO BULLE-------------------------*/


        .tooltip-container {
            position: relative;
            display: inline-block;
        }

        .tooltip-container .tooltip-text {
            visibility: hidden;
            width: 150px;
            background-color: #00484a;
            color: white;
            text-align: center;
            border-radius: 6px;
            padding: 8px 12px;
            position: absolute;
            z-index: 1000;
            bottom:125%;;
            top: auto;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 14px;
            line-height: 1.4;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        /* Flèche par défaut (bulle au-dessus) */
        .tooltip-container .tooltip-text::after {
            content: "";
            position: absolute;
            bottom: 100%;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent #333  transparent;
        }

        /* Ajustement automatique pour éviter le rognage */
        .tooltip-container .tooltip-text {
            /* Positionnement intelligent */
            transform: translateX(-50%);
            left: 50%;
            margin-left: 0;
        }

        /* Position alternative à droite quand trop proche du bord gauche */
        .tooltip-container.tooltip-right .tooltip-text {
            bottom: auto;
            top: 50%;
            left: 120%;
            transform: translateY(-50%);
            margin-left: 0;
        }

        .tooltip-container.tooltip-right .tooltip-text::after {
            top: 50%;
            left: -5px;
            margin-left: 0;
            margin-top: -5px;
            border-color: transparent #333 transparent transparent;
        }

        /* Position alternative à gauche quand trop proche du bord droit */
        .tooltip-container.tooltip-left .tooltip-text {
            bottom: auto;
            top: 50%;
            right: 120%;
            left: auto;
            transform: translateY(-50%);
            margin-left: 0;
        }

        .tooltip-container.tooltip-left .tooltip-text::after {
            top: 50%;
            right: -5px;
            left: auto;
            margin-left: 0;
            margin-top: -5px;
            border-color: transparent transparent transparent #333;
        }

        /* Position alternative en bas quand trop proche du haut */
        .tooltip-container.tooltip-bottom .tooltip-text {
            top: 125%;
            bottom: auto;
        }

        .tooltip-container.tooltip-bottom .tooltip-text::after {
            bottom: 100%;
            top: auto;
            border-color: transparent transparent #333 transparent;
        }

        .tooltip-container:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        .info-icon {
            color: #006064;
            cursor: pointer;
            margin-right: 8px;
        }

        .info-icon:hover {
            color: #006064;
        }

/*---------------Modifications (LES SUPPORT(ul,Li)/  Le titre   /    footer)-----------------*/
#uneLigne{
    display: flex;
    align-items: center;
    gap: 10px;
}
        /* Pour retirer les puces devant la liste de support */
        #support{
            list-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        #support li {
            list-style: none !important;
            padding-left: 0 !important;
        }

        #support li::before {
            display: none !important;
        }

        #support li::marker {
            display: none !important;
        }

#grosTitre{
    width: auto;
    opacity: 1; 
    transform: scale(1) rotateX(0deg) rotateY(0deg) rotate(0deg); 
    font-family:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;;
    font-size: 45px; 
    color: #006064; 
    overflow-wrap: break-word;
    gap: 5%;
}


footer {
    text-align: center;
    color: #9AABBF;
    font-size: 0.8rem;
    font-weight: 400;
    position: relative;
    width: 100%;
    margin-top: 2%;
    padding-bottom: 10px;
}

h3{
    color: white;
}

#btnSide{
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-direction: column;
    height: 50px;
    width: 150px;
} 

hr{
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 5px 0;
}

#iconSide{
    color: #0097A7;
    font-size: 15px;
}
/*------- BADGE ENTRAÎNEMENT (header gauche) -------*/
header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 4px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 15px;
    box-shadow: none;
    flex-wrap: wrap;
}

.header-entrainement {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-label-tag {
    background: #0097A7;
    color: #e0f7fa;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 250px;
}

/* Séparateur vertical discret entre le badge et le titre */
header > h1 {
    flex: 1;
    border-left: 2px solid #e0f2f3;
    padding-left: 18px;
    margin-left: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    header > h1 {
        border-left: none;
        padding-left: 0;
    }
    #grosTitre {
        font-size: 1.8rem !important;
        word-break: break-word;
    }
}


/*------- Bouton dépliable au survol de la souris (dans les carte et au niveau du titre) -------*/
.expand-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #003c43;
    border-radius: 20px;
    padding: 8px;
    cursor: pointer;
    overflow: visible; 
    max-width: 50px;
    transition: width 0.4s ease;
    white-space: nowrap;
    font-size: 0,86rem;
    transition: max-width 0.8s ease;
    margin-top: 10px;
}

.expand-btn:hover {
    max-width: 500px;
}

.expand-btn .expand-text {
    opacity: 0;
    transition: border-radius 0.3s ease 0.1s;
    color: white;
    font-size: 0.85rem;
    margin-left: 8px;
}

.expand-btn:hover .expand-text {
    opacity: 1;
}

/* La bulle tooltip */
.expand-tooltip {
    visibility: hidden;
    opacity: 1 !important;
    position: absolute;
    bottom: auto;
    top: 120%;
    left: 85%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: auto;
    text-align: center;
    transition: opacity 0.3s ease;
    z-index: 99999 !important;
}

.expand-tooltip::after {
    content: "";
    position: absolute;
    top: auto;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: transparent;
    border-bottom-color: #333;
}

.expand-btn:hover .expand-tooltip {
    visibility: visible;
    opacity: 1;
}

.btn-video {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 8px;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    max-width: 35px;
    transition: max-width 0.4s ease;
    white-space: nowrap;
    
}

.btn-video:hover {
    max-width: 300px;
}

.btn-video i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-video span {
    opacity: 0;
    margin-left: 8px;
    font-size: 0.85rem;
    transition: opacity 0.3s ease 0.1s;
}

.btn-video:hover span {
    opacity: 1;
}

#btnTitre{
    background-color: #0097A7;
    transform: translateY(-50%);
    align-items: center;
    border-radius: 20px;
    padding: 8px;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    max-width: 35px;
    transition: max-width 0.4s ease;
    white-space: nowrap;
}

#btnTitre:hover {
    max-width: 300px;
}

#btnTitre i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

#btnTitre span {
    opacity: 0;
    margin-left: 8px;
    font-size: 0.85rem;
    transition: opacity 0.3s ease 0.1s;
}

#btnTitre:hover span {
    opacity: 1;
}

#btnVideo {
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-direction: column;
    height: 35px;
    width: 45px;
}

.card-info-bulle {
    position: relative;
    display: inline-block;
}

.card-info-bulle::after {
    content: attr(data-tip);
    visibility: hidden;
    opacity: 0;
    position: fixed;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 99999;
    transition: opacity 0.3s;
    transform: translateX(-0%) translateY(-250%);
    margin-top: -8px;
}
.card-info-bulle:hover::after {
    visibility: visible;
    opacity: 1;
}
