@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@100;400;500;700&family=Montserrat:wght@400&display=swap');

body {
    background: #f0f2f5 url('../images/Background-2.jpg') center / cover fixed;
    font-family: "IBM Plex Sans", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    background: #fff;
    padding: 40px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    margin: 20px auto;
    text-align: center;
    box-sizing: border-box;
}

.qr-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.qr-wrapper h2 {
    color: #152E11;
    font-size: 28px;
    margin-bottom: 20px;
}

.qr-images {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 40px 20px;
    max-width: 800px; /* Aligne mieux avec la section texte */
    margin: 0 auto;
    justify-items: center; /* Centre les images dans leurs cellules */
}

.qr-images img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

h1 {
    color: #B7C800;
    font-size: 2em;
}

p {
    font-size: 1em;
    margin: 10px 0;
}

.input-field, .code-display, .button, .copy-button, .responsive-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}


.button, .copy-button, .swal-custom-button {
    background: #122a12;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover, .copy-button:hover {
    background-color: #0e200e;
}

.code-container {
    margin: 20px 0; /* Espace entre les sections de code */
}

.typing-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: left;
}

/* Texte principal (SUPPORT VIDÉO) */
.anim-text-visible {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 700;
    color: #B7C800;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
}

.anim-text-visible span {
    display: inline-block;
    opacity: 0;
    animation: typing 0.5s steps(1, end) forwards;
}

.anim-text-visible span:nth-child(n+1) {
    animation-delay: calc(0.1s * (var(--i) - 1));
}

@keyframes typing {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Texte secondaire (pour vos interventions) */
#sub-text, .text-description {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #152E11;
}

#sub-text {
    font-size: 36px;
    font-weight: 500;
    margin-top: -20px;
}

.text-description {
    font-size: 22px;
    font-weight: 400;
    margin-top: 10px;
}

/* Styles Responsives */
@media (max-width: 1024px) {
    .wpr-anim-text-visible {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.5em; }
    p { font-size: 0.9em; }
    .input-field, .code-display, .button, .copy-button {
        width: 100%;
    }
    .wpr-anim-text-visible {
        font-size: 36px;
    }
    #sub-text { font-size: 32px; }
    .text-description { font-size: 18px; }

    .qr-images {
        grid-template-columns: repeat(2, 1fr);
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .wpr-anim-text-visible {
        font-size: clamp(20px, 6vw, 36px);
        text-align: center;
    }
    #sub-text { font-size: 26px; }
    .text-description { font-size: 16px; }

    .qr-images {
        grid-template-columns: 1fr;
        max-width: 160px;
    }
}

/* Amélioration du design de Swal */
.swal-custom-popup {
    font-size: 1.1rem;
    max-width: 400px;
}

.responsive-input {
    font-size: 1rem;
    width: 100%;
    display: block;
}

@media (max-width: 480px) {
    .swal-custom-popup { font-size: 1rem; }
    .responsive-input { font-size: 0.9rem; }
    .swal-custom-button {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

