/* ============================================ */
/* ITD - BLOG STYLES ÉPURÉS */
/* Version minimaliste - Sans rectangles */
/* ============================================ */

/* VARIABLES - À garder du styles.css principal */
:root {
    --primary: #4169E1;
    --violet: #9400D3;
    --accent: #FFA500;        /* Orange vif - pour backgrounds/bordures */
    --accent-text: #854605;   /* Orange foncé - pour textes sur blanc (accessibilité WCAG) */
    --ink: #1a1a2e;
    --muted: #64748b;
    --topbar-h: 40px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* ============================================ */
/* BLOG INDEX - Liste des articles */
/* ============================================ */

/* Blog Hero */
.blog-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(65,105,225,.02) 0%, rgba(148,0,211,.02) 100%);
    text-align: center;
}

.blog-hero .badge {
    margin-bottom: 1rem;
}

.blog-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(28px, 5vw, 42px);
}

.blog-hero__lead {
    font-size: 17px;
    color: #374151;
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
}

/* Blog Articles Section */
.blog-articles {
    padding: 3rem 0 4rem;
}

/* Articles Grid - 2 colonnes */
.articles-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog Card - ÉPURÉ */
.blog-card {
    display: grid;
    gap: 1rem;
    padding: 0;
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateX(4px);
}

.blog-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card h3 a {
    color: var(--ink);
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card > p {
    margin: 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}

.blog-card__footer {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8edf3;
}

/* Article Badges */
.article-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.article-badge--telecom {
    background: rgba(65,105,225,.1);
    color: var(--primary);
}

.article-badge--voip {
    background: rgba(148,0,211,.1);
    color: var(--violet);
}

.article-badge--reseau {
    background: rgba(255,165,0,.1);
    color: var(--accent-text);
}

.article-badge--securite {
    background: rgba(220,38,38,.1);
    color: #DC2626;
}

.article-badge--hebergement {
    background: rgba(5,150,105,.1);
    color: #059669;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.article-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ============================================ */
/* ARTICLE PAGE - Style épuré */
/* ============================================ */

/* Article Hero */
.article-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(65,105,225,.02) 0%, rgba(148,0,211,.02) 100%);
    border-bottom: 1px solid #f1f4f8;
}

.article-hero__breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 14px;
}

.article-hero__breadcrumb a {
    color: var(--primary);
}

.article-hero__breadcrumb a:hover {
    text-decoration: underline;
}

.article-hero__breadcrumb span {
    color: var(--muted);
}

.article-hero h1 {
    margin: 0.75rem 0 1rem;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--ink);
}

.article-hero__lead {
    font-size: 19px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 800px;
}

/* Article Layout avec sidebar TOC */
.article-content {
    padding: 3rem 0 4rem;
}

.article-grid {
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 64rem) {
    .article-grid {
        grid-template-columns: 260px 1fr;
    }
}

/* Table des matières - ÉPURÉE */
.article-toc {
    display: none;
}

@media (min-width: 64rem) {
    .article-toc {
        display: block;
        position: sticky;
        top: calc(var(--topbar-h) + 87px + 2rem);
        align-self: start;
    }
}

.toc-sticky h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-nav a {
    padding: 0.5rem 0;
    padding-left: 1rem;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.toc-nav a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 1.25rem;
}

.toc-nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Contenu article - ÉPURÉ */
.article-main {
    max-width: 900px;
}

.blog-article {
    /* Pas de box, pas de padding, juste le contenu */
}


/* ============================================ */
/* TYPOGRAPHIE ARTICLE - Claire et aérée */
/* ============================================ */

.article-section {
    margin: 4rem 0;
}

.article-intro {
    margin-bottom: 4rem;
}

.article-intro .lead {
    font-size: 19px;
    line-height: 1.7;
    color: #1e293b;
    font-weight: 400;
}

