body {
    font-family: 'Inter', system-ui, sans-serif; /* Pico default */
}

li{
    font-size: 1rem;
}

body.fond
{
    background-image: url(../images/img_blg/wood.jpg);
    background-attachment:fixed;
    background-size:cover;
}

.navbar{
    padding-top: 20px;
}

@media only screen and (max-width:768px)   {
.navbar_links {
    align-items: flex-start;
    left: 0rem;
    }

.navbar_link {
    width: 100%;
    background-color: black; /* 👈 fond sur tout le bloc */
   
    }

.navbar_link > a {
    white-space: nowrap;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    display: block;
    padding-left: 2rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    transition: transform 0.4s ease, letter-spacing 0.4s ease;
    }
.navbar_link > a::after {
    display: none;
}

.navbar_link > a:hover {
    letter-spacing: 5px;
    transform: translateX(15px);
}
}
 nav.navbar button {
    font-size: 0.8rem;
    line-height: 1;
    padding: 0;
}

nav.navbar .lang-active {
    padding: 0.5rem 0.8rem;
}

nav.navbar .lang-menu {
    display: block none;        /* ⬅️ annule le flex de Pico */
    padding: 0;        /* ⬅️ enlève le décalage */
    margin: 0;
}

nav.navbar .lang-menu li {
    display: block;        /* ⬅️ force une seule colonne */
    white-space: nowrap;
    padding: 0.3rem 0.6rem;
    text-align: center;
    font-size: 0.8rem;
} 

/*+++++++++++++++++++++main structure*/

.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap:0.5rem;
    margin: 0 0.5rem;
}

.blog-layout.no-forum {
    grid-template-columns: 1fr;
}

.blog-layout.no-forum .blog-left {
    max-width: 100%;
}

.blog-left,
.blog-right {
    display: flex;
    flex-direction: column;
    /* padding: 0 0.5rem; */
}

/*+++++++++++blog*/

.blog-header
{
    background-image: url("/images/img_blg/papyrus.jpg");
    margin: 0.5rem 0rem 0.5rem 0rem;
    width: 100%;
    
}

.title-blog
{
    font-family: 'Corinthia', cursive;
    text-shadow:  rgb(0, 0, 0) 1px 1px 0px;
    font-size: 7rem;
    color: indianred;
    text-decoration: none;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
}

.citation
{
    text-align:right;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;
    color:black;
    padding-right: 1rem;
    padding-top: 0.5rem;
}

.blog-article {
    display: flex;
    flex-direction: column;
  

    background-image: url("/images/img_blg/papyrus.jpg");
    background-repeat: repeat;

    margin: 2rem 0 0 0;
    padding: 3rem 4rem 4rem;

    font-family: 'Indie Flower', cursive;
    font-size: 1.75rem;
    line-height: 1.9rem;
    text-align: justify;
    color: rgb(26, 26, 26);

    border-radius: 0;
}

.blog-article h2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: 'Kalam', cursive;
    color: rgb(10, 27, 185);
    font-size: 3rem;
    text-shadow:  rgb(0, 0, 0) 0px 1px 0px;
    line-height: 2.7rem;
}

.blog-article .date {
    font-size: 1.2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 3px;
    font-weight: 200;
    color: rgb(26, 26, 26);
    text-align: left;
    width: 100%;
}

.blog-article p{
    color : rgb(26, 26, 26);
}

.sous-titre{font-style: italic; font-size: 20px; font-family:Verdana, Geneva, Tahoma, sans-serif; color: rgb(26, 26, 26);}

.blog-article figure {
    margin: 1rem auto;
    text-align: center;
}


/*+++++++++archives*/

.title-archives {
    font-family: 'Corinthia', cursive;
    text-shadow:  rgb(0, 0, 0) 1px 1px 0px;
    font-size: 7rem;
    color: indianred;
    text-decoration: none;
    margin: 1.5rem 0 2rem 0;
    text-align: center;
    
    /* centrer horizontalement et verticalement */
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
    
    height: 200px; /* ajuste la hauteur du bloc */
}

.subtitle-archives{
     font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: rgb(63, 63, 63);
}

