﻿/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #f8f9fa;
    line-height: 1.7;
    scroll-behavior: smooth;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.ao-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.ao-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.ao-logo-wrap {
    flex-shrink: 0;
}

.ao-logo img {
    width: 145px;
    height: auto;
    transition: transform 0.3s ease;
}

    .ao-logo img:hover {
        transform: scale(1.03);
    }

.ao-main-menu {
    flex-grow: 1;
    text-align: center;
}

.ao-nav-menu {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .ao-nav-menu a {
        color: #1a1a2e;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.05rem;
        transition: color 0.3s ease;
    }

        .ao-nav-menu a:hover {
            color: #3a86ff;
        }

        .ao-nav-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #3a86ff;
            transition: width 0.3s ease;
        }

        .ao-nav-menu a:hover::after {
            width: 100%;
        }

.ao-header-right {
    flex-shrink: 0;
}

.ao-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

    .ao-menu-toggle span {
        width: 28px;
        height: 3px;
        background: #1a1a2e;
        border-radius: 2px;
    }

/* === Boutons === */
.ao-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ao-btn-primary {
    background: #3a86ff;
    color: white;
}

    .ao-btn-primary:hover {
        background: #2a75e0;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(58, 134, 255, 0.2);
    }

.ao-btn-outline {
    background: transparent;
    color: #3a86ff;
    border: 2px solid #3a86ff;
}

    .ao-btn-outline:hover {
        background: #3a86ff;
        color: white;
    }

.ao-btn-lg {
    font-size: 1.05rem;
    padding: 14px 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === Title Bar (Pages : Accueil, Blogs, Catégories, etc.) === */
.ao-title-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

    .ao-title-bar h1 {
        font-size: 2.6rem;
        font-weight: 700;
        margin: 0 0 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .ao-title-bar p {
        font-size: 1.1rem;
        opacity: 0.9;
        max-width: 700px;
        margin: 0 auto;
    }

/* === Profil (Accueil) === */
.ao-profile {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 60px auto;
    padding: 50px;
    max-width: 1000px;
}

.ao-profile-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ao-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3a86ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ao-info h1 {
    font-size: 2.6rem;
    color: #1a1a2e;
    margin: 0;
    font-weight: 700;
}

.ao-title {
    color: #3a86ff;
    font-size: 1.15rem;
    margin: 8px 0;
    font-weight: 500;
}

.ao-bio {
    color: #6c757d;
    line-height: 1.7;
    max-width: 600px;
    margin-top: 12px;
}

/* === Compétences === */
.ao-skills h2 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-weight: 600;
}

.ao-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

    .ao-tags span {
        background: #e9f5ff;
        color: #3a86ff;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        border: 1px solid #d0e7ff;
        transition: all 0.3s ease;
    }

        .ao-tags span:hover {
            background: #3a86ff;
            color: white;
        }

/* === Services === */
.ao-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ao-service {
    background: #f8f9fa;
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid #3a86ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .ao-service:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .ao-service i {
        color: #3a86ff;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .ao-service h3 {
        margin: 0 0 10px;
        color: #1a1a2e;
        font-size: 1.25rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ao-service p {
        color: #6c757d;
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0;
    }

/* === Liens sociaux === */
.ao-social-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

    .ao-social-links a {
        color: #3a86ff;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: color 0.3s ease;
    }

        .ao-social-links a:hover {
            color: #2a75e0;
        }

        .ao-social-links a i {
            font-size: 1.1rem;
        }

/* === Articles (Cartes) === */
.ao-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .ao-post-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    }

.ao-post-img-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.ao-post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ao-post-date,
.ao-post-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #6c757d;
}

.ao-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.ao-post-title {
    font-size: 1.35rem;
    margin: 0 0 12px;
    line-height: 1.4;
}

    .ao-post-title a {
        color: #1a1a2e;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .ao-post-title a:hover {
            color: #3a86ff;
        }

