﻿:root {
    /* Background colors */
    --theme-bg-color: #FFFFFF;
    --bg-color: #f0f6f7;
    --postImportantTextBG: #c1d9e8;
    /* border */
    --FactoBoxBorderColor: #a0abe8;
    /* Textes et titres */
    --text-color: #000000;
    --title-color: #1667d6;
    --status-text: #C2C2C2;
}

[data-theme="dark"] {
    /* Background colors */
    --theme-bg-color: #000000;
    --bg-color: #303030;
    --postImportantTextBG: #e8c18e;
    /* border */
    --FactoBoxBorderColor: #d47a04;
    /* Textes et titres */
    --text-color: #ffffff;
    --title-color: #d47a04;
    --status-text: #C2C2C2;
}

    [data-theme="dark"] #MainLogo,
    [data-theme="dark"] #DynamicNavigBar .dynav-logo {
        filter: brightness(0) invert(1);
    }

    [data-theme="dark"] #loupe,
    [data-theme="dark"] #BtnLightMode,
    [data-theme="dark"] #BtnDarkMode,
    [data-theme="dark"] #Key,
    [data-theme="dark"] #imgRssTrigger,
    [data-theme="dark"] #DynBtnLightMode,
    [data-theme="dark"] #DynBtnDarkMode,
    [data-theme="dark"] #DynImgRss {
        filter: brightness(0.8) contrast(1.2) invert(1);
    }



body {
    /* Text content */
    font-family: "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-size: 18px;
    font-style: normal;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.p {
    font-family: "Trebuchet MS", sans-serif;
    /*font-optical-sizing: auto;*/
    font-size: 14px;
    font-style: normal;
}

h1 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}
.H1 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}
.Hr1 {
    border: 1px solid var(--text-color); /* Épaisseur de la bordure, couleur */
    height: 0; /* Supprime la hauteur par défaut */
    margin-top: 3px;
    margin-bottom: 15px;
}

h2 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 18px;
    font-weight: bold;
    color: var(--title-color);
    /*height: 18px;*/
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 0px;
}
.H2 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 18px;
    font-weight: bold;
    color: var(--title-color);
    height: 18px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 0px;
}
.Hr2 {
    border: 1px solid var(--title-color); /* Épaisseur de la bordure, couleur */
    height: 0; /* Supprime la hauteur par défaut */
    margin-top: 3px;
    margin-bottom: 5px;
}

h3 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
    font-weight: normal;
    color: var(--title-color);
}
.H3 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;
    font-weight: normal;
    color: var(--title-color);
}
.Hr3 {
    border: 1px solid var(--title-color); /* Épaisseur de la bordure, couleur */
    height: 0; /* Supprime la hauteur par défaut */
    margin-top: 3px;
    margin-bottom: 35px;
}

h4 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
    font-weight: normal;
    color: var(--title-color);
}

.H4 {
    font-family: "Josefin Sans", "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
    font-weight: normal;
    color: var(--title-color);
}

.Hr4 {
    border: 1px solid var(--title-color); /* Épaisseur de la bordure, couleur */
    height: 0; /* Supprime la hauteur par défaut */
    margin-top: 3px;
    margin-bottom: 35px;
}

.Untranslatedtext {
    color: red;
    font-weight: bold;
    font-style: italic;
    background-color: yellow;
}

.LittleText {
    font-family: "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-size: 10px;
    font-style: normal;
}

.grayText {
    color: var(--status-text);
}

.Star {
    cursor: pointer;
    /*width: 18px;
    height: 16px;*/
}

.NavigationPane {
    width: 100%; /* Forcez la largeur à 100% si nécessaire */
    box-sizing: border-box;
    align-items: center;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    align-items: center; /* Aligne tout verticalement 270326 */
    flex-wrap: wrap;
    align-items: center;
    border: solid 2px var(--bg-color);
    background-color: var(--theme-bg-color);
    border-radius: 3px;
}

.NavigationPaneCrumbs {
    align-items: center;
    display: flex; /* 270326 */
    align-items: center; /* 270326 */
    margin-right: auto;
    /*border: solid 1px Green;*/
    flex: 100;
}

.NavigationPaneLanguage {
    margin-left: auto;
    /*border: solid 1px Blue;*/
    /*flex: 10 50px; 270326*/
    display: flex; /* 270326 */
    align-items: center; /* 270326 */
}
.NavigationPaneLogIn {
    /*flex: 1; 270326 */
    /*border: solid 1px pink;*/
    display: flex; /* 270326 */
    align-items: center; /* 270326 */
}

