/* Global layout grid and alignment fixes */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.container {
    width: min(1200px, 100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

section {
    scroll-margin-top: 100px;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Generic card alignment */
.services-grid,
.portfolio-grid,
.blog-grid,
.process-cards {
    display: grid;
    gap: 1.5rem;
}

.services-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-category-item {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Services page: compact categories in rows of 4 */
.services-intro .services-categories {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    align-items: stretch;
}

.services-intro .service-category-item {
    width: auto !important;
    min-height: 120px;
    padding: 14px 10px !important;
    gap: 0.6rem !important;
    border-radius: 12px;
    flex-direction: column;
    justify-content: flex-start;
}

.services-intro .category-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.05rem !important;
    border-radius: 10px;
}

.services-intro .service-category-item span {
    font-size: 12px !important;
    line-height: 1.25;
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid,
.blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.portfolio-card,
.blog-card,
.process-card {
    height: 100%;
}

.service-card-inner,
.portfolio-card-inner,
.blog-card-inner,
.process-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-content,
.blog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-content p,
.blog-excerpt {
    flex-grow: 1;
}

/* Services detail page alignment */
.service-detail-card-inner .row {
    row-gap: 1.5rem;
}

.service-detail-image,
.service-detail-content {
    height: 100%;
}

/* Services detail blocks: compact and better aligned */
.service-detail-section {
    padding: 58px 0 !important;
}

.service-detail-card {
    max-width: 1120px;
    margin: 0 auto;
}

.service-detail-card-inner {
    padding: 22px !important;
}

.service-detail-content h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    margin-bottom: 0.6rem !important;
}

.service-detail-content > p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem !important;
}

.service-detail-image .image-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.service-detail-image .image-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.tech-tags {
    margin-top: 0.7rem !important;
    gap: 0.45rem !important;
}

.tech-tag {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

.service-features h3 {
    font-size: 1.02rem !important;
    margin-bottom: 0.7rem !important;
}

.service-features-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

.service-features-list li {
    margin-bottom: 0 !important;
}

.feature-text h4 {
    font-size: 0.92rem !important;
    margin-bottom: 0.2rem !important;
}

.feature-text p {
    font-size: 0.84rem !important;
    line-height: 1.45;
}

.service-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* About and CTA consistency */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-wrapper {
    display: grid;
    gap: 1.5rem;
}

/* Homepage compaction and alignment */
.home-page .section-padding {
    padding: 64px 0 !important;
}

.home-page .section-title h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.25;
    margin-bottom: 0.6rem !important;
}

.home-page .section-title p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.home-page .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-page .services-section {
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}

.home-page .service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page .service-card-inner {
    padding: 18px !important;
    background: #ffffff;
    border: 1px solid rgba(20, 30, 50, 0.08);
    border-radius: 14px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-page .service-thumb {
    margin-bottom: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-page .service-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.home-page .service-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 1.15rem !important;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.home-page .service-content h3 {
    font-size: 1.03rem !important;
    margin-bottom: 0.45rem !important;
    transition: color 0.3s ease;
}

.home-page .service-content p {
    font-size: 0.9rem !important;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.home-page .service-link {
    transition: color 0.3s ease;
}

.home-page .service-card:hover {
    transform: translateY(-6px);
}

.home-page .service-card:hover .service-card-inner {
    background: linear-gradient(145deg, #0f2236 0%, #18324d 60%, #1e3d5c 100%);
    border-color: rgba(39, 168, 127, 0.45);
    box-shadow: 0 18px 35px rgba(10, 25, 45, 0.26);
}

.home-page .service-card:hover .service-icon {
    background: linear-gradient(135deg, #eb7b02 0%, #27a87f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(39, 168, 127, 0.35);
}

.home-page .service-card:hover .service-content h3 {
    color: #ffffff !important;
}

.home-page .service-card:hover .service-content p {
    color: rgba(255, 255, 255, 0.86) !important;
}

.home-page .service-card:hover .service-link {
    color: #5ee3b3 !important;
}

.home-page .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.home-page .about-img,
.home-page .about-text {
    height: 100%;
}

.home-page .about-img-wrapper {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home-page .about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-page .about-img:hover .about-img-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(10, 25, 45, 0.24);
}

.home-page .about-img:hover .about-img-wrapper img {
    transform: scale(1.03);
}

.home-page .about-text-inner {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 34, 57, 0.08);
    border-radius: 14px;
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-page .about-text-inner:hover {
    transform: translateY(-4px);
    border-color: rgba(39, 168, 127, 0.35);
    box-shadow: 0 16px 32px rgba(10, 25, 45, 0.14);
}

.home-page .about-text p {
    font-size: 0.92rem;
    line-height: 1.55;
}

.home-page .about-counter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 1rem 0;
}

.home-page .about-counter {
    margin: 0 !important;
    min-height: 110px;
    padding: 12px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-page .about-counter:hover {
    transform: translateY(-3px);
    border-color: rgba(39, 168, 127, 0.35);
    box-shadow: 0 10px 20px rgba(10, 25, 45, 0.12);
}

.home-page .about-counter .counter-number {
    font-size: 1.15rem !important;
}

.home-page .about-counter .counter-text {
    font-size: 0.8rem !important;
    line-height: 1.3;
}

.home-page .about-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.7rem 0 1rem;
}

.home-page .about-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f6f9fc;
    border: 1px solid rgba(20, 30, 50, 0.08);
    color: #13253f;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.home-page .about-pillar i {
    color: #27a87f;
    transition: color 0.22s ease;
}

.home-page .about-pillar:hover {
    transform: translateY(-2px);
    background: #13253f;
    color: #ffffff;
    border-color: #13253f;
}

.home-page .about-pillar:hover i {
    color: #5ee3b3;
}

.home-page .about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.home-page .about-text-inner .about-actions {
    margin-top: auto;
    padding-top: 0.6rem;
}

.home-page .about-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 10px 14px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-page .about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 25, 45, 0.2);
}

.home-page .about-btn.about-btn-outline {
    background: transparent !important;
    color: #13253f !important;
    border: 1px solid rgba(20, 30, 50, 0.16);
}

.home-page .about-btn.about-btn-outline:hover {
    background: #13253f !important;
    color: #ffffff !important;
    border-color: #13253f;
}

.home-page .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-page .portfolio-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.home-page .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* Bandeau partenaires — logos compacts, defilement infini */
.partners-marquee-shell {
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
}

.partners-marquee-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.partners-marquee-track {
    display: flex;
    width: max-content;
    animation: partners-marquee-x linear infinite;
    animation-duration: var(--partners-marquee-sec, 40s);
}

.partners-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes partners-marquee-x {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.partners-marquee-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.35rem;
}

.partners-marquee-item {
    flex: 0 0 auto;
}

.partners-marquee-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    max-width: 128px;
    height: 48px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(20, 30, 50, 0.08);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.partners-marquee-link {
    text-decoration: none;
    color: inherit;
}

.partners-marquee-link:hover {
    border-color: rgba(39, 168, 127, 0.35);
    box-shadow: 0 6px 16px rgba(10, 25, 45, 0.12);
    transform: translateY(-2px);
}

.partners-marquee-link img {
    max-width: 100%;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(14%);
}

.partners-marquee--about .partners-marquee-link {
    background: rgba(255, 255, 255, 0.98);
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100% !important;
        max-width: 100%;
        transform: none !important;
    }

    .partners-marquee-viewport {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
    }

    .partners-marquee-group[aria-hidden="true"] {
        display: none;
    }
}

/* About page modernization */
.about-page-section .about-content {
    align-items: stretch;
}

.about-page-section .about-img,
.about-page-section .about-text {
    height: 100%;
}

.about-page-section .about-img-wrapper {
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.about-page-section .about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-page-section .about-text-inner {
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 30, 50, 0.1);
    border-radius: 14px;
    padding: 18px;
}

.about-page-section .about-counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.about-expertise-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 30, 50, 0.1);
    border-radius: 14px;
    padding: 18px;
    min-height: 190px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-expertise-card i {
    font-size: 1.35rem;
    color: #27a87f;
    margin-bottom: 0.6rem;
}

.about-expertise-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.about-expertise-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.about-expertise-card:hover {
    transform: translateY(-4px);
    border-color: rgba(39, 168, 127, 0.35);
    box-shadow: 0 12px 24px rgba(10, 25, 45, 0.16);
}


.home-page .testimonial-card {
    height: 100%;
}

.home-page .cta-wrapper {
    padding: 24px !important;
}

/* Blog page cleanup and alignment */
.blog-page-intro .section-title {
    margin-bottom: 1.25rem;
}

.blog-search {
    max-width: 680px;
    margin: 0 auto 1.2rem;
}

.blog-categories ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-categories ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 30, 50, 0.14);
    background: #ffffff;
}

