/*
 * Module 4008 — lot B : gabarits (section principale, barre latérale, titre de page, listes d'articles, article,
 * pagination, navigation, commentaires, pages sans résultat, pièce jointe, base de connaissances, fenêtres de
 * connexion, diaporama, visionneuse, vidéo au clic, rangées en mosaïque).
 * Couleurs : variables --e1rf-4008-* de base.css (lot A), avec valeurs de repli.
 */

/* Section principale et barre latérale (tpl-full-width, tpl-left-sidebar, tpl-right-sidebar) */
#content { background: var(--e1rf-4008-default-background-color, #fff); min-height: 60vh; } /* Agent X : fond de contenu de l'original (blanc par defaut, fond par page conserve) */
#content #main-container { display: flex; flex-wrap: wrap; align-items: flex-start; }
#content .main { flex: 1 1 0; min-width: 0; }
#content .content-wrap { width: 100%; }
#content .sidebar { flex: 0 0 300px; max-width: 100%; padding: 30px 20px; }
#content.tpl-left-sidebar .sidebar { order: -1; }
#content .main-content { padding-top: 30px; padding-bottom: 30px; }
#content .container-fluid { padding-left: 30px; padding-right: 30px; margin: 0 auto; }
#content #footer { flex: 0 0 100%; }
@media (max-width: 991px) {
  #content #main-container { display: block; }
  #content .sidebar { width: 100%; }
}
.sidebar .widget { margin-bottom: 30px; }
.sidebar .widget-title, .sidebar .widgettitle { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 15px; }

/* Titre de page */
#page-title.page-title-colors { background: var(--e1rf-4008-titre-fond, #fff); color: var(--e1rf-4008-titre-texte, #333); border-bottom: 1px solid var(--e1rf-4008-bordure, #e6e8ef); }
#page-title > .container-fluid { padding: 25px 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 15px; }
#page-title h1 { margin: 0; font-size: 22px; line-height: 1.3; color: var(--e1rf-4008-titre-titre, inherit); }
#page-title > .container-fluid > span { color: var(--e1rf-4008-titre-secondaire, #999); }
#page-title .breadcrumb { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; }
#page-title .breadcrumb li + li::before { content: "/"; padding: 0 6px; color: var(--e1rf-4008-titre-secondaire, #bbb); }
#page-title .breadcrumb a { color: var(--e1rf-4008-titre-lien, inherit); }
#page-title .breadcrumb .active { color: var(--e1rf-4008-titre-secondaire, #999); }
#page-title.blog-full { position: relative; padding-bottom: 0; }
#page-title.blog-full .entry-image img { display: block; width: 100%; height: auto; }
#page-title.blog-full .entry-meta { padding: 0 30px 15px; }

