/* ========== HERO SECTION ========== */
.hero {
    background-color: #1a1a1a;
    background-image: url('/images/home-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/boxing-pattern.png');
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #ddd;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
.hero-cta {
    margin-top: 40px;
}
.hero-cta .btn {
    font-size: 1.1rem;
    padding: 16px 36px;
}

/* ========== INTRO SECTION ========== */
.intro-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-text h2 {
    margin-bottom: 24px;
    color: var(--text-dark);
}
.intro-text p {
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}
.intro-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.stat-item {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s;
}
.stat-item:hover {
    transform: translateY(-2px);
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
    padding: 80px 0;
    background-color: #fff;
}
.categories-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.category-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-brand);
}
.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========== ARTICLES SECTION ========== */
.articles-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}
.articles-section h2 {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    grid-auto-rows: minmax(200px, auto);
}
.masonry-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.masonry-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.card-image {
    flex: 1;
    min-height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.masonry-card:hover .card-image img {
    transform: scale(1.03);
}
.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.card-content h3 {
    margin-bottom: 12px;
}
.card-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.card-content h3 a:hover {
    color: var(--color-brand);
}
.card-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
/* Masonry sizes */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
}
.card-large .card-image {
    min-height: 300px;
}
.card-large .card-content {
    padding: 30px;
}

/* ========== TIPS SECTION ========== */
.tips-section {
    padding: 80px 0;
    background-color: #fff;
}
.tips-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.tip-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: box-shadow 0.2s;
}
.tip-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.tip-number {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--color-brand);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tip-card h3 {
    margin-top: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.tip-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter-section {
    padding: 80px 0;
    background-color: var(--color-brand-light);
}
.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.newsletter-content h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}
.newsletter-content p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}
.newsletter-form {
    max-width: 400px;
}
.form-group {
    margin-bottom: 20px;
}
.newsletter-form input {
    background: #fff;
}
.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.newsletter-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.newsletter-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== RESPONSIVE (auto-repair) ===== */
/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .intro-section {
        padding: 60px 0;
    }

    .categories-section {
        padding: 60px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .articles-section {
        padding: 60px 0;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .card-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .tips-section {
        padding: 60px 0;
    }

    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ========== MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        font-size: 1rem;
        padding: 14px 28px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .intro-section {
        padding: 50px 0;
    }

    .intro-text h2 {
        font-size: 1.6rem;
    }

    .intro-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 calc(50% - 12px);
        padding: 20px 16px;
    }

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

    .categories-section {
        padding: 50px 0;
    }

    .categories-section h2 {
        margin-bottom: 30px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        padding: 24px 16px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 14px;
    }

    .articles-section {
        padding: 50px 0;
    }

    .section-subtitle {
        margin-bottom: 30px;
        font-size: 1rem;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .card-large .card-image {
        min-height: 200px;
    }

    .card-large .card-content {
        padding: 24px;
    }

    .card-image {
        min-height: 180px;
    }

    .tips-section {
        padding: 50px 0;
    }

    .tips-section h2 {
        margin-bottom: 30px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tip-card {
        padding: 24px;
    }

    .newsletter-section {
        padding: 50px 0;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .newsletter-image {
        order: -1;
        margin-bottom: 10px;
    }
}

/* ========== PETIT MOBILE (max-width: 480px) ========== */
@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .hero-cta {
        margin-top: 28px;
    }

    .hero-cta .btn {
        font-size: 0.95rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .intro-section {
        padding: 40px 0;
    }

    .intro-text h2 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .intro-text p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .intro-stats {
        flex-direction: column;
    }

    .stat-item {
        flex: 1 1 100%;
        padding: 18px 14px;
    }

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

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

    .categories-section {
        padding: 40px 0;
    }

    .categories-section h2 {
        margin-bottom: 24px;
        font-size: 1.4rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        padding: 20px 14px;
    }

    .category-icon {
        width: 44px;
        height: 44px;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .category-card p {
        font-size: 0.85rem;
    }

    .articles-section {
        padding: 40px 0;
    }

    .articles-section h2 {
        font-size: 1.4rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        grid-auto-rows: auto;
    }

    .card-image {
        min-height: 160px;
    }

    .card-content {
        padding: 18px;
    }

    .card-meta {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }

    .card-content h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .tips-section {
        padding: 40px 0;
    }

    .tips-section h2 {
        margin-bottom: 24px;
        font-size: 1.4rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tip-card {
        padding: 22px 18px;
    }

    .tip-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: -12px;
        left: 20px;
    }

    .tip-card h3 {
        margin-top: 16px;
        margin-bottom: 12px;
        font-size: 1rem;
    }

    .tip-card p {
        font-size: 0.9rem;
    }

    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-content h2 {
        font-size: 1.4rem;
        margin-bottom: 14px;
    }

    .newsletter-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .form-group {
        margin-bottom: 16px;
    }

    .form-note {
        font-size: 0.8rem;
    }

    .newsletter-image {
        order: -1;
        border-radius: 8px;
    }
}