.featured-article.section-padding {
    padding-top: 20px !important;
}

.featured-article .service-detail-card-inner {
    padding: 18px !important;
}

.featured-article .service-detail-image .image-wrapper img {
    aspect-ratio: 16 / 10;
}

.featured-article .article-meta .author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-articles .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.blog-articles .blog-card-inner {
    border-radius: 14px;
    overflow: hidden;
}

.blog-articles .blog-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.blog-articles .blog-content {
    padding: 14px !important;
}

.blog-articles .blog-title {
    line-height: 1.35;
}

.blog-articles .pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

/* Contact page alignment and spacing */
.contact-page-intro .section-title p {
    max-width: 820px;
}

.contact-info {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.contact-card,
.contact-card-inner {
    height: 100%;
}

.contact-card-inner {
    border-radius: 14px;
    padding: 18px !important;
}

.contact-text p {
    margin-bottom: 0;
    line-height: 1.55;
}

.contact-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1rem;
    align-items: stretch;
}

.contact-form-wrapper,
.contact-map-wrapper {
    width: 100%;
}

.form-card-inner,
.map-card-inner {
    height: 100%;
    border-radius: 14px;
    padding: 20px !important;
}

#contactForm .form-group {
    margin-bottom: 0.8rem;
}

#contactForm .form-control {
    min-height: 46px;
}

