/* ═══════════════════════════════════════════════
   SiteWeb67 — Enhancements CSS
   Cookie banner · Scroll progress · Scroll to top
   ═══════════════════════════════════════════════ */

/* ── Scroll Progress Bar ── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0%;
    background: linear-gradient(90deg, #f5900d, #ff6b35);
    z-index: 999999;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 1px 6px rgba(245, 144, 13, 0.6);
    pointer-events: none;
}

/* ── Cookie Banner ── */
/* Carte flottante en bas à gauche — laisse libre le widget Tawk.to (bas droite) */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    max-width: 460px;
    width: calc(100% - 48px);
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 20px 22px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    border-radius: 16px;
    border: 1px solid #2e2e2e;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
#cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#cookie-banner p { margin: 0; line-height: 1.65; }
#cookie-banner a { color: #f5900d; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn {
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.cookie-btn-accept {
    background: #f5900d;
    color: #fff;
    flex: 1;
}
.cookie-btn-accept:hover { background: #d97b0a; }
.cookie-btn-refuse {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}
.cookie-btn-refuse:hover { color: #fff; border-color: #666; }

@media (max-width: 540px) {
    #cookie-banner { bottom: 16px; left: 12px; width: calc(100% - 24px); border-radius: 12px; }
    .cookie-actions { flex-direction: column; }
    .cookie-btn { text-align: center; }
}

/* ══════════════════════════════════════════════════════
   SEO Content Section — Ogency dark theme
   ══════════════════════════════════════════════════════ */
.seo-content-section {
    background: #101010;
    padding: 120px 0;
    position: relative;
}

/* Intro paragraph (colonne droite du header) */
.seo-section__intro {
    color: var(--ogency-color, #5d5d5d);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 0 20px;
    padding-bottom: 8px;
}
.seo-section__intro strong {
    color: var(--ogency-base, #f5900d);
    font-weight: 700;
}

/* Espacement de la grille */
.seo-section__grid {
    margin-top: 60px;
    row-gap: 0;
}

/* Cards */
.seo-section__card {
    background: #000;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    padding: 44px 40px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.seo-section__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,144,13,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.seo-section__card:hover {
    border-color: var(--ogency-base, #f5900d);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(245, 144, 13, 0.08);
}
.seo-section__card:hover::before {
    opacity: 1;
}

/* Icône */
.seo-section__card__icon {
    font-size: 56px;
    color: var(--ogency-base, #f5900d);
    line-height: 1;
    margin-bottom: 22px;
    display: block;
    transition: transform 0.3s ease;
}
.seo-section__card:hover .seo-section__card__icon {
    transform: scale(0.9);
}

/* Titre de card */
.seo-section__card__title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.3;
    margin: 0 0 16px;
}

/* Texte de card */
.seo-section__card__text {
    color: var(--ogency-color, #5d5d5d);
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
}
.seo-section__card__text strong {
    color: var(--ogency-base, #f5900d);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .seo-content-section { padding: 80px 0; }
    .seo-section__intro { margin: 24px 0 0; }
}
@media (max-width: 767px) {
    .seo-content-section { padding: 60px 0; }
    .seo-section__card { padding: 32px 28px; }
    .seo-section__card__icon { font-size: 44px; }
    .seo-section__card__title { font-size: 17px; }
    .seo-section__grid { margin-top: 40px; }
}

/* ── Load More Button (Réalisations) ── */
.load-more-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent;
    color: #f5900d;
    border: 2px solid #f5900d;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-load-more:hover {
    background: #f5900d;
    color: #fff;
}
.btn-load-more.hidden { display: none; }
#portfolio-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

/* ── Related Articles ── */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.related-articles__title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #1a1a1a;
}
.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: box-shadow 0.25s, transform 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.related-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    color: inherit;
}
.related-card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-card__body {
    padding: 16px;
}
.related-card__cat {
    font-size: 11px;
    font-weight: 700;
    color: #f5900d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.related-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}
@media (max-width: 768px) {
    .related-articles__grid { grid-template-columns: 1fr; }
}