.ao-post-excerpt {
    color: #6c757d;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

/* === Pagination === */
.ao-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.ao-pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

    .ao-pagination li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: 1px solid #dee2e6;
        color: #1a1a2e;
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

        .ao-pagination li a.active,
        .ao-pagination li a:hover {
            background: #3a86ff;
            color: white;
            border-color: #3a86ff;
        }

            .ao-pagination li a:hover:not(.active) {
                transform: translateY(-2px);
            }

/* === Footer === */
.ao-footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.ao-footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.ao-footer-logo img {
    width: 145px;
    height: auto;
}

.ao-footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 1.4rem;
}

    .ao-footer-social a {
        color: #b0b0b0;
        transition: color 0.3s ease;
    }

        .ao-footer-social a:hover {
            color: #3a86ff;
        }

.ao-footer-contact-info {
    color: #b0b0b0;
}

    .ao-footer-contact-info a {
        color: #3a86ff;
        text-decoration: none;
        font-weight: 500;
    }

.ao-footer-copyright {
    text-align: center;
    padding-top: 30px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* === Blogs List === */
.ao-blogs-list {
    padding: 40px 0;
}

.ao-section-title {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

    .ao-section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: #3a86ff;
        border-radius: 2px;
    }

.ao-section-desc {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.ao-no-results {
    color: #6c757d;
    font-style: italic;
    margin: 40px 0;
}

/* === Article Page === */
.ao-article {
    padding: 60px 0;
}

.ao-article-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.ao-article-header .ao-category-tag {
    display: inline-block;
    background: #3a86ff;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 12px;
}

.ao-article-title {
    font-size: 2.4rem;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.ao-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    color: #6c757d;
    font-size: 0.95rem;
}

.ao-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ao-author-info img {
        width: 24px;
        height: 24px;
        border-radius: 50%;
    }

.ao-social-share {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
}

    .ao-social-share a {
        color: #6c757d;
        transition: color 0.3s ease;
    }

        .ao-social-share a:hover {
            color: #3a86ff;
        }

/* === Sections (Article) === */
.ao-section-intro {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.ao-subsection-title {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin: 20px 0 12px;
    font-weight: 600;
}

.ao-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin: 16px 0;
}

.ao-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

    .ao-video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.ao-quote {
    border-left: 4px solid #3a86ff;
    margin: 20px 0;
    padding: 16px 20px;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
    border-radius: 0 12px 12px 0;
}

.ao-code {
    background: #1e1e2e;
    color: #dcdcdc;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 16px 0;
}

.ao-custom-content {
    border: 2px dashed #3a86ff;
    background: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
}

/* === Tags Section (Article) === */
.ao-tags-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ao-tags-title {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.ao-tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .ao-tag-list a {
        background: #e9f5ff;
        color: #3a86ff;
        padding: 6px 14px;
        border-radius: 50px;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

        .ao-tag-list a:hover {
            background: #3a86ff;
            color: white;
        }

/* === Catégories Page === */
.ao-categories-grid {
    padding: 20px 0;
}

.ao-category-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

    .ao-category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
        border-color: #3a86ff;
    }

.ao-category-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #3a86ff;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.ao-category-card:hover .ao-category-icon {
    background: #2a75e0;
    transform: scale(1.1);
}

.ao-category-content h3 {
    font-size: 1.25rem;
    color: #1a1a2e;
    margin: 0 0 6px;
    font-weight: 600;
}

.ao-category-content p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 8px;
}

.ao-read-more {
    font-size: 0.9rem;
    color: #3a86ff;
    font-weight: 500;
    display: inline-block;
}

.ao-empty-state {
    color: #6c757d;
    text-align: center;
    padding: 40px 0;
}

/* === Tags Page === */
.ao-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 20px 0;
}

.ao-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1a1a2e;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

    .ao-tag:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        background: #f0f8ff;
        border-color: #3a86ff;
        color: #3a86ff;
    }

    .ao-tag i {
        opacity: 0;
        transition: all 0.3s ease;
        font-size: 0.85rem;
    }

    .ao-tag:hover i {
        opacity: 1;
        transform: translateX(2px);
    }

