/* ==========================================================================
   PHPFrance Theme — CSS principal
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
html { background: #fff; }
* { box-sizing: border-box; }
body {
    background: #EBEBEB;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, h5, h6,
.font-black, .font-bold, .font-extrabold {
    font-family: 'Roboto Slab', serif;
}
a { color: #3b96e2; transition: color 0.25s ease-in-out; }
a:hover { color: #000; }
.prose, .news-content, article { font-size: 15px; line-height: 1.6; }
.bg-white { box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1); }

/* Focus visible */
:focus-visible {
    outline: 2px solid #3B96E2;
    outline-offset: 2px;
}

/* Hover uniquement pour les appareils qui le supportent */
@media (hover: hover) and (pointer: fine) {
    .hover-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .hover-card--lift:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
    .hover-tag:hover { background: #3B96E2; color: #fff; }
    .hover-cta:hover { background: #F09541; color: #fff; }
}


/* ==========================================================================
   2. BOOTSTRAP 3 GRID MINIMAL
   ========================================================================== */
.container {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.container:after { content: ""; display: table; clear: both; }
.row { margin-left: -15px; margin-right: -15px; }
.row:after { content: ""; display: table; clear: both; }
.col-md-4, .col-md-8 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; }
@media (min-width: 992px) {
    .col-md-4 { float: left; width: 33.33333%; }
    .col-md-8 { float: left; width: 66.66667%; }
}
.float-clear { clear: both; }


/* ==========================================================================
   3. HEADER
   ========================================================================== */

#mobbern-header-3 {
    z-index: 10;
    min-height: 150px;
    background: #F9F9F9;
}
#mobbern-header-3 .header-content {
    padding-top: 15px;
    padding-bottom: 15px;
}
#mobbern-header-3 .header-content h1 {
    margin: 0;
    font-weight: 300;
    position: relative;
    line-height: 88px;
    height: 90px;
    overflow: visible;
}
#mobbern-header-3 .header-content h1 img {
    vertical-align: middle;
}

/* --- bubble_header --- */
.bubble_header {
    position: relative;
    padding: 45px 40px;
    background: #EEEEEE;
    border-radius: 0;
    margin-top: -15px;
    margin-bottom: -90px;
    height: 150px;
    width: 550px;
    text-align: center;
    transform: skew(-10deg);
}
.bubble_header:after {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 25px 50px 5px 0;
    border-color: transparent #EEEEEE;
    display: block;
    width: 0;
    z-index: 1;
    margin-top: -8px;
    left: -50px;
    top: 30%;
}
.bleu { color: #3B96E2; font-weight: bold; }
.orange { color: #F09541; }

/* --- #main-navbar --- */
#main-navbar {
    background: #3B96E2;
    box-shadow: 0 0 5px 0 rgba(3,2,2,0.25);
    padding: 0;
    margin-bottom: 0;
    min-height: 60px;
    position: relative;
    z-index: 40;
}
#main-navbar .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
#main-navbar .nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
#main-navbar .nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    height: 60px;
    padding: 20px 15px;
    text-decoration: none;
    transition: background 0.25s;
    white-space: nowrap;
}
#main-navbar .nav-links a:hover,
#main-navbar .nav-links a.active {
    background: #F09541;
    color: #fff;
}

/* Icones rondes */
#main-navbar .nav-links a .icon {
    display: inline-block;
}
#main-navbar .nav-links a .icon:before {
    font-size: 1.3em;
    line-height: 20px;
    border: solid 1px rgba(255, 255, 255, 0.25);
    padding: 6px 7px;
    border-radius: 50%;
    transition: border 250ms ease-in-out;
}
#main-navbar .nav-links a:hover .icon:before,
#main-navbar .nav-links a.active .icon:before {
    border-color: rgba(255, 255, 255, 1);
}

/* lazyIcon */
.fa.lazyIcon {
    opacity: 1;
    transition: transform 0.5s, opacity 1.25s;
    transform: scale(1);
}

