/* Vidéo en arrière-plan */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* derrière tout le contenu */
}

/* En-tête */
header {
    display: flex;
    justify-content: flex-end;
    padding: 35px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.menu-buttons {
    display: flex;
    gap: 10px;
}

.menu-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-buttons button:hover {
    background-color: #0056b3;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Container du cercle avec texte tournant */
.circle-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

/* La rotation globale de tout le texte */
.rotating-text {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateCircle 40s linear infinite;
    /* vitesse réglable */
}

/* Le cercle central */
.circle {
    width: 350px;
    height: 350px;
    background-color: rgba(76, 175, 80, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.0em;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Conteneur pour le texte réparti autour du cercle */
.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    font-size: 25px;
    color: #f3cf15;
}

/* Chaque caractère placé en cercle */
.circle-text span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    font-size: 0.8em;
}


/* Animation de rotation */
@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media(max-width: 600px) {
    .circle-wrapper {
        width: 250px;
        height: 250px;
    }

    .circle {
        width: 220px;
        height: 220px;
        font-size: 0.8em;
    }

    .info-line p {
        font-size: 18px;
        font-weight: 900;
        color: #f3cf15;
    }
}

/********* Fond vidéo */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* fallback color */
    z-index: -1;
}

/* La vidéo doit être placée dans le body directement */
/* On la positionne pour couvrir */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Boutons d'ouverture */
#buttons-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

#buttons-container button {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;

    width: auto;
    background-color: #007bff;
    color: #fff;
    font-size: 1.1em;
}

#buttons-container button:hover {
    background: rgba(233, 78, 78, 1);
}


/* Overlay popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Affichage actif */
.popup-overlay.active {
    display: flex;
    opacity: 1;
}


.subscib-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    /* caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subscib-overlay.active {
    display: flex;
    opacity: 1;
}

.select2-container {
    z-index: 9999 !important;
    display: block !important;
    /* si masqué */
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 90%;
}

/* Contenu du popup */
.popup-content,
.popupsubscrib-content {
    background: #fff;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 600px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s forwards;
}

.popupsubscrib-content {
    overflow: auto;
}

section {
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.contrainte {
    display: flex;
    flex-direction: column;
    border: 1px solid;
    padding: 5px;
    width: 90%;
    max-width: 600px;
    /* ajuste selon besoin */
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    /* centrer si souhaité */
}

.contrainte h3 {
    font-size: 16px;
}

.itemsstyle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* ou center si vous préférez */
    margin-bottom: 10px;
    flex-wrap: nowrap;
    /* pour la responsivité si besoin */
}

.itemsstyle input[type="checkbox"] {
    order: 1;
    /* l'input avant le label */
    margin-right: 8px;
    width: 9%;
}

.itemsstyle label {
    order: 2;
    /* le label après l'input */
    flex: 1;
    /* pour que le label prenne tout l'espace restant */
    text-align: justify;
    /* pour justifier le texte du label */
    min-width: 100px;
    /* ajustez si nécessaire */
    cursor: pointer;
}

/* Responsive: ajustements pour petits écrans */
@media (max-width: 400px) {
    .itemsstyle {
        flex-direction: row;
        align-items: flex-start;
    }

    .itemsstyle label {
        text-align: left;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bouton fermeture */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e74c3c;
}

/* Styles formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.inputbox,
.inputmpbox,
.inputmpibox,
.inputcbox,
.input-group {
    position: relative;
    margin: 1rem 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 90%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Bouton submit */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive */
@media(max-width: 600px) {
    .popup-content {
        padding: 20px;
    }

    form {
        gap: 10px;
    }

    button[type="submit"] {
        padding: 12px;
        font-size: 1em;
    }

    section {
        width: 100%;
        padding: 0rem;
        box-sizing: border-box;
    }
}

/*LICENCE*/
/* Wrapper du formulaire dans le popup */

#licence-popup.active {
    display: flex;
    opacity: 1;
}

#licenceNetwork-popup.active {
    display: flex;
    opacity: 1;
}