#contactForm textarea.form-control {
    min-height: 150px;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 320px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

.social-media-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

/* Responsive grid */
@media (max-width: 991px) {
    .services-grid,
    .portfolio-grid,
    .blog-grid,
    .process-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-intro .services-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .service-detail-card-inner {
        padding: 16px !important;
    }

    .service-features-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .home-page .services-grid,
    .home-page .portfolio-grid,
    .home-page .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .about-pillars {
        grid-template-columns: 1fr;
    }

    .about-expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-articles .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .social-media-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .container {
        width: min(1200px, 100% - 1.25rem);
    }

    .services-grid,
    .portfolio-grid,
    .blog-grid,
    .process-cards {
        grid-template-columns: 1fr;
    }

    .services-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-intro .services-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .home-page .section-padding {
        padding: 50px 0 !important;
    }

    .home-page .services-grid,
    .home-page .portfolio-grid,
    .home-page .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .home-page .about-counter-grid {
        grid-template-columns: 1fr;
    }

    .home-page .about-img-wrapper {
        min-height: 320px;
    }

    .about-page-section .about-counter-grid {
        grid-template-columns: 1fr;
    }

    .about-expertise-grid {
        grid-template-columns: 1fr;
    }

    .blog-search {
        max-width: 100%;
    }

    .blog-articles .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .social-media-links {
        grid-template-columns: 1fr;
    }

    .form-card-inner,
    .map-card-inner {
        padding: 16px !important;
    }

    .home-page .cta-wrapper {
        padding: 18px !important;
    }
}

/* ========== Page détail article blog ========== */
.blog-article-header {
    text-align: left;
    padding-top: 100px !important;
    padding-bottom: 48px !important;
}

.blog-article-header-inner {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.blog-article-breadcrumb {
    margin-bottom: 1rem !important;
}

.blog-article-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    color: #0b1b34 !important;
    background: linear-gradient(135deg, #5ee3b3, #3ecf9a);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-article-category-pill:hover {
    color: #061228 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(39, 168, 127, 0.35);
}

.blog-article-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
    max-width: 100%;
}

