/* ========================================
   SIDE EFFECT THEME - UNIFIED CSS v1.0.1
   Tous les styles du thème en un seul fichier
======================================== */

/* ========================================
   TABLE DES MATIÈRES
======================================== */
/*
1. CSS VARIABLES & RESET
2. UTILITIES
3. HEADER & NAVIGATION
4. HERO SECTION
5. BENTO GRID
6. POST ELEMENTS
7. SPECIAL CARDS (QUOTE & STAT)
8. PAGINATION
9. FOOTER
10. FORMULAIRE DE RECHERCHE
11. COMMENTAIRES
12. SINGLE POST & PAGE
13. TYPOGRAPHIE (MONTSERRAT ALTERNATES)
14. MENU SUPERFLUID
15. STATS CARDS ENHANCED
16. FONT AWESOME ICONS
17. RESPONSIVE
18. ANIMATIONS
19. PRINT & ACCESSIBILITY
*/

/* ========================================
   1. CSS VARIABLES & RESET
======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* Palette de couleurs */
    --color-dark-navy: #293241;
    --color-navy: #3D5A80;
    --color-light-blue: #98C1D9;
    --color-mint: #E0FBFC;
    --color-coral: #EE6C4D;

    /* Colors - Mappées */
    --color-primary: #3D5A80;
    --color-secondary: #EE6C4D;
    --color-dark: #293241;

    /* Grayscale */
    --color-gray-900: #293241;
    --color-gray-800: #3D5A80;
    --color-gray-700: #4a6b94;
    --color-gray-600: #5a7ca8;
    --color-gray-500: #6b8dbc;
    --color-gray-400: #98C1D9;
    --color-gray-300: #b8d6e8;
    --color-gray-200: #d4ebf4;
    --color-gray-100: #E0FBFC;
    --color-gray-50: #f5feff;
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3D5A80 0%, #98C1D9 100%);
    --gradient-accent: linear-gradient(135deg, #EE6C4D 0%, #ff8b6d 100%);
    --gradient-cool: linear-gradient(135deg, #98C1D9 0%, #E0FBFC 100%);
    --gradient-overlay: linear-gradient(to top, rgba(41, 50, 65, 0.9) 0%, rgba(41, 50, 65, 0.5) 50%, transparent 100%);

    /* Font families */
    --font-heading: 'Montserrat Alternates', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --container-max: 1400px;
    --gap-small: 0.5rem;
    --gap-medium: 1rem;
    --gap-large: 1.5rem;
    --gap-xlarge: 2rem;

    /* Border Radius */
    --radius-small: 12px;
    --radius-medium: 16px;
    --radius-large: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-small: 0 2px 10px rgba(41, 50, 65, 0.08);
    --shadow-medium: 0 4px 20px rgba(41, 50, 65, 0.12);
    --shadow-large: 0 12px 40px rgba(41, 50, 65, 0.18);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-mint);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* ========================================
   2. UTILITIES
======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap-xlarge);
}

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

/* ========================================
   3. HEADER & NAVIGATION
======================================== */

.site-header {
    background: var(--color-white);
    padding: var(--gap-xlarge) 0;
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-light-blue);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(41, 50, 65, 0.15);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.site-header.scrolled .site-title {
    font-size: 2rem;
    transition: font-size 0.3s ease;
}

.site-header.scrolled .site-tagline {
    display: none;
}

.site-header.scrolled .menu-toggle {
    transform: scale(0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-xlarge);
}

.branding {
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.site-title a {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-tagline {
    color: var(--color-navy);
    font-size: 1.1rem;
}

/* Navigation Desktop (caché) */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--gap-xlarge);
}

.nav-menu {
    display: none;
}

/* ========================================
   4. HERO SECTION
======================================== */

.hero-section,
.archive-header,
.search-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-mint) 100%);
}

.hero-content,
.archive-header-content,
.search-header-content {
    max-width: 800px;
}

.hero-title,
.archive-title,
.search-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--gap-large);
    color: var(--color-dark-navy);
}

.hero-description,
.archive-description,
.archive-description p,
.search-description {
    font-size: 1.3rem;
    color: var(--color-navy);
    line-height: 1.7;
}

/* ========================================
   5. BENTO GRID
======================================== */

.site-main {
    padding-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-large);
    margin-bottom: 4rem;
}

/* Grid Spans */
.span-8-2 {
    grid-column: span 8;
    grid-row: span 2;
}

.span-4-2 {
    grid-column: span 4;
    grid-row: span 2;
}

