/* Blog vitrine — charte Lotixam (#555555, #b1e90e), Montserrat via common.css */

.blog-body {
    margin: 0;
    min-height: 100vh;
    font-family: Montserrat, system-ui, sans-serif;
    background: #f4f4f4;
    color: #555555;
}

.blog-topbar {
    background: #555555;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.blog-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.blog-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.blog-logo-link img {
    display: block;
    border-radius: 8px;
}

.blog-topbar-titles {
    flex: 1;
    min-width: 160px;
}

.blog-brand {
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
}

.blog-brand:hover {
    color: #b1e90e;
}

.blog-tagline {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.blog-topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.blog-topbar-nav a {
    color: #e8e8e8;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-topbar-nav a:hover {
    color: #b1e90e;
}

.blog-topbar-account a {
    color: #b1e90e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.blog-topbar-account a:hover {
    text-decoration: underline;
}

.blog-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.blog-page-title {
    margin: 0;
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: #555555;
}

.blog-lead {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 1rem;
    max-width: 36rem;
}

.blog-hero-zone {
    margin-bottom: 2rem;
}

.blog-hero-intro {
    margin-bottom: 1.25rem;
}

.blog-empty-hero,
.blog-empty {
    color: #666;
    font-size: 1rem;
}

/* Pleine largeur viewport (sort du conteneur .blog-main) */
.blog-hero-fullbleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    left: 0;
    right: 0;
}

.blog-hero-viewport {
    position: relative;
    min-height: clamp(280px, 42vw, 440px);
    overflow: hidden;
    background: #3a4a5c;
}

.blog-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.blog-hero-slide.has-cover {
    background-image: var(--blog-hero-cover);
}

.blog-hero-slide.no-cover {
    background-image: linear-gradient(135deg, #4a5568 0%, #2c3e50 45%, #1e2d3d 100%);
}

/* Voile bleu + assombrissement pour le texte */
.blog-hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        rgba(25, 45, 75, 0.88) 0%,
        rgba(35, 65, 100, 0.72) 38%,
        rgba(20, 40, 70, 0.5) 100%
    );
    pointer-events: none;
}

.blog-hero-slide-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.blog-hero-slide-date {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b1e90e;
    margin-bottom: 0.5rem;
}

.blog-hero-slide-title {
    margin: 0;
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    line-height: 1.2;
    max-width: 100%;
}

.blog-hero-slide-title a {
    color: #fff;
    text-decoration: none;
}

.blog-hero-slide-title a:hover {
    color: #b1e90e;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.blog-hero-slide-excerpt {
    margin: 1rem 0 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.55;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.92);
}

.blog-hero-slide-cta {
    display: inline-block;
    margin-top: 1.35rem;
    padding: 0.55rem 1.35rem;
    background: #b1e90e;
    color: #333;
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.blog-hero-slide-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Mobile / petit écran : hauteur du hero = hauteur du contenu (slide active en flux) */
@media (max-width: 767px) {
    .blog-hero-viewport {
        min-height: 0;
        height: auto;
        overflow: hidden;
    }

    /* Slides inactives : pas de place dans le flux, pas de hauteur réservée */
    .blog-hero-slide {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 0;
        min-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .blog-hero-slide.is-active {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 1;
    }

    .blog-hero-slide-inner {
        min-height: 0;
        justify-content: flex-start;
        padding-top: 1.35rem;
        padding-bottom: 1.5rem;
    }

    .blog-hero-slide-excerpt {
        max-width: 100%;
    }
}

.blog-hero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: #555555;
    border-top: 2px solid #b1e90e;
}

.blog-hero-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid rgba(177, 233, 14, 0.6);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.blog-hero-arrow:hover {
    background: rgba(177, 233, 14, 0.2);
    border-color: #b1e90e;
}

.blog-hero-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.blog-hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-hero-dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.blog-hero-dot.is-active {
    background: #b1e90e;
    transform: scale(1.2);
}

/* Bandeau couverture page article */
.blog-article-cover-wrap {
    margin-bottom: 1.5rem;
}

.blog-article-cover {
    position: relative;
    min-height: clamp(160px, 28vw, 280px);
    background-size: cover;
    background-position: center;
    background-color: #3a4a5c;
}

.blog-article-cover--has-image {
    background-image: var(--blog-hero-cover);
}

.blog-toolbar {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.blog-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.blog-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: #555555;
}

.blog-search-input:focus {
    outline: none;
    border-color: #b1e90e;
}

.blog-search-btn {
    padding: 0.65rem 1.25rem;
    background: #b1e90e;
    color: #333;
    border: none;
    border-radius: 8px;
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
}

.blog-search-btn:hover {
    filter: brightness(0.95);
}

.blog-timeline-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.blog-timeline-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.blog-chip {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #eee;
    color: #555555;
    text-decoration: none;
    font-size: 0.85rem;
    border: 2px solid transparent;
}

.blog-chip:hover {
    background: #e4e4e4;
}

.blog-chip.is-active {
    background: #555555;
    color: #fff;
    border-color: #b1e90e;
}

.blog-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-card {
    height: 100%;
}

.blog-card-link {
    display: block;
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.blog-card-link:hover {
    border-color: #b1e90e;
}

.blog-card-date {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.35rem;
}

.blog-card-title {
    margin: 0 0 0.5rem;
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: 1.05rem;
    color: #555555;
}

.blog-card-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.blog-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #b1e90e;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #888;
}

.blog-back {
    color: #555555;
    font-weight: 600;
    text-decoration: none;
}

.blog-back:hover {
    color: #b1e90e;
}

.blog-article-title {
    margin: 0;
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #555555;
    line-height: 1.2;
}

.blog-article-excerpt {
    margin: 1rem 0 0;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

/* Prose — contenu Filament / TipTap rendu en HTML */
.blog-article-body {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #444;
}

.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4 {
    font-family: Montserrat-Bold, Montserrat, sans-serif;
    color: #555555;
    margin: 1.75rem 0 0.75rem;
}

.blog-article-body h2 {
    font-size: 1.35rem;
}

.blog-article-body h3 {
    font-size: 1.15rem;
}

.blog-article-body p {
    margin: 0 0 1rem;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.blog-article-body blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-left: 4px solid #b1e90e;
    background: #fafafa;
    color: #555;
}

.blog-article-body a {
    color: #555555;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #b1e90e;
}

.blog-article-body a:hover {
    color: #333;
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-article-body pre,
.blog-article-body code {
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
}

/* Signature éditoriale (fin d’article, style presse) */
.blog-article-signature {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.blog-article-signature-text {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #999;
}

.blog-article-signature-name {
    color: #777;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
