:root {
    --primary: #00fff2;
    --secondary: #ff00dd;
    --background-dark: #0a0b1e;
    --background-light: #1a1b3e;
    --text-glow: 0 0 10px rgba(0, 255, 242, 0.5);
    --modal-title-color: var(--primary);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 242, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 255, 242, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 242, 0);
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px var(--primary);
    }

    50% {
        text-shadow: 0 0 20px var(--primary), 0 0 30px var(--secondary);
    }

    100% {
        text-shadow: 0 0 5px var(--primary);
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--primary);
    margin-left: 5px;
    animation: blink 1s infinite;
}

body {
    font-family: "Space Grotesk", system-ui, sans-serif;
    background: linear-gradient(
            -45deg,
            var(--background-dark),
            var(--background-light)
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    min-height: 100vh;
}

.hero {
    position: relative;
    padding: 8rem 2rem 2rem 2rem; /* Réduction du padding en bas pour rapprocher le formulaire du h2 */
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 50% 50%,
            rgba(0, 255, 242, 0.1) 0%,
            transparent 60%
    );
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: .5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--text-glow);
    animation: float 6s ease-in-out infinite, glow 2s ease-in-out infinite;
}

.hero p {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.2s;
}

.features {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: rgba(26, 27, 62, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 242, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    z-index: 0;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle,
            rgba(0, 255, 242, 0.1) 0%,
            transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 48px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    color: #ffffff;
    opacity: 0.8;
}

.terminal {
    background: rgba(10, 11, 30, 0.9);
    border: 1px solid var(--primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.2);
    backdrop-filter: blur(5px);
    margin: 4rem auto;
    max-width: 70%;
}

.terminal-line {
    color: var(--primary);
    font-family: "Fira Code", monospace;
    margin: 0.5rem 0;
    position: relative;
    padding-left: 0;
    opacity: 0;
    animation: typeWriter 0.5s forwards;
}

.terminal-line.centered {
    text-align: center;
}

.centered {
    text-align: center;
}

.btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background: var(--primary);
    color: var(--background-dark);
    box-shadow: 0 0 20px var(--primary);
}

.modal-content {
    background: var(--background-light);
    border: 1px solid var(--primary);
}

.modal-header {
    border-bottom: 1px solid var(--primary);
}

.modal-title {
    color: var(--modal-title-color);
    text-align: center;
    width: 100%;
}

.modal-body {
    color: #ffffff !important;
}

.modal-footer {
    border-top: 1px solid var(--primary);
}

footer {
    background: var(--background-dark);
    border-top: 1px solid var(--primary);
    padding: 2rem 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

footer p {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

@keyframes typeWriter {
    to {
        opacity: 1;
    }
}

.terminal pre {
    color: white;
}

/*---------------------------------*/

.terminal-controls {
    text-align: center;
    margin-top: 2rem;
}

#orion-status {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--primary);
}

#start-btn:hover a {
    color: #141313 !important;
}

#start-btn {
    margin: 1rem 0;
    padding: 1rem 2rem;
}

#start-btn:hover {
    transform: scale(1.05);
}

#start-btn i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1135px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    /* Réduction du padding pour mobile */
    .hero {
        padding: 6rem 1rem 1.5rem 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-card h3 {
        display: none;
        margin-bottom: 0;
    }

    .feature-card p {
        font-size: 1rem;
    }

    .terminal {
        max-width: 90%;
        margin: 4rem auto;
    }

    .modal-dialog {
        width: 90%;
        max-width: 90%;
        margin: 1rem auto;
    }

    .modal-content {
        border-radius: 10px;
        padding: 0.8rem;
    }

    .modal-header,
    .modal-footer {
        padding: 0.5rem 0.8rem;
    }

    .modal-body {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .terminal-controls {
        display: none;
    }

    .terminal pre {
        color: white;
        text-shadow: 5px 5px 5px rgb(255, 238, 0);
        text-align: center;
        font-size: 10px;
    }

    .tool-card img {
        height: auto;
        width: 64px;
        margin-left: 50%;
    }

    .tool-icon {
        display: block;
        margin: 0 auto;
        height: 200px;
        width: 200px;
    }

    .tool-card h3 {
        display: none !important;
    }

    .tools h3 {
        display: none;
    }

    .audio-gallery img {
        width: 70%;
        height: auto;
    }

    .audio-gallery pre {
        font-size: 0.7em;
        text-align: center;
    }
}

/* Pour les très petits écrans comme les smartphones */
@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 1rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .login-form {
        padding: 1rem 0;
    }
}

