/*
Theme Name: Bouffe Montréal
Description: Thème WordPress personnalisé pour la découverte culinaire du Grand Montréal
Author: THET1TAN
Version: 1.0.3
*/

/* ==========================================================================
   BOUFFE MONTRÉAL - STYLES GLOBAUX
   ========================================================================== */

/* Reset et Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #f2f2f2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Ensure footer stays at bottom */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure main content expands to push footer down */
.site-main {
    flex: 1;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #222;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #c00000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #a00000;
    text-decoration: underline;
}

/* Conteneurs */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Classes utilitaires */
.text-center {
    text-align: center;
}

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

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

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

/* Responsive utilities */
@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}

/* Couleurs principales du thème */
:root {
    --color-primary: #c00000;
    --color-primary-dark: #a00000;
    --color-secondary: #9990b4;
    --color-background: #f2f2f2;
    --color-surface: #ffffff;
    --color-text: #222222;
    --color-text-light: #666666;
    --max-width: 900px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Animation variables */
    --animation-duration: 0.8s;
    --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --animation-delay: 0ms;
}

/* Focus styles pour l'accessibilité */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header-bar,
    .site-navigation,
    .footer-bar {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   SINGLE POST STYLES - BOUFFE MONTRÉAL
   ========================================================================== */

/* Correction du layout pour les articles individuels */
.single-post-page body,
.single body {
    display: block !important;
    min-height: auto !important;
    overflow-x: hidden;
    overflow-y: auto;
}

.single .site-main {
    flex: none !important;
    padding: 2rem 0;
    background-color: #f2f2f2;
    min-height: calc(100vh - 140px);
}

.single .main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

#single-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 3rem;
    max-width: 100%;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#single-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c00000, #e63946, #c00000);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Note: Les animations infinies (gradientSlide, shimmer, float, etc.) sont automatiquement
   désactivées pour les utilisateurs ayant activé prefers-reduced-motion.
   Voir la section @media (prefers-reduced-motion: reduce) en fin de fichier. */

/* Header de l'article */
#post-header {
    position: relative;
}

/* Styles spécifiques pour l'image de couverture dans single */
.single .post-featured-image {
    height: 450px;
    background-color: #f8f9fa;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.single .post-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.single .post-featured-image:hover::after {
    opacity: 1;
}

.single .featured-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.single .post-featured-image:hover .featured-image {
    transform: scale(1.05);
}

/* Si l'image est très large, on s'assure qu'elle prend toute la largeur disponible */
@media (min-width: 768px) {
    .single .post-featured-image {
        height: 500px;
    }
}

.post-meta-info {
    padding: 2rem;
}

.post-categories {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #c00000, #e63946);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(192, 0, 0, 0.2);
}

.post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 0, 0, 0.3);
}

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #222;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    font-family: 'Roboto', sans-serif;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.post-meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.post-meta > span:hover .meta-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Contenu de l'article */
.post-content {
    padding: 0 2rem 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.post-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #222;
    margin: 2rem 0 1rem 0;
    font-family: 'Roboto', sans-serif;
}

.post-content h2 {
    font-size: 1.75rem;
    border-bottom: 3px solid #c00000;
    padding-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #c00000);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-content h2:hover::after {
    transform: translateX(0);
}

.post-content h3 {
    font-size: 1.5rem;
    color: #c00000;
    position: relative;
    padding-left: 1rem;
}

.post-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #c00000, #e63946);
    border-radius: 2px;
}

.post-content p {
    margin-bottom: 1.5rem;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #c00000;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(192, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-content figure {
    margin: 1.5rem 0;
    max-width: 100%;
}

.post-content figure img {
    margin: 0;
}

.post-content .wp-caption {
    max-width: 100%;
}

.post-content iframe,
.post-content embed,
.post-content object,
.post-content video {
    max-width: 100%;
    height: auto;
}

/* Pages links */
.page-links {
    margin: 2rem 0;
    text-align: center;
}

.page-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
}

.page-number:hover,
.page-links > span {
    background: #c00000;
    color: white;
}