.span-4-1 {
    grid-column: span 4;
    grid-row: span 1;
}

.span-6-1 {
    grid-column: span 6;
    grid-row: span 1;
}

/* Bento Items */
.bento-item {
    background: var(--color-white);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-slow);
    position: relative;
    border: 2px solid transparent;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--color-light-blue);
}

.bento-link {
    display: block;
    height: 100%;
}

/* Image Bento Items */
.bento-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.span-8-2 .bento-image,
.span-4-2 .bento-image {
    min-height: 100%;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.bento-item:hover .bento-image img {
    transform: scale(1.05);
}

/* Overlay */
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--gap-xlarge);
    background: var(--gradient-overlay);
    color: var(--color-white);
}

.type-image-overlay .bento-overlay .post-title {
    color: var(--color-white);
}

/* Content Bento Items */
.bento-content {
    padding: var(--gap-xlarge);
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
    height: 100%;
}

.type-image-content .bento-image {
    height: 200px;
    min-height: 200px;
}

.span-4-2.type-image-content .bento-image {
    height: 250px;
}

/* ========================================
   6. POST ELEMENTS
======================================== */

.post-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    color: var(--color-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-dark);
}

.span-8-2 .post-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.span-4-1 .post-title {
    font-size: 1.3rem;
}

.post-excerpt {
    color: var(--color-navy);
    line-height: 1.7;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--gap-small);
    color: var(--color-gray-400);
    font-size: 0.9rem;
}

.type-image-overlay .post-meta {
    color: rgba(224, 251, 252, 0.9);
}

.separator {
    opacity: 0.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-coral);
    font-weight: 600;
    margin-top: auto;
    transition: gap var(--transition-normal);
}

.read-more::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.bento-item:hover .read-more {
    gap: 1rem;
}

.bento-item:hover .read-more::after {
    transform: translateX(5px);
}

/* ========================================
   7. SPECIAL CARDS (QUOTE & STAT)
======================================== */

/* Quote Card */
.type-quote {
    background: var(--gradient-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-content {
    padding: var(--gap-xlarge);
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: var(--gap-medium);
}

.quote-author {
    font-size: 1rem;
    opacity: 0.9;
    font-style: normal;
}

/* Stats Card Base */
.type-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-mint) 100%);
    position: relative;
    overflow: hidden;
}

.type-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(238, 108, 77, 0.1) 0%, transparent 70%);
    animation: statPulse 3s ease-in-out infinite;
}

.stat-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-coral);
    margin-bottom: 1rem;
    display: block;
    animation: iconFloat 2s ease-in-out infinite;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
    animation: numberCount 1s ease-out;
}

.stat-label {
    color: var(--color-navy);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Variantes de couleurs pour stats */
.type-stat:nth-child(3n+1) {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-mint) 100%);
}

.type-stat:nth-child(3n+1) .stat-number {
    background: linear-gradient(135deg, #3D5A80 0%, #98C1D9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat:nth-child(3n+2) {
    background: linear-gradient(135deg, var(--color-white) 0%, #fff5f0 100%);
}

.type-stat:nth-child(3n+2) .stat-number {
    background: linear-gradient(135deg, #EE6C4D 0%, #ff8b6d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat:nth-child(3n+2) .stat-icon {
    color: var(--color-coral);
}

.type-stat:nth-child(3n+3) {
    background: linear-gradient(135deg, var(--color-white) 0%, #f0f7ff 100%);
}

.type-stat:nth-child(3n+3) .stat-number {
    background: linear-gradient(135deg, #98C1D9 0%, #3D5A80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.type-stat:nth-child(3n+3) .stat-icon {
    color: var(--color-light-blue);
}

.type-stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(41, 50, 65, 0.2);
}

.type-stat:hover .stat-icon {
    animation: iconBounce 0.6s ease;
}

.type-stat:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ========================================
   8. PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-large);
    margin-top: 4rem;
}

.page-link,
.page-number {
    padding: 0.75rem 1.5rem;
    background: var(--color-white);
    border-radius: var(--radius-small);
    font-weight: 600;
    box-shadow: var(--shadow-small);
    transition: var(--transition-normal);
    border: 2px solid var(--color-light-blue);
}

.page-link:hover,
.page-number:hover {
    background: var(--color-coral);
    color: var(--color-white);
    transform: translateY(-2px);
    border-color: var(--color-coral);
}

.page-numbers {
    display: flex;
    gap: var(--gap-small);
}

.page-number.current {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: var(--color-navy);
}

/* ========================================
   9. FOOTER
======================================== */

.site-footer {
    background: var(--color-dark-navy);
    color: var(--color-mint);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: var(--gap-medium);
    color: var(--color-light-blue);
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--color-mint);
    transition: color var(--transition-normal);
}

.footer-menu a:hover {
    color: var(--color-coral);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-navy);
}

