/* 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 */
}

/** header navbar **/


/* ========================================
   HEADER
======================================== */

.site-header {
    width: 100%;
    /*background-color: #f5f2ef;*/
    border-bottom: 2px solid #1c1c1c;
}

.site-header .navbar {
    width: 100%;
    height: 88px;
    padding: 0;
    margin: 0;
    /*background-color: #f5f2ef;*/
}


/* ========================================
   CONTENEUR CENTRAL

   Le header = 100%
   Le contenu = 1320px centré
======================================== */

.site-header .nav-container {
    width: 100%;
    max-width: 1320px;
    height: 88px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
}


/* ========================================
   LOGO / BRAND
======================================== */

.site-header .navbar-brand {
    height: 88px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    /* pousse tout le menu vers la droite */
    margin-right: auto;
    flex-shrink: 0;
}


/* portrait */

.site-header .brand-logo {
    width: 58px;
    height: 58px;

    object-fit: cover;
    border-radius: 50%;
}


/* FREE AYACHI */

.site-header .brand-text {
    display: flex;
    flex-direction: column;

    justify-content: center;

    color: #111;

    line-height: 1.1;
}


.site-header .brand-text strong {
    font-size: 17px;
    font-weight: 800;

    letter-spacing: 2px;

    white-space: nowrap;
}


.site-header .brand-text small {
    margin-top: 5px;

    font-size: 13px;
    font-weight: 600;

    text-align: right;
}


/* ========================================
   NAVIGATION
======================================== */

.site-header .navbar-collapse {
    height: 88px;

    flex-grow: 0;
    flex-basis: auto;

    margin: 0;
}


.site-header .navbar-nav {
    height: 88px;

    display: flex;
    align-items: stretch;

    margin: 0 !important;
    padding: 0;
}


.site-header .navbar-nav .nav-item {
    height: 88px;

    display: flex;

    margin: 0;
    padding: 0;
}


/* ========================================
   BLOCS MENU
======================================== */

.site-header .nav-box {
    height: 88px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 0 27px !important;

    margin: 0;

    color: #111 !important;
    background: transparent;

    border-left: 1px solid #222;

    text-align: center;

    text-decoration: none;

    transition:
            background-color .2s ease,
            color .2s ease;
}


/* Dernière bordure */

.site-header .navbar-nav .nav-item:last-child .nav-box {
    border-right: 1px solid #222;
}


/* Français */

.site-header .nav-box strong {
    display: block;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: .4px;

    white-space: nowrap;

    line-height: 1.2;
}


/* Arabe */

.site-header .nav-box small {
    display: block;

    margin-top: 8px;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    line-height: 1.2;
}


/* ========================================
   ACCUEIL ACTIF
======================================== */

.site-header .nav-box.active {
    background-color: #1c1c1e;

    color: #fff !important;
}


.site-header .nav-box.active strong,
.site-header .nav-box.active small {
    color: #fff !important;
}


/* ========================================
   HOVER
======================================== */

.site-header .nav-box:hover,
.site-header .nav-box:focus {
    background-color: #e9e5e1;

    color: #111 !important;
}


.site-header .nav-box.active:hover,
.site-header .nav-box.active:focus {
    background-color: #1c1c1e;

    color: #fff !important;
}


/* ========================================
   SUPPRESSION FLECHE BOOTSTRAP
======================================== */

.site-header .nav-box.dropdown-toggle::after {
    display: none;
}


/* ========================================
   DROPDOWNS
======================================== */

.site-header .dropdown-menu {
    margin-top: 0 !important;
    min-width: 250px;
    padding: 0;
    background-color: #f5f2ef;
    border: 1px solid #222;
    border-radius: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}


.site-header .dropdown-item {
    padding: 14px 18px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #1c1c1c;
    white-space: normal;
}


.site-header .dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}


.site-header .dropdown-item small {
    display: block;

    margin-top: 4px;

    font-size: 13px;
    font-weight: 500;
}


.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    background-color: #1c1c1e;

    color: #fff;
}


.site-header .dropdown-item:hover small,
.site-header .dropdown-item:focus small {
    color: #fff;
}


/* ========================================
   TOGGLER MOBILE
======================================== */

.site-header .navbar-toggler {
    margin-left: auto;

    border: 0;
    border-radius: 0;
}


.site-header .navbar-toggler:focus {
    box-shadow: none;
}


/* ========================================
   ECRANS INTERMEDIAIRES
======================================== */

@media (max-width: 1350px) {

    .site-header .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header .nav-box {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .site-header .nav-box strong {
        font-size: 12px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 991.98px) {

    .site-header .navbar {
        height: auto;
        min-height: 80px;
    }


    .site-header .nav-container {
        height: auto;
        min-height: 80px;

        padding: 0 20px;

        flex-wrap: wrap;
    }


    .site-header .navbar-brand {
        height: 80px;

        margin-right: 0;
    }


    .site-header .brand-logo {
        width: 50px;
        height: 50px;
    }


    .site-header .brand-text strong {
        font-size: 15px;
    }


    .site-header .navbar-collapse {
        width: calc(100% + 40px);

        height: auto;

        margin-left: -20px;
        margin-right: -20px;

        flex-basis: calc(100% + 40px);

        background-color: #f5f2ef;

        border-top: 1px solid #222;
    }


    .site-header .navbar-nav {
        width: 100%;
        height: auto;

        display: block;
    }


    .site-header .navbar-nav .nav-item {
        width: 100%;
        height: auto;

        display: block;
    }


    .site-header .nav-box {
        width: 100%;
        height: auto;

        min-height: 65px;

        align-items: flex-start;

        padding: 14px 20px !important;

        border-left: 0;
        border-right: 0 !important;
        border-bottom: 1px solid #ccc;

        text-align: left;
    }


    .site-header .nav-box small {
        margin-top: 4px;
    }


    .site-header .dropdown-menu {
        width: 100%;

        margin: 0 !important;

        border-left: 0;
        border-right: 0;
        border-top: 0;

        box-shadow: none;
    }


    .site-header .dropdown-item {
        padding-left: 35px;
    }
}


/** header navbar **/


/* 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: 60%;
        background-position-x: center;
    }

    .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;
    }


    .navbar .dropdown {
        position: relative;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-menu {
        top: 100% !important;
        margin-top: 0 !important;
        transform: none !important;
    }

}

/* 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.5);
    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;
}
