/* CSS Custom minimal - seulement ce qui n'existe pas dans Bootstrap */

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body {
    padding: 0;
    overflow-x: hidden;
    background: #1a1a2e;
}

/* Background fixe avec overlay sombre */
main {
    padding-top: 70px;
    position: relative;
    min-height: calc(100vh - 70px);
    background-image: url(https://infodata.ca/InfoData/img/entete.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
}

main > .container-fluid {
    position: relative;
    z-index: 1;
}

/* Footer pleine largeur sur fond blanc */
#siteFooter {
    background: #ffffff;
    max-width: 100%;
}

/* Mode iframe : masquer header, footer, centraide, retirer le padding et le background */
body.in-iframe {
    background: #ffffff;
}

body.in-iframe main {
    padding-top: 0;
    background: none;
}

body.in-iframe main::before {
    display: none;
}

body.in-iframe #siteHeader,
body.in-iframe #siteFooter,
body.in-iframe #fenetre_centraide {
    display: none !important;
}

/* Cartes OS avec effet hover */
.os-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
}

.os-card:hover {
    border-color: #2ea2eb;
    background: #f8f9fc;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(46, 162, 235, 0.2);
}

.os-card.selected {
    border-color: #2ea2eb;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(46, 162, 235, 0.25);
}

.os-card .os-icon {
    font-size: 38px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.os-card .os-name {
    font-size: 17px;
}

/* Responsive pour mobile */
@media (max-width: 576px) {
    .os-card .os-icon {
        font-size: 28px;
    }

    .os-card .os-name {
        font-size: 14px;
    }

    .os-card {
        min-height: 60px;
        padding: 10px 8px;
    }

    .arch-btn {
        font-size: 14px;
        padding: 12px 15px;
    }

    .arch-btn strong {
        font-size: 14px;
    }

    .guide-toggle {
        font-size: 15px;
        padding: 12px 15px;
    }
}

.os-card:hover .os-icon,
.os-card.selected .os-icon {
    color: #2ea2eb;
    transform: scale(1.08);
}

.os-card:hover .os-name,
.os-card.selected .os-name {
    color: #2ea2eb;
}

/* Bouton architecture avec flèche */
.arch-btn {
    position: relative;
    transition: all 0.25s ease;
}

.arch-btn::before {
    content: '\2192';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #2ea2eb;
    opacity: 0;
    transition: all 0.25s ease;
}

.arch-btn:hover {
    border-color: #2ea2eb;
    color: #2ea2eb;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(46, 162, 235, 0.15);
}

.arch-btn:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Guide toggle */
.guide-toggle {
    background: #2ea2eb;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.guide-toggle:hover {
    background: #1e8ac9;
}

.guide-toggle.active {
    border-radius: 10px 10px 0 0;
}

.guide-toggle .arrow {
    transition: transform 0.3s;
}

.guide-toggle.active .arrow {
    transform: rotate(180deg);
}

.sub-guide-toggle {
    background: #ffffff;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s;
}

.sub-guide-toggle:hover {
    background: #f8f9fc;
}

.sub-guide-toggle .arrow {
    transition: transform 0.3s;
}

.sub-guide-toggle.active .arrow {
    transform: rotate(180deg);
}

.sub-guide-content {
    display: none;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e3e6ea;
}

.sub-guide-content.active {
    display: block;
}

/* Animation slideDown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.arch-options {
    display: none;
    animation: slideDown 0.3s ease;
}

.arch-options.active {
    display: block;
}

.guide-content {
    display: none;
}

.guide-content.active {
    display: block;
}

/* Séparateur avec ligne */
.separator-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2ea2eb 0%, #1e8ac9 100%);
    border-radius: 2px;
}

/* Bouton désactivé */
.btn-disabled-custom {
    background: #e0e0e0 !important;
    border: 1px solid #d0d0d0 !important;
    color: #9e9e9e !important;
    opacity: 0.7;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.btn-disabled-custom svg {
    stroke: #9e9e9e !important;
}

#detectedSystem.badge {
    white-space: normal;
    word-break: break-word;
    display: block;
}

/* Sélecteur de langue */
.lang-switcher {
    position: absolute;
    top: 10px;
    right: 15px;
}

.lang-switcher button {
    background: none;
    border: 1px solid #dee2e6;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
}

.lang-switcher button:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.lang-switcher button:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-switcher button.active {
    background: #2ea2eb;
    border-color: #2ea2eb;
    color: white;
}

.lang-switcher button:hover:not(.active) {
    background: #f0f8ff;
    border-color: #2ea2eb;
    color: #2ea2eb;
}
