﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, #2EBEB9 0%, #37aba9 100%);
    position: relative;
    overflow: hidden;
}

/* Bande blanche en haut */
.header-band {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.center-menu {
    position: absolute;
    width: 900px;
    left: 55%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-text {
    font-size: 25px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

    .menu-text:last-of-type {
        font-weight: 700;
    }

    .menu-text:hover {
        color: #2EBEB9;
    }

.separator {
    width: 2px;
    height: 30px;
    background: #ff0000;
}

/* Animation d'arrière-plan avec images */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-image {
    position: absolute;
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.img1 {
    top: 10%;
    left: 5%;
    background-image: url('/images/img1.jpg');
    animation-delay: 0s;
}

.img2 {
    top: 60%;
    left: 10%;
    background-image: url('/images/img2.jpg');
    animation-delay: 5s;
    width: 250px;
    height: 250px;
}

.img3 {
    top: 15%;
    right: 8%;
    background-image: url('/images/img3.jpg');
    animation-delay: 3s;
    width: 180px;
    height: 180px;
}

.img4 {
    top: 55%;
    right: 5%;
    background-image: url('/images/img4.jpg');
    animation-delay: 7s;
    width: 220px;
    height: 220px;
}

.img5 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url('/images/img5.jpg');
    animation-delay: 10s;
    width: 190px;
    height: 190px;
}

.img6 {
    top: 35%;
    left: 15%;
    background-image: url('/images/img6.jpg');
    animation-delay: 2s;
    width: 180px;
    height: 180px;
}

.img7 {
    top: 25%;
    right: 20%;
    background-image: url('/images/img7.jpg');
    animation-delay: 8s;
    width: 200px;
    height: 200px;
}

.img8 {
    bottom: 20%;
    left: 20%;
    background-image: url('/images/img8.jpg');
    animation-delay: 4s;
    width: 190px;
    height: 190px;
}

.img9 {
    top: 70%;
    right: 15%;
    background-image: url('/images/img9.jpg');
    animation-delay: 6s;
    width: 210px;
    height: 210px;
}

.img10 {
    top: 45%;
    left: 8%;
    background-image: url('/images/img10.jpg');
    animation-delay: 9s;
    width: 180px;
    height: 180px;
}

.img11 {
    bottom: 15%;
    right: 10%;
    background-image: url('/images/img11.jpg');
    animation-delay: 11s;
    width: 200px;
    height: 200px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
    }

    50% {
        transform: translateY(20px) rotate(-5deg);
    }

    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Particules lumineuses */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(46, 190, 185, 0.6);
    border-radius: 50%;
    animation: particle-float 15s infinite ease-in-out;
}

    .particle:nth-child(1) {
        top: 20%;
        left: 20%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        top: 40%;
        left: 80%;
        animation-delay: 2s;
    }

    .particle:nth-child(3) {
        top: 70%;
        left: 30%;
        animation-delay: 4s;
    }

    .particle:nth-child(4) {
        top: 80%;
        left: 70%;
        animation-delay: 6s;
    }

    .particle:nth-child(5) {
        top: 30%;
        left: 50%;
        animation-delay: 8s;
    }

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }
}

/* Container principal */
#loginContainer {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
}

#logoContainer {
    text-align: center;
    margin-bottom: 30px;
    margin-top: -85px;
}

    #logoContainer img {
        width: 170px;
        height: 170px;
        border-radius: 50%;
        box-shadow: 0 5px 20px rgba(46, 190, 185, 0.3);
        object-fit: cover;
        border: 3px solid #2EBEB9;
        background: white;
        padding: 10px;
    }

/* Card de connexion - AGRANDIE */
#loginFormContainer {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 25px;
    padding: 80px 30px;
    width: 550px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: slideIn 0.8s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Style des formulaires DevExtreme - ESPACEMENT AMÉLIORÉ */
#loginForm {
    margin-bottom: -5px;
}

    #loginForm .dx-field-item {
        margin-bottom: 15px;
    }

    #loginForm .dx-field-item-label-text {
        color: #555;
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 12px;
    }

    #loginForm .dx-texteditor {
        border-radius: 12px;
    }

    #loginForm .dx-texteditor-input {
        padding: 10px 20px;
        font-size: 16px;
        background: #f8f9fa;
    }

    #loginForm .dx-texteditor.dx-state-focused {
        border-color: #2EBEB9;
        box-shadow: 0 0 0 4px rgba(46, 190, 185, 0.1);
    }

#valideCodeForm {
    margin-bottom: 30px;
}

    #valideCodeForm .dx-field-item {
        margin-bottom: 25px;
    }

    #valideCodeForm .dx-field-item-label-text {
        color: #555;
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 12px;
    }

    #valideCodeForm .dx-texteditor {
        border-radius: 12px;
    }

    #valideCodeForm .dx-texteditor-input {
        padding: 16px 20px;
        font-size: 16px;
        background: #f8f9fa;
    }

    #valideCodeForm .dx-texteditor.dx-state-focused {
        border-color: #2EBEB9;
        box-shadow: 0 0 0 4px rgba(46, 190, 185, 0.1);
    }

/* Boutons - TAILLE RÉDUITE */
.button-container-flex {
    display: flex;
    gap: 4%;
    width: 100%;
}

.button-container-three {
    display: flex;
    gap: 2%;
    width: 100%;
    flex-wrap: wrap;
}

#loginButton, .class-Btn, #valideCodeGeneric {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

#loginButton, #valideCodeGeneric {
    background: linear-gradient(135deg, #2EBEB9 0%, #37aba9 100%);
    color: white;
}

    #loginButton:hover, #valideCodeGeneric:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(46, 190, 185, 0.4);
    }

.class-Btn {
    background: linear-gradient(135deg, #2EBEB9 0%, #37aba9 100%);
    color: white;
}

    .class-Btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(46, 190, 185, 0.3);
    }

.button-container-three button {
    min-width: 30%;
}

/* Spinner */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-band {
        padding: 0 20px;
        height: 70px;
    }

    .logo {
        height: 50px;
    }

    .center-menu {
        gap: 15px;
    }

    .menu-text {
        font-size: 16px;
    }

    #loginFormContainer {
        width: 90%;
        padding: 50px 35px;
    }

    .floating-image {
        width: 150px;
        height: 150px;
    }
}
