/* ===== VARIABLES ===== */
:root {
    --bleu: #382e85;
    --orange: #ed6e1c;
    --creme: #fefdef;
    --bg: #382e85;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    height: 100%;
    min-height: 100%;
    overflow-x: auto;
    color: #2a2a3a;
}

/* ===== CONTAINER PRINCIPAL ===== */
.mindmap-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1335px;
    max-height: 800px;
    min-width: 1335px;
    z-index: 10;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.panel-open .mindmap-container {
    transform: translate(-50%, -50%) translateX(-210px);
}

#connectionsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ===== ÉLÉMENT CENTRAL ===== */
.center-element {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    z-index: 100;
    opacity: 0;
    animation: centerReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.center-gear {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 290px;
    height: 290px;
    margin-left: -145px;
    margin-top: -145px;
    z-index: -1;
    opacity: 0;
    animation: gearRotate 50s linear infinite, gearReveal 1s ease 0.5s forwards;
}

.gear-svg {
    width: 100%;
    height: 100%;
}

.center-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #ffffff 0%, #f5f5fa 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px;
    border: 5px solid var(--orange);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.center-content:hover {
    transform: scale(1.05);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 10px 25px rgba(0, 0, 0, 0.25);
}

.center-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bleu);
    padding-top: 10px;
}

.center-separator {
    width: 40px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin: 12px 0;
}

.center-content .subtitle {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    transition: color 0.3s ease;
}

/* ===== LIEN CONGRÈS 2025 ===== */
.subtitle-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 5px 12px;
    border-radius: 20px;
    background: transparent;
}

.subtitle-link:hover {
    background: rgba(237, 110, 28, 0.1);
}

.subtitle-link:hover .subtitle {
    color: var(--orange);
}

.subtitle-link:hover i {
    color: var(--orange);
    transform: translate(2px, -2px);
}

.subtitle-link i {
    font-size: 10px;
    color: #888;
    transition: all 0.3s ease;
}

/* ===== KEYFRAMES ÉLÉMENT CENTRAL ===== */
@keyframes centerReveal {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-180deg); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes gearReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== PÉTALES ===== */
.petals-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

.petal {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.petal-card {
    position: relative;
    width: 225px;
    background: #ffffff;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.petal:hover .petal-card {
    transform: translateY(-8px);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.15);
}

.petal-header {
    padding: 10px 50px 10px 13px;
    min-height: 85px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--orange);
}

.petal-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    color: white;
}

.petal-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.petal-icon svg,
.petal-icon i {
    color: inherit;
}

.petal-body {
    padding: 15px 20px 18px;
    background: #ffffff;
}

.petal .petal-subtitle {
    font-size: 13px;
    color: #555;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 12px;
}

.petal-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

.petal:hover .petal-indicator {
    color: var(--orange);
}

.petal:hover .petal-icon {
    color: white;
}

.petal-indicator svg {
    width: 16px;
    height: 16px;
}

/* Positions des pétales */
.petal[data-petal="1"] { left: calc(50% - 420px); top: calc(50% - 230px); }
.petal[data-petal="2"] { left: calc(50% - 105px); top: calc(50% - 390px); }
.petal[data-petal="3"] { left: calc(50% + 200px); top: calc(50% - 230px); }
.petal[data-petal="4"] { left: calc(50% - 420px); top: calc(50% + 30px); }
.petal[data-petal="5"] { left: calc(50% - 105px); top: calc(50% + 190px); }
.petal[data-petal="6"] { left: calc(50% + 200px); top: calc(50% + 30px); }

/* Animations d'entrée des pétales */
.petal[data-petal="1"] { animation: petalSlideFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards; }
.petal[data-petal="2"] { animation: petalSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards; }
.petal[data-petal="3"] { animation: petalSlideFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards; }
.petal[data-petal="4"] { animation: petalSlideFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards; }
.petal[data-petal="5"] { animation: petalSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards; }
.petal[data-petal="6"] { animation: petalSlideFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s forwards; }

@keyframes petalSlideFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes petalSlideFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes petalSlideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes petalSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PANNEAU NIVEAU 3 ===== */
.level3-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100%;
    background: var(--creme);
    z-index: 200;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.level3-panel.active {
    right: 0;
}

.level3-header {
    padding: 30px;
    position: relative;
    background: var(--bleu);
}

.level3-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.level3-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: rotate(90deg);
}

.level3-close svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.level3-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding-right: 50px;
    line-height: 1.3;
    color: white;
}

.level3-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

.level3-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.level3-item {
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e8e6df;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.level3-item:hover {
    transform: translateX(8px);
    border-color: var(--orange);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.level3-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--orange);
    color: white;
}

.level3-item-icon svg,
.level3-item-icon i {
    width: 20px;
    height: 20px;
    color: white;
    font-size: 20px;
}

.level3-item-content {
    flex: 1;
}

.level3-item-title {
    font-weight: 600;
    font-size: 13px;
    color: #2a2a3a;
    margin-bottom: 3px;
}

.level3-item-type {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level3-item-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.level3-item:hover .level3-item-arrow {
    transform: translateX(4px);
    background: var(--orange);
}

.level3-item-arrow svg {
    width: 14px;
    height: 14px;
    stroke: #888;
}

.level3-item:hover .level3-item-arrow svg {
    stroke: white;
}

.level3-footer {
    padding: 20px;
    background: var(--bleu);
}

.level3-back {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level3-back:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateX(-5px);
}

.level3-back svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.level3-back:hover svg {
    transform: translateX(-5px);
}

/* ===== BOUTON RECHERCHE FLOTTANT ===== */
.search-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 250;
    box-shadow: 0 4px 15px rgba(237, 110, 28, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(237, 110, 28, 0.5);
}

.search-trigger i {
    color: white;
    font-size: 20px;
}

body.panel-open .search-trigger {
    right: 440px;
}

/* ===== MODE RECHERCHE DU PANNEAU ===== */
.level3-search-container {
    padding: 0 20px 15px;
    background: var(--bleu);
}

.level3-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.level3-search-input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.level3-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.level3-search-input:focus {
    border-color: var(--orange);
    background: rgba(255, 255, 255, 0.15);
}

.level3-search-icon {
    position: absolute;
    right: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    pointer-events: none;
}

.level3-search-clear {
    position: absolute;
    right: 15px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.level3-search-clear.visible {
    display: flex;
}

.level3-search-clear:hover {
    background: var(--orange);
}

.level3-search-clear i {
    color: white;
    font-size: 12px;
}

/* Résultats de recherche */
.search-results-info {
    padding: 12px 20px;
    background: rgba(237, 110, 28, 0.1);
    border-bottom: 1px solid #e8e6df;
    font-size: 13px;
    color: #666;
}

.search-results-info strong {
    color: var(--orange);
}

.search-result-item {
    padding: 18px;
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e8e6df;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    transform: translateX(8px);
    border-color: var(--orange);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.search-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--orange);
    color: white;
}

.search-result-icon i {
    font-size: 18px;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 13px;
    color: #2a2a3a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.search-result-context {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-context mark {
    background: rgba(237, 110, 28, 0.2);
    color: var(--orange);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-path {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-result-path i {
    font-size: 10px;
}

.search-result-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    transition: all 0.3s ease;
}

.search-result-item:hover .search-result-arrow {
    transform: translateX(4px);
    background: var(--orange);
}

.search-result-arrow svg {
    width: 14px;
    height: 14px;
    stroke: #888;
}

.search-result-item:hover .search-result-arrow svg {
    stroke: white;
}

/* Message aucun résultat */
.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.search-no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.search-no-results p {
    font-size: 14px;
    margin-bottom: 5px;
}

.search-no-results .search-term {
    color: var(--orange);
    font-weight: 600;
}

/* État initial - Invitation à chercher */
.search-empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #888;
}

.search-empty-state i {
    font-size: 60px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.search-empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.search-empty-state p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(56, 46, 133, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup {
    background: #ffffff;
    border-radius: 28px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(50px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.popup-header {
    padding: 30px 30px 25px;
    position: relative;
    background: var(--orange);
    flex-shrink: 0;
}

.popup-overlay.active .popup {
    transform: translateY(0) scale(1);
}

.popup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    padding-right: 50px;
    color: white;
}

.popup-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg) scale(1.05);
}

.popup-close svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.popup-content {
    padding: 25px 30px 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* ===== SECTIONS POPUP ===== */
.popup-section {
    margin-bottom: 25px;
}

.popup-section:last-child {
    margin-bottom: 0;
}

.popup-section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bleu);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-section-label::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--orange);
    border-radius: 2px;
}