.copyright {
    text-align: center;
    color: var(--color-light-blue);
}

/* ========================================
   10. FORMULAIRE DE RECHERCHE
======================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--color-light-blue);
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-dark);
    background: var(--color-white);
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(61, 90, 128, 0.1);
}

.search-field::placeholder {
    color: var(--color-light-blue);
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--radius-small);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 108, 77, 0.4);
}

.search-submit:active {
    transform: translateY(0);
}

.search-icon {
    font-size: 1.2rem;
}

/* Header Search Toggle Button */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-navy);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.search-toggle:hover {
    color: var(--color-coral);
    background: rgba(238, 108, 77, 0.1);
}

.search-toggle.active {
    color: var(--color-coral);
}

/* Header Search Overlay */
.header-search-overlay {
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.header-search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.header-search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--color-light-blue);
    border-radius: var(--radius-small);
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--color-dark);
    background: var(--color-white);
    transition: all var(--transition-fast);
}

.header-search-field:focus {
    outline: none;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 4px rgba(238, 108, 77, 0.15);
}

.header-search-field::placeholder {
    color: var(--color-light-blue);
}

.header-search-submit,
.header-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.header-search-submit {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
}

.header-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 108, 77, 0.4);
}

.header-search-close {
    background: var(--color-gray-100);
    color: var(--color-navy);
}

.header-search-close:hover {
    background: var(--color-light-blue);
    color: var(--color-dark);
}

/* ========================================
   11. COMMENTAIRES
======================================== */

.comments-area {
    max-width: 900px;
    margin: 2rem auto;
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-light-blue);
}

.comments-title i {
    color: var(--color-coral);
    font-size: 1.8rem;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0 0.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-item {
    margin-bottom: 2rem;
    animation: slideInComment 0.5s ease backwards;
}

.children {
    list-style: none;
    padding-left: 3rem;
    margin-top: 1.5rem;
}

.children .comment-item {
    margin-bottom: 1.5rem;
}

.comment-body-modern {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-mint) 100%);
    border-radius: var(--radius-medium);
    border: 2px solid var(--color-light-blue);
    transition: all 0.3s ease;
    position: relative;
}

.comment-body-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(41, 50, 65, 0.15);
    border-color: var(--color-navy);
}

.comment-avatar {
    flex-shrink: 0;
    position: relative;
}

.comment-avatar .avatar-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--color-light-blue);
    box-shadow: 0 4px 12px rgba(41, 50, 65, 0.1);
    transition: all 0.3s ease;
}

.comment-body-modern:hover .avatar-image {
    border-color: var(--color-coral);
    transform: scale(1.05);
}

.author-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(238, 108, 77, 0.4);
}

.author-badge i {
    color: white;
    font-size: 0.7rem;
}

.comment-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-header {
    margin-bottom: 0.75rem;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-navy);
}

.comment-author-name a {
    color: #5a7ca8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-author-name a:hover {
    color: var(--color-coral);
}

.comment-author-name a i {
    opacity: 0.6;
    margin-left: 0.25rem;
}

.author-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-label i {
    font-size: 0.7rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.comment-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b8dbc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-time:hover {
    color: var(--color-coral);
}

.comment-time i {
    font-size: 0.85em;
}

.comment-reply,
.comment-edit {
    display: inline-block;
}

.comment-reply a,
.comment-edit a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: white;
    color: var(--color-navy);
    border: 2px solid var(--color-light-blue);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-reply a:hover,
.comment-edit a:hover {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
    transform: translateY(-2px);
}

.comment-reply a i,
.comment-edit a i {
    font-size: 0.8em;
}

.comment-content {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-content a {
    color: #5a7ca8;
    text-decoration: underline;
    text-decoration-color: var(--color-light-blue);
    transition: all 0.3s ease;
}

.comment-content a:hover {
    color: var(--color-coral);
    text-decoration-color: var(--color-coral);
}

.comment-awaiting-moderation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
    border-radius: var(--radius-small);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-awaiting-moderation i {
    color: #ffc107;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.comment-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--color-navy);
    border: 2px solid var(--color-light-blue);
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
    transform: translateY(-2px);
}

/* Formulaire de commentaire */
html body .comments-area .comment-form-modern,
html body .comments-area .comment-respond {
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-white) 100%);
    border-radius: var(--radius-medium);
    border: 2px solid var(--color-light-blue);
    color-scheme: light;
}