.blog-archives-links {
    background-color: rgba(136, 130, 122, 0.781);
    display: block;
    margin: 2rem 0 0 0;
    text-align: center;
    font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    
    font-size: 1.5rem;
    text-shadow:  rgb(0, 0, 0) 0px 1px 0px;
    line-height: 2.1rem;
    width:fit-content;
    padding: 0.5rem 0 0.5rem 0;
    border-radius: 3px;
}

.blog-archives-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    color: rgb(0, 0, 0);
    padding: 0.5rem 2rem 0.5rem 2rem;

}

.blog-archives-links a span {
    display: inline-block;          /* nécessaire pour scale */
    transition: transform 0.25s ease;
}

.blog-archives-links a:hover span {
    transform: scale(1.15);         /* seulement le texte grossit */
}

video{max-width: 100%;height: auto;}

/*----------------------------------------------------FORUM----------------------------------------------------
*/

.forum-section {
    background-color: rgb(136, 130, 122);
    margin-top: 0.5rem;
    border-radius: 3px;
    width: 290px;
}

.forum-header {
    padding: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    min-height: 16.7rem;
}

.title-forum {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 3.5rem;
    color: rgb(63, 63, 63);
    text-shadow: rgb(0, 0, 0) 1px 1px 0px;
    margin: 0;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.subtitle-forum {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    color: rgb(63, 63, 63);

} 

    .counters {
        background-color: #585858;
    }


/* === MESSAGES FORUM === */

.forum-message {
    background-color: #0c0c0ce3;
    padding: 0.75rem;
    border-radius: 2px;
    margin: 0 0.5rem 0.5rem 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #d3cece;

}

.forum-meta {
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
    font-size: 1rem;
}

.forum-user {
    font-weight: bold;
}

.forum-location {
    font-style: italic;
    opacity: 0.8;
}

.forum-date {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.forum-text {
    margin: 0;
    text-align: justify;
}


/* === Espace utilisateur === */

body.userSpace {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #2c2c2c 0%,
        #3f3f3f 40%,
        #5a5a5a 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-user{

    margin-bottom: 2rem;
    text-align: center;
}

[role="group"] button{
    display: inline-block;
    margin: 0;
}

/* ========================= */
/* 📱 VERSION MOBILE */
/* ========================= */
@media only screen and (max-width: 768px) {

    /* ===== STRUCTURE ===== */
    .blog-layout {
        grid-template-columns: 1fr;
        margin: 0 0.5rem;
    }
    .blog-left, .blog-right {
        display: block;
        width: 100%;
    }

    /* ===== BLOG ===== */
    .blog-article {
        display: none;
        padding: 1.5rem;
        font-size: 2rem;
        line-height: 1.6rem;
    }
    .blog-article:first-of-type {
        display: flex;
    }
    .blog-article h2 {
        font-size: 2rem;
        line-height: 2.2rem;
    }
    .title-blog {
        font-size: 9rem;
        margin: 1rem 0;
    }
    .citation {
        font-size: 0.9rem;
    }

    /* ===== FORUM ===== */
    .forum-section {
        width: 100%;
        margin: 2rem 0;
    }
    .forum-header {
        padding: 1.5rem 1rem;
    }
    .title-forum {
        font-size: 2.5rem;
        padding-top: 0.5rem;
    }
    .subtitle-forum {
        font-size: 1.1rem;
    }
    .forum-message {
        margin: 0 0 1rem 0;
        font-size: 0.95rem;
    }

    /* ===== ARCHIVES ===== */
    .blog-archives-links {
        width: 100%;
        margin: 1rem 0;
        font-size: 1.2rem;
    }
    .blog-archives-links a {
        padding: 0.75rem 0;
    }

    .subtitle-archives
    {
        font-size: 2.5rem;
    }

   .archiyear 
    {
        font-size: 2.5rem;
    }

    .blog-left .articles .article-wrapper {
        display: none;
    }
    .blog-left .articles .article-wrapper:first-child {
        display: block;
    }
    
    [role="group"] {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    [role="group"] a {
        flex: 1 1 100%;
    }
}