/* Sharer Plugin Integration */
.sharer-wrapper {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef0f3;
}

.sharer-wrapper .sharer-buttons-toolbar {
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sharer-wrapper .sharer-buttons-toolbar button {
    margin: 0;
}

/* Masquer la flèche hero inutile */
#to-start {
    display: none !important;
}

/* ==========================================================================
   Grille de Blog 3 Colonnes (Style MagicManu WordPress)
   ========================================================================== */

/* Colonnes responsives pour Bricklayer */
.bricklayer-column-sizer {
    width: 100%;
    display: none;
}

/* 2 colonnes sur tablette */
@media screen and (min-width: 640px) and (max-width: 991px) {
    .bricklayer-column-sizer {
        width: 50%;
    }
}

/* 3 colonnes sur desktop (>= 992px) */
@media screen and (min-width: 992px) {
    .bricklayer-column-sizer {
        width: 33.33333%;
    }
}

/* Espacement entre colonnes de la grille */
.blog-listing .bricklayer {
    margin: 0 -10px;
}

.blog-listing .bricklayer-column {
    padding-left: 10px;
    padding-right: 10px;
}

/* Cartes des articles */
.blog-listing .card {
    margin-bottom: 24px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-listing .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #dbe2ea;
}

/* Image de mise en avant */
.blog-listing .card .card-image {
    overflow: hidden;
    background: #f5f7fa;
}

.blog-listing .card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.blog-listing .card:hover .card-image img {
    transform: scale(1.04);
}

/* En-tête de carte (Catégorie, Date, Titre) */
.blog-listing .card .card-header {
    padding: 14px 16px 8px;
}

.blog-listing .card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.blog-listing .card .card-category a {
    display: inline-block;
    background: #24b7c7;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.blog-listing .card .card-category a:hover {
    background: #0d94a3;
}

.blog-listing .card .card-date {
    font-size: 0.8rem;
    color: #8c96a3;
}

.blog-listing .card .card-title h5,
.blog-listing .card .card-title a {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e2530;
    text-decoration: none;
    margin: 0;
    transition: color 0.2s ease;
}

.blog-listing .card .card-title a:hover {
    color: #24b7c7;
}

/* ==========================================================================
   Fond de page contrasté
   ========================================================================== */
body,
#page-wrapper,
#body-wrapper,
.blog-listing {
    background-color: #eaedf2 !important;
}

/* Masquage des vidéos (YouTube, iframe, etc.) et images dupliquées dans l'extrait de carte sur l'accueil */
.blog-listing .card .card-body iframe,
.blog-listing .card .card-body video,
.blog-listing .card .card-body embed,
.blog-listing .card .card-body object,
.blog-listing .card .card-body .video-wrapper,
.blog-listing .card .card-body .grav-youtube,
.blog-listing .card .card-body img {
    display: none !important;
}

/* Corps de carte (Extrait) */
.blog-listing .card .card-body {
    padding: 0 16px 12px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #556070;
    flex-grow: 1;
}

.blog-listing .card .card-body p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pied de carte (Bouton "Lire plus" et tags) */
.blog-listing .card .card-footer {
    padding: 12px 16px 14px;
    border-top: 1px solid #f0f3f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-listing .card .btn-readmore {
    background-color: #24b7c7;
    color: #ffffff !important;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: auto;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.blog-listing .card .btn-readmore:hover {
    background-color: #0d94a3;
    transform: translateY(-1px);
}

/* Tags très discrets et compacts sur les cartes */
.blog-listing .card .card-tags,
.blog-listing .card .tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 65%;
}

.blog-listing .card .card-tag,
.blog-listing .card .label-secondary {
    display: inline-block;
    background: #f1f4f8;
    color: #7b8898 !important;
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid #e3e8ef;
    transition: all 0.15s ease;
}

.blog-listing .card .card-tag:hover,
.blog-listing .card .label-secondary:hover {
    background: #e4ecf3;
    color: #24b7c7 !important;
    border-color: #c7dbe8;
}

.blog-listing .card .card-tag-more {
    display: inline-block;
    background: transparent;
    color: #9aa7b5;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 4px;
    cursor: default;
}

/* ==========================================================================
   Navigation Menu & Catégories Dropdown
   ========================================================================== */

/* Alignement desktop menu */
#header .navbar-section.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Couleur de survol et active dans le menu principal (niveau supérieur) */
.dropmenu > ul > li > a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.dropmenu > ul > li > a:hover,
.dropmenu > ul > li > a:focus,
.dropmenu > ul > li > a.active {
    color: #24b7c7 !important;
}

