/* Variables CSS */
:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8b9ef5;
    --secondary-color: #764ba2;
    --secondary-light: #9d7ec8;
    --accent-color: #f093fb;
    --success-color: #43e97b;
    --danger-color: #fa5252;
    --warning-color: #ffd93d;
    --info-color: #6bcaff;
    --dark-bg: #0f0f1e;
    --light-bg: #f7f9fc;
    --border-color: #e1e8ed;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --text-lighter: #95a5a6;
    --spacing: 1rem;
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.12);
    --shadow-md: 0 8px 24px rgba(102, 126, 234, 0.18);
    --shadow-lg: 0 16px 48px rgba(102, 126, 234, 0.24);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2%;
}

/* ========================================
NAVBAR - Header Responsive avec Animations
======================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar:hover {
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing);
}

.logo {
    display: flex;
    align-items: center;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 700;
    color: white;
    gap: 0.5rem;
    transition: var(--transition);
    animation: slideInDown 0.6s ease-out;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: clamp(30px, 5vw, 45px);
    width: auto;
    transition: var(--transition);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    animation: fadeInDown 0.6s ease-out;
}

.nav-links a {
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile Touch Targets - WCAG 2.1 AAA */
a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

button {
    min-height: 44px;
    min-width: 44px;
}

/* Improve focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5% var(--spacing);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="transparent"/><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="25" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.7s ease-out;
    font-weight: 700;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.95;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

/* Blog Section */
.blog-section {
    padding: 5% var(--spacing);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.blog-main {
    flex: 1;
}

.blog-search {
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out;
}

.search-form {
    display: flex;
    gap: 0.8rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.search-btn:hover {
    background: #0056b3;
}

.articles-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-widget a:hover {
    color: #0056b3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
}

.page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Article Page */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.article-content {
    flex: 1;
    animation: fadeInUp 0.8s ease-out;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
}

.article-header h1 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    font-size: 2.5rem;
}

.article-meta-data {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.article-meta-item:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    display: block;
}

/* Services Grid */

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ec56f);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ec56f, #1fba57);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    color: white;
    padding: 3rem var(--spacing) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(240, 147, 251, 0.3);
}

/* ========================================
RESPONSIVE DESIGN - Final Adjustments
======================================== */

@media (max-width: 1024px) {

    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: 2;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .articles-blog-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-body {
        font-size: 1rem;
    }
}
















































































































































































































































































































































































































































































































































































.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.navbar .logo img {
    max-width: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
}

/* Menu Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.35rem;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation hamburger au clic */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: row;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

.btn-admin {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-admin:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   RESPONSIVE - Tablet (768px - 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .navbar .logo {
        gap: 0.3rem;
    }

    .navbar .logo span {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }
}

/* ========================================
   RESPONSIVE - Mobile (≤768px)
   ======================================== */

@media (max-width: 768px) {

    /* Afficher hamburger */
    .hamburger {
        display: flex;
    }

    /* Masquer menu horizontal */
    .nav-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), #0056b3);
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 8px 8px;

        /* Caché par défaut */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    /* Menu visible */
    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 1rem 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }

    .nav-links a:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .btn-admin {
        background: rgba(255, 255, 255, 0.25);
        margin: 0.5rem 2rem;
        display: inline-block;
        width: calc(100% - 4rem);
        text-align: center;
    }

    .navbar .logo span {
        font-size: 1.1rem;
    }

    .navbar .logo {
        gap: 0.3rem;
    }

    .hamburger-line {
        width: 24px;
        height: 2.5px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 6rem var(--spacing);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 3 !important;
    margin-top: 2rem !important;
}

/* Buttons */
.btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    border: none !important;
    transition: var(--transition) !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.btn-primary:active {
    transform: translateY(-1px) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color)) !important;
    color: white !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-color), #6b3d8f) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-small {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    margin-right: 0.5rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
}

.btn-small:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

.btn-block {
    width: 100% !important;
}

/* Articles Grid */
.articles {
    padding: 4rem var(--spacing);
    position: relative;
    z-index: 1;
}

/* Menu contextuel de partage */
.share-menu-contextual {
    position: fixed !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    padding: 0.5rem 0 !important;
    z-index: 99999 !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 300px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto !important;
    left: auto !important;
    right: auto !important;
}

