/* site.css — styles maison, auparavant en <style> inline dans base.html.twig (chantier 2, 2026-11-25).
 * Chargé juste après accessibility.css : même rang dans la cascade qu'avant. */

/* ==== autocomplétion, compteurs de catégories ==== */
/* Autocomplete — dropdown sous le moteur de recherche de la sidebar */
.search-form { position: relative; }
.ac-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 5px; background: #fff; border: 1px solid #eee; border-radius: 10px; z-index: 1000; max-height: 380px; overflow: auto; box-shadow: 0 10px 28px rgba(60,40,20,.14); }
/* Autocomplete dans le panneau de recherche mobile : le dropdown s'écoule SOUS le
   champ (statique), pas en absolu (le panneau est une feuille basse avec overflow). */
.mobile-panel_searchwrap { position: relative; }
.mobile-panel .ac-results { position: static; margin-top: 12px; max-height: 48vh; box-shadow: none; border-color: #ece1d3; }
.ac-item { display: block; padding: .62rem .85rem; color: #3a3a3a; text-decoration: none; border-bottom: 1px solid #f5f1ec; transition: background .15s ease; }
.ac-item:last-child { border-bottom: 0; }
.ac-item.is-active, .ac-item:hover { background: #fcf4ec; }
.ac-title { display: block; font: 600 13px/1.4 Comfortaa, sans-serif; color: #333; }
.ac-cat { display: block; font-size: 10.5px; color: #c0792f; margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
mark, .search-results mark, .ac-results mark { background: #ffe6b8; color: inherit; padding: 0 .14em; border-radius: 2px; }
.badge-count { font-size: .72em; color: #b8aa9a; font-weight: 400; }
.widget_categories .cat-count-side { color: #b0784a; font-size: .9em; margin-left: 2px; }
.widget_categories .cat-count-side strong { font-weight: 700; }
/* Compteur d'articles dans le sous-menu orange : blanc lisible (au lieu du beige illisible) */
.sub-menu a .badge-count { color: #fff; font-weight: 700; font-size: 1em; opacity: .92; }

/* ==== options du thème (ex-« Cherry options ») ==== */
.title-box_primary {
    font-size: 35px;
}

.post-title, .widget-title, .title-header {
    font-size: 25px;
}

.posts-grid h5, .post-list_h {
   font-size: 20px;
}

blockquote p {
    font-size: 14.5px;
}

.post .btn-primary, .nocomments {
    display: none;
}

.post_content p, .post_content li, .circle-arrow-list li {
    color: #000;
}

.post_content div.excerpt p {
   color: #969696;
}

.link_show_all {
    text-transform: none;
}

.sf-menu ul {
    width: 20em;
}

.post-list .name-testi span.user {
   font-size: 14px;
   font-weight: 600;
   color: #272727;
}

/* ==== typographie du thème ==== */
h1 { font: bold 30px/35px Comfortaa;  color:#333333; }
h2 { font: bold 22px/22px Comfortaa;  color:#333333; }
h3 { font: bold 24px/29px Comfortaa;  color:#333333; }
h4 { font: bold 14px/18px Comfortaa;  color:#333333; }
h5 { font: bold 12px/18px Comfortaa;  color:#333333; }
h6 { font: bold 12px/18px Comfortaa;  color:#333333; }
body { font-weight: normal;}
.logo_h__txt, .logo_link { font: normal 30px/32px Sacramento, cursive;  color:#FFFFFF; }
.sf-menu > li > a { font: bold 14px/18px Comfortaa;  color:#292929; }
.nav.footer-nav a { font: normal 14px/18px Open Sans;  color:#969696; }

/* ==== barre d'outils catégorie, grille/liste, recherche, annuaire ==== */
/* Barre d'outils catégorie (compteur · tri · grille/liste) */
.category-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 28px; padding: 0 0 16px; border-bottom: 1px solid #ededed; }
.category-count { font: 600 12.5px/1 Comfortaa, sans-serif; color: #b0784a; text-transform: uppercase; letter-spacing: .06em; }
.category-controls { display: flex; align-items: center; gap: 12px; }
.category-sort { margin: 0; }
/* Select de tri : on neutralise le style global du thème (padding 14px, color #969696,
   appearance native) qui rognait le libellé, et on pose une flèche custom. */
.category-sort select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    font: 13px/1.2 Comfortaa, sans-serif !important;
    height: 40px !important;
    min-width: 168px;
    margin: 0 !important;
    padding: 0 38px 0 14px !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px !important;
    color: #5a5145 !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b0784a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 13px center !important;
    background-size: 12px 8px !important;
    box-shadow: none !important;
    cursor: pointer;
}
.category-sort select:focus { outline: none; border-color: #d06e0a !important; color: #5a5145 !important; }
.view-switch { display: inline-flex; border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; height: 40px; }
.view-switch_btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 100%; border: 0; background: #fff; color: #bdbdbd; padding: 0; margin: 0; cursor: pointer; font-size: 15px; line-height: 1; transition: color .15s ease, background .15s ease; }
.view-switch_btn + .view-switch_btn { border-left: 1px solid #ededed; }
.view-switch_btn:hover { color: #d06e0a; }
.view-switch_btn[aria-pressed="true"] { background: #d06e0a; color: #fff; }

/* Liste d'articles : vue liste (rendu natif) vs vue grille (cartes douces) */
.posts.view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; }
.posts.view-grid .post_wrapper { margin: 0; padding: 0; border: 0; background: none; }
.posts.view-grid .post__holder { display: flex; flex-direction: column; }
.posts.view-grid .post_content, .posts.view-grid .post_meta, .posts.view-grid .video-wrap { display: none; }
.posts.view-grid .post-header { order: 2; }
.posts.view-grid .featured-thumbnail { order: 1; margin: 0 0 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 7px 20px rgba(60,40,20,.10); }
.posts.view-grid .featured-thumbnail img { width: 100%; height: 165px; object-fit: cover; display: block; transition: transform .5s ease; }
.posts.view-grid .post_wrapper:hover .featured-thumbnail img { transform: scale(1.06); }
.posts.view-grid .post-header { text-align: center; }
/* En grille on neutralise le style « titre d'article » plein écran du thème
   (padding 0 88px + margin 45px + display inline-block) qui écrasait le texte
   mot par mot, et on masque les ornements (title-left/right.png) inutiles ici. */
.posts.view-grid .post-title {
    display: block !important;
    padding: 0 6px !important;
    margin: 12px 0 0 !important;
    font-size: 15.5px !important;
    line-height: 1.45 !important;
}
.posts.view-grid .post-title:before,
.posts.view-grid .post-title:after { content: none !important; display: none !important; }
.posts.view-grid .post-title a { color: #3a3a3a; }
.posts.view-grid .post-title a:hover { color: #d06e0a; }
.posts.view-list .post-title a { color: #333; }
.posts.view-list .post-title a:hover { color: #d06e0a; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Pagination : espace au-dessus (sinon collée aux cartes de la grille) */
.pagination.pagination__posts { margin-top: 40px; clear: both; }

/* Encart « Continuer dans » (découverte) */
.continue-in { margin-top: 42px; padding-top: 28px; border-top: 1px solid #ededed; }
.continue-in h2 { font-size: 20px; color: #b0784a; margin: 0 0 18px; }
.continue-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.continue-grid a { display: block; color: #3a3a3a; text-decoration: none; }
.continue-grid img { width: 100%; height: 115px; object-fit: cover; border-radius: 10px; box-shadow: 0 5px 14px rgba(60,40,20,.09); margin-bottom: 9px; transition: transform .4s ease; }
.continue-grid a:hover img { transform: translateY(-3px); }
.continue-grid span { font: 600 13px/1.35 Comfortaa, sans-serif; }
.continue-grid a:hover span { color: #d06e0a; }
.continue-cta { display: inline-block; }

/* Page résultats de recherche */
.search-count { font: 600 12.5px/1 Comfortaa, sans-serif; color: #b0784a; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; }
.search-snippet { color: #6a6a6a; }
.search-empty { color: #888; font-size: 15px; }

/* ===== Page « Tous les articles par catégorie » (annuaire UX) ===== */
.cat-index { position: relative; }

/* Barre de contrôle collante : filtre live + chips d'ancrage */
.cat-index_bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 30px; padding: 14px 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid #efe6db; }
.cat-index_search { position: relative; display: flex; align-items: center; flex: 0 0 320px; max-width: 100%; }
.cat-index_search .icon-search { position: absolute; left: 15px; top: 22px; transform: translateY(-50%); color: #c4ad97; font-size: 14px; pointer-events: none; }
.cat-index_search input { display: block; box-sizing: border-box; width: 100%; height: 44px; padding: 0 38px 0 40px; border: 1px solid #e7dccd; border-radius: 999px; background: #fdfaf6; font: 400 14.5px/1 'Open Sans', sans-serif; color: #4a4a4a; box-shadow: inset 0 1px 2px rgba(60,40,20,.04); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.cat-index_search input:focus { outline: none; border-color: #d8a26a; background: #fff; box-shadow: 0 0 0 3px rgba(208,110,10,.12); }
.cat-index_clear { position: absolute; right: 12px; top: 11px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #ecd9c5; color: #8a6a48; font: 400 17px/22px Arial, Helvetica, sans-serif; text-align: center; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.cat-index_clear[hidden] { display: none; }
.cat-index_clear:hover { background: #d8a26a; color: #fff; }
.cat-index_chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.cat-index_chips a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 13px; border-radius: 999px; background: #faf3ec; border: 1px solid #f0e3d6; color: #6a5340; font: 600 12.5px/1 Comfortaa, sans-serif; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; }
.cat-index_chips a span { font-size: 11px; color: #b8a48f; transition: color .2s ease; }
.cat-index_chips a:hover { background: #f3e6d6; border-color: #e2cdb4; transform: translateY(-1px); }
.cat-index_chips a.is-active { background: #d06e0a; border-color: #d06e0a; color: #fff; }
.cat-index_chips a.is-active span { color: #ffe7cc; }
.cat-index_chips a.is-empty { opacity: .32; pointer-events: none; }

.cat-index_status { font: 600 13px/1.4 Comfortaa, sans-serif; color: #b0784a; margin: 0 0 22px; padding: 12px 16px; background: #fcf4ec; border-radius: 10px; }

/* Masonry de cartes catégorie */
.cat-index_grid { columns: 2; column-gap: 26px; }
.cat-index_card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 26px; background: #fff; border: 1px solid #f0e8df; border-radius: 14px; box-shadow: 0 6px 22px rgba(80,55,30,.06); overflow: hidden; scroll-margin-top: 88px; transition: box-shadow .25s ease; }
.cat-index_card:hover { box-shadow: 0 10px 30px rgba(80,55,30,.11); }
.cat-index_card.is-hidden { display: none; }
.cat-index_cardhead { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(120deg, #fbf2e8 0%, #f7ead9 100%); border-bottom: 1px solid #f0e3d3; }
.cat-index_cardhead h2 { margin: 0; flex: 1 1 auto; font: 700 17px/1.25 Comfortaa, sans-serif; }
.cat-index_cardhead h2 a { color: #b0784a; text-decoration: none; transition: color .2s ease; }
.cat-index_cardhead h2 a:hover { color: #d06e0a; }
.cat-index_count { flex: 0 0 auto; font: 700 11.5px/1 Comfortaa, sans-serif; color: #fff; background: #d8a26a; padding: 5px 10px; border-radius: 999px; }
.cat-index_list { list-style: none; margin: 0; padding: 10px 8px 14px; }
.cat-index_list li { margin: 0; }
.cat-index_list li.is-hidden { display: none; }
.cat-index_list a { display: block; position: relative; padding: 8px 14px 8px 28px; border-radius: 8px; color: #4a4a4a; text-decoration: none; font: 400 14px/1.4 'Open Sans', sans-serif; transition: background .18s ease, color .18s ease, padding .18s ease; }
.cat-index_list a:before { content: ''; position: absolute; left: 14px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: #d8a26a; transition: transform .18s ease, background .18s ease; }
.cat-index_list a:hover { background: #fcf4ec; color: #d06e0a; padding-left: 32px; }
.cat-index_list a:hover:before { background: #d06e0a; transform: scale(1.5); }
.cat-index_list mark { background: #ffe6b8; color: inherit; padding: 0 .12em; border-radius: 2px; }

/* Bouton retour en haut */
.cat-index_top { position: fixed; right: 26px; bottom: 26px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #d06e0a; color: #fff; font-size: 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(208,110,10,.38); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, background .2s ease; display: flex; align-items: center; justify-content: center; }
.cat-index_top.is-shown { opacity: 1; transform: translateY(0); }
.cat-index_top:hover { background: #b85e08; }

@media (max-width: 980px) { .cat-index_grid { columns: 1; } }
@media (max-width: 700px) {
    .cat-index_bar { gap: 11px; }
    .cat-index_search { flex-basis: 100%; }
    .cat-index_chips { flex-basis: 100%; }
}
/* Page annuaire en mobile : la grille fixe (Bootstrap 2) + les ornements
   décoratifs du thème gardent une largeur fixe → contenu étriqué + scroll
   horizontal fantôme. On force toute la chaîne wrappers à 100% et on clippe
   le débordement décoratif. Scopé à cette page (body.page-id-3192). */
@media (max-width: 767px) {
    .page-id-3192 #motopress-main { overflow-x: hidden; }
    .page-id-3192 .content-holder,
    .page-id-3192 .container,
    .page-id-3192 .container .row,
    .page-id-3192 .container .span12,
    .page-id-3192 .container .span8 {
        width: 100% !important; max-width: 100% !important; min-width: 0 !important;
        margin-left: 0 !important; margin-right: 0 !important; left: 0 !important;
        float: none !important; box-sizing: border-box !important;
    }
    .page-id-3192 .content-holder { padding-left: 0 !important; padding-right: 0 !important; }
    .page-id-3192 .container { padding-left: 14px !important; padding-right: 14px !important; }
}