.popup-summary .popup-section-label {
    margin-bottom: 12px;
}

.popup-keypoints-group .popup-section-label {
    margin-bottom: 11px;
}

/* ===== RÉSUMÉ ===== */
.popup-summary {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.popup-summary-text {
    padding: 14px;
    background: #f8f8f8;
    border-radius: 10px;
}

.popup-summary-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 15px;
}

.popup-summary-text p:last-child {
    margin-bottom: 0;
}

.popup-summary em {
    color: #666;
    font-style: italic;
}

.popup-summary-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.8;
    font-size: 14px;
}

.popup-summary-text ul:last-child {
    margin-bottom: 0;
}

.popup-summary-text li {
    margin-bottom: 6px;
}

.popup-summary-text li:last-child {
    margin-bottom: 0;
}

/* Bouton contact dans summary */
.popup-summary-text .contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.popup-summary-text .contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 110, 28, 0.4);
}

.popup-summary-text .contact-button i {
    font-size: 16px;
}

/* Bouton secondaire (grisé pour "à venir") */
.popup-summary-text .contact-button-secondary {
    background: #999;
    pointer-events: none;
    opacity: 0.7;
}

.popup-summary-text .contact-button-secondary:hover {
    transform: none;
    box-shadow: none;
}

/* ===== INTERVENANT·ES ===== */
.intervenants-list {
    margin-top: 15px;
}

.intervenant-item-wrapper {
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: #f8f8f8;
}

.intervenant-item-wrapper:hover,
.intervenant-item-wrapper:has(.intervenant-details.expanded) {
    background-color: #f8f8f8;
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.intervenant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 15px;
    cursor: pointer;
    background-color: transparent;
    border-radius: 10px;
}

.intervenant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.intervenant-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
    border: 2px solid #ddd;
}

.intervenant-photo-placeholder {
    font-size: 36px;
    color: #ccc;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intervenant-name {
    font-weight: 400;
    font-size: 13px;
    color: #2a2a3a;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.intervenant-item-wrapper:hover .intervenant-name,
.intervenant-item-wrapper:has(.intervenant-details.expanded) .intervenant-name {
    color: var(--orange);
    font-weight: 600;
}

.intervenant-item-wrapper:hover .expand-icon,
.intervenant-item-wrapper:has(.intervenant-details.expanded) .expand-icon {
    color: var(--orange);
}

.intervenant-details {
    padding: 0 15px 0 63px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.intervenant-details.expanded {
    max-height: 300px;
    opacity: 1;
    padding: 0 15px 12px 63px;
}

/* ===== POINTS CLÉS ===== */
.popup-keypoints-group {
    margin-top: 18px;
}

.keypoint-item-wrapper {
    margin-bottom: 4px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    transition: all 0.2s ease;
}

.keypoint-item-wrapper:hover,
.keypoint-item-wrapper:has(.keypoint-content.expanded) {
    background: #f8f8f8;
}

.keypoint-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 8px 8px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.keypoint-item-wrapper:last-child .keypoint-item {
    border-bottom: none;
}

.keypoint-item-wrapper:hover .keypoint-item,
.keypoint-item-wrapper:has(.keypoint-content.expanded) .keypoint-item {
    border-bottom-color: transparent;
}

.keypoint-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    margin-top: 6px;
}

.keypoint-title-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2a2a3a;
    margin: 0;
    flex: 1;
    line-height: 1.5;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.keypoint-item-wrapper:hover .keypoint-title-text,
.keypoint-item-wrapper:has(.keypoint-content.expanded) .keypoint-title-text {
    color: var(--orange);
    font-weight: 600;
}

.keypoint-content {
    padding: 0 0 0 14px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.keypoint-content.expanded {
    max-height: 800px;
    opacity: 1;
    padding: 8px 0 15px 14px;
}

.keypoint-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.keypoint-content ul:last-child {
    margin-bottom: 0;
}

.keypoint-content ul li {
    margin-bottom: 5px;
}

.keypoint-item .expand-icon {
    flex-shrink: 0;
    font-size: 11px;
    color: #bbb;
    transition: transform 0.2s ease-in-out, color 0.2s ease;
    margin-top: 4px;
}

.keypoint-item-wrapper:hover .expand-icon,
.keypoint-item-wrapper:has(.keypoint-content.expanded) .expand-icon {
    color: var(--orange);
}

/* Chevrons génériques */
.popup-expandable-header .expand-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease-in-out, color 0.2s ease;
}

.popup-expandable-header:hover .expand-icon {
    color: var(--orange);
}

/* ===== RESSOURCES MÉDIAS (ONGLETS) ===== */
.popup-media-resources {
    margin-top: 20px;
}

.media-resources-container {
    background: #f8f8f8;
    border: 2px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
}

.media-placeholder {
    padding: 40px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Onglets médias */
.media-tabs {
    display: flex;
    gap: 0;
    background: #e6e6e6;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.media-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 20px;
}

.media-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--bleu);
}

.media-tab.active {
    background: white;
    color: var(--orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.media-tab i {
    transition: transform 0.2s ease;
}

.media-tab:hover i {
    transform: scale(1.1);
}

/* Contenus médias */
.media-contents {
    position: relative;
}

.media-content-panel {
    display: none;
    padding: 25px;
}

.media-content-panel[data-media-type="youtube"],
.media-content-panel[data-media-type="images"] {
    padding: 0;
}

.media-content-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bloc média générique */
.media-block {
    text-align: center;
}

.media-block-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* YouTube dans onglets */
.media-block.youtube .youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-top: 15px;
}

.media-block.youtube .youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Poster YouTube (lazy load) */
.youtube-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.youtube-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(237, 110, 28, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.youtube-play-btn:hover {
    background: var(--orange);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(237, 110, 28, 0.5);
}

.youtube-play-btn i {
    color: white;
    font-size: 28px;
    margin-left: 4px;
}

/* Audio dans onglets */
.media-block.audio audio {
    width: 100%;
    max-width: 400px;
    height: 45px;
    border-radius: 25px;
    margin-top: 10px;
}

/* PDF dans onglets */
.media-block.pdf a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-top: 10px;
}

.media-block.pdf a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 110, 28, 0.4);
}