.header-dark #header:not(.scrolled) .dropmenu > ul > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
}

.header-dark #header:not(.scrolled) .dropmenu > ul > li > a:hover,
.header-dark #header:not(.scrolled) .dropmenu > ul > li > a:focus,
.header-dark #header:not(.scrolled) .dropmenu > ul > li > a.active {
    color: #24b7c7 !important;
}

/* Flèche du menu déroulant (positionnée proprement à côté du texte) */
.dropmenu ul li a:before,
.dropmenu ul li.categories-dropdown > a:before {
    content: '' !important;
    display: none !important;
}

.dropmenu ul li.categories-dropdown > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding-right: 20px !important;
}

.dropmenu ul li.categories-dropdown > a:after {
    content: '\f107';
    font-family: 'FontAwesome';
    font-size: 0.75rem;
    display: inline-block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.dropmenu ul li.categories-dropdown:hover > a:after,
.dropmenu ul li.categories-dropdown.open > a:after {
    transform: rotate(180deg);
}

/* Menu déroulant Catégories (2 colonnes grille élégante) */
.dropmenu ul li.categories-dropdown {
    position: relative;
}

.dropmenu ul li.categories-dropdown > ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid #e1e6ed;
    padding: 6px 0;
    z-index: 1000;
    margin: 0;
    list-style: none;
    display: none;
    overflow: visible;
}

.dropmenu ul li.categories-dropdown:hover > ul,
.dropmenu ul li.categories-dropdown:focus-within > ul,
.dropmenu ul li.categories-dropdown.open > ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Groupes de catégories parents (Maison, Jardin...) */
.dropmenu ul li.categories-dropdown ul li.has-children {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.dropmenu ul li.categories-dropdown ul li.has-children > a,
.header-dark #header:not(.scrolled) .dropmenu ul li.categories-dropdown ul li.has-children > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 18px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: #2e3846 !important;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.15s ease;
    background: transparent;
}

.dropmenu ul li.categories-dropdown ul li.has-children > a i {
    font-size: 1.15rem;
    color: #24b7c7;
    margin-right: 8px;
    vertical-align: middle;
}

.dropmenu ul li.categories-dropdown ul li.has-children > a:before {
    display: none !important;
    content: '' !important;
}

.dropmenu ul li.categories-dropdown ul li.has-children > a:after {
    content: '\f105';
    font-family: 'FontAwesome';
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 14px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.dropmenu ul li.categories-dropdown ul li.has-children:hover > a,
.header-dark #header:not(.scrolled) .dropmenu ul li.categories-dropdown ul li.has-children:hover > a {
    background: #eefafb !important;
    color: #24b7c7 !important;
}

.dropmenu ul li.categories-dropdown ul li.has-children:hover > a:after {
    color: #24b7c7;
    transform: translateX(3px);
}

/* Sous-menu flyout des sous-catégories */
.dropmenu ul li.categories-dropdown ul li.has-children > ul.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    max-height: 480px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid #e1e6ed;
    padding: 6px 0;
    z-index: 1001;
    margin-left: 2px;
    list-style: none;
    display: none;
}

/* Pont invisible pour passage de souris fluide */
.dropmenu ul li.categories-dropdown ul li.has-children > ul.submenu:before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
}

.dropmenu ul li.categories-dropdown ul li.has-children:hover > ul.submenu {
    display: block !important;
    visibility: visible !important;
}

/* Liens des sous-catégories */
.dropmenu ul li.categories-dropdown ul.submenu li {
    display: block;
    width: 100%;
    margin: 0;
}

.dropmenu ul li.categories-dropdown ul.submenu li a,
.header-dark #header:not(.scrolled) .dropmenu ul li.categories-dropdown ul.submenu li a {
    display: block !important;
    padding: 8px 18px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.15s ease;
    background: transparent;
}

.dropmenu ul li.categories-dropdown ul.submenu li a:before {
    display: none !important;
    content: '' !important;
}

.dropmenu ul li.categories-dropdown ul.submenu li a:hover,
.header-dark #header:not(.scrolled) .dropmenu ul li.categories-dropdown ul.submenu li a:hover {
    background: #eefafb !important;
    color: #24b7c7 !important;
    padding-left: 22px !important;
}

.dropmenu ul li.categories-dropdown ul.submenu li.view-all-item {
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 4px;
    padding-bottom: 3px;
}