html body .comments-area #commentform {
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-white) 100%);
    border-radius: 0;
    border: 0px solid var(--color-light-blue);
    color-scheme: light;
}

.comment-reply-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-reply-title i {
    color: var(--color-coral);
    font-size: 1.5rem;
}

.cancel-comment-reply {
    margin-left: auto;
}

.cancel-comment-reply a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-comment-reply a:hover {
    background: #dc3545;
    color: white;
}

.comment-form-modern p {
    margin-bottom: 1.5rem;
}

html body .comments-area .comment-form-modern label,
html body .comments-area #commentform label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

html body .comments-area .comment-form-modern .required,
html body .comments-area #commentform .required {
    color: var(--color-coral);
    font-weight: 700;
}

html body .comments-area .comment-form-modern input[type="text"],
html body .comments-area .comment-form-modern input[type="email"],
html body .comments-area .comment-form-modern input[type="url"],
html body .comments-area .comment-form-modern textarea,
html body .comments-area #commentform input[type="text"],
html body .comments-area #commentform input[type="email"],
html body .comments-area #commentform input[type="url"],
html body .comments-area #commentform textarea,
html body .comments-area textarea#comment,
html body .comments-area input#author,
html body .comments-area input#email,
html body .comments-area input#url {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-light-blue);
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-family: inherit;
    color: #111827;
    background: var(--color-white);
    background-color: var(--color-white);
    transition: all 0.3s ease;
    -webkit-text-fill-color: #111827;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

html body .comments-area .comment-form-modern input::placeholder,
html body .comments-area .comment-form-modern textarea::placeholder,
html body .comments-area #commentform input::placeholder,
html body .comments-area #commentform textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
    -webkit-text-fill-color: #9ca3af;
}

html body .comments-area .comment-form-modern textarea:focus,
html body .comments-area .comment-form-modern input:focus,
html body .comments-area #commentform textarea:focus,
html body .comments-area #commentform input:focus {
    outline: none;
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(61, 90, 128, 0.1);
    color: #111827;
    background: var(--color-white);
}

.comment-form-modern textarea {
    resize: vertical;
    min-height: 150px;
}

/* Supprimer tout contour/outline du textarea */
html body .comments-area .comment-form-modern textarea:focus,
html body .comments-area #commentform textarea:focus,
html body .comments-area textarea#comment:focus {
    outline: none;
    box-shadow: none;
    border: 2px solid var(--color-navy);
}

.comment-form-modern .comment-form-author,
.comment-form-modern .comment-form-email,
.comment-form-modern .comment-form-url {
    display: inline-block;
    width: calc(33.333% - 1rem);
    margin-right: 1.5rem;
}

.comment-form-modern .comment-form-url {
    margin-right: 0;
}

.comment-form-modern .submit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
}

.comment-form-modern .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(238, 108, 77, 0.4);
}

.comment-form-modern .submit-button:active {
    transform: translateY(0);
}

.comment-form-modern .submit-button i {
    font-size: 0.9em;
}

.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-white) 100%);
    border-radius: var(--radius-medium);
    border: 2px solid var(--color-light-blue);
    color: var(--color-navy);
    font-size: 1.1rem;
}

.no-comments i {
    font-size: 2rem;
    color: var(--color-coral);
    margin-bottom: 1rem;
    display: block;
}

/* ========================================
   12. SINGLE POST & PAGE
======================================== */

.single-post .container,
.single-page .container {}

.single-post .article-header,
.single-page .page-header {
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2rem 0;
}

.single-post .article-title,
.single-page .page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.article-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.4);
}

.article-category i {
    color: white;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-navy);
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.article-meta i {
    margin-right: 0.5rem;
    color: var(--color-navy);
    font-size: 0.9em;
}

.article-comments-link i {
    color: var(--color-coral);
}

.meta-icon {
    display: inline-flex;
    align-items: center;
}

.article-featured-image,
.page-featured-image {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(41, 50, 65, 0.15);
    border: 3px solid var(--color-mint);
}

.article-featured-image img,
.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content,
.page-content-area,
.article-comments {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.article-content h2,
.page-content-area h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 2.5rem 0 1rem;
    color: var(--color-dark);
    border-bottom: 3px solid var(--color-light-blue);
    padding-bottom: 0.5rem;
}

