/* variables */
:root {
    --bg-timer: linear-gradient(180deg, rgba(222, 222, 222, 0.7) 0%, rgba(255, 255, 255, 1) 50%, rgba(222, 222, 222, 0.7) 100%);
}


/* Faire en sorte que html et body prennent toute la hauteur */
html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.bg-overlay {
    position: fixed;
    /* Toujours derrière le contenu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/freeayachi_bg.png');
    background-repeat: no-repeat;
    opacity: 0.2;
    /* Ajuste l’opacité ici */
    z-index: -1;
    /* Derrière tout le contenu */
}

/* Conteneur principal qui pousse le footer en bas */
.content {
    flex: 1;
    text-align: center;
}

.header-logo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid black;
    object-fit: cover;
    margin-top: 20px;
}

.title-main {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 4px;
}

.divider {
    width: 90px;
    height: 2px;
    background: black;
    margin: 15px auto;
}

.timer-box {
    /*border: 2px solid black;*/
    padding: 25px 10px;
    width: 120px;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Footer fixé en bas */
.footer-bar {
    background: black;
    color: white;
    padding: 12px 0;
    font-size: 0.9rem;
}

.card {
    background-color: #f8f9fa;
}

/* responsive */

@media screen and (max-width: 500px) {
    .timer-section {
        background: var(--bg-timer);
        --bs-border-opacity: 1;
        border: 3px solid black;
        border-radius: 0.7em;
        /*border-top: 5px solid black;
        border-right: 1px solid black;
        border-bottom: 5px solid black;
        border-left: 1px solid black;*/
    }
}

@media screen and (min-width: 500px) {
    .timer-box {
        border: 2px solid black;
        background: var(--bg-timer);
    }
}

@media screen and (max-width: 768px) {
    .bg-overlay {
        background-size: cover;
        background-position: center;
    }

    .content {
        /*border-left: 0px solid black;   /* Bordure gauche */
        /*border-right: 0px solid black;  /* Bordure droite */
    }
}

@media screen and (min-width: 768px) {
    .bg-overlay {
        background-size: 80%;
        background-position-x: center;
        background-position-y: 33%;
    }

    .content {
        border-left: 60px solid black;
        /* Bordure gauche */
        border-right: 60px solid black;
        /* Bordure droite */
    }
}

/* Limite la largeur de la navbar en desktop */
@media (min-width: 992px) {

    /* >= lg */
    .navbar-desktop-centered {
        max-width: 900px;
        /* Ajuste la largeur que tu veux */
        margin: 0 auto;
        /* Centre horizontalement */
        border-radius: 8px;
        /* Optionnel */
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* News feed */

header {
    background: #ca3131;
    max-width: 800px;
    min-height: 50px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #000000;
}

section.news-feed {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

article {
    /*border: 1px solid #000000;*/
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

article h2 {
    margin-top: 0;
    color: #333;
}

article p {
    color: #000000;
}

article a {
    border: 1px solid #000000;
    padding: 12px;
    color: #000000;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

.article-meta {
    font-size: 0.9em;
    color: #999;
}
