/* ============================================================
   CSS DIFFÉRÉ - Chargé de façon non bloquante
   Tout ce qui est sous la ligne de flottaison
   ============================================================ */

/* Animations nav - pas critiques */
.scroll-indicator svg {
    width: 32px;
    height: 32px;
    stroke: #00ffc2;
    stroke-width: 3;
    filter: drop-shadow(0 0 6px #00ffc2) drop-shadow(0 0 12px #00ffc2);
    animation: zonaiPulse 1.2s infinite ease-in-out;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.scroll-indicator:hover svg {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 0 8px #37ff90);
}

@keyframes zonaiPulse {
    0%, 100% {
        stroke: #00ffc2;
        filter: drop-shadow(0 0 6px #00ffc2) drop-shadow(0 0 12px #00ffc2);
    }
    50% {
        stroke: #37ff90;
        filter: drop-shadow(0 0 12px #37ff90) drop-shadow(0 0 24px #37ff90);
    }
}

.scroll-indicator svg path {
    filter: drop-shadow(0 0 2px #00b8c9aa);
    transition: filter 0.3s ease;
}

.scroll-indicator:hover svg path {
    filter: drop-shadow(0 0 4px #00b8c9cc);
}

/* Boutons */
.button-success,
.button-error,
.button-warning,
.button-secondary {
    color: white;
    border-radius: 4px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-success  { background: rgb(28, 184, 65); }
.button-error    { background: rgb(202, 60, 60); }
.button-warning  { background: rgb(223, 117, 20); }
.button-secondary { background: rgb(66, 184, 221); }

.button-xsmall { font-size: 70%; }
.button-small  { font-size: 85%; }
.button-large  { font-size: 110%; }
.button-xlarge { font-size: 125%; }

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    white-space: normal;
    box-sizing: border-box;
}

.dropdown-content a:hover {
    background-color: #555;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Cartes builds - sous la ligne de flottaison */
.SchemaAccueil {
    margin: 10px;
    padding: 10px;
    color: white;
    background: rgba(21, 21, 21, 0.5);
}

.unSchemaAccueil {
    cursor: pointer;
    margin-bottom: 5px;
    background-size: center;
    background-position: center;
    position: relative;
    border-radius: 10px;
    box-shadow:
        inset 0 0 10px 2px rgba(184, 134, 11, 0.7),
        0 0 20px 2px rgba(0, 255, 200, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.unSchemaAccueil:hover .overlay {
    background: rgba(0, 0, 0, 0);
}

/* Tags */
.tag {
    display: inline-block;
    margin: 4px 3px;
    padding: 6px 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, #00b8c9, #37ff90);
    color: #FCFBDF;
    font-size: 80%;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 3px #37ff90;
    transition: background 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.tag:hover {
    background: linear-gradient(135deg, #37ff90, #00b8c9);
    box-shadow: 0 0 24px #00b8c9;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    font-size: 12px;
    visibility: hidden;
    width: 300px;
    background-color: #AFEEEE;
    color: #000;
    text-align: left;
    padding: 5px 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    top: 120%;
    left: 50%;
    margin-left: -155px;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* Footer - tout en bas */
.totk-footer {
    background: linear-gradient(135deg, #0c3d2e, #037974);
    color: #a3f7d6;
    font-family: 'Oxanium', sans-serif;
    padding: 30px 20px;
    text-align: center;
    border-top: 3px solid #01d79b;
    user-select: none;
    box-shadow: 0 0 20px #01d79b88;
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 15px;
}

.totk-footer-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #37ff90aa;
    font-weight: 700;
    text-transform: uppercase;
}

.totk-icon svg {
    width: 40px;
    height: 40px;
    stroke: #37ff90;
    filter: drop-shadow(0 0 6px #01d79b);
    transition: stroke 0.3s ease, filter 0.3s ease;
}

.totk-icon:hover svg {
    stroke: #00ffc9;
    filter: drop-shadow(0 0 12px #01d79b);
    cursor: pointer;
    transform: scale(1.15);
    transition: all 0.3s ease;
}

.totk-footer-text {
    font-size: 1.1rem;
    color: #9cf3dbcc;
    font-weight: 600;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
    font-style: italic;
}