.dropmenu ul li.categories-dropdown ul.submenu li.view-all-item a,
.header-dark #header:not(.scrolled) .dropmenu ul li.categories-dropdown ul.submenu li.view-all-item a {
    color: #0c8290 !important;
    font-weight: 700 !important;
}

.dropmenu ul li.categories-dropdown ul.submenu li.view-all-item a:hover {
    color: #24b7c7 !important;
}

/* Scrollbar personnalisée pour le sous-menu */
.dropmenu ul li.categories-dropdown ul.submenu::-webkit-scrollbar {
    width: 5px;
}

.dropmenu ul li.categories-dropdown ul.submenu::-webkit-scrollbar-track {
    background: #f1f4f8;
}

.dropmenu ul li.categories-dropdown ul.submenu::-webkit-scrollbar-thumb {
    background: #c3ced9;
    border-radius: 3px;
}

.dropmenu ul li.categories-dropdown ul.submenu::-webkit-scrollbar-thumb:hover {
    background: #a2b0be;
}

/* ==========================================================================
   Moteur de Recherche SimpleSearch dans le Header
   ========================================================================== */

.header-search {
    margin-left: 18px;
    display: flex;
    align-items: center;
}

.header-search .search-wrapper {
    margin: 0;
    padding: 0;
}

.header-search .search-wrapper form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.header-search .search-input {
    height: 34px;
    width: 160px;
    border-radius: 17px;
    padding: 4px 34px 4px 14px;
    font-size: 0.8rem;
    outline: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Header sombre non défilé */
.header-dark #header:not(.scrolled) .header-search .search-input {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.header-dark #header:not(.scrolled) .header-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-dark #header:not(.scrolled) .header-search .search-input:focus {
    width: 220px;
    background: rgba(255, 255, 255, 0.2);
    border-color: #24b7c7 !important;
    box-shadow: 0 0 0 3px rgba(36, 183, 199, 0.3) !important;
}

/* Header défilé (fond blanc) */
#header.scrolled .header-search .search-input,
body:not(.header-dark) #header .header-search .search-input {
    background: #f1f4f8;
    border: 1px solid #d0d7de;
    color: #333333;
}

#header.scrolled .header-search .search-input::placeholder,
body:not(.header-dark) #header .header-search .search-input::placeholder {
    color: #8c9ba5;
}

#header.scrolled .header-search .search-input:focus,
body:not(.header-dark) #header .header-search .search-input:focus {
    width: 220px;
    background: #ffffff;
    border-color: #24b7c7 !important;
    box-shadow: 0 0 0 3px rgba(36, 183, 199, 0.25) !important;
}

/* Bouton loupe dans le header */
.header-search .search-submit {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease, background-color 0.2s ease;
}

#header.scrolled .header-search .search-submit,
body:not(.header-dark) #header .header-search .search-submit {
    color: #7b8898;
}

.header-search .search-submit:hover {
    color: #24b7c7 !important;
    background-color: rgba(36, 183, 199, 0.15);
}

.header-search .search-icon {
    display: block;
}

/* ==========================================================================
   Mobile Menu Overlay & Search
   ========================================================================== */

.mobile-search {
    max-width: 300px;
    margin: 1.5rem auto 1rem;
    padding: 0 1rem;
}

.mobile-search .search-wrapper form {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search .search-input {
    width: 100% !important;
    height: 40px;
    border-radius: 20px;
    padding: 6px 42px 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}

.mobile-search .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search .search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #24b7c7;
    box-shadow: 0 0 0 3px rgba(36, 183, 199, 0.35);
}

.mobile-search .search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search .search-submit:hover {
    color: #24b7c7;
}

/* Arbre de navigation mobile */
.overlay-menu .tree li a.active,
.overlay-menu .tree li a:hover {
    color: #24b7c7 !important;
}

.overlay-menu .tree .toggler {
    color: #24b7c7 !important;
}

.overlay-menu .tree ul {
    max-height: 280px;
    overflow-y: auto;
}

/* ==========================================================================
   Page des Résultats de Recherche (SimpleSearch)
   ========================================================================== */

.simplesearch .search-header {
    font-size: 2rem;
    font-weight: 700;
    color: #19202a;
    margin-bottom: 1.5rem;
}

.simplesearch .center {
    margin-bottom: 2rem;
}

.simplesearch .center .search-wrapper form {
    position: relative;
    max-width: 520px;
}