.form-wrapper {
    /*visibility: hidden;
            max-height: 600px;*/
    left: 35%;
    top: 50px;
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 90vh;
}

.etatsèfin-container .form-wrapper,
.rapports-container .form-wrapper,
.infoannexe-container .form-wrapper {
    max-height: 80vh;
}

/* Animation pour l'ouverture */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de rotation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* La boîte du formulaire */
.form-wrapper {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border-radius: 10px;
    position: relative;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 90vh;
}

/* Bouton fermeture */
.closa-windows {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.8em;
    color: #555;
    transition: color 0.2s;
}

.closa-windows:hover {
    color: #e74c3c;
}

/* Style du bouton 'Renouveler la licence' */
#openRenewBtn {
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
    border-bottom: 1px solid;
}

#openRenewBtn:hover {
    background-color: #0056b3;
}

/* Styles du formulaire */
form#renewalForm,
form#renewalNetworkForm {
    display: flex;
    flex-direction: column;
}

form#renewalForm .form-group,
form#renewalNetworkForm .form-group {
    margin-top: 15px;
}

form#renewalForm label,
form#renewalNetworkForm label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

form#renewalForm input[type="number"],
form#renewalForm select,
form#renewalForm input[type="text"],
form#renewalForm input[type="email"],

form#renewalNetworkForm input[type="number"],
form#renewalNetworkForm select,
form#renewalNetworkForm input[type="text"],
form#renewalNetworkForm input[type="email"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

form#renewalForm input[type="number"]:focus,
form#renewalForm select:focus,
form#renewalForm input[type="text"]:focus,
form#renewalForm input[type="email"]:focus,

form#renewalNetworkForm input[type="number"]:focus,
form#renewalNetworkForm select:focus,
form#renewalNetworkForm input[type="text"]:focus,
form#renewalNetworkForm input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Styles pour la section prix */
#price-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: bold;
}

#price-info span {
    padding: 5px 10px;
    border-radius: 4px;
}

#unit-price {
    color: #333;
}

#total-price {
    background: #d4faf2;
    color: #333;
}

/* Détails paiement dynamique */
#payment-details {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

#payment-details label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

#payment-details input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Bouton valider */
form#renewalForm button[type="submit"],
form#renewalNetworkForm button[type="submit"] {
    width: 100%;
    padding: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
    background-color: #287dc3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Arial', sans-serif;
    font-style: italic;
}

form#renewalForm button[type="submit"]:hover,
form#renewalNetworkForm button[type="submit"]:hover {
    background-color: #007bff;
}

/* Responsive */
@media (max-width: 600px) {
    .form-wrapper {
        padding: 20px;
    }
}

/*********INFORMATIONS OUBLIEES */
.connect-field-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 200%;
}

.hiddena {
    transform: translateX(-50%);
}

.connect-field-container.open_app_naviapro {
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
    opacity: 1;
}

section#register-status.register {
    visibility: hidden;
}


label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.forget-container input {
    width: 90%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.forget-container button {
    padding: 0.75rem;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.forget-container input:focus {
    border-color: #6c63ff;
    outline: none;
}

.forget-container button:hover {
    background-color: #d45252ff;
}

.forget-container {
    position: fixed;
    /* pour le centrer sur l'écran */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    /* état initial, petit et invisible */
    visibility: hidden;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    /* pour bien le superposer */
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.forget-container.open_app_naviapro {
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
    opacity: 1;
}

/* Loader style */
.loadscribe,
.loadworker,
.loadmodify {
    display: none;
    /* caché par défaut */
    position: absolute;
    /* ou fixed si tu veux overlay */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loadscribe-icon,
.loadworker-icon,
.loadmodify-icon {
    width: 80px;
    height: 80px;
    border: 10px solid #ccc;
    border-top-color: #fa1433ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 800px) {
    .forget-container {
        flex-direction: column;
    }

    select {
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 1rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    button[type="submit"] {
        padding: 12px;
        font-size: 1em;
        width: 100%;
        margin-top: 10px;
    }
}