:root {
    --telegram-blue: #0088cc;
    --telegram-blue-dark: #006699;
    --telegram-bg: #ffffff;
    --text-primary: #222222;
    --text-secondary: #666666;
    --card-bg: #f8f9fa;
    --warning-color: #ff3b30;
    --success-color: #34c759;
    --hover-bg: #f0f2f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--telegram-bg);
}

header {
    background-color: var(--telegram-blue);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.language-selector {
    position: relative;
}

#languageButton {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

#languageButton:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#languageButton::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5rem;
}

#languageMenu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    min-width: 220px;
    padding: 0.5rem;
    transform-origin: top right;
    animation: menuAppear 0.2s ease-out;
}

@keyframes menuAppear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#languageMenu.show {
    display: block;
}

#languageMenu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

#languageMenu li a:hover {
    background-color: var(--hover-bg);
}

#languageMenu li a.active {
    background-color: var(--telegram-blue);
    color: white;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

section {
    margin-bottom: 5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

h1 {
    font-size: 2.75rem;
    color: var(--telegram-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    color: var(--telegram-blue);
    margin-bottom: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.method-cards, .protection-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card, .tip {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover, .tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.warning-signs ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.warning-signs li {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.warning {
    color: var(--warning-color);
    font-weight: 500;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 59, 48, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--warning-color);
}

.recovery-steps ol {
    list-style-position: inside;
    counter-reset: step-counter;
    display: grid;
    gap: 1.5rem;
}

.recovery-steps li {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    counter-increment: step-counter;
    display: grid;
    gap: 1rem;
}

.recovery-steps li::before {
    content: counter(step-counter);
    background-color: var(--telegram-blue);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 600;
}

footer {
    background-color: var(--telegram-blue);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 6rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .method-cards, .protection-tips, .warning-signs ul {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .language-selector {
        width: 100%;
    }

    #languageButton {
        width: 100%;
        justify-content: center;
    }

    #languageMenu {
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
    }
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px; /* Augmenter la largeur de la popup */
    background-color: #FFFFFF; /* Fond blanc */
    border: 1px solid #A8B1C0; /* Bordure grise claire */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Ombre douce */
    border-radius: 12px; /* Bords arrondis plus doux */
    z-index: 1000;
    padding: 40px; /* Plus de padding pour agrandir la popup */
    text-align: center;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Roboto', 'Helvetica', sans-serif; /* Police plus proche de Telegram */
}

.popup-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px; /* Espacement plus grand */
}

.close-btn {
    background-color: #0088CC; /* Bleu Telegram */
    color: white;
    border: none;
    padding: 16px 30px; /* Plus de padding pour agrandir le bouton */
    border-radius: 10px; /* Arrondi plus doux */
    font-weight: 700;
    font-size: 18px; /* Taille de police plus grande */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-btn:hover {
    transform: scale(1.1); /* Effet d'agrandissement plus prononcé */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.close-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.popup-content {
    margin-top: 30px; /* Plus d'espace autour du texte */
    color: #333333; /* Texte gris foncé */
    font-size: 18px; /* Taille de police plus grande */
    line-height: 1.7; /* Plus d'espace entre les lignes */
}

.affiliate-btn {
    display: inline-block;
    margin-top: 35px; /* Espacement plus grand entre les éléments */
    padding: 22px 100px; /* Plus de padding pour un bouton plus grand */
    background-color: #33B4E5; /* Bleu clair Telegram */
    color: white;
    text-decoration: none;
    border-radius: 10px; /* Arrondi doux */
    font-weight: 700;
    font-size: 22px; /* Taille de police plus grande */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.affiliate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.affiliate-btn:hover {
    transform: scale(1.1); /* Effet d'agrandissement plus prononcé */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.affiliate-btn:hover::before {
    left: 100%;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Ajouter un espace avant le texte "Découvre le logiciel espion ICI" */
.additional-text {
    margin-top: 30px;  /* Plus d'espace avant le texte */
    font-size: 18px; /* Taille du texte plus grande */
    color: #555555; /* Texte gris */
}
