/* ============================================================
   ANVEN Consulting — Articles
   Design system : noir #000, orange #f2a833, Inter
   ============================================================ */

/* ── Navbar : forcer fond blanc pur (sinon teinté par le hero noir) ── */
#navbar {
    background: #ffffff !important;
}

/* ── NAV active state ── */
.nav-active {
    color: var(--orange-signature, #f2a833) !important;
    font-weight: 600;
}

/* ══════════════════════════════════════
   LISTING — Hero
══════════════════════════════════════ */
.articles-hero {
    background: linear-gradient(135deg, #000000, #3D3D3D);
    padding: 7rem 8% 4rem;
    text-align: center;
}

.articles-hero-inner {
    max-width: 680px;
    margin: 0 auto;
}

/* Variante 2 colonnes : texte hero + newsletter côte à côte */
/* padding-top compense la navbar fixed (~5rem) pour un centrage visuel */
.articles-hero--split {
    padding: 9rem 8% 4rem;
    text-align: left;
}

.articles-hero-inner--split {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.articles-hero-text {
    /* Reset text-align hérité s'il y en a */
}

.articles-hero-label {
    display: inline-block;
    color: #f2a833;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.articles-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.15;
}

.articles-hero-sub {
    color: #A6A8AB;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Newsletter intégrée dans le hero (colonne droite) */
.articles-hero-newsletter {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #f2a833;
    border-radius: 12px;
    padding: 2rem 2rem 1.75rem;
}

/* ══════════════════════════════════════
   LISTING — Grille
══════════════════════════════════════ */
.articles-listing {
    padding: 4rem 8%;
    background: #F5F5F5;
    min-height: 40vh;
}

.articles-container {
    max-width: 1100px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.articles-empty {
    text-align: center;
    padding: 4rem 0;
    color: #6B6D70;
    font-size: 1.1rem;
}

.articles-empty p {
    margin-bottom: 1.5rem;
}

/* ── Article card ── */
.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E8E8;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.article-card-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
}

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

.article-card:hover .article-card-img {
    transform: scale(1.04);
}

.article-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Tags ── */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.article-tag {
    background: rgba(242, 168, 51, 0.12);
    color: #e09420;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Card content ── */
.article-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
    color: #000000;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card-title a:hover {
    color: #f2a833;
}

.article-card-chapeau {
    color: #6B6D70;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    font-size: 0.8rem;
    color: #A6A8AB;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-dot {
    color: #E8E8E8;
}

.article-card-link {
    color: #f2a833;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.article-card-link:hover {
    color: #e09420;
}

/* ══════════════════════════════════════
   ARTICLE INDIVIDUEL — Header
══════════════════════════════════════ */
.article-header {
    background: linear-gradient(135deg, #000000, #3D3D3D);
    padding: 7rem 8% 3.5rem;
}

.article-header-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-back {
    display: inline-block;
    color: #A6A8AB;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.article-back:hover {
    color: #f2a833;
}

.article-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0.75rem 0 1.25rem;
}

.article-chapeau {
    color: #A6A8AB;
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 0 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-author-inline {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.article-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f2a833;
}

.article-author-inline div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-author-inline strong {
    color: #ffffff;
    font-size: 0.9rem;
}

.article-author-inline span {
    color: #A6A8AB;
    font-size: 0.8rem;
}

.article-meta-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B6D70;
    font-size: 0.85rem;
}

.article-cover {
    max-width: 760px;
    margin: 2.5rem auto 0;
}

.article-cover img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* ══════════════════════════════════════
   ARTICLE INDIVIDUEL — Contenu
══════════════════════════════════════ */
.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 8% 4rem;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3D3D3D;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin: 0 0 1.4rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.4rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

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

.article-content a {
    color: #f2a833;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content blockquote {
    border-left: 4px solid #f2a833;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #F5F5F5;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #3D3D3D;
}

/* ── Signature auteur ── */
.article-author-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #F5F5F5;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3.5rem;
    border: 1px solid #E8E8E8;
}

.author-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f2a833;
    flex-shrink: 0;
}

.author-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-card-info strong {
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
}

.author-card-info > span {
    color: #6B6D70;
    font-size: 0.85rem;
}

.author-card-info p {
    color: #3D3D3D;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0.5rem 0 1rem;
}

/* ── Nav articles précédent/suivant ── */
.article-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E8E8E8;
}

.article-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #E8E8E8;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.article-nav-link:hover {
    border-color: #f2a833;
    box-shadow: 0 4px 16px rgba(242, 168, 51, 0.15);
}

