/*
Theme Name: QC
Theme URI: https://quickycooking.com
Author: Quicky Cooking
Author URI: https://quickycooking.com
Description: A modern, dynamic tech-style theme for Quicky Cooking - recipes with kitchen appliances for busy people
Version: 1.0
License: GPL v2 or later
Text Domain: qc
*/

/* ===================================
   GOOGLE FONTS IMPORT
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Couleurs Modernes Tech */
    --primary-green: #00C851;
    --primary-green-light: #69F0AE;
    --primary-green-dark: #00A844;
    --secondary-blue: #2196F3;
    --secondary-blue-light: #64B5F6;
    --secondary-blue-dark: #1565C0;
    --accent-teal: #26A69A;
    --accent-indigo: #3F51B5;
    
    /* Variables QC pour compatibilité template recette */
    --qc-primary-green: #00C851;
    --qc-primary-green-light: #69F0AE;
    --qc-primary-green-dark: #00A844;
    --qc-secondary-blue: #2196F3;
    --qc-secondary-blue-light: #64B5F6;
    --qc-secondary-blue-dark: #1565C0;
    --qc-accent-teal: #26A69A;
    --qc-accent-indigo: #3F51B5;
    --qc-warning-orange: #FF9800;
    --qc-success-green: #4CAF50;
    --qc-text-light: #2c3e50;
    --qc-border-light: #e2e8f0;
    --qc-bounce-timing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --qc-smooth-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --qc-gradient-primary: linear-gradient(135deg, var(--qc-primary-green) 0%, var(--qc-secondary-blue) 100%);
    --qc-gradient-secondary: linear-gradient(135deg, var(--qc-accent-teal) 0%, var(--qc-accent-indigo) 100%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-indigo) 100%);
    --gradient-subtle: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    
    /* Neutrals */
    --white: #FFFFFF;
    --grey-50: #FAFAFA;
    --grey-100: #F5F5F5;
    --grey-200: #EEEEEE;
    --grey-300: #E0E0E0;
    --grey-400: #BDBDBD;
    --grey-500: #9E9E9E;
    --grey-600: #757575;
    --grey-700: #616161;
    --grey-800: #424242;
    --grey-900: #212121;
    
    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6C757D;
    --text-light: #9E9E9E;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-3xl: 64px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--grey-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-green-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}


/* ===================================
   FEATURED RECIPE SECTION
   =================================== */
.featured-section {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-subtle);
    z-index: 0;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.featured-image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    height: 500px;
    background: var(--gradient-subtle);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-image:hover img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: var(--spacing-xl);
    left: var(--spacing-xl);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-content {
    padding: var(--spacing-xl);
}

.featured-label {
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
    position: relative;
}

.featured-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.featured-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
    font-family: var(--font-primary);
}

.featured-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
}

.featured-meta {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-primary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--grey-100);
    border-radius: var(--radius-full);
}

.meta-item i {
    color: var(--primary-green);
    font-size: 1rem;
}

.featured-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.featured-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.featured-button:hover::before {
    left: 100%;
}

.featured-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 200, 81, 0.4);
    color: var(--white);
}

/* ===================================
   LATEST RECIPES SECTION
   =================================== */
.latest-section {
    padding: var(--spacing-3xl) 0;
    background: var(--grey-50);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   MAGAZINE GRID
   =================================== */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.magazine-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--grey-200);
}

.magazine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: var(--radius-xl);
}

.magazine-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.magazine-card:hover::before {
    opacity: 0.03;
}

.magazine-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-subtle);
}

.magazine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-card:hover .magazine-image img {
    transform: scale(1.1);
}

.magazine-category {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    background: var(--gradient-secondary);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.magazine-content {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.magazine-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    font-family: var(--font-primary);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-card:hover .magazine-title {
    color: var(--primary-green);
}

.magazine-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.magazine-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--grey-200);
    font-family: var(--font-primary);
    font-weight: 500;
}

/* ===================================
   CATEGORIES STRIP
   =================================== */
.categories-strip {
    background: var(--white);
    padding: var(--spacing-3xl) 0;
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
    position: relative;
}

.categories-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-subtle);
    opacity: 0.3;
}

.categories-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.category-item:hover {
    transform: translateY(-8px);
}

