:root {
    --yt-red: #FF0000;
    --yt-dark: #282828;
    --yt-text: #030303;
    --yt-bg: #FFFFFF;
    --yt-gray: #606060;
    --yt-light-gray: #F8F8F8;
    --yt-hover: #E5E5E5;
    --yt-shadow: rgba(0, 0, 0, 0.1);
}

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

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

header {
    background-color: var(--yt-bg);
    box-shadow: 0 2px 8px var(--yt-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yt-red);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.language-menu {
    position: relative;
}

#languageButton {
    background: transparent;
    border: 1px solid var(--yt-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--yt-text);
    transition: background-color 0.2s;
}

#languageButton:hover {
    background-color: var(--yt-hover);
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: var(--yt-bg);
    box-shadow: 0 4px 20px var(--yt-shadow);
    border-radius: 8px;
    width: 220px;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.language-dropdown a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--yt-text);
    transition: background-color 0.2s;
}

.language-dropdown a:hover {
    background-color: var(--yt-hover);
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

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

.hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 2rem;
    background: linear-gradient(to bottom, var(--yt-light-gray), var(--yt-bg));
    border-radius: 16px;
}

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

h2 {
    font-size: 2.25rem;
    color: var(--yt-text);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--yt-red);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    color: var(--yt-text);
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--yt-text);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--yt-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

article {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--yt-light-gray);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

article:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--yt-shadow);
}

.steps {
    display: grid;
    gap: 2rem;
}

.step {
    padding: 1.5rem;
    background-color: var(--yt-bg);
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--yt-shadow);
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 1rem;
    color: var(--yt-gray);
    position: relative;
    padding-left: 1rem;
}

li::before {
    content: '•';
    color: var(--yt-red);
    position: absolute;
    left: -1rem;
}

footer {
    background-color: var(--yt-dark);
    color: var(--yt-bg);
    text-align: center;
    padding: 2rem;
    margin-top: 6rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .language-dropdown {
        width: 100%;
        max-width: 300px;
        left: 50%;
        transform: translateX(-50%);
    }

    article {
        padding: 1.5rem;
    }
}

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

    main {
        padding: 2rem 1rem;
    }

    article {
        padding: 1.25rem;
    }

    .steps {
        gap: 1.5rem;
    }
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #FFFFFF;
    border: 1px solid #E4E6EB;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    z-index: 1000;
    padding: 40px;
    text-align: center;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.popup-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.close-btn {
    background-color: #FF0000; /* Couleur de fond de YouTube */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-btn:hover {
    background-color: #CC0000; /* Couleur plus sombre lors du survol */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

.popup-content {
    margin-top: 20px;
    color: #262626;
    font-size: 18px;
    line-height: 1.6;
}

.affiliate-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 20px 120px;
    background-color: #FF0000; /* Couleur de fond de YouTube */
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 22px;
    transition: box-shadow 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.affiliate-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: white; /* Texte restant visible en blanc */
}

.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::before {
    left: 100%;
}

.additional-text {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

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