.article-content h3,
.page-content-area h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 2rem 0 1rem;
    color: var(--color-navy);
}

.article-content h4,
.page-content-area h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-navy);
}

.article-content p,
.page-content-area p {
    margin-bottom: 1.5rem;
}

.article-content a,
.page-content-area a {
    color: var(--color-navy);
    text-decoration: underline;
    text-decoration-color: var(--color-light-blue);
    text-decoration-thickness: 2px;
    transition: all 0.3s;
}

.article-content a:hover,
.page-content-area a:hover {
    color: var(--color-coral);
    text-decoration-color: var(--color-coral);
}

.article-content img,
.page-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(41, 50, 65, 0.12);
    border: 2px solid var(--color-mint);
}

.article-content iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    margin: 2rem auto;
}

.article-content .wp-block-gallery,
.page-content-area .wp-block-gallery {
    margin: 2rem auto;
    max-width: 800px;
}

.article-content .wp-block-gallery figure,
.page-content-area .wp-block-gallery figure {
    margin: 0;
}

.article-content ul,
.article-content ol,
.page-content-area ul,
.page-content-area ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li,
.page-content-area li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style: none;
}

.article-content ul li::before {
    content: '\f0da';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-coral);
    position: absolute;
    left: -1.5rem;
}

.article-content blockquote,
.page-content-area blockquote {
    border-left: 4px solid var(--color-coral);
    background: linear-gradient(to right, var(--color-mint) 0%, transparent 100%);
    padding: 1.5rem;
    padding-left: 3rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-navy);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    position: relative;
}

.article-content blockquote::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--color-coral);
    font-size: 2rem;
    position: absolute;
    left: 1rem;
    top: 1rem;
    opacity: 0.3;
}

.article-tags {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-white) 100%);
    border-radius: var(--radius-medium);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    border: 2px solid var(--color-light-blue);
}

.tags-label {
    font-weight: 600;
    color: var(--color-dark);
}

.tags-label i {
    margin-right: 0.5rem;
    color: var(--color-navy);
}

.tag-link {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(41, 50, 65, 0.1);
    border: 2px solid var(--color-light-blue);
}

.tag-link i {
    font-size: 0.8em;
    margin-right: 0.25rem;
}

.tag-link:hover {
    background: var(--color-coral);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 108, 77, 0.3);
    border-color: var(--color-coral);
}

.tag-link:hover i {
    animation: iconRotate 0.5s ease;
}

.article-author {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-white) 100%);
    border-radius: var(--radius-medium);
    align-items: center;
    border: 2px solid var(--color-light-blue);
}

.author-avatar img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(41, 50, 65, 0.15);
    border: 3px solid var(--color-light-blue);
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.author-bio {
    color: var(--color-navy);
    line-height: 1.6;
}

.article-navigation {
    max-width: 800px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-medium);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(41, 50, 65, 0.1);
    border: 2px solid var(--color-light-blue);
}

.nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(238, 108, 77, 0.2);
    border-color: var(--color-coral);
}

.nav-label {
    font-size: 0.875rem;
    color: var(--color-navy);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
}

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

.article-navigation .nav-link i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.article-navigation .nav-link.prev:hover i {
    transform: translateX(-4px);
}

.article-navigation .nav-link.next:hover i {
    transform: translateX(4px);
}

/* ========================================
   13. TYPOGRAPHIE (MONTSERRAT ALTERNATES)
======================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.hero-title,
.archive-title,
.search-title,
.post-title,
.article-title,
.page-title,
.section-title,
.widget-title,
.footer-title,
.comments-title,
.comment-reply-title,
.mobile-nav-item>a {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   14. MENU SUPERFLUID
======================================== */

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    padding: 0;
    transition: transform 0.3s ease;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(238, 108, 77, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
    z-index: -1;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.menu-toggle:hover {
    animation: pulse 1.5s infinite;
}

.menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 108, 77, 0.4);
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-navy);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--color-coral);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--color-coral);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-dark-navy) 0%, var(--color-navy) 100%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fluid-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.fluid-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--color-light-blue);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.fluid-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--color-coral);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.fluid-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    background: var(--color-mint);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.mobile-menu-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-item:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-item:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-item:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-item:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-item:nth-child(6) {
    transition-delay: 0.6s;
}

.mobile-nav-item:nth-child(7) {
    transition-delay: 0.7s;
}

.mobile-nav-item:nth-child(8) {
    transition-delay: 0.8s;
}