.media-block.pdf a i {
    color: white;
}

/* Images dans onglets */
.media-images-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.media-image-item {
    flex: 0 0 calc((100% - 24px) / 3);
    max-width: calc((100% - 24px) / 3);
}

.media-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.media-image-caption {
    padding: 8px 10px;
    font-size: 11px;
    color: #666;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* Placeholder images */
.media-images-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    text-align: center;
}

.media-images-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.media-images-placeholder p {
    font-size: 14px;
    font-style: italic;
}

/* ===== VISIONNEUSE D'IMAGES ===== */
.image-viewer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-viewer-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.image-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-viewer-prev {
    left: 20px;
}

.image-viewer-next {
    right: 20px;
}

.image-viewer-nav svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-viewer-content img {
    max-width: 100%;
    max-height: calc(85vh - 60px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: white;
}

.image-viewer-caption {
    margin-top: 15px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    text-align: center;
    max-width: 600px;
}

.image-viewer-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* ===== QUIZ ===== */
.quiz-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-question {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 18px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.quiz-question.answered {
    border-color: #ddd;
}

.quiz-question.correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.05);
}

.quiz-question.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.quiz-question-number {
    display: inline-block;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.quiz-question-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #2a2a3a;
    margin-bottom: 15px;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.quiz-option:hover:not(.disabled) {
    border-color: var(--orange);
    background: rgba(237, 110, 28, 0.05);
}

.quiz-option.disabled {
    cursor: default;
    opacity: 0.7;
}

.quiz-option.selected {
    border-color: var(--bleu);
    background: rgba(56, 46, 133, 0.08);
}

.quiz-option.correct-answer {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.quiz-option.wrong-answer {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
    color: #c62828;
}

.quiz-option-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    transition: all 0.2s ease;
}

.quiz-option:hover:not(.disabled) .quiz-option-marker {
    border-color: var(--orange);
    color: var(--orange);
}

.quiz-option.selected .quiz-option-marker {
    border-color: var(--bleu);
    background: var(--bleu);
    color: white;
}

.quiz-option.correct-answer .quiz-option-marker {
    border-color: #4caf50;
    background: #4caf50;
    color: white;
}

.quiz-option.wrong-answer .quiz-option-marker {
    border-color: #f44336;
    background: #f44336;
    color: white;
}

.quiz-option-marker i {
    font-size: 12px;
}

.quiz-feedback {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.quiz-feedback.visible {
    display: block;
}

.quiz-feedback.correct {
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}

.quiz-feedback.incorrect {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border-left: 3px solid #f44336;
}

/* Score final */
.quiz-score {
    background: linear-gradient(135deg, var(--bleu) 0%, #4a3fa8 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-top: 10px;
}

.quiz-score-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.quiz-score-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
}

.quiz-score-text {
    font-size: 14px;
    opacity: 0.9;
}

.quiz-reset {
    margin-top: 15px;
    padding: 12px 25px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 110, 28, 0.4);
}

/* ===== FAQ ===== */
.faq-list {
    margin-top: 15px;
}

.faq-item-wrapper {
    margin-bottom: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: #f8f8f8;
}

.faq-item-wrapper:last-child {
    margin-bottom: 0;
}

.faq-item-wrapper:hover,
.faq-item-wrapper:has(.faq-answer.expanded) {
    background-color: #f8f8f8;
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    background-color: transparent;
    border-radius: 10px;
    gap: 12px;
}

.faq-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.faq-icon {
    font-size: 20px;
    color: var(--orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-question {
    font-weight: 500;
    font-size: 14px;
    color: #2a2a3a;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.faq-item-wrapper:hover .faq-question,
.faq-item-wrapper:has(.faq-answer.expanded) .faq-question {
    color: var(--orange);
}

.faq-item-wrapper:hover .expand-icon,
.faq-item-wrapper:has(.faq-answer.expanded) .expand-icon {
    color: var(--orange);
}

.faq-answer {
    padding: 0 15px 0 47px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.expanded {
    max-height: 500px;
    opacity: 1;
    padding: 0 15px 15px 47px;
}

.faq-answer ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.faq-answer ul:last-child {
    margin-bottom: 0;
}

.faq-answer li {
    margin-bottom: 5px;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===== FLOURISH EMBEDS ===== */

.flourish-container {
    background: #f8f8f8;
    border: 2px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding-bottom: 75%; /* Ratio 4:3 pour les graphiques */
    height: 0;
}

.flourish-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* @media (max-width: 768px) */
.flourish-container {
    border-radius: 12px;
    padding-bottom: 85%; /* Un peu plus haut sur mobile */
}

/* @media (max-width: 600px) */
.flourish-container {
    padding-bottom: 100%;
}

/* @media (max-width: 480px) */
.flourish-container {
    border-radius: 10px;
    padding-bottom: 120%;
}

/* ===== CONTENU HTML EXTERNE ===== */
.popup-external-html {
    margin-top: 20px;
}

.external-html-container {
    background: #f8f8f8;
    border: 2px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
}

.external-html-loading,
.external-html-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
    text-align: center;
}

.external-html-loading i,
.external-html-error i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--orange);
}

.external-html-error i {
    color: #e74c3c;
}

.external-html-loading p,
.external-html-error p {
    font-size: 14px;
}

/* ===== CONTENU HTML EXTERNE ===== */
.popup-external-html {
    margin-top: 20px;
}

.external-html-container {
    background: transparent; /* Pas de background */
    border: none; /* Pas de border */
    border-radius: 0;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
}

.external-html-loading,
.external-html-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #888;
    text-align: center;
}

.external-html-loading i,
.external-html-error i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--orange);
}

.external-html-error i {
    color: #e74c3c;
}

.external-html-loading p,
.external-html-error p {
    font-size: 14px;
}

/* ===== DRAWERS (SOMMAIRE ACCORDÉON) ===== */
.drawers {
    padding: 0;
}

/* H2 - Thématiques principales */
.drawers h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #2a2a3a;
    background: white;
    padding: 7px 35px 7px 0;
    margin: 0 0 2px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Puce orange h2 */
.drawers h2::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    margin-top: 5px;
}

/* Hover et expand h2 */
.drawers h2:hover,
.drawers h2:not(.folded) {
    color: var(--orange);
    font-weight: 600;
}

/* Chevron h2 */
.drawers h2::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    position: absolute;
    right: 8px;
    top: 12px;
    color: #bbb;
    transition: transform 0.2s ease, color 0.2s ease;
}

.drawers h2:hover::after,
.drawers h2:not(.folded)::after {
    color: var(--orange);
}

.drawers h2.folded::after {
    transform: rotate(-90deg);
}

/* Conteneur sous h2 */
.drawers h2 + div {
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
    margin-left: 0;
    margin-bottom: 8px;
    border: none;
}

.drawers h2.folded + div {
    display: none;
}

/* H3 - Sous-catégories */
.drawers h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2a2a3a;
    background: transparent;
    padding: 8px 35px 8px 0;
    margin: 0 0 1px 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Puce h3 */
.drawers h3::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: #2a2a3a;
    border-radius: 50%;
    margin-top: 6px;
}

/* Hover et expand h3 */
.drawers h3:hover,
.drawers h3:not(.folded) {
    font-weight: 600;
}

/* Chevron h3 */
.drawers h3::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    transition: transform 0.2s ease, color 0.2s ease;
}

.drawers h3:hover::after,
.drawers h3:not(.folded)::after {
    color: var(--orange);
}