.simplesearch .center .search-input {
    height: 44px;
    border-radius: 22px;
    padding: 8px 46px 8px 20px;
    border: 2px solid #e1e6ed;
    background: #ffffff;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.simplesearch .center .search-input:focus {
    border-color: #24b7c7;
    box-shadow: 0 0 0 3px rgba(36, 183, 199, 0.25);
}

.simplesearch .center .search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    color: #7b8898;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simplesearch .center .search-submit:hover {
    color: #24b7c7;
}

.simplesearch .search-row {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecf1;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.simplesearch .search-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.simplesearch .search-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.simplesearch .search-image img {
    width: 120px !important;
    height: 90px !important;
    max-width: 120px !important;
    max-height: 90px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.simplesearch .search-image:hover img {
    transform: scale(1.05);
}

.simplesearch .search-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.8rem;
    background: #f1f5f9;
}

.simplesearch .search-item {
    flex: 1;
    min-width: 0;
    margin-left: 0 !important;
}

.simplesearch .search-title h3 {
    margin: 0 0 4px;
}

.simplesearch .search-title h3 a {
    color: #19202a;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.simplesearch .search-title h3 a:hover {
    color: #24b7c7;
    text-decoration: none;
}

.simplesearch .search-details {
    margin-bottom: 8px;
    color: #8c9ba5;
    font-size: 0.82rem;
    display: flex;
    gap: 14px;
    align-items: center;
}

.simplesearch .search-summary {
    color: #556070;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Réduction stricte de toute image/vidéo résiduelle dans search-item */
.simplesearch .search-item img {
    max-width: 120px !important;
    max-height: 90px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 6px;
    margin: 4px 6px 4px 0;
    display: inline-block !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.simplesearch .search-item iframe,
.simplesearch .search-item video,
.simplesearch .search-item embed {
    max-width: 160px !important;
    max-height: 90px !important;
    width: 160px !important;
    height: 90px !important;
    border-radius: 6px;
    margin: 4px 6px 4px 0;
    display: inline-block !important;
    border: none;
}

.simplesearch .search-item hr {
    display: none;
}

/* ==========================================================================
   Pied de page (Footer)
   ========================================================================== */

#footer {
    padding: 1.5rem 1rem 1.2rem;
    text-align: center;
    background: #f4f6f8;
    border-top: 1px solid #e1e6ed;
}

#footer .footer-links {
    margin: 0 0 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#footer .footer-links a {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .footer-links a:hover {
    color: #0284c7;
    text-decoration: underline;
}

#footer .footer-separator {
    color: #cbd5e1;
    font-size: 0.85rem;
    user-select: none;
}

#footer .footer-credits,
#footer p.footer-credits,
#footer p:not(.footer-links) {
    font-size: 0.62rem !important;
    color: #9aa7b5 !important;
    margin: 0;
}

#footer .footer-credits a,
#footer p:not(.footer-links) a {
    color: #7b8898;
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .footer-credits a:hover,
#footer p:not(.footer-links) a:hover {
    color: #24b7c7;
}

#footer .footer-credits i.pulse {
    font-size: 0.62rem;
}

/* ==========================================================================
   Tags en bas d'article
   ========================================================================== */

.item-tags-footer {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #dbe2ea;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.item-tags-footer .item-tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #5a6678;
    margin-right: 4px;
}

.item-tags-footer .tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.item-tags-footer .tags a.label {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b !important;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.item-tags-footer .tags a.label:hover {
    background: #e0f2fe;
    color: #0284c7 !important;
    border-color: #bae6fd;
    transform: translateY(-1px);
}

/* ==========================================================================
   Titre des articles (Page article)
   ========================================================================== */

.content-title h1,
.content-title h2 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #242931;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
    cursor: default;
}

@media (max-width: 840px) {
    .content-title h1,
    .content-title h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   Photo principale de l'article (Image à la une)
   ========================================================================== */

.item-featured-image {
    margin: 1.5rem 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    background: #f8fafc;
}

.item-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
}

/* ==========================================================================
   Section Commentaires
   ========================================================================== */

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.comments-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-heading i {
    color: #0284c7;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.comment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
}

.comment-avatar {
    font-size: 2rem;
    color: #94a3b8;
    line-height: 1;
}

.comment-meta {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.comment-date {
    font-size: 0.8rem;
    color: #64748b;
}

.comment-date i {
    margin-right: 3px;
}

.comment-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    word-break: break-word;
}

.no-comments {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}

.no-comments p {
    margin: 0;
    font-size: 0.95rem;
}