/* Listes d'articles (small-thumbs) */
#posts.small-thumbs article, .small-thumbs > article { display: flex; gap: 25px; background: var(--e1rf-4008-carte-fond, #fff); padding: 25px; margin-bottom: 25px; border-radius: 3px; }
#posts.small-thumbs .entry-image { flex: 0 0 280px; max-width: 40%; }
#posts.small-thumbs .entry-image:empty { display: none; }
#posts.small-thumbs .entry-image img, .small-thumbs .entry-image img { display: block; width: 100%; height: auto; }
.small-thumbs .entry-c { flex: 1 1 0; min-width: 0; }
.small-thumbs .entry-title h2, .small-thumbs .entry-header .entry-title { font-size: 20px; margin: 0 0 10px; }
.small-thumbs .more-link { white-space: nowrap; }
.small-thumbs blockquote { margin: 0; padding: 15px 20px; border-left: 4px solid var(--e1rf-4008-accent, #3e4fe0); }
.panel.panel-default { border: 1px solid var(--e1rf-4008-bordure, #e6e8ef); border-radius: 3px; }
.panel.panel-default .panel-body { padding: 15px; }
@media (max-width: 767px) {
  #posts.small-thumbs article, .small-thumbs > article { display: block; }
  #posts.small-thumbs .entry-image { max-width: none; margin-bottom: 15px; }
}
body.single .small-thumbs > article { display: block; }
body.single .small-thumbs .entry-image { margin-bottom: 20px; }

/* Métadonnées */
.entry-meta { list-style: none; margin: 0 0 15px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 15px; font-size: 13px; color: var(--e1rf-4008-texte-secondaire, #999); }
.entry-meta li { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta .meta-avatar img { width: 25px; height: 25px; border-radius: 50%; }
.entry-meta a { color: inherit; }
.entry-meta .hide, .entry-meta .hidden { display: none; }

/* Pagination et articles voisins */
.pagination-nav { margin: 30px 0; }
.pagination-nav .pagination { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pagination-nav .pagination li > * { display: inline-block; min-width: 36px; padding: 7px 10px; text-align: center; background: var(--e1rf-4008-carte-fond, #fff); border-radius: 3px; text-decoration: none; }
.pagination-nav .pagination .current { background: var(--e1rf-4008-accent, #3e4fe0); color: #fff; }
.pagination-sticky { display: flex; justify-content: space-between; gap: 15px; margin: 30px 0; }
.pagination-sticky a { display: inline-block; padding: 10px 18px; background: var(--e1rf-4008-carte-fond, #fff); border-radius: 3px; text-decoration: none; }
.pagination-sticky a[rel="next"] { margin-left: auto; }

/* Commentaires */
.comments-area { background: var(--e1rf-4008-carte-fond, #fff); padding: 25px; margin-top: 25px; border-radius: 3px; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-list .children { list-style: none; padding-left: 40px; }
.comments-area .avatar { border-radius: 50%; float: left; margin-right: 15px; }
.comments-area .comment-body { overflow: hidden; padding: 15px 0; border-bottom: 1px solid var(--e1rf-4008-bordure, #e6e8ef); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; margin: 15px 0; }

/* Pages sans résultat (recherche, 404) */
.no-result-page-wrapper { text-align: center; padding: 40px 0; }
.no-result-page-wrapper .row { display: flex; justify-content: center; }
.no-result-page-wrapper .row > div { width: 100%; max-width: 420px; }
.no-result-page-wrapper .e1rf-4008-illustration { width: 160px; height: 160px; color: var(--e1rf-4008-accent, #3e4fe0); margin-bottom: 20px; }
.no-result-page-wrapper h1 { font-size: 24px; margin: 0 0 10px; }
.no-result-page-wrapper .search-form { margin: 20px 0; }

/* Formulaire de recherche */
.search-form { position: relative; display: flex; }
.search-form label { flex: 1 1 auto; margin: 0; }
.search-form .search-field { width: 100%; padding: 10px 44px 10px 14px; border: 1px solid var(--e1rf-4008-bordure, #e6e8ef); border-radius: 3px; }
.search-form .search-submit { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; border: 0; background: transparent; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.e1rf-4008-evitement:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 100000; padding: 10px 15px; background: #fff; }

/* Pièce jointe */
.entry-attachment .attachment img { max-width: 100%; height: auto; }
.image-navigation .nav-links { display: flex; justify-content: space-between; margin: 20px 0; }

/* Base de connaissances (archive) */
.kb-archive-listing { list-style: none; margin: 0; padding: 0; }
.kb-archive-listing li { background: var(--e1rf-4008-carte-fond, #fff); padding: 20px 25px; margin-bottom: 15px; border-radius: 3px; }
.kb-archive-listing h2 { font-size: 18px; margin: 0 0 8px; }

/* Fenêtres de connexion et de mot de passe oublié */
.kleo-form-modal[hidden], .mfp-hide { display: none !important; }
.e1rf-4008-voile { position: fixed; inset: 0; background: rgba(12, 14, 56, .7); z-index: 99990; display: none; }
.e1rf-4008-voile.e1rf-4008-actif { display: block; }
.kleo-form-modal.e1rf-4008-ouverte { display: block !important; position: fixed; z-index: 99991; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 30px); max-width: 420px; max-height: calc(100vh - 30px); overflow: auto; background: var(--e1rf-4008-carte-fond, #fff); border-radius: 4px; }
html.e1rf-4008-fenetre-ouverte { overflow: hidden; }
.e1rf-4008-fermer { position: absolute; top: 5px; right: 8px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: inherit; }
.kleo-login-wrap .login-form-wrapper { padding: 30px; }
.kleo-pop-title { margin: 0 0 20px; font-size: 18px; }
.login-input-wrapper { position: relative; display: block; margin-bottom: 20px; }
.login-input-wrapper .login-field { width: 100%; padding: 22px 12px 8px; border: 1px solid var(--e1rf-4008-bordure, #e6e8ef); border-radius: 3px; background: transparent; }
.login-input-wrapper .login-label { position: absolute; left: 12px; top: 15px; pointer-events: none; transition: all .15s; color: var(--e1rf-4008-texte-secondaire, #999); }
.login-input-wrapper .login-field:focus + .login-label, .login-input-wrapper .login-field:valid + .login-label { top: 5px; font-size: 11px; }
.btn.login-button { display: block; width: 100%; padding: 12px; border: 0; border-radius: 3px; background: var(--e1rf-4008-accent, #3e4fe0); color: #fff; font-size: 16px; cursor: pointer; }
.fancy-checkbox { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 13px; }
.fancy-checkbox label { display: none; }
.fancy-checkbox .kleo-other-action { margin-left: auto; }
.kleo-other-action { display: inline-block; margin-top: 12px; font-size: 13px; }
.kleo-result:empty { display: none; }
.kleo-result { margin-bottom: 15px; padding: 10px; border-radius: 3px; background: var(--e1rf-4008-fond-contenu, #f5f6fa); }
.login-create-account-wrapper { padding: 15px 30px; border-top: 1px solid var(--e1rf-4008-bordure, #e6e8ef); font-size: 13px; }
.login-demo-info { padding: 10px 15px; margin-bottom: 15px; background: var(--e1rf-4008-fond-contenu, #f5f6fa); }

/* Diaporama des articles au format galerie */
.fslider .flexslider { position: relative; }
.fslider .slider-wrap { position: relative; }
.fslider .slide { display: none; }
.fslider .slide.e1rf-4008-active { display: block; animation: e1rf-4008-fondu .6s ease; }
.fslider .slide img { display: block; width: 100%; height: auto; }
.fslider .flex-control-nav { position: absolute; bottom: 10px; left: 0; right: 0; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.fslider .flex-control-nav button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); text-indent: -999px; overflow: hidden; cursor: pointer; }
.fslider .flex-control-nav button.flex-active { background: #fff; }
.fslider .flex-prev, .fslider .flex-next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0, 0, 0, .4); color: #fff; width: 36px; height: 36px; cursor: pointer; }
.fslider .flex-prev { left: 10px; }
.fslider .flex-next { right: 10px; }
@keyframes e1rf-4008-fondu { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fslider .slide.e1rf-4008-active { animation: none; } }

/* Visionneuse */
.e1rf-4008-visionneuse { position: fixed; inset: 0; z-index: 99995; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; }
.e1rf-4008-visionneuse img { max-width: 90vw; max-height: 90vh; }
.e1rf-4008-visionneuse button { position: absolute; border: 0; background: transparent; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 16px; }
.e1rf-4008-v-fermer { top: 10px; right: 10px; }
.e1rf-4008-v-prec { left: 10px; top: 50%; transform: translateY(-50%); }
.e1rf-4008-v-suiv { right: 10px; top: 50%; transform: translateY(-50%); }

/* Vidéo chargée au clic */
.e1rf-4008-video { position: relative; aspect-ratio: 16 / 9; background: #111; display: flex; align-items: center; justify-content: center; }
.e1rf-4008-video-lire { border: 0; border-radius: 3px; padding: 12px 22px; background: var(--e1rf-4008-accent, #3e4fe0); color: #fff; cursor: pointer; }
.e1rf-4008-video-chargee { display: block; background: none; }
.e1rf-4008-video-chargee iframe, .e1rf-4008-video-chargee video { width: 100%; height: 100%; border: 0; }

/* Rangées WPBakery : mosaïque et sans marges horizontales */
.no-horizontal-padding > .wpb_column > .vc_column-inner, .no-horizontal-padding > .vc_column_container > .vc_column-inner { padding-left: 0; padding-right: 0; }

/* Corrections pilote 2636 (03/12/2026) : bandeau de titre et marges d'origine (mesures de l'original) */
body.e1rf-4008 #page-title.page-title-colors { --e1rf-4008-titre-fond: #fafafa; background: var(--e1rf-4008-titre-fond); padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
body.e1rf-4008 #page-title.page-title-colors > .container-fluid { display: block; padding: 0 40px; }
body.e1rf-4008 #page-title.page-title-colors h1 { font-family: var(--e1rf-4008-heading-font, Montserrat), sans-serif; font-size: 28px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 1px; color: var(--e1rf-4008-default-heading-color, #513750); margin: 0 0 10px; }
body.e1rf-4008 #page-title.page-title-colors .breadcrumb { display: flex; flex-wrap: wrap; justify-content: flex-start; margin: 0; padding: 0; font-size: 13px; font-style: italic; color: rgba(0,0,0,.55); background: none; }
body.e1rf-4008 #page-title.page-title-colors .breadcrumb a { color: rgba(0,0,0,.55); }
body.e1rf-4008 .main-content.container-fluid { padding: 40px; }

/* Corrections pilote 2636 (03/12/2026), passe 2 : forums bbPress aux mesures de l'original */
body.e1rf-4008 #bbpress-forums { font-size: 16px; }
body.e1rf-4008 #bbpress-forums ul.bbp-forums, body.e1rf-4008 #bbpress-forums ul.bbp-topics, body.e1rf-4008 #bbpress-forums ul.bbp-replies, body.e1rf-4008 #bbpress-forums ul.bbp-search-results { border: 1px solid #eee; font-size: 14px; margin-bottom: 20px; }
body.e1rf-4008 #bbpress-forums li.bbp-header, body.e1rf-4008 #bbpress-forums li.bbp-footer { background: transparent; border-top: 0; padding: 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: #727272; }
body.e1rf-4008 #bbpress-forums li.bbp-body ul.forum, body.e1rf-4008 #bbpress-forums li.bbp-body ul.topic { padding: 12px; border-top: 1px solid #eee; }
body.e1rf-4008 #bbpress-forums ul.odd, body.e1rf-4008 #bbpress-forums div.odd { background: rgba(0,0,0,.01); }
body.e1rf-4008 #bbpress-forums ul.even, body.e1rf-4008 #bbpress-forums div.even { background: #fff; }
body.e1rf-4008 #bbpress-forums .bbp-forum-content, body.e1rf-4008 #bbpress-forums .bbp-topic-meta { font-size: 13px; }
body.e1rf-4008 #bbpress-forums a.bbp-forum-title, body.e1rf-4008 #bbpress-forums a.bbp-topic-permalink { font-size: 13px; color: var(--e1rf-4008-default-heading-color, #513750); }
body.e1rf-4008 #bbpress-forums .bbp-forum-topic-count, body.e1rf-4008 #bbpress-forums .bbp-forum-reply-count, body.e1rf-4008 #bbpress-forums .bbp-forum-freshness, body.e1rf-4008 #bbpress-forums .bbp-topic-voice-count, body.e1rf-4008 #bbpress-forums .bbp-topic-reply-count, body.e1rf-4008 #bbpress-forums .bbp-topic-freshness { font-size: 13px; font-weight: 600; text-align: center; color: var(--e1rf-4008-default-heading-color, #513750); }
body.e1rf-4008 #bbpress-forums .bbp-forum-freshness a, body.e1rf-4008 #bbpress-forums .bbp-topic-freshness a { font-size: 10px; font-weight: 400; font-style: italic; color: #666; }
body.e1rf-4008 #bbpress-forums .bbp-forums-list { background: rgba(0,0,0,.01); border-left: 0; padding: 0 0 0 15px; font-size: 14px; }
body.e1rf-4008 #bbpress-forums #subscription-toggle, body.e1rf-4008 #bbpress-forums #favorite-toggle { float: none; }
body.e1rf-4008 #bbpress-forums #subscription-toggle a { display: inline-block; margin: 20px 0; padding: 4px 20px; border: 1px solid var(--e1rf-4008-input-border-color, #ba9ab9); border-radius: 35px; font-size: 12px; text-transform: uppercase; color: var(--e1rf-4008-default-heading-color, #513750); }
body.e1rf-4008 #bbpress-forums div.bbp-template-notice { background: #f0f8ff; border: 0; border-radius: 0; padding: 0 10px; margin: 5px 0 20px; color: #000; }
body.e1rf-4008 #bbp-search-form input[type="text"] { display: block; width: 100%; margin: 0 0 20px; }
body.e1rf-4008 #bbp-search-form { margin: 0 0 30px; }

/* Corrections pilote 2636 (03/12/2026), passe 3 : forums bbPress (la feuille bbPress par defaut est plus specifique) */
body.e1rf-4008 #bbpress-forums #bbp-search-form #bbp_search { display: block; width: 100%; height: 40px; margin: 0 0 20px; }
body.e1rf-4008 #bbpress-forums .bbp-pagination-count { padding: 10px 0 15px; font-size: 12px; font-style: italic; color: rgba(0,0,0,.7); }
body.e1rf-4008 #bbpress-forums div.bbp-reply-header { padding: 8px; font-size: 14px; background: transparent; }
body.e1rf-4008 #bbpress-forums span.bbp-admin-links { color: #ddd; font-size: 14px; }
body.e1rf-4008 #bbpress-forums span.bbp-admin-links a { font-size: 12px; text-transform: uppercase; color: #727272; }
body.e1rf-4008 #bbpress-forums .bbp-author-role { font-size: 11px; font-style: italic; }

/* Agent X (03/12/2026) : marge du contenu de 40 px sur tous les modeles, comme l'original */
body.e1rf-4008 #content .main-content.container-fluid{padding:40px}
/* Agent X : telephone, marges du contenu 40 px en haut et en bas, 20 px sur les cotes (original) */
@media (max-width:767px){body.e1rf-4008 #content .main-content.container-fluid{padding:40px 20px}}
/* Agent X : en-tetes des listes de forums en casse normale, tronques par des points de suspension sur une ligne (original) */
body.e1rf-4008 #bbpress-forums li.bbp-header li,body.e1rf-4008 #bbpress-forums li.bbp-header div{text-transform:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Forums : avatars comme l'origine (40 px, nom a cote) (finition 04/12). */
body.e1rf-4008 #bbpress-forums div.bbp-reply-author img.avatar, body.e1rf-4008 #bbpress-forums div.bbp-topic-author img.avatar { width: 40px; height: 40px; max-width: 40px; border-radius: 50%; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
body.e1rf-4008 #bbpress-forums div.bbp-reply-author a.bbp-author-link, body.e1rf-4008 #bbpress-forums div.bbp-topic-author a.bbp-author-link { display: inline-flex; align-items: center; }
body.e1rf-4008 #bbpress-forums .bbp-forum-freshness img.avatar, body.e1rf-4008 #bbpress-forums .bbp-topic-freshness img.avatar, body.e1rf-4008 #bbpress-forums p.bbp-topic-meta img.avatar { width: 40px; height: 40px; max-width: 40px; border-radius: 50%; vertical-align: middle; }

/* PAGES-2 (04/12) : fil d'Ariane, meta d'article, navigation et pied de sujet identiques a l'original. */
body.e1rf-4008 ol.breadcrumb{display:block;}
body.e1rf-4008 ol.breadcrumb > li{display:inline-block;}
body.e1rf-4008 ul.entry-meta{display:block;}
body.e1rf-4008 ul.entry-meta > li{display:inline;font-size:12px;}
body.e1rf-4008 ul.entry-meta > li a{display:inline;}
body.e1rf-4008 .outter-title{text-transform:uppercase;font-size:11px;}
body.e1rf-4008 #bbpress-forums li.bbp-footer, body.e1rf-4008 #bbpress-forums li.bbp-footer *{text-transform:none;}
/* PAGES-2 : separateurs de la meta d'article (« admin / date / commentaires ») comme l'original. */
body.e1rf-4008 ul.entry-meta > li + li::before{content:"/";margin:0 8px;color:#ccc;}
/* derniers ecarts 04/12 : fil d'Ariane en ligne (prioritaire sur la regle #page-title.page-title-colors) */
body.e1rf-4008 #page-title.page-title-colors ol.breadcrumb, body.e1rf-4008 #page-title ol.breadcrumb { display: block; }
body.e1rf-4008 #page-title.page-title-colors ol.breadcrumb > li, body.e1rf-4008 #page-title ol.breadcrumb > li { display: inline-block; }
/* derniers ecarts 04/12 : bouton M'abonner avec icone comme l'original */
body.e1rf-4008 #bbpress-forums #subscription-toggle a, body.e1rf-4008 #bbpress-forums a.subscription-toggle { position: relative; padding-left: 40px; text-transform: uppercase; }
body.e1rf-4008 #bbpress-forums #subscription-toggle a::before, body.e1rf-4008 #bbpress-forums a.subscription-toggle::before { content: ""; position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 10.6 22 3l-7.6 18-3.2-7.3zm9.9 2.1 2.3 5.2 5.1-12.3-12.2 4.9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 10.6 22 3l-7.6 18-3.2-7.3zm9.9 2.1 2.3 5.2 5.1-12.3-12.2 4.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