.drawers h3.folded::after {
    transform: translateY(-50%) rotate(-90deg);
}

.drawers h3.folded + ul {
    display: none;
}

/* UL - Liste des contributions */
.drawers ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 6px 0;
    background: white;
    border: none;
}

/* LI - Style citation */
.drawers li {
    position: relative;
    padding: 10px 10px 10px 20px;
    margin-bottom: 16px;
    border-left: 3px solid #e0e0e0;
    background: linear-gradient(to right, #fafafa 0%, white 100%);
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.drawers li:last-child {
    margin-bottom: 0;
}

.drawers li:hover {
    border-left-color: var(--orange);
    background: linear-gradient(to right, #fff8f4 0%, white 100%);
}

/* Guillemet ouvrant avant la citation */
.drawers li::before {
    content: '\f10d'; /* fa-quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #ccc;
    position: absolute;
    left: 5px;
    top: 12px;
    transition: color 0.2s ease;
}

.drawers li:hover::before {
    color: var(--orange);
}

/* Lien de la citation */
.drawers a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
    font-style: italic;
    padding-left: 8px;
}

.drawers a:hover {
    color: var(--orange);
}

/* Tags */
.drawers a i {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #999;
    font-style: normal;
    line-height: 1.4;
}

/* ===== BOUTON TOUT FERMER ===== */
.drawers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.drawers-collapse-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
}

.drawers-collapse-all:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

.drawers-collapse-all i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.drawers-collapse-all:hover i {
    transform: rotate(-90deg);
}

/* ===== LABEL SECTION AVEC BOUTON ===== */
.popup-section-label-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 15px;
}

.popup-section-label-with-action .popup-section-label {
    margin-bottom: 0;
}

.section-collapse-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: #888;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.section-collapse-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

.section-collapse-btn i {
    font-size: 10px;
}

/* ===== DRAWERS - RESPONSIVE ===== */

@media (max-width: 768px) {
    .external-html-container {
        max-height: 400px;
    }

    .drawers h2 {
        font-size: 13px;
        padding: 9px 32px 9px 0;
        gap: 9px;
    }

    .drawers h2::before {
        width: 7px;
        height: 7px;
        margin-top: 5px;
    }

    .drawers h2::after {
        font-size: 9px;
        top: 11px;
    }

    .drawers h2 + div {
        padding-left: 15px;
    }

    .drawers h3 {
        font-size: 13px;
        padding: 7px 30px 7px 0;
        gap: 9px;
    }

    .drawers h3::before {
        width: 5px;
        height: 5px;
        margin-top: 6px;
    }

    .drawers h3::after {
        font-size: 8px;
    }

    .drawers li {
        padding: 8px 8px 8px 18px;
        margin-bottom: 5px;
    }

    .drawers li::before {
        font-size: 9px;
        left: 4px;
        top: 10px;
    }

    .drawers a {
        font-size: 13px;
        padding-left: 6px;
    }

    .drawers a i {
        font-size: 11px;
    }

    .section-collapse-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .external-html-container {
        max-height: 350px;
    }

    .drawers h2 {
        font-size: 12px;
        padding: 8px 28px 8px 0;
        gap: 8px;
    }

    .drawers h2::before {
        width: 6px;
        height: 6px;
        margin-top: 4px;
    }

    .drawers h2::after {
        font-size: 8px;
        top: 10px;
        right: 6px;
    }

    .drawers h2 + div {
        padding-left: 12px;
        margin-bottom: 6px;
    }

    .drawers h3 {
        font-size: 12px;
        padding: 6px 26px 6px 0;
        gap: 8px;
    }

    .drawers h3::before {
        width: 5px;
        height: 5px;
        margin-top: 5px;
    }

    .drawers h3::after {
        font-size: 8px;
    }

    .drawers li {
        padding: 7px 6px 7px 16px;
        margin-bottom: 4px;
        border-left-width: 2px;
    }

    .drawers li::before {
        font-size: 8px;
        left: 3px;
        top: 9px;
    }

    .drawers a {
        font-size: 12px;
        padding-left: 5px;
    }

    .drawers a i {
        font-size: 11px;
        margin-top: 4px;
    }

    .popup-section-label-with-action {
        flex-wrap: wrap;
        gap: 8px;
    }

    .section-collapse-btn span {
        display: none; /* Masque le texte, garde l'icône */
    }
}

@media (max-width: 480px) {
    .external-html-container {
        max-height: 320px;
    }

    .drawers h2 {
        font-size: 11px;
        padding: 7px 25px 7px 0;
        gap: 7px;
    }

    .drawers h2::before {
        width: 5px;
        height: 5px;
        margin-top: 4px;
    }

    .drawers h2 + div {
        padding-left: 10px;
    }

    .drawers h3 {
        font-size: 11px;
        padding: 5px 24px 5px 0;
        gap: 7px;
    }

    .drawers h3::before {
        width: 4px;
        height: 4px;
        margin-top: 5px;
    }

    .drawers li {
        padding: 6px 5px 6px 14px;
        margin-bottom: 3px;
    }

    .drawers li::before {
        font-size: 7px;
        left: 2px;
        top: 8px;
    }

    .drawers a {
        font-size: 11px;
        padding-left: 4px;
    }

    .drawers a i {
        font-size: 11px;
    }
}

/* ===== LOGOS ET FOOTER ===== */

/* Wrapper logos (pour le responsive) */
.logos-wrapper {
    display: contents;
}

/* Logo Congrès (gauche) */
.logo-congres-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 180px;
    z-index: 5;
    pointer-events: none;
}

.logo-congres-container .wave-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo-congres-container .wave-shape path {
    filter: drop-shadow(3px -3px 10px rgba(0, 0, 0, 0.1));
}