.article-nav-next {
    text-align: right;
}

.article-nav-label {
    color: #f2a833;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-nav-title {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ── CTA bouton ── */
.btn-article {
    display: inline-block;
    background: linear-gradient(135deg, #dc5d26, #f2a833);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.btn-article:hover {
    opacity: 0.9;
}

/* ══════════════════════════════════════
   NEWSLETTER — Composants (texte + form)
══════════════════════════════════════ */
.newsletter-label {
    display: inline-block;
    color: #f2a833;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.newsletter-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.65rem;
    line-height: 1.25;
}

.newsletter-title--dark { color: #ffffff; }

.newsletter-sub {
    color: #6B6D70;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.newsletter-sub--dark { color: #A6A8AB; }

/* ── Form (commun aux deux blocs) ── */
.newsletter-form {
    width: 100%;
}

.newsletter-field {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
}

/* Form dans le hero : champ pleine largeur, alignement à gauche */
.newsletter-form--hero .newsletter-field {
    max-width: none;
    margin: 0;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    background: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    color: #000000;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: #f2a833;
    box-shadow: 0 0 0 3px rgba(242, 168, 51, 0.15);
}

.newsletter-input:disabled {
    background: #F5F5F5;
    cursor: not-allowed;
}

.newsletter-submit {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #dc5d26, #f2a833);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.newsletter-submit:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.newsletter-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.newsletter-rgpd {
    color: #A6A8AB;
    font-size: 0.75rem;
    margin: 0.85rem 0 0;
}

.newsletter-rgpd--dark { color: #6B6D70; }

.newsletter-message {
    margin: 0.6rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 1.25em;
}

.newsletter-message.is-success { color: #2a8a4b; }
.newsletter-message.is-error   { color: #c0392b; }
.newsletter-message.is-info    { color: #6B6D70; }

/* Variantes message pour fond sombre (newsletter dans le hero) */
.newsletter-form--hero .newsletter-message.is-success { color: #4ade80; }
.newsletter-form--hero .newsletter-message.is-error   { color: #f87171; }
.newsletter-form--hero .newsletter-message.is-info    { color: #A6A8AB; }

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

/* ══════════════════════════════════════
   NEWSLETTER — Rappel compact (bas de page)
══════════════════════════════════════ */
.newsletter-recall {
    padding: 0 8% 4rem;
    background: #F5F5F5;
}

.newsletter-recall-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    background: #ffffff;
    border: 1px dashed #E8E8E8;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.newsletter-recall-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.2rem;
}

.newsletter-recall-sub {
    color: #6B6D70;
    font-size: 0.875rem;
    margin: 0;
}

.newsletter-form--compact .newsletter-field {
    margin: 0;
    max-width: none;
}

.newsletter-form--compact .newsletter-rgpd,
.newsletter-form--compact .newsletter-message {
    text-align: right;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
    .articles-hero {
        padding: 6rem 5% 3rem;
    }

    .articles-hero h1 {
        font-size: 2rem;
    }

    .articles-listing {
        padding: 3rem 5%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 6rem 5% 2.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-body {
        padding: 2.5rem 5% 3rem;
    }

    .article-author-card {
        flex-direction: column;
    }

    .article-nav-inner {
        grid-template-columns: 1fr;
    }

    .article-nav-next {
        text-align: left;
    }

    /* Newsletter mobile — hero en 1 colonne */
    .articles-hero--split {
        padding: 7.5rem 5% 3rem;
        text-align: left;
    }
    .articles-hero-inner--split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .articles-hero-newsletter {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .newsletter-title { font-size: 1.35rem; }
    .newsletter-field {
        flex-direction: column;
        gap: 0.6rem;
    }
    .newsletter-submit { width: 100%; }

    .newsletter-recall { padding: 0 5% 3rem; }
    .newsletter-recall-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
        text-align: center;
    }
    .newsletter-form--compact .newsletter-rgpd,
    .newsletter-form--compact .newsletter-message {
        text-align: center;
    }
}