.blog-article-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 1.25rem;
    max-width: 65ch;
}

.blog-article-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.blog-article-meta-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-article-meta-chips i {
    color: #5ee3b3;
    opacity: 0.9;
}

.blog-article-page {
    background: linear-gradient(180deg, #f3f6fa 0%, #eef2f7 100%);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a3a5c;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-back-link:hover {
    color: #27a87f;
    transform: translateX(-2px);
}

.blog-article-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(20, 40, 70, 0.08);
    box-shadow: 0 18px 48px rgba(8, 22, 45, 0.08);
    overflow: hidden;
}

.blog-article-cover {
    margin: 0;
    background: #0b1b34;
    position: relative;
}

.blog-article-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11, 27, 52, 0.25) 100%);
    pointer-events: none;
}

.blog-article-cover img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .blog-article-cover img {
        aspect-ratio: 16 / 10;
    }
}

.blog-article-card-body {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.blog-article-prose {
    max-width: 65ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2c3544;
}

.blog-article-prose p {
    margin-bottom: 1.15rem;
}

.blog-article-prose p:last-child {
    margin-bottom: 0;
}

/* Typographie « contenu WordPress » (entry-content) */
.blog-article-prose.wp-entry-content {
    max-width: 42rem;
    font-size: 1.08rem;
    line-height: 1.78;
    color: #2a3340;
}

.blog-article-prose.wp-entry-content > *:first-child {
    margin-top: 0;
}

.blog-article-prose.wp-entry-content h1,
.blog-article-prose.wp-entry-content h2,
.blog-article-prose.wp-entry-content h3,
.blog-article-prose.wp-entry-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.28;
    color: #0f1f38;
    margin-top: 1.85em;
    margin-bottom: 0.55em;
}

.blog-article-prose.wp-entry-content h1 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.blog-article-prose.wp-entry-content h2 {
    font-size: clamp(1.28rem, 2vw, 1.5rem);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(39, 168, 127, 0.22);
}

.blog-article-prose.wp-entry-content h3 {
    font-size: 1.15rem;
}

.blog-article-prose.wp-entry-content h4 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #27a87f;
}

.blog-article-prose.wp-entry-content h5,
.blog-article-prose.wp-entry-content h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.45em;
    color: #3d4a5c;
}

.blog-article-prose.wp-entry-content p {
    margin-bottom: 1.15em;
}

.blog-article-prose.wp-entry-content a {
    color: #1d8a67;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-article-prose.wp-entry-content a:hover {
    color: #0f5c45;
}

.blog-article-prose.wp-entry-content ul,
.blog-article-prose.wp-entry-content ol {
    margin: 0 0 1.15em;
    padding-left: 1.35rem;
}

.blog-article-prose.wp-entry-content li {
    margin-bottom: 0.4em;
}

.blog-article-prose.wp-entry-content li::marker {
    color: #27a87f;
}

.blog-article-prose.wp-entry-content blockquote {
    margin: 1.35em 0;
    padding: 1rem 1.15rem 1rem 1.25rem;
    border-left: 4px solid #27a87f;
    background: linear-gradient(90deg, rgba(39, 168, 127, 0.08), rgba(39, 168, 127, 0.02));
    border-radius: 0 12px 12px 0;
    font-size: 1.02rem;
    color: #374151;
}

.blog-article-prose.wp-entry-content blockquote cite {
    display: block;
    margin-top: 0.65em;
    font-size: 0.88rem;
    font-style: normal;
    color: #6b7280;
}

.blog-article-prose.wp-entry-content hr {
    border: 0;
    height: 1px;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent, rgba(39, 168, 127, 0.45), transparent);
}

.blog-article-prose.wp-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.15em 0;
    box-shadow: 0 12px 32px rgba(15, 35, 60, 0.12);
}

.blog-article-prose.wp-entry-content figure {
    margin: 1.5em 0;
}

.blog-article-prose.wp-entry-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: #6b7280;
    text-align: center;
}

