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

body, html {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    background-color: #2f2f2f; /* Arrière-plan sombre */
    margin: 0;
    height: 100%;
    width: 100%;
}

/* Header */
header {
    background-color: #006400; /* Vert table de poker */
    color: white;
    padding: 1.5em;
    text-align: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #ffcc00; /* Jaune pour les liens */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff9900; /* Jaune clair lors du survol */
}

/* Section principale */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

#article {
    width: 100%; /* Prend toute la largeur */
    max-width: 1200px; /* Limite la largeur maximale du main */
    padding: 20px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.1); /* Arrière-plan léger pour les articles */
    color: #ffffff;
    padding: 20px;
    margin: 20px auto; /* Centrer l'article avec auto sur les côtés */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify; /* Justifie le texte de l'article */
    max-width: 800px; /* Limite la largeur maximale de l'article */
}

#article h2 {

    text-align: center;

    }


#article h2, h3, h4 {

    margin-bottom: 20px;

    }

#article h3, h4 {

    margin-top: 20px;

    }

#article li {

    margin-left: 20px;

    }

#intro {
    margin-bottom: 20px;
    color: #ffffff;
    background-color: rgba(0, 100, 0, 0.8); /* Vert sombre */
    padding: 20px;
    border-radius: 8px;
}

h1, h2 {
    color: #ffcc00; /* Jaune */
}

#recent-articles, #article-list {
    width: 90%;
    max-width: 800px;
    margin-top: 20px;
}

#recent-articles a {
    text-decoration: none;
}

/* Effets visuels et images de fond sur les articles */
.article {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1); /* Arrière-plan léger pour les articles */
    color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Arrière-plan flou pour chaque article */
#article1 {
    background-image: url('poker_table.jpg'); /* Remplace par une image de table de poker */
    background-size: cover;
    background-position: center;
}

#article2 {
    background-image: url('poker_cards.jpg'); /* Remplace par une image de cartes de poker */
    background-size: cover;
    background-position: center;
}

#article3 {
    background-image: url('poker_bluff.jpg'); /* Remplace par une image liée au bluff */
    background-size: cover;
    background-position: center;
}

#article4 {
    background-image: url('bankroll_management.jpg'); /* Remplace par une image de gestion de bankroll */
    background-size: cover;
    background-position: center;
}

#article5 {
    background-image: url('poker_variants.jpg'); /* Remplace par une image de variantes de poker */
    background-size: cover;
    background-position: center;
}

#article6 {
    background-image: url('poker_strategy.jpg'); /* Remplace par une image de stratégie de poker */
    background-size: cover;
    background-position: center;
}

#article7 {
    background-image: url('poker_styles.jpg'); /* Remplace par une image représentant les styles de jeu */
    background-size: cover;
    background-position: center;
}

#article8 {
    background-image: url('poker_tournament.jpg'); /* Remplace par une image d'un tournoi de poker */
    background-size: cover;
    background-position: center;
}

#article9 {
    background-image: url('poker_odds.jpg'); /* Remplace par une image illustrant les probabilités au poker */
    background-size: cover;
    background-position: center;
}

#article10 {
    background-image: url('poker_tilt_management.jpg'); /* Remplace par une image sur la gestion du tilt */
    background-size: cover;
    background-position: center;
}

/* Overlay sombre pour le texte */
.article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay sombre */
    backdrop-filter: blur(10px);
    z-index: 1;
}

/* Style du texte par-dessus l'image */
.article h3,
.article p {
    position: relative;
    z-index: 2;
    color: #ffffff; /* Couleur du texte en blanc */
}

.article:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);
}

/* Style pour le lien "Lire la suite" */
.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    color: #ffcc00;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; /* Ajout de la position relative */
    z-index: 3; /* Assure que le lien est au-dessus de l'overlay */
}

.read-more:hover {
    background-color: #ffcc00;
    color: #2f2f2f;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Centre les éléments horizontalement */
    gap: 10px; /* Espace entre les liens */
}

footer ul li {
    display: inline;
}

footer a {
    text-decoration: none;
}

/* Section du livre */
#livre-section {
    padding: 40px;
    text-align: center;
    background-color: #2f2f2f;
    color: #ffffff;
}

/* Ajout de l'espace entre le titre et la couverture */
#livre-section h2 {
    margin-bottom: 20px; /* Espace sous le titre */
}

.livre-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.livre-cover {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
}

.livre-info {
    text-align: left;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px; /* Espace supplémentaire au-dessus de la description */
}

.livre-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Centrer le bouton Acheter sur Amazon */
.buy-button {
    width: 250px; /* Largeur fixe pour centrer plus facilement */
    display: block;
    margin: 20px auto; /* Centre horizontalement et ajoute de l'espace au-dessus */
    padding: 12px 24px;
    background-color: #ffcc00;
    color: #2f2f2f;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.buy-button:hover {
    background-color: #ff9900;
    color: #2f2f2f;
}
/* Section de contact */
#contact-section {
    max-width: 600px;
    margin:  auto;
    padding: 20px;
    background-color: #2f2f2f;
    color: #ffffff;
    border-radius: 8px;
    text-align: center;
}

