/* Variables CSS pour faciliter les changements de couleurs */
:root {
    --primary-color: #ff0000; /* Bleu */
    --secondary-color: #ff0000; /* Vert */
    --text-color: #ff0000;
    --background-color: #000000;
    --card-background: #000000;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: black;
    padding: 1rem 0;
    box-shadow: 0 2px 4px var(--shadow-color);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap; /* Permet le retour à la ligne pour la barre de recherche sur petits écrans */
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    margin-right: 20px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-top: 10px; /* Espace si la barre passe à la ligne */
    flex-grow: 3; /* Permet à la barre de recherche de prendre l'espace disponible */
    max-width: 400px; /* Limite la largeur sur les grands écrans */
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.search-bar button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #000000; /* Vert légèrement plus foncé */
}

main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.app-list-section, .how-it-works-section {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    margin-bottom: 30px;
}

h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.app-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.app-card img {
    width: 170px;
    height: 170px;
    border-radius: 0px;
    margin-bottom: 0px;
    object-fit: cover;
}

.app-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.app-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.app-card .download-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.app-card .download-btn:hover {
    background-color: #000000;
}

/* Section "Comment ça marche ?" */
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap; /* Permet le retour à la ligne sur les petits écrans */
}

.step {
    flex: 1;
    min-width: 250px; /* Assure que les étapes ne deviennent pas trop petites */
    text-align: center;
    padding: 20px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 40px;
    box-shadow: 0 -2px 4px var(--shadow-color);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

footer nav {
    margin-top: 10px;
}

footer nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: var(--primary-color);
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        margin-bottom: 15px;
    }

    .search-bar {
        width: 100%;
        max-width: none;
        margin-top: 0; /* Réinitialise si sur petits écrans */
    }

    .search-bar input, .search-bar button {
        width: auto; /* Laisse le flexbox gérer */
    }

    .app-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur petits écrans */
    }

    .steps-container {
        flex-direction: column;
    }

    .step {
        margin-bottom: 20px;
    }
}
.youtube-promo-section {
    text-align: center;
    margin: 30px auto; /* Centre la section et ajoute de l'espace */
    padding: 20px;
    background-color: var(--card-background); /* Utilise la couleur de fond des cartes */
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-color);
    max-width: 1200px; /* Aligne avec la largeur du main */
}

.youtube-button {
    display: inline-flex; /* Permet d'aligner l'icône et le texte */
    align-items: center;
    gap: 15px; /* Espace entre l'icône et le texte */
    background-color: #FF0000; /* Rouge YouTube */
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.5rem; /* Taille du texte du bouton */
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); /* Ombre rouge pour un effet "pop" */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.youtube-button:hover {
    background-color: #CC0000; /* Rouge plus foncé au survol */
    transform: translateY(-3px); /* Petit effet de soulèvement */
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6); /* Ombre plus prononcée */
}

.youtube-button img {
    width: 40px; /* Taille de l'icône YouTube */
    height: 40px;
    vertical-align: middle; /* Alignement vertical */
}

/* Ajustements pour la réactivité sur petits écrans */
@media (max-width: 768px) {
    .youtube-button {
        flex-direction: column; /* L'icône et le texte sur des lignes séparées */
        font-size: 1.2rem;
        padding: 10px 20px;
        width: 90%; /* Prend plus de largeur sur mobile */
        box-sizing: border-box; /* Inclut le padding dans la largeur */
    }

    .youtube-button img {
        width: 30px;
        height: 30px;
        margin-bottom: 5px; /* Espace entre l'icône et le texte en mode colonne */
    }
}