/* Barre de navigation dynamique (article) */
#DynamicNavigBar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--theme-bg-color);
    border-bottom: 2px solid var(--bg-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    padding: 4px 16px;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}
#DynamicNavigBar.dynav-visible {
    display: flex;
}
#DynamicNavigBar .dynav-logo {
    height: 26px;
    width: auto;
    flex-shrink: 0;
}
#DynamicNavigBar .dynav-crumbs {
    flex: 1 1 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: .85rem;
}
#DynamicNavigBar .dynav-sep {
    flex-shrink: 0;
}
/* Breadcrumb inline (desktop) */
#DynamicNavigBar .dynav-crumb-inline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Toggle ⋯ : masqué sur desktop */
#DynCrumbToggle {
    display: none;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.2rem;
    padding: 0 4px;
    user-select: none;
    line-height: 1;
    color: var(--text-color);
    background: none;
    border: none;
}
/* Dropdown breadcrumb */
#DynCrumbDropdown {
    display: none;
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    background: var(--theme-bg-color);
    border-bottom: 2px solid var(--bg-color);
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
    padding: 10px 16px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    font-size: .9rem;
    flex-wrap: wrap;
}
#DynCrumbDropdown.dynav-drop-open {
    display: flex;
}
@media (max-width: 600px) {
    #DynamicNavigBar .dynav-crumbs {
        flex: 0 0 auto;
        overflow: visible;
    }
    #DynamicNavigBar .dynav-crumb-inline { display: none; }
    #DynCrumbToggle { display: inline-block; }
}

/* Pour les drapeaux et les icônes de mode  270326 */
#LanguageManagerButtons {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent !important; /* On laisse le parent gérer le fond */
    height: auto !important; /* Supprime le 25px fixe qui décale l'alignement */
}

/* Style pour tes futures icônes de mode 270326 >> */
.theme-toggle {
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    padding: 3px;
}
.theme-boutonSelected {
    border: solid 1px var(--accent-color) !important;
    border-radius: 3px;
    padding: 3px;
}
.theme-boutonUnSelected {
    border: none;
    padding: 3px;
}
/* Style pour tes futures icônes de mode 270326 << */


.MainDivBandot {
    /*border: 1px solid #000000;
    background-color: #000000;
    background-image: url('../Imgs/BandotFiller.svg');*/
    border: 1px solid var(--FactoBoxBorderColor);
    background-color: var(--theme-bg-color);
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    border-radius: 3px;
    background-repeat: repeat;
}
.MainDivPage {
    /*border: 1px solid #a0abe8;*/
    width: 98%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background-color: var(--theme-bg-color);
    border-radius: 3px;
    box-shadow: 0px 2px 8px 0px rgba(60, 64, 67, 0.25);
}
.MainDivContent {
    /*border: 1px solid red;*/
    width: 90%;
}

.MainDivContainer {
    width: 100%;
    box-sizing: border-box;
    /*border: solid 1px green;*/
    color: var(--title-color);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    gap: .3rem;
    border: solid 2px var(--bg-color);
    overflow: hidden;
    border-radius: 3px;
    padding: 4px;
}
.MainDivItem {
    border: 2px solid var(--title-color);
    /*flex: 1 1 auto;*/
    width: 30%;
    border-radius: 10px;
    padding: 4px;
}

.WebSiteVisitsItem {
    border: 2px solid var(--title-color);
    width: 80%;
    border-radius: 10px;
    padding: 4px;
    margin: 10px auto;
    text-align: center;
}



.ExpandableDiv {
    width: 100%;
    color: var(--title-color);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    gap: .3rem;
    border: solid 1px var(--FactoBoxBorderColor);
    border-radius: 10px;
    overflow: hidden;
}


.MenuItemLink {
    text-decoration: none;
    font-family: "Josefin Sans", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-color);
}

.CategoriesTitle {
    text-decoration: underline;
    font-family: "Josefin Sans", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--title-color);
}

.CategoriesText {
    /* Text content */
    text-decoration: none;
    font-family: "Josefin Sans", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: var(--text-color);
}
.CategoriesFooter {
    text-decoration: none;
    font-family: "Josefin Sans", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 10px;
    font-weight: normal;
    color: var(--text-color);
    text-align: right;
}

.CategoryDiv {
    /*width: 30%;*/
    flex: 1 200px;
    /*border: solid 1px #000000;*/
    border-radius: 10px;
    padding: 5px;
}

.MicroPostTitle {
    text-decoration: underline;
    font-family: "Josefin Sans", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--title-color);
    /*text-align: right;*/
}