/* Titres H2 - Séparateurs épurés */
.article-section h2,
.blog-article h2 {
    font-size: clamp(26px, 4vw, 34px);
    margin: 4rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e8edf3;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.2;
}

.article-section h2:first-child,
.article-intro + .article-section h2 {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Titres H3 */
.article-section h3,
.blog-article h3 {
    font-size: clamp(20px, 3vw, 24px);
    margin: 3rem 0 1rem;
    color: #1e293b;
    font-weight: 700;
}

/* Titres H4 */
.article-section h4,
.blog-article h4 {
    font-size: 18px;
    margin: 2rem 0 1rem;
    color: #334155;
    font-weight: 700;
}

/* Paragraphes */
.article-section p,
.blog-article p {
    margin: 1.5rem 0;
    line-height: 1.8;
    font-size: 17px;
    color: #374151;
}

/* Premier paragraphe après titre */
.article-section h2 + p,
.article-section h3 + p,
.article-section h4 + p {
    margin-top: 0rem;
}

/* Liens */
.article-section a,
.blog-article a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(65,105,225,.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
    font-weight: 500;
}

.article-section a:hover,
.blog-article a:hover {
    text-decoration-color: var(--primary);
}

/* Strong */
.article-section strong,
.blog-article strong {
    color: var(--ink);
    font-weight: 700;
}


/* ============================================ */
/* LISTES - Simples et lisibles */
/* ============================================ */

.article-section ul,
.article-section ol,
.blog-article ul,
.blog-article ol {
    margin: 2rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.article-section li,
.blog-article li {
    margin: 0.75rem 0;
    padding-left: 0.5rem;
}

.article-section li::marker,
.blog-article li::marker {
    color: var(--primary);
    font-weight: 600;
}


/* ============================================ */
/* ÉLÉMENTS SPÉCIAUX - ÉPURÉS (sans rectangles) */
/* ============================================ */

/* Alert Warning - Juste un trait gauche, pas de box */
.alert-warning {
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--accent);
}

.alert-warning strong {
    display: block;
    color: var(--accent-text);
    font-size: 18px;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.alert-warning p {
    margin: 0.5rem 0;
}

/* Feature Box - ÉPURÉ : juste un trait, pas de background */
.article-feature-box {
    margin: 2.5rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--primary);
}

.article-feature-box h4 {
    margin: 0 0 0.75rem;
    font-size: 18px;
    color: var(--ink);
}

.article-feature-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

/* Feature Grid - ÉPURÉ : pas de bordures */
.feature-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    margin: 3rem 0;
}

@media (min-width: 48rem) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    stroke-width: 2;
}

.feature-item h4 {
    margin: 0 0 0.5rem;
    font-size: 17px;
    color: var(--ink);
    font-weight: 700;
}

.feature-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

/* Use Cases - ÉPURÉ : checkmark simple, pas de box */
.article-use-case {
    margin: 2rem 0;
    padding-left: 2.5rem;
    position: relative;
}

.article-use-case::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

.article-use-case h4 {
    margin: 0 0 0.5rem;
    font-size: 17px;
    color: var(--ink);
}

.article-use-case p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}


/* ============================================ */
/* CITATIONS ET TÉMOIGNAGES - ÉPURÉS */
/* ============================================ */

/* Blockquote - Citation simple */
.article-section blockquote,
.blog-article blockquote {
    margin: 3rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--primary);
    font-style: italic;
    color: #1e293b;
    font-size: 18px;
}

.article-section blockquote p,
.blog-article blockquote p {
    margin: 0.75rem 0;
}

/* Témoignages - ÉPURÉS : pas de box */
.testimonials-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    margin: 3rem 0;
}

.testimonial-card {
    padding-left: 2rem;
    border-left: 3px solid var(--primary);
}

.testimonial-quote {
    font-size: 17px;
    line-height: 1.7;
    color: #1e293b;
    font-style: italic;
    margin: 0 0 1.5rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    font-size: 15px;
    color: var(--ink);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--muted);
}


