/* =============================================
   BLOG.CSS - Passy Airport Academy Blog Styles
   ============================================= */

/* BLOG HERO */
.blog-hero {
    padding: 120px 0 72px;
    /* Lightened background for better logo contrast */
    background: linear-gradient(135deg, #1A2B5F 0%, #152044 100%);
    position: relative;
    overflow: hidden
}

.blog-hero-inner {
    max-width: 720px;
    position: relative;
    z-index: 1
}

.blog-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 18px
}

.blog-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.85;
    margin-bottom: 32px
}

.blog-search-wrap {
    max-width: 460px
}

.blog-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1.5px solid rgba(255, 255, 255, .13);
    border-radius: 50px;
    padding: 12px 22px;
    backdrop-filter: blur(8px);
    transition: border-color .25s
}

.blog-search:focus-within {
    border-color: var(--orange)
}

.blog-search svg {
    color: rgba(255, 255, 255, .45);
    flex-shrink: 0
}

.blog-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    color: var(--white)
}

.blog-search input::placeholder {
    color: rgba(255, 255, 255, .35)
}

/* CATEGORY FILTER */
.blog-cats {
    background: var(--white);
    border-bottom: 1px solid var(--grey-l);
    position: sticky;
    top: 70px;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.cat-list {
    display: flex;
    gap: 6px;
    padding: 14px 0;
    overflow-x: auto;
    scrollbar-width: none
}

.cat-list::-webkit-scrollbar {
    display: none
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--grey-l);
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 500;
    color: var(--grey);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--tr)
}

.cat-btn:hover {
    border-color: var(--orange);
    color: var(--orange)
}

.cat-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    font-weight: 600
}

.cat-btn svg {
    flex-shrink: 0
}

/* BLOG SECTION */
.blog-section {
    padding: 72px 0 96px;
    background: var(--off)
}

/* FEATURED ARTICLE */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--grey-l);
    border-radius: var(--r-xl);
    overflow: hidden;
    margin-bottom: 56px;
    box-shadow: var(--sh-md)
}

.blog-featured-img {
    position: relative;
    height: 420px
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, .92);
    color: var(--dark);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
    backdrop-filter: blur(4px)
}

.blog-tag--orange {
    background: var(--orange);
    color: var(--white)
}

.blog-tag--navy {
    background: var(--navy);
    color: var(--white)
}

.blog-featured-body {
    padding: 44px 44px 44px 0
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--grey);
    margin-bottom: 14px
}

.blog-meta svg {
    color: var(--orange)
}

.blog-featured-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 14px
}

.blog-featured-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s
}

.blog-featured-body h2 a:hover {
    color: var(--orange)
}

.blog-featured-body p {
    font-size: .92rem;
    color: var(--grey);
    line-height: 1.85;
    margin-bottom: 18px
}

.blog-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.blog-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(232, 115, 74, .09);
    color: var(--orange);
    font-size: .74rem;
    font-weight: 600
}

/* ARTICLES GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--grey-l);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: var(--tr);
    box-shadow: var(--sh-sm)
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--orange)
}

.blog-card-img-link {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05)
}

.blog-card-body {
    padding: 22px
}

.blog-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 9px;
    margin-top: 8px
}

.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s
}

.blog-card-body h3 a:hover {
    color: var(--orange)
}

.blog-card-body p {
    font-size: .84rem;
    color: var(--grey);
    line-height: 1.75;
    margin-bottom: 14px
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--orange);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap .2s
}

.blog-read-more:hover {
    gap: 9px
}

.blog-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--grey);
    font-size: .95rem
}

/* NEWSLETTER STRIP */
.newsletter-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
    padding: 64px 0
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap
}

.newsletter-inner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.3
}

.newsletter-inner p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .55)
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0
}

.newsletter-form input {
    padding: 13px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .07);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    outline: none;
    min-width: 240px;
    transition: border-color .25s
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, .35)
}

.newsletter-form input:focus {
    border-color: var(--orange)
}

/* RESPONSIVE */
@media(max-width:1000px) {
    .blog-featured {
        grid-template-columns: 1fr
    }

    .blog-featured-img {
        height: 260px
    }

    .blog-featured-body {
        padding: 30px
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:680px) {
    .blog-grid {
        grid-template-columns: 1fr
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%
    }

    .newsletter-form input {
        min-width: unset;
        width: 100%
    }

    .faq-cols {
        grid-template-columns: 1fr
    }
}

/* =============================================
   ARTICLE PAGE STYLES
   ============================================= */

/* HERO - image de fond avec overlay */
.article-hero {
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-color: #0f1d45;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(8, 16, 42, .55) 0%,
            rgba(8, 16, 42, .80) 60%,
            rgba(8, 16, 42, .95) 100%);
    z-index: 0;
}