/* ---------------- Audios -------------- */

.audio-gallery {
    text-align: center;
    padding: 40px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    margin-top: 50px;
}

.audio-list {
    display: flex;
    flex-wrap: wrap; /* Permet de passer à la ligne si l'espace est insuffisant */
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 20px; /* Espacement entre les éléments */
}

.audio-item {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    width: 300px; /* Largeur fixe pour garder une bonne disposition */
    text-align: center;
}

audio {
    width: 100%;
    margin-top: 5px;
}

.modal-body img {
    width: 32px;
    height: auto;
    margin-left: 15px;
}

#certificationsModal .modal-body img {
    width: 100px;
    height: auto;
    margin-left: 35%;
    margin-bottom: 15px;
    border-radius: 100px;
}

hr {
    border: none;
    height: 1.5px;
    width: 100%;
    background-color: #ffffff;
}

.audio-gallery hr {
    width: 50%;
}

.tools h3 {
    text-align: center;
}

.tool-card img {
    height: auto;
    width: 64px;
    margin-bottom: -35px;
}

.demo {
    width: auto;
    width: 1050px;
    border-radius: 15px;
}

.about-collection hr {
    width: 50%;
}

.about-collection h2 {
    text-align: center;
}

/* -------------------------------------------- */

.personal-model h4 {
    text-align: center;
    text-decoration: underline;
}

.personal-model {
    background: rgba(26, 27, 62, 0.7);
    margin: auto;
}

.tool-icon {
    display: block;
    margin: 0 auto;
}

.tool-card h3 {
    display: block;
}

a {
    color: gold;
    transition: 0.3s;
}

a:hover {
    color: rgb(221, 219, 207);
    transition: 0.3s;
}

/* Styles pour le formulaire de connexion */
.login-form {
    padding: 1.5rem 0; /* Réduit pour rapprocher du hero */
}

.login-form .feature-card {
    max-width: 100%;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.login-form label {
    color: var(--primary);
    font-weight: 500;
}

.login-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1;
    cursor: text;
    caret-color: var(--primary);
}

.login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.3);
    color: #fff;
    outline: none;
    z-index: 2;
}

.login-form .btn {
    margin-top: 1rem;
}

.login-form .alert {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #fff;
}

.login-form a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    z-index: 100;
    pointer-events: all;
}

.login-form a:hover {
    color: #80fff9;
}

/* Style pour le placeholder */
.login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Style quand l'input est en focus */
.login-form .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .login-form .feature-card {
        padding: 1.5rem;
    }
}

/* Ajoutez ces règles à la fin de votre fichier CSS */
.login-form .text-primary {
    position: relative;
    z-index: 100;
    cursor: pointer;
    pointer-events: all;
}

.feature-card {
    position: relative;
    z-index: 1;
}

.form-group {
    position: relative;
    z-index: 2;
}

/* Styles pour le feedback d'email */
.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

#emailFeedback {
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 0 5px currentColor;
}

/* Styles pour SweetAlert2 */
.swal2-popup {
    border: 1px solid var(--primary);
    border-radius: 15px;
}

.swal2-title {
    color: var(--primary) !important;
    font-size: 1.8em !important;
}

.swal2-html-container {
    color: #fff !important;
}

.swal2-icon {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.swal2-confirm {
    background: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    background: var(--primary) !important;
    color: var(--background-dark) !important;
    box-shadow: 0 0 20px var(--primary) !important;
}

.swal2-cancel {
    background: transparent !important;
    border: 2px solid var(--secondary) !important;
    color: var(--secondary) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
    background: var(--secondary) !important;
    color: var(--background-dark) !important;
    box-shadow: 0 0 20px var(--secondary) !important;
}