/* ============================================ */
/* TABLEAUX - Minimalistes */
/* ============================================ */

.article-table-responsive {
    overflow-x: auto;
    margin: 3rem 0;
}

.article-section table,
.blog-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.article-section table thead,
.blog-article table thead {
    border-bottom: 2px solid #e8edf3;
}

.article-section table th,
.blog-article table th {
    padding: 1rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-section table td,
.blog-article table td {
    padding: 1rem 1rem;
    border-bottom: 1px solid #f1f4f8;
    vertical-align: top;
    color: #374151;
}

.article-section table tbody tr:last-child td,
.blog-article table tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile - Tableaux en liste simple */
@media (max-width: 47.999rem) {
    .article-section table thead,
    .blog-article table thead {
        display: none;
    }

    .article-section table,
    .article-section table tbody,
    .article-section table tr,
    .article-section table td,
    .blog-article table,
    .blog-article table tbody,
    .blog-article table tr,
    .blog-article table td {
        display: block;
    }

    .article-section table tr,
    .blog-article table tr {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid #e8edf3;
    }

    .article-section table td,
    .blog-article table td {
        padding: 0.5rem 0;
        border: none;
        position: relative;
        padding-left: 45%;
    }

    .article-section table td::before,
    .blog-article table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        font-weight: 700;
        color: var(--ink);
        font-size: 14px;
    }
}


/* ============================================ */
/* PRICING TABLE - Épurée */
/* ============================================ */

.article-pricing-table {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    margin: 3rem 0;
}

@media (min-width: 48rem) {
    .article-pricing-table {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid #e8edf3;
    transition: border-color 0.2s;
}

.pricing-card:hover {
    border-top-color: var(--primary);
}

.pricing-card--highlight {
    border-top-color: var(--primary);
}

.pricing-card h3 {
    margin: 0 0 1rem;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.pricing-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 1rem 0;
}

.pricing-period {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 15px;
    color: #374151;
}


/* ============================================ */
/* FAQ - Style harmonisé avec le site principal */
/* ============================================ */

.faq-list {
    margin: 3rem 0;
}

.faq-grid {
    display: grid;
    gap: 12px;
    margin: 2rem 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary,
.faq-item__question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker,
.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    stroke: var(--muted);
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item summary:hover,
.faq-item__question:hover {
    background: #f8fafc;
}

.faq-item__answer,
.faq-item > p {
    padding: 0 24px 20px;
    color: #374151;
    line-height: 1.6;
}

.faq-item__answer p,
.faq-item > p {
    margin: 0;
    font-size: 16px;
}

/* Style alternatif avec summary (pour compatibilité) */
.faq-item summary + * {
    padding: 0 24px 20px;
}


/* ============================================ */
/* CTA FINAL - Simple */
/* ============================================ */

.article-cta-final {
    margin: 5rem 0 3rem;
    padding: 3rem 0;
    border-top: 2px solid #e8edf3;
    text-align: center;
}

.article-cta-final h2 {
    margin: 0 0 1rem;
    font-size: clamp(24px, 4vw, 32px);
    color: var(--ink);
    border: none;
    padding: 0;
}

.article-cta-final > p {
    margin: 0 auto 2rem;
    max-width: 600px;
    font-size: 17px;
    line-height: 1.6;
    color: #374151;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
}


/* ============================================ */
/* BADGES - Simples */
/* ============================================ */

.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(65,105,225,.1);
    color: var(--primary);
}


/* ============================================ */
/* RESPONSIVE - Mobile */
/* ============================================ */

@media (max-width: 47.999rem) {
    .article-hero h1 {
        font-size: 28px;
    }

    .article-section h2,
    .blog-article h2 {
        font-size: 24px;
    }

    .article-section,
    .article-intro {
        margin: 2.5rem 0;
    }

    .feature-grid {
        gap: 2rem;
    }

    .testimonials-grid {
        gap: 2rem;
    }
}