.blog-article-prose.wp-entry-content pre {
    margin: 1.25em 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.55;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    border: 1px solid rgba(39, 168, 127, 0.2);
}

.blog-article-prose.wp-entry-content code {
    font-size: 0.9em;
    padding: 0.12em 0.4em;
    border-radius: 6px;
    background: rgba(39, 168, 127, 0.12);
    color: #0d4f3c;
}

.blog-article-prose.wp-entry-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.blog-article-prose.wp-entry-content table {
    width: 100%;
    margin: 1.35em 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 35, 60, 0.08);
}

.blog-article-prose.wp-entry-content th,
.blog-article-prose.wp-entry-content td {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(20, 40, 70, 0.1);
    text-align: left;
}

.blog-article-prose.wp-entry-content thead th {
    background: linear-gradient(135deg, #0b1b34, #152a4a);
    color: #fff;
    font-weight: 600;
}

.blog-article-prose.wp-entry-content tbody tr:nth-child(even) {
    background: rgba(243, 246, 250, 0.85);
}

.blog-article-prose.wp-entry-content .aligncenter,
.blog-article-prose.wp-entry-content .has-text-align-center {
    text-align: center;
}

.blog-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(20, 40, 70, 0.08);
}

.blog-article-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.blog-article-btn--primary {
    background: linear-gradient(135deg, #27a87f, #1d8a67);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(39, 168, 127, 0.35);
}

.blog-article-btn--primary:hover {
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(39, 168, 127, 0.45);
}

.blog-article-btn--ghost {
    background: #f4f7fb;
    color: #1a3a5c !important;
    border-color: rgba(20, 40, 70, 0.12);
}

.blog-article-btn--ghost:hover {
    border-color: rgba(39, 168, 127, 0.45);
    color: #27a87f !important;
}

.blog-article-btn--accent {
    background: #fff;
    color: #1a3a5c !important;
    border-color: rgba(39, 168, 127, 0.45);
}

.blog-article-btn--accent:hover,
.blog-article-btn--accent.is-copied {
    background: rgba(94, 227, 179, 0.18);
    color: #0d5c45 !important;
    border-color: #27a87f;
}

.blog-article-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(20, 40, 70, 0.08);
    padding: 1.15rem 1.25rem;
    box-shadow: 0 10px 32px rgba(8, 22, 45, 0.06);
}

.blog-sidebar-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(39, 168, 127, 0.35);
    color: #0b1b34;
}

.blog-sidebar-dl {
    margin: 0;
}

.blog-sidebar-dl > div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(20, 40, 70, 0.06);
    font-size: 0.9rem;
}

.blog-sidebar-dl > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-sidebar-dl dt {
    margin: 0;
    font-weight: 600;
    color: #5a6570;
}

.blog-sidebar-dl dd {
    margin: 0;
    color: #1a2a38;
}

.blog-sidebar-dl a {
    color: #27a87f;
    font-weight: 600;
    text-decoration: none;
}

.blog-sidebar-dl a:hover {
    text-decoration: underline;
}

.blog-sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blog-sidebar-recent-link {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    text-decoration: none;
    padding: 0.45rem;
    margin: -0.45rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.blog-sidebar-recent-link:hover {
    background: rgba(39, 168, 127, 0.08);
}

.blog-sidebar-recent-thumb {
    flex: 0 0 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf3;
}

.blog-sidebar-recent-thumb img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.blog-sidebar-recent-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.blog-sidebar-recent-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0b1b34;
}

.blog-sidebar-recent-link:hover .blog-sidebar-recent-title {
    color: #27a87f;
}

.blog-sidebar-recent-date {
    font-size: 0.78rem;
    color: #6b7785;
}

.blog-article-missing .blog-article-missing-text {
    color: rgba(255, 255, 255, 0.78);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.blog-article-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(94, 227, 179, 0.25);
    color: #b8ffe8;
    border: 1px solid rgba(94, 227, 179, 0.4);
}

.blog-article-badge--muted {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991px) {
    .blog-article-sidebar {
        position: static;
    }

    .blog-sidebar-dl > div {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-dl dt {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }
}