.category-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    background: var(--gradient-subtle);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover .category-circle {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.category-item:hover .category-circle::after {
    opacity: 0.1;
}

.category-item:hover .category-circle img {
    transform: scale(1.1);
}

/* Couleurs de fallback pour les catégories */
.category-item:nth-child(1) .category-circle { background: linear-gradient(135deg, #E8F5E8, #C8E6C9); }
.category-item:nth-child(2) .category-circle { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.category-item:nth-child(3) .category-circle { background: linear-gradient(135deg, #E0F2F1, #B2DFDB); }
.category-item:nth-child(4) .category-circle { background: linear-gradient(135deg, #F3E5F5, #E1BEE7); }
.category-item:nth-child(5) .category-circle { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
.category-item:nth-child(6) .category-circle { background: linear-gradient(135deg, #FCE4EC, #F8BBD9); }

.category-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-primary);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover .category-name {
    color: var(--primary-green);
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */
.newsletter-section {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
    position: relative;
    z-index: 1;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-xl);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-secondary);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-button {
    background: var(--white);
    color: var(--accent-teal);
    border: none;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    box-shadow: var(--shadow-lg);
}

.newsletter-button:hover {
    background: var(--grey-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--grey-900);
    color: var(--white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--primary-green);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: var(--grey-400);
    font-size: 0.875rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-xs) 0;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--grey-700);
    color: var(--grey-500);
    font-size: 0.875rem;
}



/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 24px;
        --spacing-xxl: 32px;
        --spacing-3xl: 48px;
    }
    
    .featured-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .featured-image {
        height: 300px;
        transform: none;
    }
    
    .featured-image:hover {
        transform: translateY(-5px);
    }
    
    .magazine-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-flex {
        gap: var(--spacing-lg);
    }
    
    .category-circle {
        width: 100px;
        height: 100px;
    }
    
    .nav-menu {
        gap: var(--spacing-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    
    .featured-meta {
        gap: var(--spacing-md);
    }
    
    .meta-item {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .magazine-content {
        padding: var(--spacing-lg);
    }
    
    .category-circle {
        width: 80px;
        height: 80px;
    }
    
    .featured-content {
        padding: var(--spacing-lg);
    }
}

/* ===================================
   WORDPRESS SPECIFIC
   =================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: var(--spacing-lg);
}

.alignright {
    float: right;
    margin-left: var(--spacing-lg);
}

/* ===================================
   ANIMATIONS & INTERACTIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scale {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--grey-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }


/* ===================================
   RESPONSIVE MOBILE FIRST - QC
   =================================== */

/* Breakpoints modernes */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    /* VARIABLES MOBILE */
    :root {
        --spacing-xs: 8px;
        --spacing-sm: 12px;
        --spacing-md: 20px;
        --spacing-lg: 30px;
        --spacing-xl: 40px;
        --spacing-xxl: 50px;
        --spacing-3xl: 60px;
    }
    
    /* CONTAINER */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* TYPOGRAPHY MOBILE */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.3rem !important; }
    
    p, body {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    
    /* HEADER MOBILE */
    .welcome-bar {
        padding: 10px 0;
    }
    
    .welcome-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .welcome-left {
        order: 2;
    }
    
    .welcome-message {
        order: 1;
        margin: 0;
        font-size: 14px;
    }
 
    
    .main-header {
        padding: 15px 0;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .site-branding {
        flex: 1;
    }
    
    .brand-info h1 {
        font-size: 1.4rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* FEATURED SECTION MOBILE */
    .featured-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .featured-image {
        height: 250px;
        transform: none;
    }
    
    .featured-content {
        padding: 20px;
        text-align: center;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .meta-item {
        justify-content: center;
        min-width: 200px;
    }
    
    /* MAGAZINE GRID MOBILE */
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .magazine-content {
        padding: 20px;
    }
    
    .magazine-title {
        font-size: 1.3rem;
    }
    
    /* CATEGORIES MOBILE */
    .categories-flex {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .category-item {
        width: 100%;
        max-width: 200px;
    }
    
    .category-circle {
        width: 100px;
        height: 100px;
        margin: 0 auto 15px;
    }
    
    /* NEWSLETTER MOBILE */
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-input,
    .newsletter-button {
        width: 100%;
        font-size: 16px;
        padding: 15px 20px;
    }
    
    /* FOOTER MOBILE */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    /* EXTRA SMALL DEVICES */
    .container {
        padding: 0 15px;
    }
    
    /* TYPOGRAPHY SMALL */
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    
    p, body {
        font-size: 15px !important;
    }
    
    /* HEADER SMALL */
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .brand-info h1 {
        font-size: 1.2rem;
    }
    
    .site-tagline {
        font-size: 10px;
    }
    
    /* BUTTONS SMALL */
    .featured-button,
    .newsletter-button {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    /* SPACING SMALL */
    .featured-section,
    .latest-section,
    .categories-strip,
    .newsletter-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
}