/* Footer de l'article */
.post-footer {
    padding: 0 2rem 2rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 2rem;
    padding-top: 2rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tags-label {
    font-weight: 600;
    color: #666;
}

.post-tags a {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.post-tags a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(192, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.post-tags a:hover {
    background: #c00000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(192, 0, 0, 0.3);
}

.post-tags a:hover::before {
    width: 20em;
    height: 20em;
}

/* Navigation entre articles */
#post-navigation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}

#post-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c00000, #e63946, #c00000);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-previous {
    border-right: 1px solid #f0f0f0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.05), rgba(192, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-link:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.nav-previous .nav-link:hover {
    transform: translateX(-4px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-icon {
    font-size: 1.5rem;
    color: #c00000;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2);
}

.nav-next .nav-link:hover .nav-icon {
    transform: scale(1.2) translateX(5px);
}

.nav-previous .nav-link:hover .nav-icon {
    transform: scale(1.2) translateX(-5px);
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

/* Effet de soulignement progressif pour les titres de navigation */
.nav-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c00000, #e63946);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-title {
    color: #c00000;
}

.nav-link:hover .nav-title::after {
    width: 100%;
}

/* Section commentaires */
#comments-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

#comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c00000, #e63946, #c00000);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

/* Zone des commentaires */
.comments-area {
    margin-top: 1rem;
}

.comments-title {
    font-size: 1.75rem;
    color: #222;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
}

/* Liste des commentaires */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
}

.comment-body {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 12px;
    border-left: 3px solid #c00000;
    transition: all 0.3s ease;
}

.comment-body:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(192, 0, 0, 0.1);
    transform: translateX(4px);
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar .avatar {
    border-radius: 50%;
    border: 2px solid #c00000;
}

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

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

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

.comment-author-name {
    font-weight: 700;
    color: #222;
    font-size: 1.125rem;
}

.comment-author-name a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-author-name a:hover {
    color: #c00000;
}

.comment-date {
    color: #666;
    font-size: 0.875rem;
}

.comment-awaiting-moderation {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.comment-content {
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

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

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

.comment-reply {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-reply a,
.delete-comment-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: transparent;
    color: #c00000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #c00000;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.comment-reply a:hover {
    background: #c00000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 0, 0, 0.2);
}

/* Bouton supprimer */
.delete-comment-btn {
    background: transparent;
    color: #dc3545;
    border-color: #dc3545;
}

.delete-comment-btn:hover:not(:disabled) {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
}

.delete-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Commentaires imbriqués */
.children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

/* Make child comments narrower */
.children .comment-body {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .children {
        padding-left: 1rem;
    }
    
    .children .comment-body {
        max-width: 98%;
    }
}

/* Inline Reply Form */
.inline-reply-form-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    margin: 0;
}

.inline-reply-form-container.active {
    max-height: 500px;
    opacity: 1;
    margin: 1rem 0;
}

.inline-reply-form {
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-left: 3px solid #c00000;
    border-radius: 12px;
    padding: 1.5rem;
    margin-left: 2rem;
}

@media (max-width: 767px) {
    .inline-reply-form {
        margin-left: 1rem;
        padding: 1rem;
    }
}

.reply-form-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1rem 0;
}

.inline-reply-form .logged-in-as {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.inline-reply-form .logged-in-as a {
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
}

.inline-reply-form .logged-in-as a:hover {
    text-decoration: underline;
}

.inline-comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.inline-comment-form textarea:focus {
    outline: none;
    border-color: #c00000;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
    transform: translateY(-2px);
}

.inline-reply-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.submit-reply-button,
.cancel-reply-button {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-reply-button {
    background: #c00000;
    color: white;
    box-shadow: 0 2px 8px rgba(192, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-reply-button::after {
    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 ease, height 0.6s ease;
}

.submit-reply-button:hover::after {
    width: 20em;
    height: 20em;
}

.submit-reply-button:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

.submit-reply-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cancel-reply-button {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-reply-button:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

/* Pas de commentaires */
.no-comments {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Formulaire de commentaire */
#respond {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

#reply-title {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#reply-title small {
    margin-left: 1rem;
}

#reply-title small a {
    font-size: 0.875rem;
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

#reply-title small a:hover {
    color: #a00000;
    text-decoration: underline;
}

.comment-form {
    display: grid;
    gap: 1.25rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.comment-form .required {
    color: #c00000;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #c00000;
    background: white;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Bouton de soumission du commentaire */
.comment-form .submit-button {
    padding: 1rem 2.5rem;
    background: #c00000;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.comment-form .submit-button:hover {
    background: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(192, 0, 0, 0.4);
}

.comment-form .submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(192, 0, 0, 0.3);
}

/* Animation ripple pour le bouton */
.comment-form .submit-button::after {
    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 ease, height 0.6s ease;
}

.comment-form .submit-button:hover::after {
    width: 30em;
    height: 30em;
}

/* Navigation des commentaires */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-navigation a {
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-navigation a:hover {
    color: #a00000;
    transform: translateX(4px);
}

.comment-navigation .nav-previous a:hover {
    transform: translateX(-4px);
}

/* Message de connexion et bouton */
.must-log-in {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-size: 1rem;
    margin: 1.5rem 0;
    background: #f9f9f9;
    border-radius: 8px;
}

.login-button-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: #c00000;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background: #a00000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(192, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Animation ripple pour le bouton de connexion */
.login-button::after {
    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 ease, height 0.6s ease;
}

.login-button:hover::after {
    width: 30em;
    height: 30em;
}

/* Message "connecté en tant que" */
.logged-in-as {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #f0f8ff;
    border-radius: 8px;
    color: #444;
    font-size: 0.95rem;
}

.logged-in-as a {
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
}

.logged-in-as a:hover {
    color: #a00000;
    text-decoration: underline;
}

/* Messages de succès/erreur pour les commentaires AJAX */
.comment-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-message-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.comment-message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Animation pour les nouveaux commentaires */
.comment-list > li {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* État de chargement pour le bouton */
.submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 767px) {
    #comments-section {
        padding: 1.5rem;
    }
    
    .comment-body {
        flex-direction: column;
        padding: 1rem;
    }
    
    .comment-author-avatar {
        align-self: flex-start;
    }
    
    .comment-form .submit-button {
        width: 100%;
        padding: 1rem;
    }
    
    .comment-navigation {
        flex-direction: column;
    }
}

/* Mobile adjustments pour single posts */
@media (max-width: 767px) {
    .single .post-featured-image {
        height: 300px;
    }
    
    .single .featured-image {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .single .post-meta-info {
        padding: 1.5rem;
    }
    
    .single .post-content {
        padding: 0 1.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .single .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .single .nav-links {
        grid-template-columns: 1fr;
    }
    
    .single .nav-previous {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .single .post-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .single .post-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .single .main-container {
        padding: 0 2rem;
    }
    
    .single .post-meta-info {
        padding: 3rem;
    }
    
    .single .post-content {
        padding: 0 3rem 3rem;
    }
}

/* ==========================================================================
   INDEX PAGE STYLES - BOUFFE MONTRÉAL DESIGN
   ========================================================================== */

/* Layout général pour index/construction */
.home body,
.construction-page body {
    /* Flexbox layout now applied globally to body */
}

.home .site-main,
.construction-page .site-main {
    /* flex: 1 now applied globally to .site-main */
    padding: 3rem 0;
}

.home .main-container,
.construction-page .main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section héros centrale */
#hero-section {
    text-align: center;
    background-color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Icônes/Emojis */
.hero-icons {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    display: inline-block;
    animation: bounce 2s infinite ease-in-out;
}

.hero-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Titre principal */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 2rem 0;
    font-weight: 700;
    color: #222;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Description */
.hero-description {
    max-width: 700px;
    margin: 0 auto;
}

.hero-description p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #333;
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    font-weight: 400;
}

.hero-description p:last-child {
    margin-bottom: 0;
    font-size: clamp(1.1rem, 2.8vw, 1.25rem);
}

.hero-description strong {
    color: #c00000;
    font-weight: 600;
}

/* Mobile adjustments pour index */
@media (max-width: 767px) {
    .home .site-main,
    .construction-page .site-main {
        padding: 2rem 0;
    }
    
    #hero-section {
        padding: 3rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .hero-icons {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-description p {
        margin-bottom: 1.25rem;
    }
}

/* Large screens pour index */
@media (min-width: 768px) {
    #hero-section {
        padding: 5rem 3rem;
    }
}

@media (min-width: 1200px) {
    .home .main-container,
    .construction-page .main-container {
        padding: 0 2rem;
    }
    
    #hero-section {
        padding: 6rem 4rem;
    }
}

/* Animations d'entrée */
@media (prefers-reduced-motion: no-preference) {
    #hero-section {
        animation: fadeInUp 0.8s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ==========================================================================
   CATEGORY PAGE STYLES - BOUFFE MONTRÉAL DESIGN
   ========================================================================== */

/* Main container pour les pages de catégories */
.category-page .site-main {
    padding: 2rem 0;
}

.category-page .main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header de catégorie */
#category-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #c00000 0%, #e63946 100%);
    color: white;
    border-radius: 12px;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance animé sur le header */
#category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.category-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.category-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.category-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Grille d'articles */
#posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 0 0 3rem 0;
}

/* Force 2 colonnes sur les écrans larges pour les pages de catégories
   Note: Le sélecteur #posts-grid est spécifique aux pages category.php et category-clean.php
   Les autres pages utilisent .posts-grid (classe) et conservent leur comportement respectif */
@media (min-width: 768px) {
    #posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Effet de brillance subtile sur les cartes */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.05), rgba(192, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 12px;
    z-index: 1;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.post-card:hover::before {
    opacity: 1;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-thumbnail.placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Effet de glow sur les images au hover */
.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(192, 0, 0, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.post-card:hover .post-thumbnail::after {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .card-image {
    transform: scale(1.08);
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.category-page .post-meta,
.archive-page .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.category-page .post-title,
.archive-page .post-title {
    margin: 0 0 1rem 0 !important;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    padding-left: 1rem;
}

.category-page .post-title::before,
.archive-page .post-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #c00000, #e63946);
    border-radius: 2px;
}

.category-page .post-title a,
.archive-page .post-title a {
    color: #e63946;
    text-decoration: none;
    background-image: linear-gradient(to right, #c00000 0%, #e63946 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: color 0.3s ease, background-size 0.3s ease;
}

.category-page .post-title a:hover,
.archive-page .post-title a:hover {
    color: #c00000;
    background-size: 100% 2px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.post-footer {
    margin-top: auto;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #c00000;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet de soulignement animé */
.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c00000, #e63946);
    transition: width 0.3s ease;
}

.read-more-link:hover {
    color: #a00000;
}

.read-more-link:hover::after {
    width: 100%;
}

.read-more-link .arrow {
    transition: transform 0.3s ease;
}

.read-more-link:hover .arrow {
    transform: translateX(5px);
}

/* Pagination */
.pagination-nav {
    margin: 3rem 0;
    text-align: center;
}

.pagination-nav .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.pagination-nav .page-numbers li {
    margin: 0;
}

.pagination-nav .page-numbers a,
.pagination-nav .page-numbers span {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Effet ripple sur les boutons de pagination */
.pagination-nav .page-numbers a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(192, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.pagination-nav .page-numbers a:hover::before {
    width: 200px;
    height: 200px;
}

.pagination-nav .page-numbers a:hover {
    background-color: #c00000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

.pagination-nav .page-numbers .current {
    background-color: #c00000;
    color: white;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

/* Message pas d'articles */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Effet de fond animé pour no-posts */
.no-posts::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(192, 0, 0, 0.03) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.no-posts h2 {
    color: #333;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
}

.no-posts p {
    color: #666;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
}

.back-home-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #c00000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Effet ripple sur le bouton */
.back-home-btn::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 ease, height 0.6s ease;
}

.back-home-btn:hover::before {
    width: 300px;
    height: 300px;
}

.back-home-btn:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.4);
}

/* Mobile adjustments pour catégories et archives */
@media (max-width: 767px) {
    #category-header,
    .archive-header {
        padding: 2rem 1.5rem;
        margin: 1rem 0 2rem 0;
    }
    
    .category-title,
    .archive-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-page .post-meta,
    .archive-page .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* Correction mobile : empêche l'emoji et le titre de passer à la ligne */
    .category-header {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .category-title {
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 0.5rem;
    }
    
    .category-icon {
        flex-shrink: 0;
    }
}

/* Large screens pour catégories et archives */
@media (min-width: 1200px) {
    .category-page .main-container {
        padding: 0 2rem;
    }
    
    /* Maintien de 2 colonnes pour les pages de catégories sur grands écrans */
    #posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* ==========================================================================
   TEMPLATE-SPECIFIC STYLES - ALL REMAINING TEMPLATES
   ========================================================================== */

/* ==========================================================================
   PAGE TEMPLATE STYLES (page.php)
   ========================================================================== */

.single-page {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.page-header {
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #222;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

.page-featured-image {
    margin-top: 2rem;
}

.page-featured-image .featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-content {
    padding: 3rem 2rem;
    line-height: 1.7;
    color: #333;
}

.page-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #222;
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
}

.page-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 2rem 0 0.75rem 0;
    font-weight: 600;
}

.page-content ul,
.page-content ol {
    margin: 0 0 1.5rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content blockquote {
    border-left: 4px solid #c00000;
    margin: 2rem 0;
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #c00000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.page-links a:hover {
    background-color: #a00000;
}

/* ==========================================================================
   ARCHIVE PAGE STYLES (archive.php)
   ========================================================================== */

/* Header d'archive */
.archive-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 12px;
    margin: 2rem 0 3rem 0;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.archive-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.archive-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.archive-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* ==========================================================================
   FRONT PAGE STYLES (front-page.php)
   ========================================================================== */

/* Hero d'accueil */
.welcome-hero {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(192, 0, 0, 0.03) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-icons {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

.hero-icon:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-icon:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: #222;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Section headers front page */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem 0;
    font-family: 'Roboto', sans-serif;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #666;
    margin: 0;
}

/* Grid des posts front page */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Cards des posts front page - modifications spécifiques */
.front-page .post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.front-page .post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(192, 0, 0, 0.1);
}

.front-page .post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.front-page .post-card:hover .post-image {
    transform: scale(1.05);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c00000 0%, #a00000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.front-page .post-meta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-date,
.front-page .post-category {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    backdrop-filter: blur(10px);
}

.front-page .post-category {
    background: rgba(192, 0, 0, 0.9);
    color: white;
}

.front-page .post-content {
    padding: 1.5rem;
}

/* Date repositionnée dans le contenu du post */
.post-content .post-date {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.125rem;
    background: rgba(192, 0, 0, 0.1);
    color: #c00000;
    padding: 0.375rem 0.875rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    text-align: left;
    border: 1px solid rgba(192, 0, 0, 0.2);
}

.front-page .post-title {
    margin: 0 0 1rem 0 !important;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.front-page .post-content h3.post-title {
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

.front-page .post-title a {
    color: #e63946;
    text-decoration: none;
    background-image: linear-gradient(to right, #c00000 0%, #e63946 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: color 0.3s ease, background-size 0.3s ease;
}

.front-page .post-title a:hover {
    color: #c00000;
    background-size: 100% 2px;
}

.front-page .post-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #a00000;
    gap: 0.75rem;
}

.read-more-icon {
    transition: transform 0.2s ease;
}

.read-more:hover .read-more-icon {
    transform: translateX(3px);
}

/* Bouton voir tous les articles */
.view-all-posts {
    text-align: center;
    margin: 3rem 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #c00000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

/* Section sans posts */
.no-posts {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-posts h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-posts p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* Newsletter */
.newsletter-signup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    text-align: center;
    margin-top: 3rem;
    position: relative;
    border: 2px solid rgba(192, 0, 0, 0.1);
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 1;
}

.newsletter-text {
    color: #666;
    margin: 0 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #c00000;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: #c00000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-btn:hover {
    background: #a00000;
}

/* Sections de catégories front page */
.category-sections {
    margin-top: 3rem;
}

.category-section {
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c00000, #e63946, #c00000);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.category-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #222;
    margin: 0;
    flex: 1;
}

.category-icon {
    font-size: 1.5em;
    display: inline-block;
}

.category-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-view-all:hover {
    color: #a00000;
    gap: 0.75rem;
}

.category-view-all .arrow {
    transition: transform 0.2s ease;
}

.category-view-all:hover .arrow {
    transform: translateX(3px);
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Section fallback pour aucun contenu de catégorie */
.fallback-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Responsive pour les sections de catégories */
@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    /* Wrapper pour grouper emoji et titre */
    .category-title-wrapper {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .category-title-wrapper .category-icon {
        flex-shrink: 0;
    }
    
    .category-title-wrapper .category-title {
        font-size: 1.5rem;
        margin: 0;
        flex-grow: 1;
    }
    
    .category-view-all {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .category-sections {
        margin-top: 2rem;
    }
    
    .category-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .category-header {
        margin-bottom: 1.5rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   HEADER STYLES (header.php)
   ========================================================================== */

/* Barre supérieure rouge avec réduction de hauteur réelle */
.header-bar {
    background-color: #c00000;
    color: white;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    
    /* Variables CSS pour l'animation de scroll */
    --scroll-progress: 0;
    --max-scroll: 100px;
    --base-padding: 0.6rem; /* 0.75rem * 0.8 = 0.6rem */
    --min-padding: 0.32rem;   /* 0.4rem * 0.8 = 0.32rem */
    
    /* Calcul de la hauteur dynamique - reste toujours visible */
    padding: calc(var(--base-padding) - (var(--scroll-progress) * (var(--base-padding) - var(--min-padding)))) 0;
    transition: padding 0.1s linear;
    overflow: hidden;
    min-height: 12px; /* 15px * 0.8 = 12px */
}

/* Configuration mobile - hauteur minimum toujours respectée */
@media (max-width: 850px) {
    .header-bar {
        --min-padding: 0.28rem; /* 0.35rem * 0.8 = 0.28rem */
    }
}

@media (max-width: 480px) {
    .header-bar {
        --min-padding: 0.24rem; /* 0.3rem * 0.8 = 0.24rem */
    }
}
.header-bar__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem; /* 1rem * 0.8 = 0.8rem */
}

.header-bar__text {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.72rem, 1.6vw, 0.96rem); /* 0.9rem * 0.8 = 0.72rem, 2vw * 0.8 = 1.6vw, 1.2rem * 0.8 = 0.96rem */
    font-weight: 600;
    letter-spacing: 0.025em;
    line-height: 1.3;
    
    /* Le texte disparaît progressivement */
    opacity: calc(1 - var(--scroll-progress) * 1.5);
    transform: translateY(calc(var(--scroll-progress) * -15px)) scale(calc(1 - var(--scroll-progress) * 0.4));
    transition: opacity 0.1s linear, transform 0.1s linear;
}

/* Même comportement sur tous les appareils - texte disparaît plus vite */
@media (max-width: 850px) {
    .header-bar__text {
        opacity: calc(1 - var(--scroll-progress) * 2);
    }
}

@media (max-width: 480px) {
    .header-bar__text {
        opacity: calc(1 - var(--scroll-progress) * 2.5);
    }
}

/* Comportement spécifique du texte en mode compact sur mobile */
@media (max-width: 850px) {
    .header-bar--compact .header-bar__text {
        opacity: 0;
        transform: translateY(-5px);
        font-size: 0; /* Force la hauteur à zéro sur mobile */
        line-height: 0;
        margin: 0;
        padding: 0;
    }
    
    /* Force la visibilité de la réduction sur mobile */
    .header-bar {
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .header-bar--compact {
        padding: 0.08rem 0 !important; /* 0.1rem * 0.8 = 0.08rem */
        min-height: 0.64rem; /* 0.8rem * 0.8 = 0.64rem */
        max-height: 0.64rem;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .header-bar--compact {
        padding: 0.04rem 0 !important; /* 0.05rem * 0.8 = 0.04rem */
        min-height: 0.48rem; /* 0.6rem * 0.8 = 0.48rem */
        max-height: 0.48rem;
    }
    
    .site-header--compact {
        top: 4.8px !important; /* 6px * 0.8 = 4.8px */
    }
}

/* ==========================================================================
   HEADER EXTENDED STYLES (header.php)
   ========================================================================== */

/* Header principal qui s'adapte automatiquement */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e1e5e9;
    padding: 0.8rem 0; /* 1rem * 0.8 = 0.8rem */
    position: sticky;
    top: 0; /* Maintenant collé directement sous la header-bar réduite */
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 100%; /* Utilise toute la largeur de l'écran */
    margin: 0 auto;
    padding: 0 clamp(0.4rem, 1.6vw, 0.8rem); /* 0.5rem * 0.8 = 0.4rem, 2vw * 0.8 = 1.6vw, 1rem * 0.8 = 0.8rem */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.4rem, 1.6vw, 1.2rem); /* 0.5rem * 0.8 = 0.4rem, 2vw * 0.8 = 1.6vw, 1.5rem * 0.8 = 1.2rem */
}

/* Branding */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.2rem; /* 1.5rem * 0.8 = 1.2rem */
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

.site-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.site-title a:hover,
.site-title a:focus {
    color: #c00000;
}

.site-description {
    margin: 0.2rem 0 0 0; /* 0.25rem * 0.8 = 0.2rem */
    font-size: 0.7rem; /* 0.875rem * 0.8 = 0.7rem */
    color: #666;
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
}

.custom-logo {
    max-height: 48px; /* 60px * 0.8 = 48px */
    width: auto;
}

/* SVG Logo Styles */
.site-logo-link {
    display: inline-block;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-logo-link:hover,
.site-logo-link:focus {
    opacity: 0.85;
    transform: scale(1.05);
    text-decoration: none;
}

.site-logo-svg {
    max-height: 48px; /* 60px * 0.8 = 48px */
    width: auto;
    height: 48px;
    display: block;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .site-logo-svg {
        max-height: 38.4px; /* 48px * 0.8 = 38.4px */
        height: 38.4px;
    }
}

@media (max-width: 480px) {
    .site-logo-svg {
        max-height: 32px; /* 40px * 0.8 = 32px */
        height: 32px;
    }
}

/* Navigation */
.site-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 75%;
    min-width: 0;
}

/* ==========================================================================
   FOOTER STYLES (footer.php)
   ========================================================================== */

.footer-bar {
    background-color: #9990b4;
    color: white;
    padding: 1rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0;
    font-size: clamp(12px, 1.5vw, 14px);
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
    opacity: 0.95;
}

/* ==========================================================================
   CONSTRUCTION PAGE STYLES (construction.php)
   ========================================================================== */

/* Section héros centrale */
.hero-section {
    text-align: center;
    background-color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

/* Icônes/Emojis */
.hero-icons {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.construction .hero-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    display: inline-block;
    animation: bounce 2s infinite ease-in-out;
}

.construction .hero-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.construction .hero-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Titre principal */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    color: #222;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Sous-titre */
.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge de statut */
.status-badge {
    display: inline-block;
    background-color: #c00000;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin: 2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

/* Message de description */
.hero-message {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #555;
    line-height: 1.7;
    margin: 2rem 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Fonctionnalités liste */
.features-list {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #c00000;
}

.feature-emoji {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.feature-text {
    font-weight: 500;
    color: #333;
}

/* CTA section */
.cta-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #222;
    margin: 0 0 1rem 0;
}

.cta-text {
    color: #666;
    margin: 0 0 2rem 0;
    font-size: 1.125rem;
}

.cta-button {
    display: inline-block;
    background-color: #c00000;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(192, 0, 0, 0.4);
}

/* ==========================================================================
   MENU COMPONENT STYLES (template-parts/menu.php)
   ========================================================================== */

.menu {
    position: relative;
    width: 100%;
    z-index: 1002; /* Plus élevé que les headers pour garantir la visibilité */
    display: flex;
    justify-content: flex-end;
}

/* Bouton hamburger - Mobile First */
.menu__toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* 0.5rem * 0.8 = 0.4rem */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem; /* 0.75rem * 0.8 = 0.6rem */
    border-radius: 4px;
    transition: background-color 0.2s ease;
    color: inherit;
    font-family: inherit;
}

.menu__toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.menu__toggle:focus {
    outline: 2px solid #c00000;
    outline-offset: 2px;
}

/* Icône hamburger */
.menu__icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 19.2px; /* 24px * 0.8 = 19.2px */
    height: 14.4px; /* 18px * 0.8 = 14.4px */
}

.menu__line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation hamburger vers X */
.menu--open .menu__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu--open .menu__line:nth-child(2) {
    opacity: 0;
}

.menu--open .menu__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Texte du bouton */
.menu__text {
    font-size: 0.72rem; /* 0.9rem * 0.8 = 0.72rem */
    font-weight: 500;
}

/* Container du menu - Mobile */
.menu__container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
}

.menu--open .menu__container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 320px; /* 400px * 0.8 = 320px */
}

/* Liste du menu */
.menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Éléments du menu */
.menu__list .menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.menu__list .menu-item:last-child {
    border-bottom: none;
}

.menu__list .menu-item a {
    display: block;
    padding: 0.8rem 1rem; /* 1rem * 0.8 = 0.8rem, 1.25rem * 0.8 = 1rem */
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    font-weight: 500;
}

.menu__list .menu-item a:hover,
.menu__list .menu-item a:focus {
    background-color: #f8f9fa;
    color: #c00000;
    outline: none;
}

.menu__list .menu-item.current-menu-item a,
.menu__list .menu-item.current_page_item a,
.menu__list .menu-item.active-category a {
    color: #c00000;
    background-color: #f0f8ff;
    font-weight: 600;
}

/* Sous-menus */
.menu__list .menu-item-has-children {
    position: relative;
}

.menu__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.menu__list .sub-menu .menu-item a {
    padding-left: 2rem; /* 2.5rem * 0.8 = 2rem */
    font-size: 0.72rem; /* 0.9rem * 0.8 = 0.72rem */
}

/* ==========================================================================
   MENU DESKTOP STYLES (≥ 768px)
   ========================================================================== */

/* Transition intermédiaire pour éviter le débordement */
@media (max-width: 900px) and (min-width: 851px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .menu__list {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .menu__list::-webkit-scrollbar {
        display: none;
    }
    
    .menu__list .menu-item a {
        font-size: clamp(0.56rem, 0.88vw, 0.68rem); /* 0.7rem * 0.8 = 0.56rem, 1.1vw * 0.8 = 0.88vw, 0.85rem * 0.8 = 0.68rem */
        padding: clamp(0.32rem, 0.56vw, 0.4rem) clamp(0.48rem, 0.8vw, 0.6rem); /* 0.4rem * 0.8, 0.7vw * 0.8, 0.5rem * 0.8 / 0.6rem * 0.8, 1vw * 0.8, 0.75rem * 0.8 */
        margin: 0 clamp(0.08rem, 0.2vw, 0.12rem); /* 0.1rem * 0.8, 0.25vw * 0.8, 0.15rem * 0.8 */
    }
}

@media (min-width: 851px) {
    .menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
    }
    
    /* Cacher le bouton hamburger sur desktop */
    .menu__toggle {
        display: none;
    }
    
    /* Container du menu - Desktop */
    .menu__container {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        max-height: none;
        transition: none;
    }
    
    /* Liste du menu - Desktop */
    .menu__list {
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
        flex-wrap: nowrap;
        overflow: hidden;
        max-width: 80vw;
    }
    
    /* Éléments du menu - Desktop */
    .menu__list .menu-item {
        border-bottom: none;
        position: relative;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .menu__list .menu-item a {
        font-size: clamp(0.6rem, 1.04vw, 0.8rem); /* 0.75rem * 0.8 = 0.6rem, 1.3vw * 0.8 = 1.04vw, 1rem * 0.8 = 0.8rem */
        padding: clamp(0.4rem, 0.72vw, 0.6rem) clamp(0.6rem, 0.96vw, 0.8rem); /* 0.5rem * 0.8, 0.9vw * 0.8, 0.75rem * 0.8 / 0.75rem * 0.8, 1.2vw * 0.8, 1rem * 0.8 */
        border-radius: 4px;
        margin: 0 clamp(0.1rem, 0.32vw, 0.2rem); /* 0.125rem * 0.8, 0.4vw * 0.8, 0.25rem * 0.8 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu__list .menu-item a:hover,
    .menu__list .menu-item a:focus {
        background-color: rgba(192, 0, 0, 0.1);
    }
    
    .menu__list .menu-item.current-menu-item a,
    .menu__list .menu-item.current_page_item a,
    .menu__list .menu-item.active-category a {
        background-color: rgba(192, 0, 0, 0.15);
        color: #c00000;
        font-weight: 600;
    }
    
    /* Sous-menus - Desktop */
    .menu__list .menu-item-has-children:hover .sub-menu,
    .menu__list .menu-item-has-children:focus-within .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .menu__list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 160px; /* 200px * 0.8 = 160px */
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 0.4rem 0; /* 0.5rem * 0.8 = 0.4rem */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .menu__list .sub-menu .menu-item a {
        padding: 0.6rem 1.2rem; /* 0.75rem * 0.8 = 0.6rem, 1.5rem * 0.8 = 1.2rem */
        margin: 0;
        white-space: nowrap;
    }
}

/* ==========================================================================
   MENU LARGE DESKTOP STYLES (≥ 1200px)
   ========================================================================== */

@media (min-width: 1200px) {
    .menu__list .menu-item a {
        padding: 0.8rem 1.6rem; /* 1rem * 0.8 = 0.8rem, 2rem * 0.8 = 1.6rem */
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR ALL TEMPLATES
   ========================================================================== */

/* Mobile adjustments - Breakpoint avancé pour éviter le chevauchement */
@media (max-width: 850px) {
    /* Menu mobile - alignement à droite */
    .site-navigation {
        justify-content: flex-end;
        width: 100%;
    }
    
    .menu {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .menu__toggle {
        margin-left: auto;
        margin-right: 0;
        display: flex !important;
    }
    
    /* Page template mobile */
    .page-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .page-content {
        padding: 2rem 1.5rem;
    }
    
    .page-content p {
        font-size: 1rem;
    }
    
    /* Archive template mobile */
    .archive-header {
        padding: 2rem 1.5rem;
        margin: 1rem 0 2rem 0;
    }
    
    .archive-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Front page mobile */
    .welcome-hero {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-signup {
        padding: 2rem 1.5rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screens */
@media (min-width: 1200px) {
    /* Page template large screens */
    .page-header {
        padding: 4rem 3rem 3rem;
    }
    
    .page-content {
        padding: 4rem 3rem;
    }
    
    /* Archive template large screens */
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 2.5rem;
    }
    
    /* Front page large screens */
    .main-container {
        padding: 0 2rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   ANIMATIONS FOR ALL TEMPLATES
   ========================================================================== */

/* Variables d'animation */
/* États initiaux pour les éléments à animer */
[data-animate] {
    opacity: 0;
    transition: all var(--animation-duration) var(--animation-easing);
    transition-delay: var(--animation-delay, 0ms);
    /* Fallback critique: Afficher le contenu après 3 secondes si JavaScript ne fonctionne pas */
    animation: forceVisible 0.1s ease-out 3s forwards;
}

/* Désactiver le fallback si l'animation est gérée par JS */
[data-animate].animated {
    animation: none;
}

/* Animation de fallback pour assurer la visibilité du contenu */
@keyframes forceVisible {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Animations de base */
[data-animate="fade-in"] {
    opacity: 0;
}

[data-animate="fade-in"].animated {
    opacity: 1;
}

[data-animate="slide-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate="slide-up"].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(40px);
}

[data-animate="slide-left"].animated {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(-40px);
}

[data-animate="slide-right"].animated {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="scale-up"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-animate="scale-up"].animated {
    opacity: 1;
    transform: scale(1);
}

[data-animate="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
}

[data-animate="zoom-in"].animated {
    opacity: 1;
    transform: scale(1);
}

/* Animation combinée slide + fade */
[data-animate="slide-fade"] {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

[data-animate="slide-fade"].animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Améliorations visuelles avec effets modernes */
.post-card {
    position: relative;
    transition: all 0.3s var(--animation-easing);
    will-change: transform;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(192, 0, 0, 0.05), rgba(192, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.post-card:hover::before {
    opacity: 1;
}

/* Effet de brillance sur les boutons */
.read-more,
.category-view-all,
.btn-primary {
    position: relative;
    overflow: hidden;
}

.read-more::after,
.category-view-all::after,
.btn-primary::after {
    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 ease, height 0.6s ease;
}

.read-more:hover::after,
.category-view-all:hover::after,
.btn-primary:hover::after {
    width: 30em;
    height: 30em;
}

/* Amélioration des ombres avec animation */
.category-section {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--animation-easing);
}

.category-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Animations des icônes améliorées */
.hero-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-icon:nth-child(1) {
    animation-delay: 0s;
}

.hero-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.category-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.category-section:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Newsletter avec effet de gradient animé */
.newsletter-signup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 70%,
        rgba(192, 0, 0, 0.08) 0%,
        rgba(192, 0, 0, 0.03) 30%,
        transparent 60%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* Effet de glow sur les images au hover */
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(192, 0, 0, 0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover .post-thumbnail::after {
    opacity: 1;
}

/* Animation de la barre de progression au chargement */
.welcome-hero {
    position: relative;
}

.welcome-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #c00000, #a00000);
    animation: progressBar 2s ease-out;
    border-radius: 0 0 12px 12px;
}

@keyframes progressBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Amélioration des transitions sur les liens */
.post-title a,
.category-view-all,
.read-more {
    background-image: linear-gradient(
        to right,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.post-title a:hover,
.category-view-all:hover,
.read-more:hover {
    background-size: 100% 2px;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Animations d'entrée existantes - maintenant gérées par JS */
@media (prefers-reduced-motion: no-preference) {
    /* Fallback pour navigateurs sans JS */
    .no-js .welcome-hero {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .no-js .post-card {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .no-js .post-card:nth-child(2) { animation-delay: 0.1s; }
    .no-js .post-card:nth-child(3) { animation-delay: 0.2s; }
    .no-js .post-card:nth-child(4) { animation-delay: 0.3s; }
    .no-js .post-card:nth-child(5) { animation-delay: 0.4s; }
    .no-js .post-card:nth-child(6) { animation-delay: 0.5s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ==========================================================================
   HEADER SCROLL BEHAVIOR - RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Assure que les transitions fonctionnent correctement sur mobile */
@media (max-width: 850px) {
    .header-bar--compact {
        padding: 0.16rem 0; /* 0.2rem * 0.8 = 0.16rem */
    }
    
    .site-header--compact {
        top: 11.2px; /* 14px * 0.8 = 11.2px */
    }
}

/* Désactive les animations pour les utilisateurs qui préfèrent les mouvements réduits */
@media (prefers-reduced-motion: reduce) {
    .header-bar,
    .site-header,
    .header-bar__text {
        transition: none !important;
        transform: none !important;
    }
    
    .header-bar {
        --scroll-progress: 0 !important;
    }
}

/* Fallback pour navigateurs sans support des CSS Custom Properties */
@supports not (--scroll-progress: 0) {
    .header-bar {
        position: sticky;
        top: 0;
    }
    
    .site-header {
        top: 38px; /* Approximation de la hauteur du header-bar à 0.8x: ~38px (was 48px) */
    }
}

/* ==========================================================================
   FIN HEADER SCROLL BEHAVIOR
   ========================================================================== */

/* ==========================================================================
   AUTHENTICATION PAGES (LOGIN & REGISTRATION)
   ========================================================================== */

/* Auth page container */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f2f2f2 0%, #e8e8e8 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Auth header */
.auth-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.auth-title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #c00000;
    font-weight: 700;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Auth messages */
.auth-message {
    margin: 1.5rem 2rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-message--error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.auth-message--success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* Auth form */
.auth-form {
    padding: 1.5rem 2rem 2rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #c00000;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8rem;
    color: #666;
}

/* Focused state animation */
.form-group--focused .form-label {
    color: #c00000;
}

.form-group--focused .form-input {
    transform: translateY(-2px);
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.75rem;
}

.password-strength__bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.password-strength__progress {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength__text {
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Password match indicator */
.password-match {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.password-match__icon {
    font-weight: bold;
    font-size: 1rem;
}

.password-match--success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.password-match--success .password-match__icon {
    color: #4caf50;
}

.password-match--error {
    background-color: #ffebee;
    color: #c62828;
}

.password-match--error .password-match__icon {
    color: #f44336;
}

/* Form actions */
.form-actions {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: linear-gradient(135deg, #c00000 0%, #a00000 100%);
    color: white;
}

.btn--primary:hover {
    background: linear-gradient(135deg, #a00000 0%, #800000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: white;
    color: #c00000;
    border: 2px solid #c00000;
}

.btn--secondary:hover {
    background: #c00000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.2);
}

.btn--full {
    width: 100%;
}

/* Button loading state */
.btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn__loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

.btn--loading .btn__loader {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.auth-link {
    color: #c00000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #a00000;
    text-decoration: underline;
}

/* Auth footer */
.auth-footer {
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.auth-footer-text {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Menu auth items */
.menu-item-user .menu-user-link {
    display: inline-block;
    text-decoration: none;
}

.menu-item-user .menu-user-name {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.5rem, 0.9vw, 0.75rem) clamp(0.75rem, 1.2vw, 1rem);
    color: #333;
    font-weight: 500;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin: 0 clamp(0.125rem, 0.4vw, 0.25rem);
    transition: all 0.3s ease;
}

.menu-item-user .menu-user-link:hover .menu-user-name {
    background-color: #c00000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 0, 0, 0.3);
}

.menu-item-login a.menu-login-btn {
    background: linear-gradient(135deg, #c00000 0%, #a00000 100%);
    color: white !important;
    padding: clamp(0.5rem, 0.9vw, 0.75rem) clamp(0.875rem, 1.4vw, 1.25rem) !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.menu-item-login a.menu-login-btn:hover {
    background: linear-gradient(135deg, #a00000 0%, #800000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 0, 0, 0.3);
}

.menu-item-logout a {
    color: #666 !important;
    padding: clamp(0.5rem, 0.9vw, 0.75rem) clamp(0.75rem, 1.2vw, 1rem) !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-item-logout a:hover {
    color: #c00000 !important;
    border-color: #c00000;
    background-color: #fff5f5;
}

/* Mobile menu auth items */
@media (max-width: 850px) {
    .menu-item-user .menu-user-link {
        display: block;
    }
    
    .menu-item-user .menu-user-name {
        display: block;
        padding: 1rem 1.25rem;
        margin: 0;
        border-radius: 0;
        background-color: #f8f9fa;
    }
    
    .menu-item-user .menu-user-link:hover .menu-user-name {
        background-color: #c00000;
        color: white;
        transform: none;
        box-shadow: none;
    }
    
    .menu-item-login a.menu-login-btn {
        display: block;
        padding: 1rem 1.25rem !important;
        margin: 0;
        border-radius: 0;
        text-align: left;
    }
    
    .menu-item-logout a {
        display: block;
        padding: 1rem 1.25rem !important;
        margin: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid #e0e0e0;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-page {
        padding: 1rem 0.5rem;
    }
    
    .auth-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .auth-form {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .auth-footer {
        padding: 1rem 1.5rem;
    }
}

/* ==========================================================================
   FIN AUTHENTICATION PAGES
   ========================================================================== */

/* ==========================================================================
   PROFILE PAGE
   ========================================================================== */

.profile-page {
    background: linear-gradient(135deg, #f2f2f2 0%, #e8e8e8 100%);
}

.profile-container {
    max-width: 680px;
}

.profile-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}

.profile-form {
    padding: 2rem;
}

/* Avatar section */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.profile-avatar-preview {
    flex-shrink: 0;
}

.profile-avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-upload {
    flex: 1;
}

/* File upload styling */
.file-upload-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #c00000;
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #c00000;
}

.file-label:hover {
    background-color: #a00000;
    border-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

.file-label-icon {
    font-size: 1.2rem;
}

.file-name {
    display: inline-block;
    margin-left: 1rem;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Form textarea */
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', 'Roboto', sans-serif;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: #c00000;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

/* Disabled input */
.form-input--disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* Profile divider */
.profile-divider {
    margin: 2rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.profile-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 0;
}

/* Profile actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.profile-actions .btn {
    flex: 1;
}

/* Public profile link section */
.profile-public-link-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-radius: 8px;
    border: 2px solid #2196f3;
    text-align: center;
}

/* Inline visibility badges */
.visibility-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.visibility-badge--public {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.visibility-badge--private {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.btn--full .visibility-badge {
    margin-left: auto;
    font-size: 0.65rem;
}

.btn--public-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    border: none;
}

.btn--public-profile:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.btn--public-profile .btn__icon {
    font-size: 1.2rem;
}

.btn--public-profile .external-link-icon {
    font-size: 0.85rem;
}

.profile-public-hint {
    margin: 1rem 0 0 0;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form hint */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* Required field indicator */
.required-field {
    color: #c00000;
    font-weight: 700;
    margin-left: 0.25rem;
}

/* Password change section */
.password-change-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.btn--full {
    width: 100%;
}

.btn__icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Password Modal (Lightbox) */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.password-modal.active {
    visibility: visible;
    opacity: 1;
}

.password-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.password-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.password-modal.active .password-modal-content {
    transform: scale(1);
}

.password-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.password-modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: #c00000;
    font-weight: 700;
}

.password-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.password-modal-close:hover {
    background: #f0f0f0;
    color: #c00000;
}

.password-modal-form {
    padding: 1.5rem 2rem 2rem;
}

.password-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.password-modal-actions .btn {
    flex: 1;
}

/* Responsive adjustments for profile page */
@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-form {
        padding: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
    
    .visibility-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
        width: fit-content;
    }
    
    .profile-public-link-section {
        padding: 1rem;
    }
    
    .btn--public-profile {
        width: 100%;
        padding: 1rem;
    }
    
    .password-modal-content {
        width: 95%;
    }
    
    .password-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .password-modal-form {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .password-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .profile-form {
        padding: 1rem;
    }
    
    .profile-avatar-section {
        padding: 1rem;
    }
}

/* ==========================================================================
   FIN PROFILE PAGE
   ========================================================================== */

/* ==========================================================================
   PUBLIC PROFILE PAGE
   ========================================================================== */

.public-profile-page {
    background: linear-gradient(135deg, #f2f2f2 0%, #e8e8e8 100%);
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.public-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.public-profile-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.public-profile-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #c00000 0%, #a00000 100%);
    color: white;
}

.public-profile-avatar-section {
    margin-bottom: 1.5rem;
}

.public-profile-avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.public-profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.public-profile-fullname {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    font-weight: 400;
}

.public-profile-content {
    padding: 2rem;
}

.public-profile-section {
    margin-bottom: 2.5rem;
}

.public-profile-section:last-of-type {
    margin-bottom: 0;
}

.public-profile-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #c00000;
}

/* Info grid */
.public-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.public-profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #c00000;
}

.public-profile-info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.public-profile-info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.public-profile-website-link {
    color: #c00000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.public-profile-website-link:hover {
    color: #a00000;
    text-decoration: underline;
}

.external-link-icon {
    font-size: 0.85rem;
}

/* Bio */
.public-profile-bio {
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.public-profile-bio p {
    margin: 0 0 1rem 0;
}

.public-profile-bio p:last-child {
    margin-bottom: 0;
}

/* Stats */
.public-profile-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 8px;
}

.public-profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.public-profile-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c00000;
    line-height: 1;
}

.public-profile-stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Posts list */
.public-profile-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.public-profile-post-item {
    margin: 0;
    padding: 0;
}

.public-profile-post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.public-profile-post-link:hover {
    background: #fff;
    border-left-color: #c00000;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.public-profile-post-title {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

.public-profile-post-date {
    color: #999;
    font-size: 0.85rem;
    white-space: nowrap;
}

.public-profile-view-all {
    margin-top: 1rem;
    text-align: center;
}

.public-profile-view-all-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #c00000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.public-profile-view-all-link:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 0, 0, 0.3);
}

/* Comments list */
.public-profile-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.public-profile-comment-item {
    margin: 0;
    padding: 1.25rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #c00000;
}

.public-profile-comment-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.public-profile-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.public-profile-comment-post {
    color: #666;
}

.public-profile-comment-post a {
    color: #c00000;
    text-decoration: none;
    font-weight: 600;
}

.public-profile-comment-post a:hover {
    text-decoration: underline;
}

.public-profile-comment-date {
    color: #999;
    white-space: nowrap;
}

/* Actions */
.public-profile-actions {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.public-profile-back-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #666;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.public-profile-back-button:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Comment author link styling */
.comment-author-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.comment-author-link:hover {
    color: #c00000;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .public-profile-page {
        padding: 1rem 0;
    }
    
    .public-profile-header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .public-profile-avatar-image {
        width: 120px;
        height: 120px;
    }
    
    .public-profile-name {
        font-size: 1.6rem;
    }
    
    .public-profile-content {
        padding: 1.5rem;
    }
    
    .public-profile-section-title {
        font-size: 1.2rem;
    }
    
    .public-profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    .public-profile-stats {
        gap: 1.5rem;
    }
    
    .public-profile-stat-number {
        font-size: 2rem;
    }
    
    .public-profile-post-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .public-profile-comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   EXTERNAL LINK MODAL
   ========================================================================== */

.external-link-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.external-link-modal.active {
    display: flex;
}

.external-link-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.external-link-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.external-link-modal-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.external-link-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.external-link-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.external-link-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.external-link-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.external-link-modal-body {
    padding: 2rem;
}

.external-link-modal-body p {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.6;
}

.external-link-modal-body p:last-child {
    margin-bottom: 0;
}

.external-link-url {
    padding: 1rem;
    background: #f9f9f9;
    border-left: 4px solid #c00000;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #c00000;
    word-break: break-all;
    font-weight: 600;
}

.external-link-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    color: #856404;
    font-size: 0.9rem;
}

.external-link-modal-actions {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.external-link-modal-actions .btn {
    flex: 1;
    min-width: 150px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.external-link-modal-actions .btn--primary {
    background: #c00000;
    color: white;
    border: none;
}

.external-link-modal-actions .btn--primary:hover {
    background: #a00000;
}

.external-link-modal-actions .btn--secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.external-link-modal-actions .btn--secondary:hover {
    background: #5a6268;
}

/* Responsive pour le modal */
@media screen and (max-width: 768px) {
    .external-link-modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .external-link-modal-header {
        padding: 1.5rem;
    }
    
    .external-link-modal-icon {
        font-size: 2.5rem;
    }
    
    .external-link-modal-title {
        font-size: 1.2rem;
    }
    
    .external-link-modal-body {
        padding: 1.5rem;
    }
    
    .external-link-modal-actions {
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .external-link-modal-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   FIN PUBLIC PROFILE PAGE
   ========================================================================== */
