@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: #161616;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #4169E1;
    --accent-hover: #3a5fd0;
    --border-radius: 12px;
    --spacing-unit: 4px;
    --nav-height: 80px;
    --max-width: 1440px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: white;
}

/* Typographie */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

.article-content h3 {
    margin: calc(var(--spacing-unit) * 2.5) 0;
}



p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

section {
    padding: calc(var(--spacing-unit) * 2) 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 calc(var(--spacing-unit) * 5);
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--accent);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}

.nav-links a {
    position: relative;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    padding: calc(var(--spacing-unit) * 1.5) 0;
    text-align: center;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 calc(var(--spacing-unit) * 3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(65, 105, 225, 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 925px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: calc(var(--spacing-unit) * 2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    margin: calc(var(--spacing-unit) * 3) auto;
    max-width: 600px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1.5);
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 6);
    background: var(--accent);
    color: white;
    border-radius: 100px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin: 0 calc(var(--spacing-unit) * 1);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(65, 105, 225, 0.2);
}

/* Articles */
.articles-grid {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 5);
    margin: calc(var(--spacing-unit) * 6) auto;
    /* Centre la grille */
    max-width: 1260px;
    flex-wrap: wrap;
    /* Limite la largeur de la grille */
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 400px;
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: calc(var(--spacing-unit) * 5);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: calc(var(--spacing-unit) * 2);
    color: var(--text-secondary);
}

.article-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(65, 105, 225, 0.1);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Avis les plus appréciés */
.top-reviews {
    margin: calc(var(--spacing-unit) * 10) 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 4);
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(65, 105, 225, 0.3);
}

.review-content {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.review-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: calc(var(--spacing-unit) * 2);
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.review-stats {
    display: flex;
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 2);
    font-size: 0.9rem;
}

.review-stats svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    margin-right: 0.5rem;
}

.likes-count {
    color: var(--accent);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Newsletter */
.newsletter {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 5);
    margin-top: calc(var(--spacing-unit) * 6);
    text-align: center;
    max-width: 670px;
    margin: calc(var(--spacing-unit) * 10) auto;
    border: 1px solid transparent;
}

.newsletter:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.section-header h2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-family: "Unbounded", serif;
}

.hero-content p {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Footer */
footer {
    padding: calc(var(--spacing-unit) * 8) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 4);
    margin: calc(var(--spacing-unit) * 4) 0;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg) scale(0.95);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.article-card {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.4s ease;
}

.animate-delay-1 {
    animation-delay: 0.15s;
}

.animate-delay-2 {
    animation-delay: 0.3s;
}

.animate-delay-3 {
    animation-delay: 0.45s;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) * 2);
        padding-bottom: calc(var(--nav-height) * 1.5);
    }

    .btn {
        display: block;
        width: 80%;
        margin: calc(var(--spacing-unit) * 2) auto;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Articles populaires */
.popular-posts {
    margin: calc(var(--spacing-unit) * 10) 0;
}

.popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.article-card {
    position: relative;
}

.popular-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent) !important;
    color: white !important;
}

.newsletter-input {
    flex: 1;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .popular-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-item {
        justify-content: center;
    }

    .popular-badge {
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

@keyframes subtleAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.newsletter {
    position: relative;
    overflow: hidden;
}

.animate {
    animation: subtleAppear 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

/* Améliorations pour la lisibilité des articles */
.article-content ul,
.article-content ol {
    margin: 30px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 12px 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.article-content blockquote {
    margin: 40px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.08) 0%, rgba(65, 105, 225, 0.04) 100%);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.article-content em {
    color: rgba(255, 255, 255, 0.9);
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    /* border-bottom: 1px solid rgba(65, 105, 225, 0.3); */
    transition: var(--transition);
}

.article-content a:hover {
    border-bottom-color: var(--accent);
    color: rgba(65, 105, 225, 0.8);
}

/* Améliorations des tags */
.article-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.article-tag {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.15) 0%, rgba(65, 105, 225, 0.1) 100%);
    border: 1px solid rgba(65, 105, 225, 0.2);
    color: rgba(65, 105, 225, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.article-tag:hover {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.2) 0%, rgba(65, 105, 225, 0.15) 100%);
    border-color: rgba(65, 105, 225, 0.4);
    transform: translateY(-1px);
}

/* Ajouter ces styles */
.hero-content {
    perspective: 1000px;
}

.article-card {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}


.copyright span {
    font-weight: 600;
    color: #fff;
}

.toast-container {
    position: fixed;
    top: 25px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    position: relative;
    width: 400px;
    border-radius: 12px;
    background: var(--bg-card);
    /* Fond sombre cohérent avec le thème */
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px -5px rgba(65, 105, 225, 0.2);
    /* Ombre bleutée */
    display: flex;
    overflow-x: hidden;
    align-items: center;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.toast.active {
    transform: translateX(0%);
}

.toast .toast-content {
    display: flex;
    align-items: center;
}

.toast-content .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 35px;
    font-size: 35px;
    color: #fff;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    /* Texte en gris clair pour le contraste */
    font-optical-sizing: auto;
    font-style: normal;
}

.message .text.text-1 {
    font-weight: 600;
    color: var(--text-primary);
    /* Texte principal en blanc */
}

.toast .close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toast .close:hover {
    opacity: 1;
}

.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

.toast .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--accent);
    /* Utilisation de la couleur d'accent bleue */
}

