/* part.css - Styles pour les sous-parties des séances */
@import url('./seance.css');

/* ------------- VARIABLES ET BASE ------------- */
:root {
    --color-primary: #1565c0; /* Bleu plus foncé */
}

header, footer {
    background: linear-gradient(135deg, var(--color-primary), #0d47a1);
}

/* ------------- SECTIONS ET TITRES ------------- */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title {
    font-family: var(--font-subheading);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0;
    margin-right: 15px;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--color-secondary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.subsection-title {
    font-family: var(--font-subheading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.subsection-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background: var(--color-secondary);
    margin: 0.4rem auto 0;
    border-radius: 2px;
}

/* ------------- BOUTONS INFO ET SECTIONS D'INFORMATION ------------- */
.info-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    border: none;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    top: -2px;
}

.info-button:hover {
    background-color: #e88a00;
    transform: scale(1.1);
}

.info-icon {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1;
}

.section-info {
    max-width: 950px;
    margin: -1rem auto 2rem;
    padding: 0 1.5rem;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
    text-align: center;
}

.section-info.visible {
    padding: 0 1.5rem;
    height: auto;
    opacity: 1;
    margin-bottom: 2rem;
    position: relative;
}

.section-info.visible .card-text {
    border-radius: 12px;
}

.section-info.visible::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--color-secondary);
    border-radius: 3px 0 0 3px;
    z-index: 1;
}

/* ------------- CARTES ET CONTENEURS ------------- */
.single-card {
    max-width: 700px;
    margin: 0 auto;
}

.big-card {
    max-width: 800px;
    margin: 0 auto;
}

.dual-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.system-card {
    flex: 1 1 300px;
    max-width: 400px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
}

.large-image {
    height: auto;
    max-height: 400px;
    overflow: hidden;
}

.large-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ------------- CONTENUS ET LISTES ------------- */
.session-desc p {
    margin-bottom: 15px;
}

.system-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.system-list li {
    margin-bottom: 8px;
}

.system-examples {
    font-style: italic;
    font-size: 0.9em;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rules-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff7b00;
}

.rules-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ff7b00;
    font-weight: 500;
}

/* ------------- BOUTONS ET ACTIONS ------------- */
.button-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.session-link.orange-btn {
    background-color: var(--color-secondary);
}

.session-link.orange-btn:hover {
    background-color: #e68a00;
}

.image-switch-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.image-switch {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.image-switch:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.image-switch.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    font-weight: bold;
}

/* ------------- MODAL ET FENÊTRES POPUP ------------- */
#modalCaption {
    margin: auto;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 20px 0;
    font-family: var(--font-body);
}

#modalCaption .modal-title {
    font-family: var(--font-subheading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#modalCaption .modal-desc {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

#modalCaption a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px dotted rgba(255, 152, 0, 0.5);
    padding-bottom: 2px;
}

#modalCaption a:hover {
    color: #ffb74d;
    border-bottom: 1px solid rgba(255, 152, 0, 0.8);
    text-shadow: 0 0 3px rgba(255, 152, 0, 0.2);
}

#modalCaption ul {
    text-align: left;
    list-style-position: inside;
    padding-left: 0;
    margin: 0.5rem 0 1rem;
}

#modalCaption li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* ------------- MEDIA QUERIES ------------- */
@media (max-width: 768px) {
    /* Section headers */
    .section-header {
        flex-direction: row;
        align-items: center;
    }
    
    .section-title {
        margin-right: 10px;
        font-size: 1.7rem;
    }
    
    .info-button {
        width: 26px;
        height: 26px;
    }
    
    .info-icon {
        font-size: 16px;
    }
    
    /* Modal captions */
    #modalCaption .modal-title {
        font-size: 1.5rem;
    }
    
    #modalCaption .modal-desc {
        font-size: 1rem;
    }
    
    #modalCaption li {
        font-size: 0.9rem;
    }
    
    /* Cards layout */
    .dual-cards {
        flex-direction: column;
    }
    
    .system-card {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .info-button {
        width: 24px;
        height: 24px;
    }
    
    .info-icon {
        font-size: 14px;
    }
    
    .image-switch-container {
        flex-wrap: wrap;
    }
    
    .image-switch {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .button-container {
        flex-direction: column;
    }
}