/* Formulaire de commentaire */
.comment-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.8rem;
    margin-top: 2rem;
}

.comment-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-title i {
    color: #0284c7;
}

.comment-form .form-group {
    margin-bottom: 1rem;
}

.comment-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.3rem;
    display: block;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form-submit {
    margin-top: 1.2rem;
}

.comment-form-submit button,
.comment-form-submit .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 42px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    vertical-align: middle !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.65rem 1.6rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.2s ease !important;
}

.comment-form-submit button:hover,
.comment-form-submit .btn:hover {
    background: #0369a1 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
}

.comment-alert-success {
    margin-top: 1.2rem;
    padding: 0.9rem 1.2rem;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-alert-success i {
    font-size: 1.1rem;
    color: #059669;
}

/* ==========================================================================
   Intégration et visionneuse PDF
   ========================================================================== */

.pdf-embed-container {
    margin: 2rem 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.pdf-embed-frame {
    display: block;
    width: 100%;
    height: 600px;
    border: none;
    background: #525659;
}

@media (max-width: 600px) {
    .pdf-embed-frame {
        height: 420px;
    }
}

.pdf-embed-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-embed-name {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-embed-name i {
    color: #dc2626;
    font-size: 1.15rem;
}

.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-pdf-download:hover {
    background: #0369a1 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Images dans les articles & Galeries
   ========================================================================== */

.item-featured-image img {
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.item-featured-image img:hover {
    transform: scale(1.01);
}

.e-content img:not(.custom-logo):not(.avatar):not(.emoji) {
    max-width: 100%;
    max-height: 540px;
    width: auto;
    height: auto;
    display: block;
    margin: 1.8rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.e-content img:not(.custom-logo):not(.avatar):not(.emoji):hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Grille de galerie pour images consécutives */
.article-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
    align-items: center;
}

.article-gallery-grid.cols-2 > img {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 0.75rem);
    max-height: 480px;
    object-fit: cover;
    margin: 0 !important;
}

.article-gallery-grid.cols-3 > img {
    flex: 1 1 calc(33.333% - 1.5rem);
    max-width: calc(33.333% - 1rem);
    max-height: 380px;
    object-fit: cover;
    margin: 0 !important;
}

@media (max-width: 680px) {
    .article-gallery-grid.cols-2 > img,
    .article-gallery-grid.cols-3 > img {
        flex: 1 1 100%;
        max-width: 100%;
        max-height: 440px;
    }
}

/* ==========================================================================
   Visionneuse d'images (Lightbox moderne)
   ========================================================================== */

body.lightbox-open {
    overflow: hidden !important;
}

.site-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.site-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.site-lightbox-container {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.site-lightbox-img-wrap {
    pointer-events: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-lightbox-img {
    max-width: 90vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.site-lightbox.active .site-lightbox-img {
    transform: scale(1);
}

.site-lightbox-caption {
    margin-top: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    text-align: center;
    max-width: 80vw;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.site-lightbox-counter {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: auto;
}

/* Boutons de contrôle Lightbox */
.site-lightbox-btn {
    position: absolute;
    z-index: 20;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.site-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.site-lightbox-close {
    top: 20px;
    right: 20px;
}

.site-lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.site-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.site-lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.site-lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
    .site-lightbox-prev {
        left: 10px;
        width: 38px;
        height: 38px;
    }
    .site-lightbox-next {
        right: 10px;
        width: 38px;
        height: 38px;
    }
    .site-lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   Page & Formulaire de Contact
   ========================================================================== */

.contact-page-container {
    max-width: 760px;
    margin: 2.5rem auto 4rem;
    padding: 0 1rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.contact-intro {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-card form {
    margin: 0;
}

.contact-card .form-group {
    margin-bottom: 1.4rem;
}

.contact-card .form-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.contact-card .form-input,
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.contact-card .form-input:focus,
.contact-card input[type="text"]:focus,
.contact-card input[type="email"]:focus,
.contact-card textarea:focus {
    background-color: #ffffff;
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.contact-card textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-card .form-actions {
    margin-top: 2rem;
    text-align: right;
}

.btn-contact-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 44px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    vertical-align: middle !important;
    background: #0284c7 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-contact-submit:hover {
    background: #0369a1 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
}

.contact-card .form-message {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-card .form-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contact-card .form-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 640px) {
    .contact-card {
        padding: 1.5rem;
    }
    .contact-title {
        font-size: 1.8rem;
    }
    .btn-contact-submit {
        width: 100%;
    }
}