/* Recherche navbar */
#navbar-searchbox-container {
    position: absolute;
    right: 0;
    top: 0;
    height: 60px;
    display: flex;
    align-items: center;
}
#navbar-searchbox-container .icon.fa-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: solid 1px rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    transition: border 250ms ease-in-out;
    font-size: 16px;
    margin-right: 5px;
}
#navbar-searchbox-container .icon.fa-search:hover {
    border-color: rgba(255, 255, 255, 1);
}
#navbar-searchbox-container .nav-search-form {
    display: none;
    align-items: center;
}
#navbar-searchbox-container .nav-search-form.open {
    display: flex;
}
#navbar-searchbox-container .nav-search-form input[type="text"] {
    width: 180px;
    height: 36px;
    border-radius: 18px;
    border: none;
    padding: 0 15px;
    font-size: 12px;
    color: #3b3e3f;
    outline: none;
}

/* --- Breadcrumb --- */
.navbar.beadcrumb {
    background: #F5F5F5;
    color: #767676;
    border: none;
    padding: 10px 0;
    min-height: 30px;
    margin-bottom: 10px;
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.15);
}
.navbar.beadcrumb ul.navitems {
    border: none;
    font-weight: 400;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 2.2em;
}
.navbar.beadcrumb ul.navitems a {
    color: #767676;
    text-decoration: none;
}
.navbar.beadcrumb ul.navitems a:hover {
    color: #3B96E2;
}
.navbar.beadcrumb ul.navitems .sep {
    margin: 0 4px;
    color: #767676;
    font-weight: bold;
}
.navbar.beadcrumb ul.navitems .current {
    color: #555;
}


/* --- Mobile Menu Drawer --- */
.mobile-menu {
    background: #3B96E2;
    color: #fff;
}
.mobile-menu__nav {
    display: flex;
    flex-direction: column;
}
.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-menu__list li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu__list li::before,
.mobile-menu__list li a::before {
    display: none !important;
    content: none !important;
}
.mobile-menu__list li a {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease;
    min-height: 48px;
}
.mobile-menu__list li a:hover,
.mobile-menu__list li.current-menu-item a {
    background: rgba(255,255,255,0.15);
}
.mobile-menu__extra {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.mobile-menu input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* --- Footer links --- */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.footer-links li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.footer-links li a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- Footer "A propos" accordion --- */
.footer-about {
    width: 100%;
}
.footer-about__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.footer-about__toggle:hover {
    opacity: 1;
}
.footer-about__icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}
.footer-about__toggle[aria-expanded="true"] .footer-about__icon {
    transform: rotate(180deg);
}
.footer-about__content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}
.footer-about__content.is-open {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}
.footer-about__content {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    line-height: 1.6;
}
.footer-about__content p {
    margin: 0 0 8px;
}
.footer-about__content p:last-child {
    margin-bottom: 0;
}
.footer-about__content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-about__content a:hover {
    opacity: 0.8;
}
.footer-about__content ul,
.footer-about__content ol {
    margin: 8px 0;
    padding-left: 20px;
}
.footer-about__content li {
    margin-bottom: 4px;
}
.footer-about__content strong,
.footer-about__content b {
    color: #fff;
    font-weight: 700;
}


/* ==========================================================================
   4. SINGLE ARTICLE
   ========================================================================== */