#contact-section p {
    margin-bottom: 20px; /* Ajoute un espace sous le paragraphe */
}

#contact-section h2 {
    color: #ffcc00;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
}

button[type="submit"] {
    padding: 10px;
    background-color: #ffcc00;
    color: #2f2f2f;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #ff9900;
}
.ads-container {
    display: flex;
    justify-content: space-between; /* Espace entre les publicités et le contenu */
    width: 100%;
    max-width: 1200px; /* Limite la largeur pour le contenu principal */
    margin: 0 auto; /* Centre le contenu */
    padding: 20px 0; /* Espacement vertical pour les publicités */
}
.ads-container a {
    text-decoration: none;
}

.ad {
    width: 200px; /* Largeur fixe pour les publicités */
    height: 360px;
    background-color: #006400;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.left-ad {
    margin-top: 20px;
    margin-right: 20px; /* Espacement à droite de la publicité de gauche */
}

.right-ad {
    margin-top: 20px;
    margin-left: 20px; /* Espacement à gauche de la publicité de droite */
}

.ad-image {
    width: 150px; /* Ajuster la largeur selon vos besoins */
    height: auto; /* Garder les proportions de l'image */
    margin: 0 auto; /* Centrer l'image dans la bannière */
    display: block; /* S'assurer que l'image se comporte comme un bloc */
}

/* Application de la couleur jaune et de l'animation de clignotement au texte */
.ad p {
    color: #FFD700; /* Jaune */
    animation: blink 3s infinite; /* Animation de clignotement */
}

/* Définition de l'animation de clignotement */
@keyframes blink {
    0% {
        opacity: 1; /* Visible */
    }
    50% {
        opacity: 0; /* Invisible */
    }
    100% {
        opacity: 1; /* Visible */
    }
}

main {
    flex: 1; /* Permet au main de prendre tout l'espace disponible */
    display: flex;
    flex-direction: column; /* Affiche les articles sous forme de colonne */
    align-items: center; /* Centre les articles */
    gap: 20px; /* Espace entre les articles */
}

.all-articles-button {
    text-align: center;
    margin-top: 20px;
}

.all-articles-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffcc00;
    color: #2f2f2f;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.all-articles-link:hover {
    background-color: #ff9900;
    color: #2f2f2f;
}

#back-to-top {
    position: fixed;
    bottom: 80px; /* Positionné un peu plus haut pour éviter le chevauchement du footer */
    right: 30px;
    background-color: rgba(255, 204, 0, 0.9);
    color: #2f2f2f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    display: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#back-to-top:hover {
    background-color: #ff9900;
    transform: translateY(-3px);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5);
}

.logo {
    max-width: 150px; /* Ajustez la largeur maximum du logo */
    height: auto; /* Maintient les proportions de l'image */
    margin-bottom: 20px; /* Espace sous le logo */
    display: block; /* Permet d'appliquer des marges */
    margin-left: auto;
    margin-right: auto; /* Centre le logo horizontalement */
}

/* Mobile (petits écrans) - de 320px à 768px */
@media (max-width: 768px) {
    body, html {
        font-size: 16px; /* Taille de texte adaptée aux petits écrans */
    }

    header {
        padding: 1em; /* Moins de padding pour les petits écrans */
    }

    nav ul {
        flex-direction: column; /* Navigation verticale sur mobile */
        align-items: center;
    }

    nav ul li {
        margin-bottom: 10px; /* Espacement entre les liens */
    }

    .logo {
        max-width: 120px; /* Réduit la taille du logo sur mobile */
    }

    main {
        padding: 10px;
    }

    #article {
        width: 100%;
        max-width: 100%;
        padding: 15px; /* Moins de padding pour les articles */
    }

    .article {
        width: 100%;
    }

    .ads-container {
        flex-direction: column; /* Disposition verticale pour les publicités */
        align-items: center;
    }

    .ad {
        width: 100%; /* Publicités prennent toute la largeur sur mobile */
        height: auto;
        margin-bottom: 20px;
    }

    .read-more, .buy-button, .all-articles-link {
        width: 100%; /* Boutons prennent toute la largeur */
        padding: 10px;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* Tablettes (écrans moyens) - de 768px à 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    body, html {
        font-size: 18px; /* Taille de texte moyenne */
    }

    header {
        padding: 1.2em; /* Moins de padding */
    }

    .logo {
        max-width: 130px; /* Logo plus petit que sur les grands écrans */
    }

    nav ul {
        flex-direction: row; /* Navigation horizontale sur tablette */
        justify-content: center;
    }

    .article {
        width: 90%;
        max-width: 90%;
    }

    #article {
        padding: 15px; /* Ajustement du padding */
    }

    .ads-container {
        flex-direction: row; /* Publicités côte à côte */
        justify-content: space-between;
    }

    .ad {
        width: 48%; /* Publicités plus petites */
        height: 250px; /* Ajuste la hauteur des publicités */
    }

    #back-to-top {
        bottom: 30px;
        right: 30px;
    }
}