/* Si vous modifiez la variable de timeout dans le JS, pensez à modifier ici aussi */
.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

/* Couleurs spécifiques pour chaque type de toast */
.toast.success .icon {
    color: rgb(25, 135, 84);
}

.toast.error .icon {
    color: rgb(220, 53, 69);
}

.toast.warning .icon {
    color: rgb(255, 193, 7);
}

.toast.info .icon {
    color: rgb(13, 202, 240);
}

.toast.success .progress:before {
    background: rgb(25, 135, 84);
}

.toast.error .progress:before {
    background: rgb(220, 53, 69);
}

.toast.warning .progress:before {
    background: rgb(255, 193, 7);
}

.toast.info .progress:before {
    background: rgb(13, 202, 240);
}


/* Media Queries */
@media (max-width: 530px) {
    .footer-links {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
}







/* Styles pour l'en-tête de l'article */
.article-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(22, 22, 22, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(65, 105, 225, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(65, 105, 225, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.article-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-title {
    font-size: clamp(2.2rem, 5vw, 2.85rem);
    margin: 30px 0;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Unbounded", serif;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    display: block;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reading-time {
    font-size: 0.9rem;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.like-button:hover {
    color: var(--accent);
}

.likes-count {
    font-weight: 500;
}

.article-cover {
    margin: 40px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.cover-credits {
    font-size: 0.7rem;
    text-align: right;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Styles pour le contenu de l'article */
.article-content-wrapper {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.75;
    overflow: hidden;
    position: relative;
}

@media only screen and (max-width: 800px) {
    .article-content {
        max-width: calc(100% - 2rem);
        padding: 0 1rem;
    }
}

/* Hiérarchie typographique moderne */
.article-content .oldh1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 60px 0 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #ffffff;
    position: relative;
    padding-left: 0;
    border: none;
}

.article-content .oldh1::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(65, 105, 225, 0.6) 100%);
    border-radius: 2px;
}

.article-content h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin: 50px 0 25px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Titres H2 seuls entre --- (en rouge) */
.article-content h2.title-alone-red {
    color: #fff;
    background: #2545eb;
    font-weight: 600;
    text-align: center;
    margin: 30px 0;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    padding: 10px 20px;
}

.article-content h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin: 40px 0 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.4;
    font-family: "Inter", sans-serif;
}

.article-content h4 {
    font-size: 1.1rem;
    margin: 30px 0 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.article-content p {
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

pre {
    background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
    padding: 30px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #f8f8f2;
    line-height: 1.6;
}

.article-note {
    padding: 25px;
    border-radius: 12px;
    margin: 35px 0;
    font-size: 0.95rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.note {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.12) 0%, rgba(65, 105, 225, 0.08) 100%);
    border: 1px solid rgba(65, 105, 225, 0.2);
    border-left: 4px solid var(--accent);
}

.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    margin-bottom: 15px;
}

.article-table {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.9) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(65, 105, 225, 0.1);
    color: var(--accent);
    font-weight: 500;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.article-steps {
    margin: 40px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
}

/* Actions de l'article */
.article-actions {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.share-buttons span {
    font-weight: 500;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 100px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.twitter {
    color: #1DA1F2;
    border-color: rgba(29, 161, 242, 0.3);
}

.share-button.linkedin {
    color: #0077B5;
    border-color: rgba(0, 119, 181, 0.3);
}

.like-section {
    text-align: center;
}

.like-button.large {
    padding: 12px 25px;
    border-radius: 100px;
    background: rgba(65, 105, 225, 0.1);
    border: none;
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.like-button.large:hover {
    background: rgba(65, 105, 225, 0.2);
}

/* Carte auteur */
.author-card {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 60px 0;
    align-items: center;
}

.author-avatar.large {
    width: 100px;
    height: 100px;
}

.author-info h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.author-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.author-link:hover {
    color: var(--accent);
}

.author-link:hover svg {
    fill: var(--accent);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    width: 300px;
    float: right;
    margin-left: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}


/* Styles pour l'en-tête de l'article */
.article-header {
    padding: 120px 0 60px;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, rgba(22, 22, 22, 0.8) 100%);
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(65, 105, 225, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.article-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    display: block;
    text-align: left;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media only screen and (max-width: 450px) {
    .article-stats {
        flex-direction: column;
    }
}

.reading-time {
    font-size: 0.9rem;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.like-button:hover {
    color: var(--accent);
}

.likes-count {
    font-weight: 500;
}

.article-cover {
    margin: 40px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
}

.cover-credits {
    font-size: 0.8rem;
    text-align: right;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Styles pour le contenu de l'article */
.article-content-wrapper {
    padding: 60px 0;
}

.article-content p {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.article-toc {
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin: 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.article-toc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(65, 105, 225, 0.6) 100%);
}

.toc-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0 !important;
}

.article-toc ol {
    padding-left: 25px;
    counter-reset: toc-counter;
}

.article-toc li {
    margin: 12px 0;
    padding-left: 5px;
    position: relative;
    counter-increment: toc-counter;
}

.article-toc a {
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 400;
    line-height: 1.5;
}

.article-toc a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Style pour les titres rouges dans le sommaire */
.article-toc .toc-red-item {
    margin-left: 20px;
    position: relative;
}

.article-toc .toc-red-item a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.article-toc .toc-red-item a:hover {
    color: var(--accent);
}

pre {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #f8f8f2;
}

.article-note {
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    font-size: 0.95rem;
}

.note {
    background: rgba(65, 105, 225, 0.1);
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 0.95rem
}

.article-table {
    overflow-x: auto;
    margin: 30px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(22, 22, 22, 0.9) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(65, 105, 225, 0.1);
    color: var(--accent);
    font-weight: 500;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.article-steps {
    margin: 40px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
}

/* Actions de l'article */
.article-actions {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.share-buttons span {
    font-weight: 500;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 100px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.twitter {
    color: #1DA1F2;
    border-color: rgba(29, 161, 242, 0.3);
}

.share-button.linkedin {
    color: #0077B5;
    border-color: rgba(0, 119, 181, 0.3);
}

.like-section {
    text-align: center;
}

.like-button.large {
    padding: 12px 25px;
    border-radius: 100px;
    background: rgba(65, 105, 225, 0.1);
    border: none;
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.like-button.large:hover {
    background: rgba(65, 105, 225, 0.2);
}

/* Carte auteur */
.author-card {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 60px 0;
    align-items: center;
}

.author-avatar.large {
    width: 100px;
    height: 100px;
}

.author-info h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.author-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.author-link:hover {
    color: var(--accent);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    width: 300px;
    float: right;
    margin-left: 40px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: white;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-nav ul {
    list-style: none;
    padding-left: 0;
}

.toc-link {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
}

.toc-link:hover,
.toc-link.active {
    color: var(--accent);
}

.sidebar-article {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-article h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar-article .article-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-sidebar {
        width: 100%;
        float: none;
        margin-left: 0;
        margin-top: 60px;
    }

    .article-content-wrapper .container {
        display: flex;
        flex-direction: column;
    }

    .article-content {
        max-width: calc(100% - 2rem);
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 120px 0 50px;
    }

    .article-header-content {
        max-width: calc(100% - 2rem);
        padding: 0 1rem;
    }

    .article-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin: 20px 0;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 20px 0;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        margin: 50px 0;
    }

    .author-links {
        justify-content: center;
    }

    .article-content {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .article-content .oldh1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin: 40px 0 20px;
    }

    .article-content h2 {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
        margin: 35px 0 20px;
    }

    .article-content h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.25rem);
        margin: 30px 0 15px;
    }

    .article-toc {
        margin: 40px 0;
        padding: 25px;
    }

    .article-toc li {
        padding-left: 30px;
    }

    .article-toc li::before {
        width: 20px;
    }

    pre {
        padding: 20px;
        margin: 30px 0;
        font-size: 0.85rem;
    }

    .article-table {
        margin: 30px 0;
    }

    th,
    td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 100px 0 40px;
    }

    .article-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    .article-content .oldh1::before {
        left: -15px;
        width: 3px;
    }

    .article-toc {
        padding: 20px;
    }

    .article-note,
    .note,
    .warning {
        padding: 20px;
        margin: 25px 0;
    }
}

.author-info-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}






/* Styles pour les blocs de code */
.code-block {
    margin: 25px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

pre {
    background: #1e1e1e !important;
    padding: 20px;
    margin: 0;
    border-radius: var(--border-radius);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    font-family: inherit;
    color: #f8f8f2;
    background: transparent !important;
    padding: 0 !important;
}

/* Coloration syntaxique pour thème sombre */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6A9955;
}

.token.punctuation {
    color: #d4d4d4;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #b5cea8;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #ce9178;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #d4d4d4;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #569cd6;
}

.token.function,
.token.class-name {
    color: #dcdcaa;
}

.token.regex,
.token.important,
.token.variable {
    color: #d16969;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

.empty-state {
    text-align: center;
    margin-top: 100px;
}

.empty-state p {
    margin-bottom: 50px;
}

.like-button.large.liked {
    background: #4169e1 !important;
    color: #fff !important;
    border-radius: 25px;
}

@media only screen and (max-width: 450px) {
    .share-buttons {
        flex-direction: column;
        gap: 15px;
    }
}



.anthonyuno-cta-section {
    background: #0f1117;
    padding: 80px 20px;
    text-align: center;
    color: #f4f4f4;
    margin-bottom: 50px;
}

.anthonyuno-container {
    max-width: 1000px;
    margin: 0 auto;
}

.anthonyuno-cta-box {
    background-color: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.anthonyuno-cta-box:hover {
    transform: translateY(-4px);
}

.anthonyuno-cta-box h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    font-family: "Unbounded", serif;
}

.anthonyuno-cta-box p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.anthonyuno-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-weight: 500;
    background-color: var(--accent, #4f8cff);
    /* Couleur vive */
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.anthonyuno-btn:hover {
    background-color: var(--accent-hover, #366edc);
    transform: scale(1.05);
}

.anthonyuno-btn svg {
    margin-left: 8px;
    stroke: currentColor;
}

.anthonyuno-clients-block {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin: 0 auto;
    width: fit-content;
    background-color: #ffffff05;
    border-radius: 12px;
    padding: 12px 25px;
    margin-bottom: 15px;
}

.anthonyuno-clients-avatars {
    display: flex;
    margin-right: 10px;
}

.anthonyuno-clients-text {
    font-size: 14px;
    font-family: 'Unbounded';
    cursor: url(/assets/imgs/mouse-text.svg), auto;
}

.anthonyuno-clients-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #000;
    object-fit: cover;
    margin-left: -10px;
    background-color: #000;
    cursor: url(/assets/imgs/mouse-hover.svg), auto;
}

.anthonyuno-mini-promo {
    background-color: #0d0e11;
    color: #f0f0f0;
    padding: 20px 16px;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 40px auto;
    max-width: 600px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.anthonyuno-mini-promo a {
    color: var(--accent, #4f8cff);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.anthonyuno-mini-promo a:hover {
    color: var(--accent-hover, #366edc);
}

.anthonyuno-mini-promo strong {
    font-weight: 600;
}

.animate .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-family: 'Quicksand';

    color: #FFF;
    -webkit-text-stroke-width: 0.35px;
    -webkit-text-stroke-color: #FFF;
    font-size: 24.81px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
}

.security-tips {
    background-color: #141414;
    border-left: 4px solid var(--accent);
    padding: 1em 1.5em;
    margin: 2em 0;
    border-radius: 4px;
}

.security-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.security-tips li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.security-tips li::before {
    content: "\2794";
    /* ➔ */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--accent);
    line-height: 1;
}

.security-tips li:hover {
    background: rgba(46, 125, 50, 0.05);
}