.article-hero-inner {
    max-width: 820px;
    position: relative;
    z-index: 1;
    padding: 100px 0 60px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .5);
    font-size: .82rem;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color .2s;
}

.article-back:hover {
    color: var(--orange);
}

.article-hero-tag {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.article-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.9rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.17;
    margin-bottom: 22px;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .55);
    font-size: .83rem;
    flex-wrap: wrap;
}

/* ARTICLE LAYOUT */
.article-section {
    padding: 72px 0 100px;
    background: #f4f6fb;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 295px;
    gap: 44px;
    align-items: start;
}

/* ARTICLE CONTENT CARD */
.article-content {
    background: #fff;
    border-radius: 18px;
    padding: 52px 56px;
    font-size: 1rem;
    color: #374151;
    line-height: 1.9;
    box-shadow: 0 4px 24px rgba(15, 29, 69, .08);
}

/* Premier paragraphe mis en avant */
.article-content>p:first-of-type {
    font-size: 1.1rem;
    color: #1a2b5f;
    line-height: 1.85;
    padding: 20px 22px;
    background: #f0f4ff;
    border-left: 4px solid var(--orange);
    border-radius: 0 10px 10px 0;
    margin-bottom: 32px;
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.42rem;
    font-weight: 700;
    color: #0f1d45;
    margin: 52px 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    min-width: 4px;
    height: 1.3em;
    background: var(--orange);
    border-radius: 3px;
}

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 4px 0 20px 22px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #111827;
    font-weight: 600;
}

/* Encadré highlight */
.article-highlight {
    background: #fff8f3;
    border-left: 4px solid var(--orange);
    padding: 20px 26px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
    box-shadow: 0 2px 10px rgba(217, 106, 61, .1);
}

.article-highlight p {
    margin: 0;
    color: #5a2d0c;
    font-size: .96rem;
    line-height: 1.75;
}

/* Tableau */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0 34px;
    font-size: .91rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.article-table th {
    background: #0f1d45;
    color: #fff;
    padding: 13px 18px;
    text-align: left;
    font-weight: 600;
    font-size: .86rem;
    letter-spacing: .03em;
}

.article-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eef1f8;
    color: #374151;
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:nth-child(even) td {
    background: #f8f9fd;
}

/* SIDEBAR */
.article-sidebar {
    position: sticky;
    top: 90px;
}

/* Card CTA (première) */
.sidebar-card:first-child {
    background: linear-gradient(145deg, #0f1d45 0%, #1e3570 100%);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(15, 29, 69, .22);
    border: none;
}

.sidebar-card:first-child h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.sidebar-card:first-child p {
    color: rgba(255, 255, 255, .62) !important;
    font-size: .86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
}

/* Card articles liés (autres) */
.sidebar-card:not(:first-child) {
    background: #fff;
    border: 1px solid #e8ecf5;
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(15, 29, 69, .06);
}

.sidebar-card:not(:first-child) h4 {
    font-family: 'Outfit', sans-serif;
    font-size: .94rem;
    font-weight: 700;
    color: #0f1d45;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f9;
}

.sidebar-card .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-related-list li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f9;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sidebar-related-list li::before {
    content: '→';
    color: var(--orange);
    font-size: .8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-related-list li:last-child {
    border-bottom: none;
}

.sidebar-related-list a {
    color: #374151;
    text-decoration: none;
    font-size: .86rem;
    line-height: 1.45;
    transition: color .2s;
}

.sidebar-related-list a:hover {
    color: var(--orange);
}

@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-content {
        padding: 32px 24px;
    }

    .article-hero {
        min-height: 360px;
    }

    .article-hero-inner {
        padding: 80px 0 44px;
    }
}

@media (max-width: 480px) {
    .article-hero-inner {
        padding: 70px 0 32px;
    }

    .article-hero-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 24px 16px;
    }

    .article-content h2 {
        font-size: 1.25rem;
        margin-top: 36px;
    }

    .article-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
    }

    .article-table {
        min-width: 500px;
        margin: 0;
    }

    .sidebar-card {
        padding: 20px !important;
    }
}