.share-menu-contextual a {
    display: block !important;
    padding: 0.75rem 1.25rem !important;
    color: #333 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
    text-overflow: clip !important;
    background: white !important;
    border: none !important;
    transition: all 0.25s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    line-height: 1.4 !important;
    border-left: 3px solid transparent !important;
}

.share-menu-contextual a:hover {
    background: #f5f5f5 !important;
    border-left-color: var(--primary-color) !important;
    padding-left: 1.5rem !important;
}

.share-menu-contextual a:active {
    background: #efefef !important;
}

/* Adaptation du menu contextuel pour tablettes (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .share-menu-contextual {
        min-width: 200px !important;
        max-width: 320px !important;
    }
    
    .share-menu-contextual a {
        padding: 0.65rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .share-menu-contextual a:hover {
        padding-left: 1.2rem !important;
    }
}

/* Adaptation du menu contextuel pour petits écrans (<768px) */
@media (max-width: 767px) {
    .share-menu-contextual {
        min-width: 220px !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    .share-menu-contextual a {
        padding: 0.6rem 0.85rem !important;
        font-size: 0.85rem !important;
    }
    
    .share-menu-contextual a:hover {
        padding-left: 1.05rem !important;
    }
}

/* Adaptation du menu contextuel pour très petits écrans (<480px) */
@media (max-width: 479px) {
    .share-menu-contextual {
        min-width: 200px !important;
        max-width: calc(100vw - 16px) !important;
    }
    
    .share-menu-contextual a {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .share-menu-contextual a:hover {
        padding-left: 0.95rem !important;
    }
}

.articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    animation: slideInUp 0.6s ease-out;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-sizing: border-box;
    position: relative;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16 / 9;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.article-card h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
}

.article-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.article-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: auto;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Bouton partager - Voir définition complète plus bas */

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
    margin-right: auto;
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Single Article */
.single-article {
    padding: 3rem var(--spacing);
}

.article-layout {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.article-main {
    padding: 3rem;
}

.single-article h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #333;
}

.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    color: var(--text-light);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: #444;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

/* Services */
.hero-services {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 4rem var(--spacing);
    text-align: center;
}

.hero-services h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-services p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-services .subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.services {
    padding: 3rem 2rem;
    background: var(--light-bg);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    max-width: 100vw;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.services h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    width: 100%;
}

.service-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card.basic {
    border-top-color: #28a745;
}

.service-card.medium {
    border-top-color: #ffc107;
}

.service-card.advanced {
    border-top-color: #dc3545;
}

.service-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.service-card.basic .service-badge {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.service-card.medium .service-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.service-card.advanced .service-badge {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-link:hover {
    transform: translateX(5px);
}

/* Features Section */
.features-section {
    padding: 5% var(--spacing);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6% var(--spacing);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 158, 245, 0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Cahier des Charges */
.cahier-charges {
    padding: 5% var(--spacing) 6%;
}

.cdc-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
    animation: slideInUp 0.6s ease-out;
}

.cdc-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cdc-header h2 {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    color: var(--text-color);
    margin-bottom: 1rem;
}

.cdc-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cdc-header .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.cdc-section {
    margin-bottom: 3rem;
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
}

.cdc-section h3 {
    color: var(--primary-color);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    margin-bottom: 1.5rem;
}

.cdc-content {
    line-height: 1.8;
}

.cdc-content p {
    margin-bottom: 1rem;
}

.cdc-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.cdc-content li {
    margin-bottom: 0.5rem;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.objective-box {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.objective-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-detail {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.service-header h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-basic {
    background: #d4edda;
    color: #155724;
}

.badge-medium {
    background: #fff3cd;
    color: #856404;
}

.badge-advanced {
    background: #f8d7da;
    color: #721c24;
}

.service-table {
    width: 100%;
    margin-top: 1rem;
}

.service-table tr {
    border-bottom: 1px solid var(--border-color);
}

.service-table tr:last-child {
    border-bottom: none;
}

.service-table td {
    padding: 1rem;
    vertical-align: top;
}

.service-table td:first-child {
    font-weight: bold;
    width: 150px;
    color: var(--primary-color);
}

.constraints-list {
    list-style: none;
    margin-left: 0;
}

.constraints-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.delivery-box {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.delivery-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

.criteria-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

/* ====== BLOG STYLES ====== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 4rem var(--spacing);
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto;
}

.blog-main {
    grid-column: 1;
}

.blog-sidebar {
    grid-column: 2;
    display: none;
}

/* Blog Search */
.blog-search {
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.search-btn:hover {
    background: #0056b3;
}

/* Articles Grid */
.articles-blog-grid,
.articles-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-sizing: border-box;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16 / 9;
}

.blog-card-image img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
    visibility: visible;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

.blog-card h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
}

.blog-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    align-self: flex-start;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Blog Card Footer avec bouton de partage */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: auto;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.share-quick-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-quick-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.2) rotate(10deg);
}

.read-more {
    margin-left: auto;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.sidebar-widget h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.sidebar-widget p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 4px;
}

.categories-list a:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(5px);
}

.categories-list .count {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.trending-list {
    list-style: none;
}

.trending-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.trending-list li:last-child {
    border-bottom: none;
}

.trending-list a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.trending-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.trending-views {
    font-size: 0.85rem;
    color: var(--text-light);
}

.newsletter-widget {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border-left-color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.newsletter-form button {
    width: 100%;
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-left-color: white;
}

.cta-widget h4 {
    color: white;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-widget a {
    background: white;
    color: var(--primary-color);
}

.cta-widget a:hover {
    background: var(--light-bg);
}

.meta-info {
    font-size: 0.9rem;
}

.meta-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Article Single Page */
.article-hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 2rem var(--spacing);
}

.article-hero .container {
    max-width: 900px;
}

.breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* Alert Styles */
.alert {
    margin: 1rem 0;
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #43e97b 0%, #38d4a6 100%);
    border: 1px solid rgba(67, 233, 123, 0.3);
    color: white;
    padding: 0;
}

.alert-error {
    background: linear-gradient(135deg, #fa5252 0%, #ff6b6b 100%);
    border: 1px solid rgba(250, 82, 82, 0.3);
    color: white;
    padding: 0;
}

.alert-success .container {
    padding: 1.5rem 2%;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.alert-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.alert-close:hover {
    transform: scale(1.2);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0.95;
    font-size: 0.95rem;
}

.article-single {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fb 100%);
    min-height: 80vh;
    box-sizing: border-box;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 100%;
    margin: 2rem auto;
    width: 100%;
    padding: 4rem;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

.article-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 20px 20px 0 0;
}

.article-main {
    grid-column: 1;
    padding: 0;
    max-width: 100%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.article-sidebar {
    display: none;
}

.toc {
    background: var(--light-bg);
    padding: 1.5rem var(--spacing);
    border-radius: 0;
    margin-bottom: 2rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    border-left: none;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    box-sizing: border-box;
}

.toc h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.toc a:hover {
    transform: translateX(5px);
}

.article-content {
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    padding: 2rem 3rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article-content h2 {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    padding-left: 1;
    padding-right: 0;
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    padding-left: 1;
    padding-right: 0;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
    padding-left: 0;
    padding-right: 0;
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
    margin-right: 0;
    padding-left: 1.5rem;
    overflow-wrap: break-word;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Styles pour les images, tables et code du contenu */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-sizing: border-box;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
    box-sizing: border-box;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.article-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.article-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-sizing: border-box;
}

.article-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Author Bio */
.author-bio {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.author-avatar {
    font-size: 3rem;
    min-width: 60px;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.author-info p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Share Buttons */
.share-buttons {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    box-sizing: border-box;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.share-header {
    margin-bottom: 1.5rem;
}

.share-buttons h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.share-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Social buttons */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1.5px solid currentColor;
    cursor: pointer;
}

.social-btn svg {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.facebook-btn {
    color: #1877f2;
    border-color: #1877f2;
}

.facebook-btn:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.twitter-btn {
    color: #1da1f2;
    border-color: #1da1f2;
}

.twitter-btn:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.linkedin-btn {
    color: #0077b5;
    border-color: #0077b5;
}

.linkedin-btn:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.whatsapp-btn {
    color: #25d366;
    border-color: #25d366;
}

.whatsapp-btn:hover {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Article Share Button - Web Share API */
.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1.5px solid var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    flex-shrink: 0;
}

.article-share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.article-share-btn:active {
    transform: translateY(0);
}

.article-share-btn span {
    font-size: 1.1rem;
    display: inline-block;
}

/* ===== BOUTON PARTAGER - STYLE UNIFIÉ ===== */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    z-index: 1;
    flex-shrink: 0;
}

.share-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
    color: var(--secondary-color);
}

.share-btn:active {
    transform: translateX(2px);
}

.share-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-label {
    white-space: nowrap;
    font-size: 13px;
}

/* Network-specific colors */
.share-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-twitter {
    color: #000000;
    border-color: #000000;
}

.share-twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.share-linkedin {
    color: #0a66c2;
    border-color: #0a66c2;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.share-whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.share-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-email {
    color: #ea4335;
    border-color: #ea4335;
}

.share-email:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

.share-copy {
    color: #667eea;
    border-color: #667eea;
}

.share-copy:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.copy-notification {
    margin-top: 1.5rem;
    padding: 14px 18px;
    background: linear-gradient(135deg, #d4edda 0%, #c8e6c9 100%);
    border: 2px solid #28a745;
    border-radius: 8px;
    color: #155724;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comments */
.comments-section {
    margin-bottom: 0;
    padding: 3rem;
    background: white;
    margin: 3rem auto;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.comments-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-top: none;
    padding-top: 0;
}

.comment {
    background: rgba(102, 126, 234, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.06);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-header strong {
    color: var(--text-color);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.6;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Category Page */
.category-hero {
    color: white;
    padding: 3rem var(--spacing);
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.category-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Search Page */
.search-hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 3rem var(--spacing);
    text-align: center;
}

.search-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-section {
    padding: 2rem var(--spacing) 4rem;
}

.results-count {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-error {
    padding: 3rem;
    text-align: center;
    background: var(--light-bg);
    border-radius: 8px;
    margin: 2rem 0;
}

.article-error a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.related-articles strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.related-articles a:hover strong {
    transform: translateX(5px);
}

.related-articles .date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive */
/* Tablettes (768px à 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {

    .articles-blog-grid,
    .articles-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {

    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
        margin: 1rem 0;
        box-sizing: border-box;
    }

    .blog-sidebar,
    .article-sidebar {
        display: none;
    }

    .article-hero h1 {
        font-size: 1.8rem;
    }

    .article-meta {
        font-size: 0.85rem;
        gap: 0.75rem;
    }

    .article-content {
        padding: 1rem;
        line-height: 1.7;
        font-size: 0.95rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
        margin-top: 1.2rem;
    }

    .article-content ul,
    .article-content ol {
        margin-left: 1.5rem;
        padding-left: 1rem;
    }

    .share-buttons {
        padding: 1.5rem;
        margin: 2rem 0 !important;
        border-radius: 8px;
    }

    .article-main {
        max-width: 100%;
        padding: 0 !important;
    }

    .search-form {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .articles-blog-grid,
    .articles-category-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-buttons {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }

    .share-buttons-container {
        gap: 8px;
    }

    .share-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.9rem;
    }

    .share-label {
        display: none;
    }

    .share-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .comments-section {
        padding: 1.5rem;
        margin: 2rem 0;
        border-radius: 12px;
    }

    .comment {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-form {
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 1.5rem;
    }

    .comment-form input,
    .comment-form textarea {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .article-content img {
        margin: 1rem 0;
    }

    .article-content table {
        font-size: 0.85rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 0.5rem;
    }

    .article-single {
        padding: 1rem;
        min-height: auto;
    }

    .featured-image {
        max-height: 300px;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
}
.criteria-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.criteria-table tr:hover {
    background: var(--light-bg);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

.summary-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.summary-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-table tr:hover {
    background: var(--light-bg);
}

.highlight {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--warning-color);
    margin-top: 1.5rem;
    font-weight: 500;
}

.conclusion {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border-left: 4px solid var(--primary-color);
}

/* About */
.about {
    padding: 4rem var(--spacing);
}

.about h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact */
.contact {
    padding: 4rem var(--spacing);
}

.contact h1 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Contact Page */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 0;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.contact-form-container h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-info-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.15);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-container h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-info-box {
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.contact-info-box h3 {
    color: #667eea;
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
}

.contact-info-box p {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 500;
}

.contact-info-box a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-box a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Form Container */
.contact-form {


    .contact-form .form-group input[type="text"],
    .contact-form .form-group input[type="email"],
    .contact-form .form-group textarea {
        border-radius: 12px !important;
        border-color: rgba(102, 126, 234, 0.2) !important;
        transition: all 0.3s ease !important;
    }

    .contact-form .form-group input[type="text"]:focus,
    .contact-form .form-group input[type="email"]:focus,
    .contact-form .form-group textarea:focus {
        border-color: #667eea !important;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
        background: white !important;
    }

    .contact-form .btn-submit {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        border: none;
        padding: 12px 30px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        margin-top: 1rem;
    }

    .contact-form .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    }

    .contact-form .btn-submit:active {
        transform: translateY(0);
    }

    width: 100%;
}

/* Forms - Override Bootstrap */
.form-group {
    margin-bottom: 1.5rem !important;
    animation: slideInUp 0.6s ease-out;
}

.form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    transition: var(--transition);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: 'Segoe UI', sans-serif !important;
    box-sizing: border-box !important;
    display: block !important;
    transition: var(--transition);
    background: white;
}

.form-group textarea {
    min-height: 400px !important;
    font-family: 'Courier New', monospace !important;
    resize: vertical !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.01), rgba(118, 75, 162, 0.01));
    transform: scale(1.01);
}

.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
}

.form-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.form-hint {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-top: 5px !important;
}

/* Alerts - Override Bootstrap */
.alert {
    padding: 15px !important;
    margin-bottom: 20px !important;
    border-radius: 5px !important;
}

.alert-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.alert-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Buttons - Override Bootstrap */
.btn-primary {
    background: #007bff !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background 0.3s !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.btn-primary:hover {
    background: #0056b3 !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-secondary {
    background: #6c757d !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background 0.3s !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    color: white !important;
    text-decoration: none !important;
}

/* CV Generator */
.cv-generator {
    padding: 3rem var(--spacing);
}

.cv-generator h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cv-form {
    max-width: 800px;
    margin: 0 auto;
}

fieldset {
    border: none;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

fieldset:first-of-type {
    border-top: none;
}

legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Admin */
.admin-page {
    background: var(--light-bg);
}

.admin-navbar {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 1rem 0;
}

.admin-navbar h2 {
    margin-bottom: 1rem;
}

.admin-navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.admin-navbar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.admin-navbar a:hover,
.admin-navbar a.active {
    opacity: 0.8;
    text-decoration: underline;
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 20px;
}

.admin-header h1 {
    margin: 0;
    color: #333;
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th {
    background: var(--light-bg);
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
    background: var(--light-bg);
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-published {
    background: #d4edda;
    color: #155724;
}

.badge-draft {
    background: #fff3cd;
    color: #856404;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem var(--spacing);
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* PWA Install Floating Message */
#pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    display: none;
    z-index: 999;
    animation: slideUp 0.4s ease-out;
    max-width: 450px;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        transform: translateY(120%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#pwa-install-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#pwa-install-banner.hide {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(120%);
        opacity: 0;
    }
}

#pwa-install-banner .install-content {
    flex: 1;
}

#pwa-install-banner .install-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px 0;
}

#pwa-install-banner .install-text {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
}

#pwa-install-banner .install-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    flex-shrink: 0;
}

.btn-install {
    background: white;
    color: #667eea;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-install:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-install:active {
    transform: scale(0.98);
}

.btn-close-install {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-close-install:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    #pwa-install-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 12px 15px;
    }

    #pwa-install-banner .install-buttons {
        flex-direction: column;
        gap: 8px;
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    #pwa-install-banner.show {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-install {
        width: 100%;
        text-align: center;
    }
}

/* ====== ABOUT PAGE - SERVICES CATALOG ====== */

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem var(--spacing);
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* About Section */
.about-section {
    padding: 4rem var(--spacing);
    background: white;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-intro h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-intro p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.stat-card-about {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
    overflow: hidden;
    box-sizing: border-box;
}

.stat-card-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.stat-card-about h3 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card-about p {
    color: var(--text-light);
    font-size: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Services Section */
.services-section {
    padding: 5% var(--spacing);
    background: var(--light-bg);
}

.services-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.services-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border-top: 5px solid #667eea;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card.pos-service {
    border-top-color: #667eea;
}

.service-card.sos-service {
    border-top-color: #f093fb;
}

.service-card.saleweb-service {
    border-top-color: #4facfe;
}

.service-card.edulab-service {
    border-top-color: #43e97b;
}

.service-card.hrm-service {
    border-top-color: #fa709a;
}

.service-card.webstudio-service {
    border-top-color: #30b0fe;
}

/* Service Header */
.service-header {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.service-icon {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.service-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.service-name {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-level {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.service-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.badge-advanced {
    background: rgba(118, 75, 162, 0.2);
    color: #764ba2;
}

.badge-medium {
    background: rgba(64, 202, 254, 0.2);
    color: #40cafe;
}

.badge-simple {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
}

/* Service Body */
.service-body {
    padding: 1.5rem 2rem;
    flex-grow: 1;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 1rem;
}

.service-features h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.service-features ul {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #43e97b;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Service Footer */
.service-footer {
    padding: 1.5rem 2rem;
    background: var(--light-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-light);
}

.cta-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem var(--spacing);
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-large {
    padding: 1rem 2.5rem;
    background: white;
    color: #667eea;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1.1rem;
    cursor: pointer;
}

.cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
}

/* ========================================
RESPONSIVE DESIGN - OPTIMISÉ AVEC POURCENTAGES
======================================== */

/* Mobile First: Extra Small (< 480px) */
@media (max-width: 479px) {
    .container {
        width: 95%;
        padding: 0 2%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
    }

    h1 {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    h2 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .navbar-container {
        padding: 0.5rem 2%;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 6% 2%;
    }

    .blog-layout {
        grid-template-columns: 100%;
    }

    .blog-section {
        padding: 4% 2%;
    }

    .articles-blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0.5rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .service-card {
        margin-bottom: 1rem;
        padding: 1.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .cta-section {
        padding: 6% 2%;
    }

    .newsletter-cta-form {
        flex-direction: column;
        gap: 0.8rem;
    }

    .form-group {
        width: 100%;
    }

    .btn-subscribe {
        width: 100%;
        font-size: 0.9rem;
    }
}

/* Ultra small (< 480px) */
@media (max-width: 479px) {
    .container {
        width: 95%;
        margin: 0 auto;
        padding: 0 !important;
    }

    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .services {
        padding: 2rem 0.75rem;
        width: 100%;
        margin: 0;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .services-grid {
        gap: 0.75rem;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        max-width: 100%;
    }

    .service-card {
        padding: 1.25rem 0.75rem;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .service-card-icon {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}

/* Very small phones Android (< 360px) */
@media (max-width: 359px) {
    html {
        font-size: 14px;
    }

    .container {
        width: 100%;
        padding: 0 !important;
    }

    .services {
        padding: 1.5rem 0.5rem;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .services-grid {
        gap: 0.5rem;
        overflow-x: hidden;
        max-width: 100%;
    }

    .service-card {
        padding: 1rem 0.5rem;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .service-card-icon {
        font-size: 2.4rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }
}

/* Small (480px - 768px) */
@media (min-width: 480px) and (max-width: 768px) {
    .container {
        width: 93%;
        padding: 0 2%;
    }

    .nav-links {
        gap: 1.2rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 5% 2%;
    }

    .blog-layout {
        grid-template-columns: 100%;
    }

    .articles-blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    .service-card {
        padding: 1.5rem 1rem;
        margin: 0;
        width: 100%;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .cta-section {
        padding: 5% 2%;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .newsletter-cta-form {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group {
        width: 100%;
    }

    .btn-subscribe {
        width: 100%;
    }
}

/* Medium (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        width: 92%;
        padding: 0 2%;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: none;
    }

    .articles-blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .newsletter-cta-form {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .form-group {
        flex: 1;
        min-width: 200px;
    }
}

/* Large (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .container {
        width: 90%;
        padding: 0 2%;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Masquer l'icône du partage sur grand écran */
    .share-icon {
        display: none;
    }
}

/* Extra Large (1440px+) */
@media (min-width: 1440px) {
    .container {
        width: 88%;
        max-width: 1400px;
        padding: 0 2%;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .articles-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    /* Masquer l'icône du partage sur grand écran */
    .share-icon {
        display: none;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .nav-menu.active {
        padding: 1rem;
    }

    .about-intro h2 {
        font-size: 1.5rem;
    }

    .blog-sidebar,
    .article-sidebar {
        display: none;
    }

    .service-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .admin-navbar ul {
        gap: 1rem;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .stat-card-about {
        padding: 1.5rem;
    }

    .stat-card-about h3 {
        font-size: 2rem;
    }

    .stat-card-about p {
        font-size: 0.95rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Extra Small (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .service-card {
        padding: 1.25rem 0.75rem;
        border-radius: 8px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .service-price {
        font-size: 0.9rem;
    }

    .service-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-link {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Ultra Small Devices (max-width: 380px) */
@media (max-width: 380px) {
    .container {
        width: 95%;
        padding: 0 2.5%;
    }

    .navbar-container {
        padding: 0 0.75rem;
    }

    .hero h1 {
        font-size: clamp(1.4rem, 4vw, 2rem) !important;
    }

    .hero p {
        font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 1rem 0.75rem;
    }

    .services {
        padding: 2rem 0.75rem;
    }

    .services-grid {
        gap: 0.8rem;
        padding: 0;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 1.5rem 1rem !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }

    .footer-content {
        padding: 2rem 1rem;
    }
}


/* ====== NEWSLETTER CTA SECTION ====== */
.newsletter-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5% var(--spacing);
    margin-top: 4rem;
    color: white;
    text-align: center;
}

.newsletter-cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.newsletter-cta-content>p {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta-form {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    width: 90%;
}

.newsletter-cta-form .form-group {
    flex: 1;
    min-width: clamp(150px, 100%, 300px);
}

.newsletter-cta-form .input-email,
.newsletter-cta-form .input-name {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    color: var(--text-color);
    transition: box-shadow 0.3s;
}

.newsletter-cta-form .input-email:focus,
.newsletter-cta-form .input-name:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.newsletter-cta-form .input-email::placeholder,
.newsletter-cta-form .input-name::placeholder {
    color: #777;
}

.btn-subscribe {
    padding: 0.8rem 2.5rem;
    background-color: white;
    color: #764ba2;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #f0f0f0;
}

.btn-subscribe:active {
    transform: translateY(0);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 1rem;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-cta-content h2 {
        font-size: 2rem;
    }

    .newsletter-cta-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-cta-form .form-group {
        min-width: 100%;
    }

    .btn-subscribe {
        width: 100%;
    }
}

/* ========================================
ANIMATIONS MODERNES ET ATTRAYANTES
======================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: var(--shadow-md);
    }

    50% {
        box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.4);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Appliquer les animations aux éléments */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Contact Page - Mobile Responsive */
@media (max-width: 768px) {
    .contact-hero {
        padding: 4rem 1.5rem;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 2rem;
    }

    .contact-form-container h2,
    .contact-info-container h2 {
        font-size: 1.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        border-radius: 12px !important;
    }

    /* Articles Grid Responsive */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .articles-blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card,
    .blog-card {
        border-radius: 12px;
    }

    .article-image,
    .blog-card-image {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }

    .article-content,
    .blog-card-content {
        padding: 1rem;
    }

    .article-card h3,
    .blog-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        margin: 0 0 0.5rem 0;
        padding-left: 0;
        border-left: none;
    }

    .article-card p,
    .excerpt {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .article-meta,
    .blog-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .article-footer,
    .blog-card-footer {
        gap: 1.5rem;
        flex-wrap: nowrap;
    }

    .share-btn {
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .read-more {
        font-size: 0.9rem;
        flex-shrink: 1;
        max-width: 70%;
        margin-right: auto;
    }

    /* Hero responsive */
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons a {
        width: 100%;
        text-align: center;
    }

    .articles {
        padding: 2rem 1rem;
    }

    .articles h2 {
        font-size: 1.5rem;
    }
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Animation pour les boutons */
.btn,
button {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn::before,
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before,
button:hover::before {
    width: 300px;
    height: 300px;
}

/* Cards avec animation */
.blog-card,
.service-card,
.article-card {
    animation: slideInUp 0.6s ease-out;
    transition: var(--transition);
}

.blog-card:hover,
.service-card:hover,
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Hero sections */
.hero,
.article-hero,
.blog-hero {
    animation: fadeIn 0.8s ease-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    animation: slideInUp 0.6s ease-out;
}

p,
li {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects pour les liens */
a {
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Input/Form animations */
input,
textarea,
select {
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Image animations */
img {
    transition: var(--transition);
}

img:hover {
    transform: scale(1.03);
}

/* Badges et tags */
.badge,
.tag,
.label {
    animation: scaleIn 0.5s ease-out;
}