.logo-congres-link {
    position: absolute;
    bottom: 10px;
    left: 5px;
    width: 210px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.logo-congres-link:hover {
    transform: scale(1.05);
}

.logo-congres-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Logo Ligue (droite) */
.logo-wave-container {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 280px;
    height: 165px;
    z-index: 5;
    pointer-events: none;
}

.logo-wave-container .wave-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.logo-wave-container .wave-shape path {
    filter: drop-shadow(-3px -3px 10px rgba(0, 0, 0, 0.1));
}

.logo-link {
    position: absolute;
    bottom: 5px;
    right: 10px;
    width: 190px;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Copyright */
.footer-copyright {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    z-index: 5;
    white-space: nowrap;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--orange);
}

.footer-copyright .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright .contact-link {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.footer-copyright .contact-link:hover {
    color: var(--orange);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* ===== 1335px / 800px ===== */
@media (max-width: 1335px), (max-height: 800px) {
    /* Container */
    .mindmap-container {
        max-width: 1150px;
        max-height: 750px;
        min-width: 1150px;
    }

    /* Pétales */
    .petal-card { width: 210px; }
    .petal-header { min-height: 75px; padding: 9px 45px 9px 12px; }
    .petal-header h3 { font-size: 14px; }
    .petal-icon { font-size: 28px; right: 10px; }
    .petal-body { padding: 13px 18px 16px; min-height: 95px; }
    .petal .petal-subtitle { font-size: 12px; margin-bottom: 11px; }
    .petal-indicator { font-size: 12px; padding-top: 11px; }

    .petal[data-petal="1"] { left: calc(50% - 370px); top: calc(50% - 215px); }
    .petal[data-petal="2"] { left: calc(50% - 97px); top: calc(50% - 360px); }
    .petal[data-petal="3"] { left: calc(50% + 175px); top: calc(50% - 215px); }
    .petal[data-petal="4"] { left: calc(50% - 370px); top: calc(50% + 28px); }
    .petal[data-petal="5"] { left: calc(50% - 97px); top: calc(50% + 175px); }
    .petal[data-petal="6"] { left: calc(50% + 175px); top: calc(50% + 28px); }

    /* Centre */
    .center-element { width: 230px; height: 230px; }
    .center-gear { width: 270px; height: 270px; margin-left: -135px; margin-top: -135px; }
    .center-content h1 { font-size: 18px; padding-top: 8px; }
    .center-content { padding: 24px; }
    .center-separator { width: 35px; margin: 10px 0; }
    .center-content .subtitle { font-size: 11px; }
    .subtitle-link { padding: 4px 10px; gap: 5px; }
    .subtitle-link i { font-size: 9px; }

    /* Logos */
    .logo-congres-container {
        width: 240px;
        height: 165px;
    }
    .logo-congres-link {
        width: 190px;
        bottom: 9px;
        left: 5px;
    }
    .logo-wave-container {
        width: 260px;
        height: 150px;
    }
    .logo-link {
        width: 175px;
        bottom: 5px;
        right: 9px;
    }
    .footer-copyright {
        font-size: 13px;
    }

    /* Panneau niveau 3 */
    .level3-panel { width: 380px; right: -400px; }
    .level3-header { padding: 25px; }
    .level3-title { font-size: 18px; padding-right: 45px; }
    .level3-subtitle { font-size: 12px; margin-top: 6px; }
    .level3-close { width: 36px; height: 36px; top: 22px; right: 22px; border-radius: 10px; }
    .level3-close svg { width: 16px; height: 16px; }
    .level3-content { padding: 16px; }
    .level3-item { padding: 15px; border-radius: 12px; margin-bottom: 8px; gap: 12px; }
    .level3-item-icon { width: 38px; height: 38px; border-radius: 9px; }
    .level3-item-icon svg,
    .level3-item-icon i { width: 18px; height: 18px; font-size: 18px; }
    .level3-item-title { font-size: 12px; }
    .level3-item-type { font-size: 10px; }
    .level3-item-arrow { width: 26px; height: 26px; }
    .level3-item-arrow svg { width: 12px; height: 12px; }
    .level3-footer { padding: 16px; }
    .level3-back { padding: 12px 18px; font-size: 13px; }
    .level3-back svg { width: 18px; height: 18px; }

    body.panel-open .mindmap-container {
        transform: translate(-50%, -50%) translateX(-190px);
    }
    
    body.panel-open .search-trigger {
        right: 400px;
    }

    /* Popup */
    .popup-summary-text p { font-size: 14px; }
}

/* ===== 1150px / 750px ===== */
@media (max-width: 1150px), (max-height: 750px) {
    /* Container */
    .mindmap-container {
        max-width: 1000px;
        max-height: 700px;
        min-width: 1000px;
    }

    /* Pétales */
    .petal-card { width: 193px; }
    .petal-header { min-height: 68px; padding: 8px 42px 8px 11px; }
    .petal-header h3 { font-size: 13px; }
    .petal-icon { font-size: 26px; right: 10px; }
    .petal-body { padding: 11px 15px 14px; min-height: 88px; }
    .petal .petal-subtitle { font-size: 11px; margin-bottom: 9px; }
    .petal-indicator { font-size: 11px; padding-top: 9px; }

    /* Centre */
    .center-element { width: 210px; height: 210px; }
    .center-gear { width: 250px; height: 250px; margin-left: -125px; margin-top: -125px; }
    .center-content h1 { font-size: 16px; padding-top: 6px; }
    .center-content { padding: 22px; border-width: 4px; }
    .center-separator { width: 32px; margin: 8px 0; }
    .center-content .subtitle { font-size: 10px; }
    .subtitle-link { padding: 4px 8px; gap: 4px; }
    .subtitle-link i { font-size: 8px; }

    /* Logos */
    .logo-congres-container {
        width: 220px;
        height: 150px;
    }
    .logo-congres-link {
        width: 170px;
        bottom: 8px;
        left: 5px;
    }
    .logo-wave-container {
        width: 240px;
        height: 140px;
    }
    .logo-link {
        width: 160px;
        bottom: 5px;
        right: 8px;
    }
    .footer-copyright {
        font-size: 13px;
    }

    /* Panneau niveau 3 */
    .level3-panel { width: 300px; right: -320px; }
    .level3-header { padding: 20px; }
    .level3-title { font-size: 16px; padding-right: 40px; }
    .level3-subtitle { font-size: 11px; margin-top: 5px; }
    .level3-close { width: 32px; height: 32px; top: 18px; right: 18px; border-radius: 8px; }
    .level3-close svg { width: 14px; height: 14px; }
    .level3-content { padding: 14px; }
    .level3-item { padding: 12px; border-radius: 10px; margin-bottom: 7px; gap: 10px; }
    .level3-item-icon { width: 34px; height: 34px; border-radius: 8px; }
    .level3-item-icon svg,
    .level3-item-icon i { width: 16px; height: 16px; font-size: 16px; }
    .level3-item-title { font-size: 11px; }
    .level3-item-type { font-size: 9px; }
    .level3-item-arrow { width: 22px; height: 22px; }
    .level3-item-arrow svg { width: 11px; height: 11px; }
    .level3-footer { padding: 14px; }
    .level3-back { padding: 10px 16px; font-size: 12px; border-radius: 10px; }
    .level3-back svg { width: 16px; height: 16px; }

    body.panel-open .mindmap-container {
        transform: translate(-50%, -50%) translateX(-150px);
    }
    
    body.panel-open .search-trigger {
        right: 320px;
    }
}

/* ===== 1000px - GRILLE ===== */
@media (max-width: 1000px) {
    html, body {
        height: auto;
        min-height: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .mindmap-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        min-width: auto;
        max-width: none;
        max-height: none;
        width: 100%;
        height: auto;
        min-height: 100%;
        padding: 40px 20px;
    }

    body.panel-open .mindmap-container {
        transform: none;
    }

    .center-element {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto 40px;
        width: 220px;
        height: 220px;
        animation: centerRevealMobile 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
    }

    .center-gear {
        width: 260px;
        height: 260px;
        margin-left: -130px;
        margin-top: -130px;
    }

    .center-content {
        padding: 22px;
        border-width: 4px;
    }

    .center-content h1 {
        font-size: 16px;
        padding-top: 8px;
    }

    .center-separator {
        width: 32px;
        margin: 8px 0;
    }

    .center-content .subtitle {
        font-size: 11px;
    }

    .subtitle-link { padding: 4px 8px; gap: 4px; }
    .subtitle-link i { font-size: 8px; }

    @keyframes centerRevealMobile {
        from { opacity: 0; transform: scale(0.5); }
        to { opacity: 1; transform: scale(1); }
    }

    /* Logos - restent en position fixe */
    .logo-congres-container {
        width: 200px;
        height: 140px;
    }
    .logo-congres-link {
        width: 155px;
        bottom: 8px;
        left: 5px;
    }
    .logo-wave-container {
        width: 220px;
        height: 130px;
    }
    .logo-link {
        width: 145px;
        bottom: 5px;
        right: 8px;
    }
    .footer-copyright {
        font-size: 13px;
    }

    /* Pétales en grille */
    .petals-wrapper {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 700px;
        margin: 0 auto;
        pointer-events: auto;
    }

    .petal {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .petal-card {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .petal-header {
        padding: 14px 40px 14px 14px;
        min-height: 72px;
    }

    .petal-header h3 {
        font-size: 14px;
    }

    .petal-icon {
        font-size: 24px;
        right: 8px;
    }

    .petal-body {
        padding: 12px 14px 14px;
        min-height: 85px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .petal .petal-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
        flex: 1;
    }

    .petal-indicator {
        font-size: 11px;
        padding-top: 10px;
        margin-top: auto;
    }

    .petal[data-petal="1"],
    .petal[data-petal="2"],
    .petal[data-petal="3"],
    .petal[data-petal="4"],
    .petal[data-petal="5"],
    .petal[data-petal="6"] {
        animation: petalFadeIn 0.6s ease-out forwards;
    }

    .petal[data-petal="1"] { animation-delay: 0.8s; }
    .petal[data-petal="2"] { animation-delay: 0.9s; }
    .petal[data-petal="3"] { animation-delay: 1s; }
    .petal[data-petal="4"] { animation-delay: 1.1s; }
    .petal[data-petal="5"] { animation-delay: 1.2s; }
    .petal[data-petal="6"] { animation-delay: 1.3s; }

    @keyframes petalFadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    #connectionsCanvas {
        display: none;
    }

    /* Panneau niveau 3 */
    .level3-panel { width: 100%; right: -100%; }
    .level3-header { padding: 30px; }
    .level3-title { font-size: 20px; padding-right: 50px; }
    .level3-subtitle { font-size: 13px; margin-top: 8px; }
    .level3-close { width: 40px; height: 40px; top: 25px; right: 25px; border-radius: 12px; }
    .level3-close svg { width: 18px; height: 18px; }
    .level3-content { padding: 20px; }
    .level3-item { padding: 18px; border-radius: 14px; margin-bottom: 10px; gap: 14px; }
    .level3-item-icon { width: 42px; height: 42px; border-radius: 10px; }
    .level3-item-icon svg,
    .level3-item-icon i { width: 20px; height: 20px; font-size: 20px; }
    .level3-item-title { font-size: 13px; }
    .level3-item-type { font-size: 11px; }
    .level3-item-arrow { width: 28px; height: 28px; }
    .level3-item-arrow svg { width: 14px; height: 14px; }
    .level3-footer { padding: 20px; }
    .level3-back { padding: 14px 20px; font-size: 14px; }
    .level3-back svg { width: 20px; height: 20px; }

    /* Recherche */
    .search-trigger {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .search-trigger i {
        font-size: 18px;
    }
    
    body.panel-open .search-trigger {
        opacity: 0;
        pointer-events: none;
        right: 15px;
    }

    /* Visionneuse images */
    .image-viewer-close { top: 15px; right: 15px; width: 44px; height: 44px; }
    .image-viewer-nav { width: 44px; height: 44px; }
    .image-viewer-prev { left: 15px; }
    .image-viewer-next { right: 15px; }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
    .mindmap-container {
        padding: 30px 15px 90px;
    }

    .center-element {
        margin-top: 10px;
        margin-bottom: 45px;
    }

    .petals-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 500px;
    }

    .center-element {
        width: 220px;
        height: 220px;
        margin-top: 10px;
        margin-bottom: 45px;
    }

    .center-gear {
        width: 260px;
        height: 260px;
        margin-left: -130px;
        margin-top: -130px;
    }

    .center-content {
        padding: 22px;
    }

    .center-content h1 {
        font-size: 16px;
        padding-top: 8px;
    }

    .center-separator {
        width: 30px;
        margin: 8px 0;
    }

    .subtitle-link { padding: 3px 8px; gap: 4px; }
    .subtitle-link i { font-size: 8px; }
    
    /* Logos passent dans le flux, côte à côte */
    .logos-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 100px;
        padding: 20px;
        background: white;
    }
    
    .logo-congres-container,
    .logo-wave-container {
        position: static;
        width: auto;
        height: auto;
        pointer-events: auto;
    }
    
    .logo-congres-container .wave-shape,
    .logo-wave-container .wave-shape {
        display: none;
    }
    
    .logo-congres-link {
        position: static;
        display: block;
        width: 200px;  /* ← Congrès 200px */
        margin-top: -90px;
    }
    
    .logo-link {
        position: static;
        display: block;
        width: 220px;  /* ← Ligue 220px */
    }
    
    /* Footer dans le flux */
    .footer-copyright {
        position: static;
        transform: none;
        padding: 25px 20px 15px;
        font-size: 14px;
    }

    /* Pétales */
    .petal-card { border-radius: 16px; }
    .petal-header { padding: 14px 40px 14px 14px; min-height: 72px; }
    .petal-header h3 { font-size: 14px; }
    .petal-icon { font-size: 24px; right: 8px; }
    .petal-body { padding: 12px 14px 14px; min-height: 85px; }
    .petal .petal-subtitle { font-size: 12px; margin-bottom: 10px; }
    .petal-indicator { font-size: 11px; padding-top: 10px; }

    /* Panneau niveau 3 */
    .level3-header { padding: 25px 20px; }
    .level3-title { font-size: 18px; }
    .level3-content { padding: 15px; }
    .level3-item { padding: 15px; }
    .level3-footer { padding: 15px; }
    .level3-back { padding: 12px 18px; font-size: 13px; }

    /* Popup */
    .popup { border-radius: 20px; max-height: 90vh; }
    .popup-header { padding: 25px 25px 20px; }
    .popup-title { font-size: 18px; padding-right: 45px; }
    .popup-close { width: 38px; height: 38px; top: 22px; right: 20px; }
    .popup-content { padding: 25px; max-height: 60vh; }

    .popup-section-label { font-size: 15px; }
    .popup-summary-text p { font-size: 14px; }
    .popup-summary-text { padding: 12px; }

    /* Intervenants */
    .intervenant-photo { width: 32px; height: 32px; }
    .intervenant-photo-placeholder { font-size: 32px; width: 32px; height: 32px; }
    .intervenant-name { font-size: 13px; }
    .intervenant-details { font-size: 13px; padding-left: 56px; }
    .intervenant-details.expanded { padding-left: 56px; }

    /* Points clés */
    .keypoint-item { padding: 8px 6px 8px 14px; gap: 10px; }
    .keypoint-bullet { width: 7px; height: 7px; margin-top: 5px; }
    .keypoint-title-text { font-size: 13px; }
    .keypoint-content { font-size: 13px; padding-left: 14px; }
    .keypoint-content.expanded { padding-left: 14px; }
    .keypoint-item .expand-icon { font-size: 10px; }

    /* Ressources médias */
    .media-tab { padding: 10px 12px; font-size: 18px; }
    .media-content-panel { padding: 20px; }
    .media-block-description { font-size: 13px; }
    .media-block.youtube .youtube-container { border-radius: 10px; }
    .media-images-gallery { gap: 10px; }
    .media-image-item { flex: 0 0 calc((100% - 20px) / 3); max-width: calc((100% - 20px) / 3); }
    .media-image-item img { height: 100px; }

    /* Placeholder images */
    .media-images-placeholder i { font-size: 40px; }
    .media-images-placeholder p { font-size: 13px; }

    /* Visionneuse images */
    .image-viewer-close { width: 40px; height: 40px; }
    .image-viewer-close svg { width: 20px; height: 20px; }
    .image-viewer-nav { width: 40px; height: 40px; }
    .image-viewer-nav svg { width: 20px; height: 20px; }
    .image-viewer-caption { font-size: 13px; padding: 10px 20px; }
    .image-viewer-counter { font-size: 13px; }

    /* FAQ */
    .faq-item { padding: 10px 12px; }
    .faq-icon { font-size: 18px; }
    .faq-question { font-size: 13px; }
    .faq-answer { font-size: 13px; padding-left: 42px; }
    .faq-answer.expanded { padding-left: 42px; }

    /* Quiz */
    .quiz-question { padding: 15px; }
    .quiz-question-text { font-size: 14px; }
    .quiz-option { padding: 10px 12px; font-size: 13px; }
    .quiz-option-marker { width: 22px; height: 22px; }
    .quiz-score-value { font-size: 40px; }
}

/* ===== 600px ===== */
@media (max-width: 600px) {
    .mindmap-container {
        padding: 25px 12px 80px;
    }

    .petals-wrapper {
        gap: 12px;
        max-width: 100%;
    }

    .center-element {
        width: 200px;
        height: 200px;
        margin-top: 8px;
        margin-bottom: 35px;
    }

    .center-gear {
        width: 240px;
        height: 240px;
        margin-left: -120px;
        margin-top: -120px;
    }

    .center-content {
        padding: 18px;
        border-width: 3px;
    }

    .center-content h1 { font-size: 14px; padding-top: 6px; }
    .center-separator { width: 28px; height: 2px; margin: 6px 0; }
    .center-content .subtitle { font-size: 10px; }

    .subtitle-link { padding: 3px 6px; gap: 3px; }
    .subtitle-link i { font-size: 7px; }

    /* Logos */
    .logos-wrapper {
        gap: 60px;
        padding: 18px 15px;
    }
    .logo-congres-link {
        width: 165px;  /* ← Congrès réduit */
        margin-top: -80px;
    }
    .logo-link {
        width: 180px;  /* ← Ligue réduit */
    }
    .footer-copyright {
        font-size: 13px;
        padding: 12px 15px 20px;
    }

    /* Pétales */
    .petal-card { border-radius: 14px; }
    .petal-header { padding: 12px 35px 12px 12px; min-height: 62px; }
    .petal-header h3 { font-size: 12px; }
    .petal-icon { font-size: 20px; right: 8px; }
    .petal-body { padding: 10px 12px 12px; min-height: 72px; }
    .petal .petal-subtitle { font-size: 11px; margin-bottom: 8px; }
    .petal-indicator { font-size: 11px; padding-top: 8px; gap: 5px; }
    .petal-indicator svg { width: 12px; height: 12px; }

    /* Panneau niveau 3 */
    .level3-header { padding: 20px 15px; }
    .level3-title { font-size: 16px; padding-right: 40px; }
    .level3-subtitle { font-size: 11px; }
    .level3-close { width: 36px; height: 36px; top: 18px; right: 15px; }
    .level3-close svg { width: 16px; height: 16px; }
    .level3-content { padding: 12px; }
    .level3-item { padding: 12px; border-radius: 10px; margin-bottom: 8px; gap: 10px; }
    .level3-item-icon { width: 36px; height: 36px; border-radius: 8px; }
    .level3-item-icon svg,
    .level3-item-icon i { width: 16px; height: 16px; font-size: 16px; }
    .level3-item-title { font-size: 12px; }
    .level3-item-type { font-size: 9px; }
    .level3-item-arrow { width: 24px; height: 24px; }
    .level3-item-arrow svg { width: 12px; height: 12px; }
    .level3-footer { padding: 12px; }
    .level3-back { padding: 10px 16px; font-size: 12px; border-radius: 10px; }
    .level3-back svg { width: 16px; height: 16px; }

    /* Recherche */
    .search-trigger {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }
    
    .search-trigger i {
        font-size: 16px;
    }
    
    .level3-search-container {
        padding: 0 15px 12px;
    }
    
    .level3-search-input {
        padding: 10px 40px 10px 15px;
        font-size: 13px;
    }
    
    .search-result-item {
        padding: 14px;
        gap: 12px;
    }
    
    .search-result-icon {
        width: 36px;
        height: 36px;
    }
    
    .search-result-icon i {
        font-size: 16px;
    }
    
    .search-result-title {
        font-size: 12px;
    }
    
    .search-result-context {
        font-size: 11px;
    }
    
    .search-empty-state {
        padding: 40px 15px;
    }
    
    .search-empty-state i {
        font-size: 48px;
    }
    
    .search-empty-state h3 {
        font-size: 16px;
    }

    /* Popup */
    .popup { border-radius: 16px; margin: 10px; }
    .popup-header { padding: 20px 15px; }
    .popup-title { font-size: 16px; padding-right: 40px; }
    .popup-close { width: 34px; height: 34px; top: 18px; right: 15px; }
    .popup-close svg { width: 16px; height: 16px; }
    .popup-content { padding: 15px; max-height: 65vh; }

    .popup-section { margin-bottom: 20px; }
    .popup-section-label { font-size: 14px; margin-bottom: 14px; }
    .popup-summary .popup-section-label,
    .popup-keypoints-group .popup-section-label { margin-bottom: 10px; }
    .popup-section-label::before { width: 3px; height: 16px; }
    .popup-summary-text { padding: 12px; }
    .popup-summary-text p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }

    /* Intervenants */
    .intervenants-list { margin-top: 12px; }
    .intervenant-item { padding: 8px 12px; }
    .intervenant-info { gap: 10px; }
    .intervenant-photo { width: 30px; height: 30px; }
    .intervenant-photo-placeholder { font-size: 30px; width: 30px; height: 30px; }
    .intervenant-name { font-size: 12px; }
    .intervenant-details { font-size: 12px; padding-left: 52px; }
    .intervenant-details.expanded { padding-left: 52px; }

    /* Points clés */
    .keypoint-item { padding: 7px 4px 7px 12px; gap: 8px; }
    .keypoint-bullet { width: 6px; height: 6px; margin-top: 5px; }
    .keypoint-title-text { font-size: 12px; }
    .keypoint-content { font-size: 12px; padding-left: 12px; }
    .keypoint-content.expanded { padding-left: 12px; padding-bottom: 12px; }

    /* Ressources médias */
    .media-tabs { padding: 6px; }
    .media-tab { padding: 8px 10px; font-size: 16px; border-radius: 8px; }
    .media-content-panel { padding: 15px; }
    .media-block-description { font-size: 12px; margin-bottom: 15px; }
    .media-block.youtube .youtube-container { border-radius: 8px; }
    .media-block.pdf a { padding: 12px 20px; font-size: 13px; }
    .media-images-gallery { gap: 8px; }
    .media-image-item { flex: 0 0 calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); }
    .media-image-item img { height: 90px; }
    .media-image-caption { padding: 6px 8px; font-size: 10px; }

    /* Placeholder images */
    .media-images-placeholder { padding: 30px 15px; }
    .media-images-placeholder i { font-size: 36px; margin-bottom: 12px; }
    .media-images-placeholder p { font-size: 12px; }

    /* Visionneuse images */
    .image-viewer-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .image-viewer-close svg { width: 18px; height: 18px; }
    .image-viewer-nav { width: 38px; height: 38px; }
    .image-viewer-nav svg { width: 18px; height: 18px; }
    .image-viewer-prev { left: 10px; }
    .image-viewer-next { right: 10px; }
    .image-viewer-caption { font-size: 12px; padding: 8px 15px; max-width: 90%; }
    .image-viewer-counter { font-size: 12px; padding: 6px 12px; bottom: 15px; }

    /* FAQ */
    .faq-info { gap: 10px; }
    .faq-icon { font-size: 16px; }
    .faq-question { font-size: 12px; }
    .faq-answer { font-size: 12px; padding-left: 38px; }
    .faq-answer.expanded { padding-left: 38px; }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
    .mindmap-container {
        padding: 25px 10px 70px;
    }
    .petals-wrapper { gap: 10px; }

    .center-element { width: 180px; height: 180px;}
    .center-gear { width: 220px; height: 220px; margin-left: -110px; margin-top: -110px; }
    .center-content { padding: 16px; }
    .center-content h1 { font-size: 14px; padding-top: 5px; line-height: 1.25; }
    .center-separator { width: 24px; margin: 5px 0; }
    .center-content .subtitle { font-size: 10px; }

    .subtitle-link { padding: 2px 5px; gap: 3px; }
    .subtitle-link i { font-size: 7px; }

    /* Logos */
    .logos-wrapper {
        gap: 40px;
        padding: 15px 12px;
    }
    .logo-congres-link {
        width: 135px;  /* ← Congrès réduit */
        margin-top: -70px;
    }
    .logo-link {
        width: 150px;  /* ← Ligue réduit */
    }
    .footer-copyright {
        padding: 10px 12px 18px;
        font-size: 12px;
    }

    /* Pétales */
    .petal-card { border-radius: 12px; }
    .petal-header { padding: 10px 30px 10px 10px; min-height: 55px; }
    .petal-header h3 { font-size: 11px; line-height: 1.3; }
    .petal-icon { font-size: 18px; right: 6px; }
    .petal-body { padding: 8px 10px 10px; min-height: 62px; }
    .petal .petal-subtitle { font-size: 11px; margin-bottom: 6px; line-height: 1.3; }
    .petal-indicator { font-size: 11px; padding-top: 6px; gap: 4px; }
    .petal-indicator svg { width: 10px; height: 10px; }

    /* Popup */
    .popup-content { padding: 12px; }
    .popup-section { margin-bottom: 18px; }
    .popup-section-label { font-size: 13px; margin-bottom: 12px; gap: 8px; }
    .popup-summary .popup-section-label,
    .popup-keypoints-group .popup-section-label { margin-bottom: 8px; }
    .popup-section-label::before { width: 3px; height: 14px; }
    .popup-summary-text { padding: 10px; }
    .popup-summary-text p { font-size: 12px; line-height: 1.6; margin-bottom: 10px; }

    /* Intervenants */
    .intervenant-item-wrapper { margin-bottom: 6px; border-radius: 8px; }
    .intervenant-item { padding: 6px 10px; }
    .intervenant-info { gap: 8px; }
    .intervenant-photo { width: 28px; height: 28px; }
    .intervenant-photo-placeholder { font-size: 28px; width: 28px; height: 28px; }
    .intervenant-name { font-size: 11px; }
    .intervenant-details { font-size: 11px; padding-left: 46px; }
    .intervenant-details.expanded { padding: 4px 10px 10px 46px; }

    /* Points clés */
    .keypoint-item-wrapper { margin-bottom: 2px; }
    .keypoint-item { padding: 6px 2px 6px 10px; gap: 6px; }
    .keypoint-bullet { width: 5px; height: 5px; margin-top: 4px; }
    .keypoint-title-text { font-size: 11px; }
    .keypoint-content { font-size: 11px; padding-left: 10px; }
    .keypoint-content.expanded { padding: 6px 0 10px 10px; }
    .keypoint-item .expand-icon { font-size: 9px; }

    /* Ressources médias */
    .media-tabs { padding: 5px; gap: 4px; }
    .media-tab { padding: 6px 8px; font-size: 14px; border-radius: 6px; }
    .media-content-panel { padding: 12px; }
    .media-block-description { font-size: 11px; margin-bottom: 12px; }
    .media-block.audio audio { height: 40px; }
    .media-block.pdf a { padding: 10px 18px; font-size: 12px; gap: 8px; }
    .media-images-gallery { gap: 6px; }
    .media-image-item { flex: 0 0 calc((100% - 6px) / 2); max-width: calc((100% - 6px) / 2); }
    .media-image-item img { height: 80px; }
    .media-image-caption { padding: 5px 6px; font-size: 9px; }

    /* Placeholder images */
    .media-images-placeholder { padding: 25px 12px; }
    .media-images-placeholder i { font-size: 32px; margin-bottom: 10px; }
    .media-images-placeholder p { font-size: 11px; }

    /* Visionneuse images */
    .image-viewer-content { max-width: 95%; }
    .image-viewer-caption { font-size: 11px; padding: 6px 12px; }
    .image-viewer-counter { font-size: 11px; padding: 5px 10px; }
}

/* ===== 360px ===== */
@media (max-width: 360px) {
    .mindmap-container {
        padding: 25px 15px 60px;
    }
    .petals-wrapper { grid-template-columns: 1fr; gap: 12px; }

    .center-element { width: 180px; height: 180px;}
    .center-gear { width: 220px; height: 220px; margin-left: -110px; margin-top: -110px; }
    .center-content h1 { font-size: 14px; padding-top: 5px; }
    .center-content .subtitle { font-size: 10px; }

    .subtitle-link { padding: 2px 4px; gap: 2px; }
    .subtitle-link i { font-size: 6px; }

    /* Logos */
    .logos-wrapper {
        flex-direction: column;
        gap: 25px;
        padding: 15px 10px;
    }
    .logo-congres-link {
        width: 145px;  /* ← Congrès */
        margin-top: -60px;
    }
    .logo-link {
        width: 160px;  /* ← Ligue */
    }
    .footer-copyright {
        font-size: 11px;
    }

    /* Pétales */
    .petal-card { border-radius: 14px; }
    .petal-header { padding: 14px 40px 14px 14px; min-height: 65px; }
    .petal-header h3 { font-size: 13px; line-height: 1.4; }
    .petal-icon { font-size: 22px; right: 8px; }
    .petal-body { padding: 12px 14px 14px; min-height: auto; }
    .petal .petal-subtitle { font-size: 11px; margin-bottom: 10px; }
    .petal-indicator { font-size: 11px; padding-top: 10px; gap: 6px; }
    .petal-indicator svg { width: 14px; height: 14px; }

    /* Popup */
    .popup { margin: 8px; border-radius: 14px; }
    .popup-header { padding: 18px 12px; }
    .popup-title { font-size: 15px; padding-right: 35px; }
    .popup-close { width: 32px; height: 32px; top: 16px; right: 12px; }
    .popup-close svg { width: 14px; height: 14px; }
    .popup-content { padding: 12px; max-height: 70vh; }

    /* Intervenants et keypoints */
    .intervenant-details { padding-left: 10px; }
    .intervenant-details.expanded { padding: 8px 10px 12px 10px; }

    .keypoint-content { padding-left: 10px; }
    .keypoint-content.expanded { padding-left: 10px; }

    /* Ressources médias */
    .media-image-item { flex: 0 0 100%; max-width: 100%; }
    .media-image-item img { height: 150px; }
}