/* === Contact Page === */
.ao-contact-form {
    padding: 40px 0;
}

.ao-contact-info h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.ao-contact-list {
    list-style: none;
    padding: 0;
}

    .ao-contact-list li {
        margin-bottom: 16px;
        color: #6c757d;
    }

    .ao-contact-list i {
        width: 24px;
        color: #3a86ff;
    }

    .ao-contact-list a {
        color: #1a1a2e;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .ao-contact-list a:hover {
            color: #3a86ff;
        }

    .ao-contact-list span {
        font-size: 0.85rem;
        color: #6c757d;
        display: block;
        margin-top: 4px;
    }

.ao-profile-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

    .ao-profile-card img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #3a86ff;
        margin-bottom: 12px;
    }

    .ao-profile-card h4 {
        margin: 0 0 4px;
        font-size: 1.1rem;
        color: #1a1a2e;
    }

    .ao-profile-card p {
        font-size: 0.9rem;
        color: #6c757d;
        margin: 0;
    }

/* === Bouton Retour en Haut === */
.toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3a86ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
}

    .toTop img {
        width: 24px;
        height: 24px;
        filter: brightness(0) invert(1);
        transition: transform 0.3s ease;
    }

    .toTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .toTop:hover {
        background: #2a75e0;
        transform: translateY(-3px);
    }

        .toTop:hover img {
            transform: scale(1.1);
        }

/* === Responsive === */
@media (max-width: 992px) {
    .ao-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .ao-main-menu {
        width: 100%;
    }

    .ao-nav-menu {
        gap: 1.2rem;
        justify-content: center;
    }

    .ao-header-right {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .ao-btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    .ao-footer-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .ao-profile {
        padding: 30px 20px;
    }

    .ao-profile-inner {
        flex-direction: column;
        text-align: center;
    }

    .ao-bio {
        text-align: center;
    }

    .ao-social-links {
        justify-content: center;
    }

    .ao-post-img-link img {
        height: 180px;
    }

    .ao-post-title {
        font-size: 1.25rem;
    }

    .ao-footer-info {
        grid-template-columns: 1fr;
    }

    .ao-menu-toggle {
        display: flex;
    }

    .ao-main-menu {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }

        .ao-main-menu.show {
            display: block;
        }

    .ao-category-tag,
    .ao-tag {
        font-size: 0.95rem;
        padding: 9px 18px;
        min-width: 100px;
    }

    .ao-section-title {
        font-size: 1.8rem;
    }

    .toTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

        .toTop img {
            width: 20px;
            height: 20px;
        }

    .ao-contact-info {
        order: -1;
    }
}

/* === Animation Hamburger → Croix === */
.ao-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.ao-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ao-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* === Header - ao-header === */
.ao-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

.ao-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.ao-logo-wrap {
    flex-shrink: 0;
}

.ao-logo img {
    width: 145px;
    height: auto;
    transition: transform 0.3s ease;
}

    .ao-logo img:hover {
        transform: scale(1.03);
    }

.ao-main-menu {
    flex-grow: 1;
    text-align: center;
}

.ao-nav-menu {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .ao-nav-menu a {
        color: #1a1a2e;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.05rem;
        transition: color 0.3s ease;
    }

        .ao-nav-menu a:hover {
            color: #3a86ff;
        }

.ao-header-right {
    flex-shrink: 0;
}

.ao-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ao-btn-primary {
    background: #3a86ff;
    color: white;
}

    .ao-btn-primary:hover {
        background: #2a75e0;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(58, 134, 255, 0.2);
    }
/* Responsive */
@media (max-width: 992px) {
    .ao-header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .ao-main-menu {
        width: 100%;
    }

    .ao-nav-menu {
        gap: 1.2rem;
        justify-content: center;
    }

    .ao-header-right {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .ao-btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }
}