.MicroPostContent {
    /* Text content */
    text-decoration: none;
    font-family: "Josefin Sans", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: var(--text-color);
}

.PostImgContainer {
    width: 98%;
    /*max-height: 300px;*/
    max-width: 99%;
    margin: 0 auto; /* Centre le conteneur horizontalement */
    /*border: 1px solid black;*/
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: stretch;
    height: 100%;
    justify-content: center;
}
.PostImgMainContainer {
    width: 98%;
    /*max-height: 300px;*/
    max-width: 99%;
    margin: 0 auto; /* Centre le conteneur horizontalement */
    /*border: 1px solid black;*/
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
}

.PostImg {
    max-width: calc(100% - 15px);
    /*max-width: 100%;*/
    max-height: 100%;
    width: auto; /* L'image prend toute la largeur du conteneur */
    height: auto; /* La hauteur s'ajuste automatiquement en fonction de la largeur, conservant le ratio */
    object-fit: contain; /* Assure que l'image est entièrement visible dans le conteneur, sans déformation */
    border: 1px solid var(--title-color);
    margin: 0px;
    /*display: block;  S'assure que l'image est un élément de bloc */
}
.PostImgTitleContainer {
    border: none;
    display: flex; /* Utilisation de flexbox */
    justify-content: center; /* Centre horizontalement l'élément */
    align-items: center;
    margin-top: -5px;
}

.PostImgTitle {
    background-color: var(--title-color);
    color: var(--theme-bg-color);
    /*padding: 1px;*/
    border-bottom-left-radius: 5px; /* Arrondi les coins inférieurs */
    border-bottom-right-radius: 5px;
    font-family: "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-size: 10px;
    font-style: normal;
    display: inline-block; /* Important: s'adapte à la largeur du texte */
    max-width: 100%; /* Important: ne dépasse pas la largeur de l'image */
    margin: 0px;
    padding: 2px;
    min-width: 100px;
    max-width: 300px;
    /*margin-top: -5px; important, colle le titre à l'image*/
}

.PostImportantText {
    border: 2px solid var(--title-color);
    border-radius: 5px;
    padding: 10px;
    background-color: var(--postImportantTextBG);
    margin: 10px;
}

/* Maillage automatique : terme lié à un label */
a.label-link {
    color: var(--text-color);
    text-decoration: underline;
    text-decoration-color: var(--title-color);
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    font-style: italic;
    transition: color 0.18s, text-decoration-style 0.18s;
}
a.label-link:hover {
    color: var(--title-color);
    text-decoration-style: solid;
    text-decoration-thickness: 2px;
}

/* Lien interne éditorial [Linkurl]...[Linktext]...[linkend] */
a.InternalLink {
    color: var(--title-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    font-weight: 500;
    transition: opacity 0.18s;
}
a.InternalLink:hover {
    opacity: 0.72;
    text-decoration-thickness: 2px;
}

.PostFooterName {
    font-family: "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-size: 18px;
    font-weight: bold;
    font-style: normal;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 10px;
}
.PostFooterTitle {
    font-family: "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    color: var(--text-color);
    font-size: 14px;
    font-style: normal;
}
.PostFooterCompany {
    font-family: "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-size: 14px;
    font-style: normal;
    color: var(--title-color);
}

.PostFooterSignature {
    width: 220px;
    background-color: var(--theme-bg-color);
    text-align: left;
    margin-left: 10px;
    padding-top: 4px;
}

.PostFooterSquare {
    border: 2px solid var(--postImportantTextBG);
    border-radius: 10px;
    /*padding: 4px;*/
    width: 250px;
}

.TinyBar {
    display: flex;
    justify-content: flex-start;
    border: 1px solid black;
}
.TinyBarElement {
    margin-right: 10px;
    width: auto;
    flex-shrink: 0;
    margin-bottom: 10px;
    border: 1px solid red;
}

#txtSearch {
    color: var(--status-text); /* Couleur du texte par défaut */
}

#txtSearch:focus {
    color: var(--text-color); /* Couleur du texte après le focus */
}

.social-share {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.share-btn img {
    width: 32px;
    height: 32px;
    transition: transform .2s;
}

.share-btn:hover img {
    transform: scale(1.1);
}

#Post_DansTaLng {
    border: 2px solid var(--postImportantTextBG);
    border-radius: 10px;
    padding: 4px;
}


