/* ========================================
   ROUE INTERACTIVE - STYLES FRONT-END
   ======================================== */

.roue-interactive-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.roue-main-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   SVG AVEC ZONES CLIQUABLES
   ======================================== */
.roue-svg-container {
    position: relative;
    width: 100%;
}

.roue-svg-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Desktop : afficher roue normale, masquer mobile */
.roue-svg-mobile {
    display: none;
}

.roue-svg-desktop {
    display: block;
}

/* Mobile : afficher roue mobile, masquer desktop */
@media (max-width: 768px) {
    .roue-svg-desktop {
        display: none;
    }
    
    .roue-svg-mobile {
        display: block;
    }
}

/* Zones cliquables du SVG */
.roue-svg-container g[id^="zone_"] {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.roue-svg-container g[id^="zone_"]:hover {
    opacity: 0.85;
}

/* Rects transparents cliquables */
.roue-svg-container g[id^="zone_"] rect[opacity="0"] {
    pointer-events: all;
}

/* ========================================
   POP-UP CENTRALE
   ======================================== */
.roue-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.roue-popup.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.roue-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.roue-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.roue-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.roue-popup-close:hover {
    background: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.roue-popup-close svg {
    width: 20px;
    height: 20px;
    color: #2c3e50;
}

.roue-popup-body {
    padding: 50px 40px 40px;
}

.roue-popup-logo {
    text-align: center;
    margin-bottom: 20px;
}

.roue-popup-logo img {
    max-width: 200px;
    height: auto;
}

.roue-popup-body h3 {
    margin: 0 0 20px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.roue-popup-body p {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.roue-popup-body ul,
.roue-popup-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.roue-popup-body li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */

/* Tablette */
@media (max-width: 992px) {
    .roue-main-wrapper {
        max-width: 700px;
    }
    
    .roue-phrase {
        font-size: 13px;
    }
    
    .roue-phrase span {
        padding: 6px 10px;
    }
    
    .roue-popup-body {
        padding: 40px 30px 30px;
    }
    
    .roue-popup-body h3 {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .roue-interactive-container {
        padding: 30px 15px;
    }
    
    .roue-main-wrapper {
        max-width: 100%;
    }
    
    .roue-phrase {
        font-size: 11px;
    }
    
    .roue-phrase span {
        padding: 5px 8px;
        border-radius: 6px;
    }
    
    .roue-popup {
        padding: 15px;
    }
    
    .roue-popup-content {
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .roue-popup-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
    
    .roue-popup-body {
        padding: 50px 25px 25px;
    }
    
    .roue-popup-body h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .roue-popup-body p {
        font-size: 15px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .roue-interactive-container {
        padding: 20px 10px;
    }
    
    .roue-phrase {
        font-size: 10px;
    }
    
    .roue-phrase span {
        padding: 4px 6px;
    }
    
    .roue-popup-body {
        padding: 45px 20px 20px;
    }
    
    .roue-popup-body h3 {
        font-size: 20px;
    }
    
    .roue-popup-body p {
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITÉ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité clavier */
.roue-zone-overlay:focus,
.roue-popup-close:focus {
    outline: 3px solid #3cbde4;
    outline-offset: 2px;
}