.mobile-nav-item>a {
    font-size: 2.5rem;
    color: var(--color-mint);
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
    padding: 0.5rem 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-nav-item>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(238, 108, 77, 0.1);
    border-radius: var(--radius-small);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.mobile-nav-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-coral);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-item>a:hover {
    color: var(--color-coral);
    transform: scale(1.1);
    text-shadow:
        0 0 20px rgba(238, 108, 77, 0.5),
        0 0 40px rgba(238, 108, 77, 0.3),
        0 0 60px rgba(238, 108, 77, 0.1);
}

.mobile-nav-item>a:hover::before {
    transform: scale(1);
}

.mobile-nav-item>a:hover::after {
    width: 80%;
}

.mobile-nav-item>a:focus {
    outline: none;
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    max-height: 1000px;
    overflow: visible;
    margin-top: 0.5rem;
}

.mobile-sub-menu li {
    margin: 0.75rem 0;
}

.mobile-menu-overlay .mobile-sub-menu a {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-light-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-overlay .mobile-sub-menu a:hover {
    color: var(--color-coral);
    transform: scale(1.05);
}

.mobile-nav-item.has-children>a::before {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

/* ========================================
   15. FONT AWESOME ICONS
======================================== */

/* Icons are now included inline in HTML templates - no CSS pseudo-elements needed */

/* ========================================
   16. ANIMATIONS
======================================== */

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -60px) scale(1.15) rotate(45deg);
    }

    50% {
        transform: translate(-40px, 40px) scale(0.85) rotate(-45deg);
    }

    75% {
        transform: translate(30px, 60px) scale(1.1) rotate(90deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(238, 108, 77, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(238, 108, 77, 0);
    }
}

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

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

@keyframes slideInComment {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes statPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-8px);
    }
}