#Post_dynamicList a {
    /* La taille de la police sera 2% de la largeur de la fenêtre (viewport width) */
    font-size: 2vw;
    /* Utiliser clamp() pour définir les limites CSS (min/préférée/max) */
    /* Signifie : Min 14px, idéalement 2vw, Max 24px */
    font-size: clamp(14px, 2vw, 18px);
}


.NavIndexContainer {
    border: 1px solid var(--status-text);
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
    height: 1px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    /*padding-top: 10px;*/
    /*padding-bottom: 10px;*/
    padding-left: 2px;
}

.PostIndex {
    list-style: none; /* Supprime la puce par défaut */
    padding-left: 0; /* Supprime tout le padding par défaut */
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
}
.PostIndexItem {
    list-style-position: inside;
    padding-left: 1px; /* Espace pour le texte */
}
.PostIndexItemH1 {
    list-style-position: inside;
    padding-left: 1px; /* Espace pour le texte */
}
.PostIndexItemH2 {
    list-style-position: inside;
    padding-left: 15px; /* Espace pour le texte */
}
.PostIndexItemH3 {
    list-style-position: inside;
    padding-left: 30px; /* Espace pour le texte */
}
.PostIndexItemH4 {
    list-style-position: inside;
    padding-left: 45px; /* Espace pour le texte */
}

.ImgRightsLabel {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 8px;
    color: #888;
    /* Modifiez le padding : */
    padding: 0 0 0 5px; /* Garde 5px d'espace à l'extrémité de la ligne, mais supprime l'espace entre le texte et l'image */
    flex-shrink: 0;
    text-align: right;
    /* Ajout optionnel pour le positionnement : */
    align-self: stretch; /* S'assurer qu'il prend toute la hauteur pour que l'alignement right fonctionne bien */
}

.NavigCursorClicable {
    cursor: pointer;
    color: var(--bg-color);
    text-decoration: underline;
    display: inline;
}
.NavigCursorUnclicable {
    cursor: default;
    color: var(--status-text);
    opacity: 0.6;
    text-decoration: none;
    display: inline;
    pointer-events: none;
}



.MainFooter {
    display: flex;
    flex-direction: column; /* Force l'alignement vertical par défaut */
    gap: 15px; /* Espace entre les blocs */
    width: 100%;
}

.MainFooterDivItem {
    font-family: "Trebuchet MS", sans-serif;
    font-size: 18px;
    border: 2px solid var(--title-color);
    border-radius: 10px;
    padding: 10px;
    width: 100%; /* Prend toute la largeur sur mobile */
    box-sizing: border-box; /* Crucial pour que padding+border ne dépassent pas */
}

/* étiquette de paragraphe >> */
.tag-label {
    display: inline-block;
    position: relative;
    padding: 0px 5px 0px 15px; /* Plus d'espace à gauche pour le trou */
    background-color: #f5f5f5; /* Gris très pâle */
    border: 1px solid #e0e0e0; /* Bord légèrement plus foncé */
    border-radius: 4px; /* Coins arrondis légers */
    color: #666; /* Texte gris assorti */

    font-family: sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

    /* Le trou de l'étiquette */
    .tag-label::before {
        content: "";
        position: absolute;
        left: 3px; /* Positionnement à gauche */
        top: 6px;
        transform: translateY(-50%);
        width: 4px; /* Taille du trou */
        height: 4px;
        background-color: #fff; /* Couleur du fond de la page (simule le vide) */
        border: 1px solid #e0e0e0; /* Même bordure que l'étiquette */
        border-radius: 50%; /* Cercle parfait */
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); /* Optionnel: léger creux */
    }
/* étiquette de paragraphe << */



@media (max-width: 768px) {
    .MainDivItem {
        width: calc(50% - 20px);
    }
}

@media (max-width: 500px) {
    .MainDivItem {
        width: 100%;
    }
}

@media screen and (min-width: 800px) {
    .MainFooter {
        flex-direction: row; /* Aligne horizontalement */
        flex-wrap: wrap; /* Permet de passer à la ligne après 2 éléments */
        justify-content: space-between;
    }

    .MainFooterDivItem {
        /* On calcule 50% moins l'espace du gap pour en mettre max 2 par ligne */
        width: calc(50% - 10px);
    }

    .PostImg {
        max-width: 70%;
        width: auto;
        height: auto;
    }

    .TextBoxSeach {
        border: solid 1px var(--text-color);
        background-color: var(--theme-bg-color);
        border-radius: 25px;
        min-width: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 3px;
    }
    #txtSearch {
        background-color: var(--theme-bg-color);
        color: var(--status-text);
    }
}