* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 40px 70px 100px 70px;
    animation: fadeIn 0.4s ease;
}

.slide.compact-slide {
    padding: 25px 50px 60px 50px;
}

.slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide type 1 - Background sombre (#2c3242) */
.slide-dark {
    background: #2c3242;
    align-items: center;
    text-align: center;
}

.slide-dark h1 {
    font-size: 4.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.slide-dark .number {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 900;
    position: absolute;
    right: 80px;
    bottom: 50px;
}

.slide-dark p {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Slide type 2 - Background turquoise (#74bbbe) */
.slide-turquoise {
    background: #74bbbe;
    align-items: center;
    text-align: center;
}

.slide-turquoise h1 {
    font-size: 5rem;
    color: white;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Slide type 3 - Background clair (#f8f8f8) */
.slide-light {
    background: #f8f8f8;
}

/* Menu d'activités */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.activity-card {
    background: white;
    padding: 45px 35px;
    text-align: center;
    border-left: 8px solid #2c3242;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.activity-card h2 {
    font-size: 2.2rem;
    color: #2c3242;
    margin-bottom: 12px;
    font-weight: 600;
}

.activity-card p {
    font-size: 1.2rem;
    color: #666;
}

/* Contenu général */
.content-box {
    background: white;
    padding: 40px 50px 35px 50px;
    max-width: 1300px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.content-box h1 {
    font-size: 3rem;
    color: #2c3242;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 4px solid #74bbbe;
    padding-bottom: 10px;
    display: inline-block;
}

.content-box h2 {
    font-size: 2rem;
    color: #2c3242;
    margin: 20px 0 15px;
    font-weight: 600;
}

.instruction-list {
    list-style: none;
    counter-reset: instruction-counter;
}

.instruction-list li {
    position: relative;
    padding-left: 70px;
    margin-bottom: 22px;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
}

.instruction-list li::before {
    content: counter(instruction-counter);
    counter-increment: instruction-counter;
    position: absolute;
    left: 0;
    top: -2px;
    width: 45px;
    height: 45px;
    background: #74bbbe;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
}

.bullet-list {
    list-style: none;
    padding-left: 0;
}

.bullet-list li {
    padding-left: 35px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    position: relative;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #74bbbe;
    transform: rotate(45deg);
}

/* Timer */
.timer-box {
    background: white;
    border: 3px solid #74bbbe;
    padding: 35px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 700px;
}

.slide-dark .timer-box {
    margin: 0 auto;
    margin-top: 40px;
}

.timer-box h2 {
    color: #2c3242;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.timer-display {
    font-size: 5.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: #2c3242;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn {
    background: #74bbbe;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #5fa6a9;
}

/* Navigation */
.navigation {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #2c3242;
    border: none;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(116, 187, 190, 0.9);
    color: white;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-indicator {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    color: #2c3242;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #2c3242;
}

/* Grille Bingo */
.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
    max-width: 1200px;
}

.bingo-cell {
    background: white;
    border: 2px solid #74bbbe;
    padding: 12px 8px;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.bingo-cell:nth-child(13) {
    background: #74bbbe;
    color: white;
    font-weight: 700;
}

/* Compétences */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.competence-card {
    background: white;
    border-left: 6px solid #74bbbe;
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Content box optimisé pour la page compétences */
.content-box-compact {
    background: white;
    padding: 25px 40px 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.content-box-compact h1 {
    font-size: 2.5rem;
    color: #2c3242;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 4px solid #74bbbe;
    padding-bottom: 8px;
    display: inline-block;
}

/* Alert box */
.alert {
    background: #fff9e6;
    border-left: 6px solid #ffb900;
    padding: 16px 22px;
    margin: 20px 0;
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
}

/* Groupes */
.group-box {
    background: white;
    padding: 60px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.group-box h2 {
    font-size: 3rem;
    color: #2c3242;
    margin-bottom: 35px;
    font-weight: 600;
}

.group-box p {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.group-box .highlight {
    font-size: 2.5rem;
    font-weight: 700;
    color: #74bbbe;
    margin-top: 25px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 500;
}

.slide-light .footer {
    color: rgba(0, 0, 0, 0.3);
}

.slide-turquoise .footer {
    color: rgba(255, 255, 255, 0.6);
}

/* Menu latéral */
.sidebar-menu {
    position: fixed;
    left: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: #2c3242;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-toggle {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3242;
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 2001;
    font-size: 1.2rem;
    transition: all 0.3s;
    border-radius: 0 5px 5px 0;
}

.sidebar-toggle:hover {
    background: #74bbbe;
}

.sidebar-header {
    background: #74bbbe;
    color: white;
    padding: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.sidebar-content {
    padding: 20px 0;
}

.slide-link {
    display: block;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    font-size: 1.1rem;
}

.slide-link:hover {
    background: rgba(116, 187, 190, 0.2);
    color: white;
    border-left-color: #74bbbe;
}

.slide-link.active {
    background: rgba(116, 187, 190, 0.3);
    color: white;
    border-left-color: #74bbbe;
    font-weight: 600;
}

.slide-link .slide-number {
    display: inline-block;
    width: 30px;
    color: #74bbbe;
    font-weight: 700;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1999;
}

.sidebar-overlay.show {
    display: block;
}

/* Générateur d'équipes */
.team-generator {
    background: white;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.input-section {
    margin-bottom: 30px;
}

.input-section label {
    display: block;
    font-size: 1.3rem;
    color: #2c3242;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-section textarea {
    width: 100%;
    padding: 15px;
    font-size: 1.15rem;
    border: 2px solid #74bbbe;
    font-family: 'Calibri', Arial, sans-serif;
    resize: vertical;
    min-height: 120px;
}

.input-section input[type="number"] {
    padding: 12px;
    font-size: 1.15rem;
    border: 2px solid #74bbbe;
    width: 100px;
}

.generate-btn {
    background: #74bbbe;
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.35rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.generate-btn:hover {
    background: #5fa6a9;
}

.teams-display {
    margin-top: 40px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.team-item {
    background: #f8f8f8;
    border-left: 6px solid #74bbbe;
    padding: 16px;
}

.team-item h3 {
    color: #2c3242;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-members {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.pairs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.pair-item {
    background: #f8f8f8;
    border-left: 6px solid #74bbbe;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pair-item .names {
    font-size: 1.15rem;
    color: #333;
    font-weight: 500;
}

.pair-item .separator {
    font-size: 1.6rem;
    color: #74bbbe;
    font-weight: 700;
    margin: 8px 0;
}

.help-text {
    font-size: 1.05rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Icône info PDF */
.pdf-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #74bbbe;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 15px;
    vertical-align: middle;
}

.pdf-info-icon:hover {
    background: #5fa6a9;
    transform: scale(1.1);
}