@keyframes numberCount {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.comment-item:nth-child(1) {
    animation-delay: 0.1s;
}

.comment-item:nth-child(2) {
    animation-delay: 0.2s;
}

.comment-item:nth-child(3) {
    animation-delay: 0.3s;
}

.comment-item:nth-child(4) {
    animation-delay: 0.4s;
}

.comment-item:nth-child(5) {
    animation-delay: 0.5s;
}

.article-meta i:hover,
.article-category i:hover,
.tags-label i:hover {
    animation: iconPulse 0.5s ease;
}

/* ========================================
   17. RESPONSIVE
======================================== */

@media (min-width: 1200px) {
    .mobile-nav-item>a {
        font-size: 3rem;
    }

    .fluid-shape:nth-child(1) {
        width: 500px;
        height: 500px;
    }

    .fluid-shape:nth-child(2) {
        width: 600px;
        height: 600px;
    }

    .fluid-shape:nth-child(3) {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 1024px) {

    .single-post .container,
    .single-page .container {
        padding: 0 2rem;
    }

    .span-8-2,
    .span-4-2 {
        grid-column: span 12 !important;
        grid-row: span 1 !important;
    }

    .span-6-1 {
        grid-column: span 12 !important;
    }

    .bento-image,
    .type-image-content .bento-image {
        height: 300px !important;
        min-height: 300px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-nav-item>a {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 2.2rem;
    }

    .site-tagline {
        font-size: 1rem;
    }

    .hero-title,
    .archive-title,
    .search-title {
        font-size: 2.8rem;
    }

    .hero-description,
    .archive-description,
    .archive-description p,
    .search-description {
        font-size: 1.1rem;
    }

    .span-4-1 {
        grid-column: span 12 !important;
    }

    .bento-image {
        height: 250px !important;
        min-height: 250px !important;
    }

    .post-title,
    .span-8-2 .post-title {
        font-size: 1.75rem;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .search-form {
        max-width: 100%;
    }

    .search-field {
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
    }

    .search-submit {
        padding: 0.65rem 1.25rem;
    }

    .comments-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .comment-body-modern {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .children {
        padding-left: 1rem;
    }

    .comment-avatar .avatar-image {
        width: 48px;
        height: 48px;
    }

    .author-badge {
        width: 20px;
        height: 20px;
    }

    .author-badge i {
        font-size: 0.6rem;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-form-modern {
        padding: 1.5rem;
    }

    .comment-form-modern .comment-form-author,
    .comment-form-modern .comment-form-email,
    .comment-form-modern .comment-form-url {
        width: 100%;
        margin-right: 0;
    }

    .comment-reply-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .cancel-comment-reply {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .single-post .article-title,
    .single-page .page-title {
        font-size: 2.5rem;
    }

    .article-content h2,
    .page-content-area h2 {
        font-size: 1.75rem;
    }

    .article-meta {
        font-size: 0.875rem;
    }

    .article-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .article-author {
        flex-direction: column;
        text-align: center;
    }

    .mobile-nav-item>a {
        font-size: 2rem;
    }

    .mobile-nav-item {
        margin: 1rem 0;
    }

    .stat-content {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --gap-large: 1rem;
        --gap-xlarge: 1.5rem;
    }

    .container {
        padding: 0 var(--gap-large);
    }

    .hero-title,
    .archive-title,
    .search-title {
        font-size: 2rem;
    }

    .bento-content,
    .bento-overlay {
        padding: var(--gap-large);
    }

    .search-submit {
        padding: 0.65rem 1rem;
    }

    .search-icon {
        font-size: 1rem;
    }

    .comments-area {
        padding: 0;
        margin: 1rem auto;
    }

    .comments-header {
        margin-bottom: 1rem;
    }

    .comment-body-modern {
        padding: 0.75rem;
    }

    .comment-form-modern {
        padding: 0.75rem;
        margin: 0;
    }

    .comment-form-modern input[type="text"],
    .comment-form-modern input[type="email"],
    .comment-form-modern input[type="url"],
    .comment-form-modern textarea,
    #commentform input[type="text"],
    #commentform input[type="email"],
    #commentform input[type="url"],
    #commentform textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    .comment-navigation {
        flex-direction: column;
    }

    .single-post .container,
    .single-page .container {
        padding: 0 1rem;
    }

    .single-post .article-header,
    .single-page .page-header {
        padding: 1rem 0;
    }

    .single-post .article-title,
    .single-page .page-title {
        font-size: 2rem;
    }

    .article-content,
    .page-content-area {
        font-size: 1rem;
    }

    .article-featured-image,
    .page-featured-image {
        border-radius: var(--radius-small);
    }

    .mobile-nav-item>a {
        font-size: 1.75rem;
    }

    .fluid-shape:nth-child(1),
    .fluid-shape:nth-child(2),
    .fluid-shape:nth-child(3) {
        width: 200px;
        height: 200px;
    }

    .mobile-menu-content {
        padding: 1rem;
    }

    .stat-content {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .mobile-menu-content {
        padding: 1rem;
        overflow-y: auto;
    }

    .mobile-nav-item {
        margin: 0.5rem 0;
    }

    .mobile-nav-item>a {
        font-size: 1.5rem;
    }

    .fluid-shape {
        display: none;
    }
}

/* ========================================
   18. PRINT & ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fluid-shape {
        animation: none;
    }
}

/* ========================================
   19. THEME SELECTOR
======================================== */

.theme-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.theme-selector-label {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

.theme-selector-buttons {
    display: flex;
    gap: 0.25rem;
    background: var(--color-gray-200);
    padding: 0.25rem;
    border-radius: var(--radius-medium);
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: none;
    background: transparent;
    color: var(--color-gray-700);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: calc(var(--radius-medium) - 4px);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.theme-btn:hover {
    color: var(--color-dark);
    background: var(--color-gray-100);
}

.theme-btn[aria-pressed="true"] {
    background: var(--color-white);
    color: var(--color-dark);
    box-shadow: var(--shadow-small);
}

.theme-btn i {
    font-size: 0.9rem;
}

.theme-btn[data-theme="auto"] i {
    color: var(--color-navy);
}

.theme-btn[data-theme="light"] i {
    color: var(--color-coral);
}

.theme-btn[data-theme="dark"] i {
    color: var(--color-navy);
}

/* Responsive pour le sélecteur de thème */
@media (max-width: 480px) {
    .theme-btn-text {
        display: none;
    }

    .theme-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* ========================================
   20. DARK MODE SUPPORT
   Mode sombre uniquement pour header et footer
   Le contenu central reste clair et lisible
======================================== */

/* === Variables pour le mode sombre === */
:root {
    --dark-bg: #1a1d29;
    --dark-bg-secondary: var(--color-dark-navy);
    --dark-text: var(--color-mint);
    --dark-text-secondary: var(--color-light-blue);
    --dark-border: var(--color-navy);
}

/* === Dark mode: via préférence système (auto) === */
@media (prefers-color-scheme: dark) {

    /* === Header === */
    html:not([data-theme="light"]) .site-header {
        background: var(--color-dark);
        color: var(--color-mint);
        border-bottom-color: var(--color-navy);
    }

    html:not([data-theme="light"]) .site-header.scrolled {
        background: var(--color-dark);
    }

    html:not([data-theme="light"]) .site-title a {
        background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-mint) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    html:not([data-theme="light"]) .menu-toggle span {
        background: var(--color-mint);
    }

    html:not([data-theme="light"]) .search-toggle {
        color: var(--color-mint);
    }

    /* === Overlay menu === */
    html:not([data-theme="light"]) .mobile-menu-overlay {
        background: linear-gradient(135deg, #1a1d29 0%, var(--color-dark-navy) 100%);
    }

    /* === Footer === */
    html:not([data-theme="light"]) .site-footer {
        background: var(--color-dark);
        color: var(--dark-text);
    }

    html:not([data-theme="light"]) .footer-title {
        color: var(--color-mint);
    }

    html:not([data-theme="light"]) .footer-menu a {
        color: var(--dark-text-secondary);
    }

    html:not([data-theme="light"]) .footer-menu a:hover {
        color: var(--color-coral);
    }

    html:not([data-theme="light"]) .copyright {
        color: var(--color-gray-600);
    }

    html:not([data-theme="light"]) .copyright a {
        color: var(--dark-text-secondary);
    }

    /* === Theme Selector in Dark === */
    html:not([data-theme="light"]) .theme-selector-label {
        color: var(--dark-text-secondary);
    }

    html:not([data-theme="light"]) .theme-selector-buttons {
        background: var(--color-navy);
    }

    html:not([data-theme="light"]) .theme-btn {
        color: var(--dark-text-secondary);
    }

    html:not([data-theme="light"]) .theme-btn:hover {
        color: var(--dark-text);
        background: rgba(224, 251, 252, 0.1);
    }

    html:not([data-theme="light"]) .theme-btn[aria-pressed="true"] {
        background: var(--dark-bg-secondary);
        color: var(--dark-text);
    }

    html:not([data-theme="light"]) .theme-btn[data-theme="light"] i {
        color: var(--color-coral);
    }

    html:not([data-theme="light"]) .theme-btn[data-theme="dark"] i {
        color: var(--color-light-blue);
    }
}

/* === Dark mode: forcé via data-theme === */

/* === Header === */
html[data-theme="dark"] .site-header {
    background: var(--color-dark);
    color: var(--color-mint);
    border-bottom-color: var(--color-navy);
}

html[data-theme="dark"] .site-header.scrolled {
    background: var(--color-dark);
}

html[data-theme="dark"] .site-title a {
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .menu-toggle span {
    background: var(--color-mint);
}

html[data-theme="dark"] .search-toggle {
    color: var(--color-mint);
}

/* === Overlay menu === */
html[data-theme="dark"] .mobile-menu-overlay {
    background: linear-gradient(135deg, #1a1d29 0%, var(--color-dark-navy) 100%);
}

/* === Footer === */
html[data-theme="dark"] .site-footer {
    background: var(--color-dark);
    color: var(--dark-text);
}

html[data-theme="dark"] .footer-title {
    color: var(--color-mint);
}

html[data-theme="dark"] .footer-menu a {
    color: var(--dark-text-secondary);
}

html[data-theme="dark"] .footer-menu a:hover {
    color: var(--color-coral);
}

html[data-theme="dark"] .copyright {
    color: var(--color-gray-600);
}

html[data-theme="dark"] .copyright a {
    color: var(--dark-text-secondary);
}

/* === Theme Selector in Dark === */
html[data-theme="dark"] .theme-selector-label {
    color: var(--dark-text-secondary);
}

html[data-theme="dark"] .theme-selector-buttons {
    background: var(--color-navy);
}

html[data-theme="dark"] .theme-btn {
    color: var(--dark-text-secondary);
}

html[data-theme="dark"] .theme-btn:hover {
    color: var(--dark-text);
    background: rgba(224, 251, 252, 0.1);
}

html[data-theme="dark"] .theme-btn[aria-pressed="true"] {
    background: var(--dark-bg-secondary);
    color: var(--dark-text);
}

html[data-theme="dark"] .theme-btn[data-theme="light"] i {
    color: var(--color-coral);
}

html[data-theme="dark"] .theme-btn[data-theme="dark"] i {
    color: var(--color-light-blue);
}

@media print {

    .site-header,
    .menu-toggle,
    .mobile-menu-overlay,
    .article-meta i,
    .article-category i,
    .tags-label i,
    .tag-link i {
        display: none;
    }
}

/* ========================================
   FIN DU FICHIER UNIFIÉ
======================================== */