.single-main {
    max-width: 1170px; margin: 0 auto; padding: 0 16px;
}
.single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* --- Hero --- */
.hero {
    margin: 16px 0; border-radius: 12px; overflow: hidden;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
}
.hero--image {
    position: relative; min-height: 260px;
    display: flex; align-items: flex-end;
}
.hero__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.1));
}
.hero--color {
    background: linear-gradient(135deg, #3B96E2 0%, #2a7bc8 100%);
    padding: 32px 20px;
}
.hero__content {
    position: relative; padding: 24px 20px; max-width: 800px;
}
.hero__badge {
    display: inline-block; padding: 4px 12px; background: #3B96E2; color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; border-radius: 4px; text-decoration: none; margin-bottom: 12px;
    min-height: 44px; line-height: 36px;
}
.hero__badge--light { background: rgba(255,255,255,0.2); }
.hero__title {
    font-family: 'Roboto Slab', serif; font-size: 24px; color: #fff;
    font-weight: 700; line-height: 1.3; margin: 0 0 10px;
}
.hero__meta {
    font-size: 13px; color: rgba(255,255,255,0.8);
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.hero__meta i { margin-right: 4px; }
.hero__sep { margin: 0 4px; }

/* --- Article card --- */
.single-article {
    background: #fff; border-radius: 12px; padding: 20px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
    min-width: 0;
}
.back-link {
    display: inline-flex; align-items: center; color: #3B96E2;
    font-size: 13px; font-weight: 600; text-decoration: none;
    margin-bottom: 20px; min-height: 44px;
}
.back-link i { margin-right: 6px; }

/* --- Tags --- */
.article-tags {
    margin-top: 25px; padding-top: 20px; border-top: 1px solid #eee;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.article-tags__tag {
    display: inline-flex; align-items: center;
    padding: 8px 16px; background: #f0f4f8;
    color: #3B96E2; font-size: 12px; font-weight: 600; border-radius: 16px;
    text-decoration: none; transition: all 0.2s; min-height: 44px;
}
@media (hover: hover) {
    .article-tags__tag:hover { background: #3B96E2; color: #fff; }
}

/* --- Sidebar --- */
.single-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
    background: #fff; border-radius: 12px; padding: 20px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
}
.sidebar-card__title {
    font-size: 12px; font-weight: 700; color: #767676; text-transform: uppercase;
    letter-spacing: 0.5px; margin: 0 0 12px;
}
.sidebar-author { display: flex; align-items: center; gap: 12px; }
.sidebar-author__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.sidebar-author__name { font-weight: 700; color: #333; margin: 0; font-size: 14px; }
.sidebar-author__text { font-size: 12px; color: #767676; margin: 4px 0 0; }

.sidebar-cta {
    background: #3B96E2; border-radius: 12px; padding: 25px; text-align: center;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
}
.sidebar-cta__icon { font-size: 28px; color: rgba(255,255,255,0.3); margin-bottom: 10px; display: block; }
.sidebar-cta__title { font-family: 'Roboto Slab',serif; font-size: 16px; color: #fff; font-weight: 700; margin: 0 0 6px; }
.sidebar-cta__text { font-size: 13px; color: rgba(255,255,255,0.8); margin: 0 0 15px; }
.sidebar-cta__btn {
    display: inline-block; padding: 12px 24px; background: #fff; color: #3B96E2;
    font-size: 13px; font-weight: 700; border-radius: 20px; text-decoration: none;
    min-height: 44px; line-height: 20px;
}

.sidebar-recent {
    display: block; padding: 12px 0; border-bottom: 1px solid #f0f0f0; text-decoration: none;
    min-height: 44px;
}
.sidebar-recent:last-child { border-bottom: none; }
.sidebar-recent__title { font-size: 13px; font-weight: 600; color: #333; margin: 0 0 4px; line-height: 1.4; }
.sidebar-recent__date { font-size: 11px; color: #767676; }
@media (hover: hover) {
    .sidebar-recent:hover .sidebar-recent__title { color: #3B96E2; }
}

/* --- Article Content Typographie --- */
.article-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.8; color: #444;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.article-content h2 {
    font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700;
    color: #1e293b; margin: 40px 0 14px; padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    scroll-margin-top: 20px;
}
.article-content h3 {
    font-family: 'Roboto Slab', serif; font-size: 18px; font-weight: 700;
    color: #1e293b; margin: 28px 0 10px;
    scroll-margin-top: 20px;
}
.article-content h4 { font-size: 16px; font-weight: 700; color: #333; margin: 20px 0 8px; }
.article-content p { margin-bottom: 16px; }
.article-content strong { color: #1e293b; }
.article-content a {
    color: #3B96E2; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.article-content a:hover { color: #F09541; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content ul li { list-style: disc; margin-bottom: 8px; }
.article-content ol li { list-style: decimal; margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid #3B96E2; padding: 14px 20px; margin: 20px 0;
    background: #f8f9fa; border-radius: 0 8px 8px 0; font-style: italic; color: #555;
}
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.article-content figure { margin: 20px 0; }
.article-content figcaption { text-align: center; font-size: 13px; color: #767676; font-style: italic; margin-top: 8px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; overflow-x: auto; display: block; }
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid #eee; text-align: left; font-size: 14px; }
.article-content th { background: #f0f4f8; font-weight: 700; color: #333; }

/* --- Code blocks (Prism.js overrides) --- */
.article-content pre[class*="language-"],
.article-content pre {
    background: #2d2d2d;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.6;
}
.article-content pre > code {
    display: block;
    padding: 20px 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: 'Fira Code', 'JetBrains Mono', 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: inherit;
    line-height: inherit;
    tab-size: 4;
}
.article-content code:not([class*="language-"]):not(pre code) {
    background: #f0f4f8;
    color: #e53e3e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'Fira Code', 'SF Mono', 'Consolas', monospace;
}
.article-content pre.line-numbers {
    padding-left: 0;
}
.article-content .line-numbers .line-numbers-rows {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    top: 0;
}

/* --- Single Responsive --- */
@media (min-width: 768px) {
    .single-main { padding: 0 24px; }
    .hero--image { min-height: 360px; }
    .hero--color { padding: 40px 30px; }
    .hero__content { padding: 30px; }
    .hero__title { font-size: 30px; }
    .single-article { padding: 30px; }
}
@media (min-width: 1024px) {
    .single-main { padding: 0 15px; }
    .hero { margin: 20px 0; }
    .hero--image { min-height: 400px; }
    .hero__title { font-size: 34px; }
    .single-layout {
        grid-template-columns: 1fr 320px;
        gap: 25px;
    }
    .single-article { padding: 35px; }
    .single-sidebar {
        position: sticky; top: 20px; align-self: start;
    }
}
@media (max-width: 400px) {
    .single-main { padding: 0 12px; }
    .hero--image { min-height: 220px; }
    .hero--color { padding: 24px 16px; }
    .hero__content { padding: 20px 16px; }
    .hero__title { font-size: 21px; }
    .single-article { padding: 16px; border-radius: 10px; }
    .article-content h2 { font-size: 19px; margin-top: 32px; }
    .article-content h3 { font-size: 16px; }
}


/* ==========================================================================
   5. FORMATION
   ========================================================================== */
.formation-content { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.8; color: #444; }
.formation-content p { margin-bottom: 12px; }
.formation-content p:last-child { margin-bottom: 0; }
.formation-content ul { padding-left: 20px; margin: 12px 0; }
.formation-content ul li { list-style: disc; margin-bottom: 6px; }
.formation-content ol { padding-left: 20px; margin: 12px 0; }
.formation-content ol li { list-style: decimal; margin-bottom: 6px; }
.formation-content a { color: #3B96E2; text-decoration: underline; text-underline-offset: 2px; }
.formation-content a:hover { color: #F09541; }
.formation-content strong { color: #333; }
.formation-content h3, .formation-content h4 { color: #333; margin: 15px 0 8px; font-weight: 600; }

@media (max-width: 900px) {
    .formation-layout { flex-direction: column !important; }
    .formation-sidebar { width: 100% !important; order: -1; }
    .formation-sidebar > div { position: static !important; }
    .formation-mobile-cta { display: block !important; }
}
@media (max-width: 600px) {
    main > section[style*="padding:40px"] { padding: 25px 20px !important; }
}


/* ==========================================================================
   6. INDEX / BLOG
   ========================================================================== */

/* Layout principal */
.blog-main {
    max-width: 1170px; margin: 0 auto; padding: 0 15px;
}

/* En-tete blog */
.blog-header {
    background: linear-gradient(135deg, #3B96E2 0%, #2a7bc8 100%);
    border-radius: 8px; padding: 30px 20px; margin: 20px 0;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1); text-align: center;
}
.blog-header__title {
    font-family: 'Roboto Slab', serif; font-size: 24px; color: #fff;
    margin: 0 0 8px; font-weight: 700;
}
.blog-header__desc {
    color: rgba(255,255,255,0.85); font-size: 15px; margin: 0;
}
@media (min-width: 768px) {
    .blog-header { padding: 40px 30px; }
    .blog-header__title { font-size: 28px; }
}

/* Barre de filtres */
.blog-filters {
    background: #fff; border-radius: 8px; padding: 12px 16px; margin: 0 0 20px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
@media (min-width: 768px) {
    .blog-filters { padding: 15px 20px; }
}

/* Carte article blog */
.blog-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    transition: box-shadow 0.2s ease;
}
@media (hover: hover) {
    .blog-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
}
.blog-card__thumb {
    height: 180px; overflow: hidden; background: #f0f4f8;
}
.blog-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.blog-card__thumb--placeholder {
    display: flex; align-items: center; justify-content: center; height: 100%;
    background: linear-gradient(135deg, #3B96E2 0%, #2a7bc8 100%); text-decoration: none;
}
.blog-card__body {
    padding: 20px; display: flex; flex-direction: column; flex: 1;
}
.blog-card__meta {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.blog-card__cat {
    font-size: 11px; color: #3B96E2; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-card__date {
    font-size: 11px; color: #767676;
}
.blog-card__title {
    font-size: 16px; font-weight: 700; color: #333;
    margin: 0 0 8px; line-height: 1.4;
}
.blog-card__title a {
    color: #333; text-decoration: none;
}
.blog-card__excerpt {
    font-size: 13px; color: #767676; margin: 0 0 15px; line-height: 1.5; flex: 1;
}
.blog-card__link {
    padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.blog-card__link a {
    color: #3B96E2; font-size: 13px; font-weight: 700;
    text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}

/* Grille articles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 20px; margin-bottom: 20px;
}

/* Load More */
.blog-load-more {
    text-align: center; margin-bottom: 30px;
}
.load-more-btn {
    padding: 12px 30px; border-radius: 24px; border: 1px solid #ddd;
    background: #fff; color: #333; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; min-height: 44px;
}
@media (hover: hover) {
    .load-more-btn:hover {
        background: #3B96E2; color: #fff; border-color: #3B96E2;
    }
}

/* Boutons filtres */
.filter-btn {
    padding: 8px 18px; border-radius: 20px; border: 1px solid #ddd;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; background: #fff; color: #555;
    min-height: 44px;
}
.filter-btn.active {
    background: #333; color: #fff; border-color: #333;
}

/* Newsletter */
.blog-newsletter {
    background: #fff; border-radius: 8px; padding: 30px 20px; margin: 0 0 30px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1); text-align: center;
}
.blog-newsletter__icon {
    font-size: 28px; color: #3B96E2; margin-bottom: 10px; display: block;
}
.blog-newsletter__title {
    font-family: 'Roboto Slab', serif; font-size: 18px; color: #333;
    font-weight: 700; margin: 0 0 6px;
}
.blog-newsletter__desc {
    font-size: 14px; color: #767676; margin: 0 0 20px;
}
.blog-newsletter__form {
    display: flex; flex-direction: column; gap: 8px;
    max-width: 450px; margin: 0 auto;
}
@media (min-width: 480px) {
    .blog-newsletter__form { flex-direction: row; }
}
.newsletter-input {
    flex: 1; height: 44px; border: 2px solid #ddd;
    border-radius: 22px; padding: 0 18px; font-size: 14px;
    outline: none; transition: border-color 0.25s ease;
}
.newsletter-input:focus {
    border-color: #3B96E2;
}
.newsletter-submit {
    height: 44px; width: 44px; border-radius: 50%; background: #3B96E2;
    border: none; color: #fff; cursor: pointer; font-size: 16px; flex-shrink: 0;
    align-self: center;
}

/* Message vide AJAX */
.news-empty {
    grid-column: 1 / -1; text-align: center; color: #767676; padding: 30px;
}

/* Spinner */
.blog-spinner {
    display: none; text-align: center; padding: 40px 0;
}
.blog-spinner .fa { font-size: 24px; color: #3B96E2; }


/* ==========================================================================
   7. HOMEPAGE
   ========================================================================== */
.home-section {
    background: #fff; border-radius: 8px; padding: 20px 16px; margin: 0 0 20px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .home-section { padding: 25px 30px; }
}
.home-section--hero {
    padding: 30px 20px; margin: 20px 0; text-align: center;
}
@media (min-width: 768px) {
    .home-section--hero { padding: 40px 30px; }
}
.home-section--cta {
    background: #3B96E2; text-align: center; margin-bottom: 30px;
}
.home-section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px; gap: 12px; flex-wrap: wrap;
}
.home-section__title {
    font-family: 'Roboto Slab', serif; font-size: 20px; color: #333;
    margin: 0; font-weight: 700;
}
.home-section__link {
    color: #3B96E2; font-size: 13px; font-weight: 600;
    text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
    white-space: nowrap;
}

/* Grilles homepage */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 15px;
}
.home-grid--lg { gap: 20px; }

/* Carte tutoriel (sans image) */
.tuto-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px; border: 1px solid #eee; background: #fff;
    border-radius: 8px; text-decoration: none; transition: all 0.2s ease;
    min-height: 44px; position: relative;
}
.tuto-card--blue { border-left: 3px solid #3B96E2; }
.tuto-card--orange { border-left: 3px solid #F09541; }
@media (hover: hover) {
    .tuto-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
    .tuto-card--blue:hover { border-left-color: #F09541; }
    .tuto-card--orange:hover { border-left-color: #3B96E2; }
}
.tuto-card__header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tuto-card__badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px;
    display: inline-block; line-height: 1.4;
}
.tuto-card__badge--blue { background: #EBF5FF; color: #3B96E2; }
.tuto-card__badge--orange { background: #FFF4E6; color: #F09541; }
.tuto-card__date {
    font-size: 11px; color: #767676; white-space: nowrap;
}
.tuto-card__title {
    font-size: 14px; font-weight: 700; color: #333; margin: 0; line-height: 1.4;
}
.tuto-card__excerpt {
    font-size: 13px; color: #767676; margin: 0; line-height: 1.5;
}
.tuto-card__footer {
    display: flex; align-items: center; gap: 8px; margin-top: auto;
    font-size: 12px; color: #3B96E2; font-weight: 600;
}
.tuto-card__read-time {
    font-size: 11px; color: #999; font-weight: 400;
}

/* Carte actu homepage */
.actu-card {
    display: block; text-decoration: none; border: 1px solid #eee;
    border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s ease;
}
@media (hover: hover) {
    .actu-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
}
.actu-card__thumb {
    height: 160px; overflow: hidden; background: #f0f4f8;
}
.actu-card__thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.actu-card__thumb--empty {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; color: #ccc;
}
.actu-card__body { padding: 15px; }
.actu-card__date {
    font-size: 11px; color: #3B96E2; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.actu-card__title {
    font-size: 15px; font-weight: 700; color: #333;
    margin: 6px 0 8px; line-height: 1.4;
}
.actu-card__excerpt {
    font-size: 13px; color: #767676; margin: 0; line-height: 1.5;
}

/* Tags populaires */
.tag-pill {
    display: inline-flex; align-items: center;
    padding: 8px 16px; background: #f0f4f8; color: #3B96E2;
    font-size: 12px; font-weight: 600; border-radius: 20px;
    text-decoration: none; transition: all 0.2s; min-height: 44px;
}
@media (hover: hover) {
    .tag-pill:hover { background: #3B96E2; color: #fff; }
}

/* CTA communaute */
.cta-title { font-family: 'Roboto Slab', serif; font-size: 22px; color: #fff; margin: 0 0 8px; font-weight: 700; }
.cta-desc { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0 0 20px; }
.cta-btn {
    display: inline-block; padding: 12px 30px; background: #fff; color: #3B96E2;
    font-size: 14px; font-weight: 700; border-radius: 24px; text-decoration: none;
    transition: all 0.2s; min-height: 44px;
}
@media (hover: hover) {
    .cta-btn:hover { background: #F09541; color: #fff; }
}

/* Barre de recherche */
.search-bar {
    max-width: 550px; margin: 0 auto 20px; position: relative;
}
.search-bar__input {
    width: 100%; height: 48px; border: 2px solid #ddd;
    border-radius: 24px; padding: 0 50px 0 20px;
    font-size: 14px; color: #333; outline: none;
    transition: border-color 0.25s;
}
.search-bar__input:focus { border-color: #3B96E2; }
.search-bar__btn {
    position: absolute; right: 6px; top: 6px;
    width: 36px; height: 36px; border-radius: 50%;
    background: #3B96E2; border: none; color: #fff;
    cursor: pointer; font-size: 16px;
}


/* ==========================================================================
   8. SEARCH & 404
   ========================================================================== */
.search-header {
    background: #fff; border-radius: 8px; padding: 30px 20px; margin: 20px 0;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1); text-align: center;
}
.search-header__title {
    font-family: 'Roboto Slab', serif; font-size: 20px; color: #333;
    margin: 0 0 6px; font-weight: 700;
}
@media (min-width: 768px) {
    .search-header { padding: 30px; }
    .search-header__title { font-size: 22px; }
}
.search-results {
    background: #fff; border-radius: 8px; padding: 20px 16px; margin: 0 0 30px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .search-results { padding: 25px 30px; }
}
.search-pagination {
    margin-top: 25px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.search-pagination a {
    display: inline-block; padding: 8px 14px; background: #f0f4f8; color: #3B96E2;
    font-size: 13px; font-weight: 600; border-radius: 6px; text-decoration: none;
    min-height: 44px; line-height: 28px;
}
.search-pagination .current {
    display: inline-block; padding: 8px 14px; background: #3B96E2; color: #fff;
    font-size: 13px; font-weight: 600; border-radius: 6px;
    min-height: 44px; line-height: 28px;
}
.search-empty {
    background: #fff; border-radius: 8px; padding: 40px 20px; margin: 0 0 30px;
    box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1); text-align: center;
}
@media (min-width: 768px) {
    .search-empty { padding: 40px 30px; }
}

/* 404 */
.error-header {
    background: linear-gradient(135deg, #3B96E2 0%, #2a7bc8 100%);
    border-radius: 8px; padding: 40px 20px; margin: 20px 0;
    text-align: center; box-shadow: 0 3px 1px 0 rgba(0,0,0,0.1);
}
@media (min-width: 768px) {
    .error-header { padding: 50px 30px; }
}
.error-header__code {
    font-size: 72px; font-weight: 900; color: rgba(255,255,255,0.2);
    display: block; line-height: 1; margin-bottom: 10px;
}
.error-header__title {
    font-family: 'Roboto Slab', serif; font-size: 24px; color: #fff;
    font-weight: 700; margin: 0 0 8px;
}
@media (min-width: 768px) {
    .error-header__title { font-size: 26px; }
}
.error-header__desc {
    font-size: 15px; color: rgba(255,255,255,0.8);
    margin: 0 0 25px; max-width: 500px; margin-left: auto; margin-right: auto;
}
.btn-pill {
    display: inline-block; padding: 10px 24px; background: #fff; color: #3B96E2;
    font-size: 14px; font-weight: 700; border-radius: 20px; text-decoration: none;
    min-height: 44px; line-height: 24px;
}
.btn-pill--primary { background: #3B96E2; color: #fff; }

/* Carte categorie/404 */
.cat-card {
    display: block; padding: 15px; border: 1px solid #eee;
    border-radius: 6px; text-decoration: none;
    transition: box-shadow 0.2s ease; min-height: 44px;
}
@media (hover: hover) {
    .cat-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
}
.cat-card--blue { border-left: 3px solid #3B96E2; }
.cat-card--orange { border-left: 3px solid #F09541; }


/* ==========================================================================
   9. SINGLE-FORMATION
   ========================================================================== */

.formation-dl-btn {
    font-size: 13px; color: #3B96E2; text-decoration: none; font-weight: 600;
    padding: 8px 16px; border: 1px solid #3B96E2; border-radius: 6px;
    display: inline-block; transition: all 0.2s ease; background: transparent;
    min-height: 44px; line-height: 28px;
}
@media (hover: hover) {
    .formation-dl-btn:hover { background: #3B96E2; color: #fff; }
}

.formation-accordion-btn {
    width: 100%; display: flex; align-items: center; gap: 12px;
    background: #fafbfc; border: none; cursor: pointer;
    padding: 14px 18px; text-align: left; transition: background 0.15s ease;
    min-height: 44px;
}
@media (hover: hover) {
    .formation-accordion-btn:hover { background: #f0f4f8; }
}

.formation-cta-primary {
    display: block; text-align: center; padding: 14px 20px;
    background: #3B96E2; color: #fff; font-size: 15px; font-weight: 700;
    border-radius: 8px; text-decoration: none; transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59,150,226,0.3); min-height: 44px;
}
@media (hover: hover) {
    .formation-cta-primary:hover { background: #2a7bc8; transform: translateY(-1px); color: #fff; }
}

.formation-cta-secondary {
    display: block; text-align: center; padding: 11px 20px;
    background: #fff; color: #333; font-size: 13px; font-weight: 600;
    border-radius: 8px; text-decoration: none; border: 1px solid #ddd;
    margin-top: 8px; transition: all 0.2s ease; min-height: 44px;
}
@media (hover: hover) {
    .formation-cta-secondary:hover { border-color: #3B96E2; color: #3B96E2; }
}

.formation-contact-link {
    font-size: 13px; color: #3B96E2; text-decoration: none; font-weight: 600;
    transition: text-decoration 0.2s ease; min-height: 44px; display: inline-flex; align-items: center;
}
@media (hover: hover) {
    .formation-contact-link:hover { text-decoration: underline; }
}

.formation-mobile-cta-btn {
    display: block; text-align: center; padding: 14px 30px;
    background: #3B96E2; color: #fff; font-size: 15px; font-weight: 700;
    border-radius: 8px; text-decoration: none;
    box-shadow: 0 3px 10px rgba(59,150,226,0.3);
    transition: background 0.2s ease; min-height: 44px;
}
@media (hover: hover) {
    .formation-mobile-cta-btn:hover { background: #F09541; }
}

.formation-final-primary {
    display: inline-block; padding: 13px 30px; background: #fff; color: #3B96E2;
    font-size: 15px; font-weight: 700; border-radius: 8px;
    text-decoration: none; transition: all 0.2s ease; min-height: 44px;
}
@media (hover: hover) {
    .formation-final-primary:hover { background: #F09541; color: #fff; }
}
.formation-final-secondary {
    display: inline-block; padding: 13px 30px; background: transparent; color: #fff;
    font-size: 15px; font-weight: 600; border-radius: 8px;
    text-decoration: none; border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.2s ease; min-height: 44px;
}
@media (hover: hover) {
    .formation-final-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
}
