

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:target{
    scroll-margin-top: 50px;
    animation: anchorGlow 1.2s ease-out;
}

.section-padding {
    padding: 60px 0;
}

.blog-hero {
padding:30px 10px;
background-color:#12348F;
color:white;
text-align: center;
}

.blog-hero h1{ 
font-size:2.5rem;
font-weight:700;
color:#fff;
margin-bottom:10px;
}


.badge-blog{
background:white;
color : #1D4FDC;
padding:10px 18px;
margin-bottom:25px;
border-radius:30px;
font-weight:500;
display:inline-flex;
align-items:center;
gap:8px;
box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

titre-blog {
    font-family: sans-serif;
    color: #fff;
    font-weight: 700;
}


.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 30px;
    align-items: stretch;

}

.article-card {
    display: flex;
    flex-direction: column;
    align-items:flex-start;
    background: #fff;
    padding: 35px;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    transition: .3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-category {
    margin-bottom: 15px;
    padding: 6px 12px;
    background: rgba(200,169,107,.15);
    color: #fff;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-block;
    
}

.article-card h3 {
    margin-bottom: 15px;   
}

.article-card a {
    color: #12348F;   
}

.article-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
}

.bures {
    color: red;
}

.category-title{
font-family: 'NextArt', Sans-Serif;        
font-size:1.5rem;
font-weight:700;
line-height:1.7;
color: #333;
margin-top:20px;
}



.category-card {
    background: #fff;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #111;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(38,106,190);
    transition: .3s;
}

.category-card:hover {
    transform: translateY(-3px);
    border: 1px solid #0d47a1;
}


.article-card .btn-secondary {
    margin-top: auto;
    width: auto;
    align-self: flex-start;
}

.btn-secondary {

    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    border: 1px solid #0d47a1;
    background: transparent;
    transition: .3s;
}

.btn-secondary:hover {

    background: #0d47a1;
    color: #111;
    transform: translateY(-2px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 20px;
}


    .article-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-container h2:not(:first-of-type) {
    margin-top: 50px;
}

.article-hero {
    background-color:#12348F;
    color: white;
    padding: 140px 0 60px;
    text-align: center;
}

.article-meta {
    opacity: 0.7;
    margin-top: 10px;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #444;
}

.article-toc {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.article-tip {
    background: rgba(1, 17, 33, 0.12);
    border-left: 4px solid #3797f1;
    padding: 20px;
    margin: 30px 0;
    border-radius: 10px;
}

.article-faq {
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 20px;
}

.article-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: #f8f8f8;
    border-radius: 20px;
}

.article-cta .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.related-articles {
    margin-top: 60px;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 10px;
}
  
.article-container ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-container p {
    line-height: 1.7;
}

.article-hero {
    padding: 140px 0 70px;
}

.article-hero h1{
    color:#fff;
}

@media (max-width: 900px) {

    html {
        scroll-padding-top: 65px;
    }

     h2 {
        scroll-margin-top: 65px;
    }
}


@media (max-width: 768px) {

    html {
        scroll-padding-top: 85px;
    }
    :target,
     h2 {
        scroll-margin-top: 85px;
    }

    .article-cta .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.anchor-highlight {

    animation: anchorGlow 1.2s ease-out;

}

@keyframes anchorGlow {

    0% {

        box-shadow: 0 0 0 0 rgba(200,169,107,.45);

    }

    50% {

        box-shadow: 0 0 0 12px rgba(200,169,107,.15);

    }

    100% {

        box-shadow: 0 0 0 0 rgba(200,169,107,0);

    }

}



