/* ===== BLOG STYLES - SPORT DE COMBAT BRANDING ===== */

/* Variables */
:root {
    --primary-color: #c62828;
    --secondary-color: #ff5252;
    --accent-color: #8b0000;
    --dark-bg: #1a1a1a;
    --text-color: #333;
    --text-light: #555;
    --border-color: #e9ecef;
}
p {
  margin-top: 1em;
  margin-bottom: 1em;
}
/* Padding blog intelligent selon header */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 35px 20px 20px;
    line-height: 1.6;
}

/* Article structure */
.blog-article {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.15);
}

.article-header {
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern-combat.png') repeat;
    opacity: 0.05;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 25px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    font-size: 0.95rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.article-hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 3px solid rgba(255, 82, 82, 0.3);
}

/* Article content */
.article-content {
    padding: 45px;
}

.article-intro {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 45px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(198,40,40,0.05), rgba(255,82,82,0.05));
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    line-height: 1.7;
}

/* Sections styling */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 2.2rem;
    color: var(--dark-bg);
    margin-bottom: 30px;
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

section h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 30px 0 18px 0;
    font-weight: 800;
}

section h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 25px 0 12px 0;
    font-weight: 800;
}

/* Fundamentals grid */
.fundamentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.fundamental-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border-top: 5px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
    transition: all 0.3s ease;
}

.fundamental-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.2);
}

.fundamental-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 800;
    text-transform: uppercase;
}

/* Exercise list styling */
.exercise-list {
    margin: 35px 0;
}

.exercise-item {
    display: flex;
    margin-bottom: 35px;
    padding: 30px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.08);
    transition: all 0.3s ease;
}

.exercise-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.exercise-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.exercise-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
}

.exercise-tips {
    background: linear-gradient(135deg, rgba(255,82,82,0.1), rgba(198,40,40,0.05));
    border: 2px solid rgba(255,82,82,0.3);
    padding: 18px;
    border-radius: 10px;
    margin-top: 18px;
    font-size: 0.95rem;
}

.exercise-tips strong {
    color: var(--primary-color);
    font-weight: 800;
}

/* Section images */
.section-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.15);
}

/* Program structure */
.program-structure {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
    border: 2px solid var(--border-color);
}

/* Tableaux responsive obligatoires */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.12);
}

.responsive-table th {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-color));
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.responsive-table td {
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
}

.responsive-table tr:nth-child(even) {
    background: rgba(198, 40, 40, 0.02);
}

.responsive-table tr:hover {
    background: linear-gradient(90deg, rgba(255, 82, 82, 0.08) 0%, transparent 100%);
}

/* Progress tracking */
.tracking-tools {
    margin: 35px 0;
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.metric-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.08);
    transition: all 0.3s ease;
}

.metric-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.metric-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Calculateur de progression */
.progress-calculator {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin: 35px 0;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.calc-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-input label {
    font-weight: 800;
    color: var(--dark-bg);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.calc-input input {
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.calc-input input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.1);
}

.calc-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.calc-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.calc-result {
    background: #d4edda;
    color: #155724;
    padding: 22px;
    border-radius: 10px;
    font-weight: 700;
    display: none;
    border: 2px solid #c3e6cb;
}

.calc-result.show {
    display: block;
}

/* Mistakes grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.mistake-item {
    background: rgba(220, 53, 69, 0.05);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.mistake-item h3 {
    color: #dc3545;
    margin-top: 0;
    font-weight: 800;
    text-transform: uppercase;
}

/* Nutrition content */
.nutrition-content {
    margin: 35px 0;
}

.nutrition-guidelines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.nutrition-item {
    background: linear-gradient(135deg, rgba(198,40,40,0.05), rgba(255,82,82,0.02));
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.08);
}

.nutrition-item h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
}

.timing-tips {
    background: linear-gradient(135deg, rgba(255,82,82,0.1), rgba(198,40,40,0.05));
    padding: 28px;
    border-radius: 12px;
    border-left: 5px solid var(--secondary-color);
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
}

.timing-tips p {
    margin: 12px 0;
}

/* Program tips */
.program-tips {
    margin: 35px 0;
}

.program-tips ul {
    list-style: none;
    padding: 0;
}

.program-tips li {
    background: #ffffff;
    padding: 18px;
    margin: 12px 0;
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.08);
    transition: all 0.3s ease;
}

.program-tips li:hover {
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, #ffffff 0%, var(--border-color) 100%);
    padding: 45px;
    border-radius: 12px;
    margin: 45px 0;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.12);
}

.action-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 2px solid var(--border-color);
    border-top: 5px solid var(--secondary-color);
}

.action-summary h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 900;
    text-transform: uppercase;
}

.action-summary ol {
    padding-left: 25px;
}

.action-summary li {
    margin: 12px 0;
    font-weight: 600;
}

/* CSS CONTACT COMPLET OBLIGATOIRE */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.12);
    border: 2px solid var(--border-color);
}

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

.form-row {
    display: flex;
    gap: 18px;
}

.form-row .form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(255, 82, 82, 0.1);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.contact-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #c3e6cb;
    font-weight: 600;
}

.contact-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #f5c6cb;
    font-weight: 600;
}

.required-field::after {
    content: " *";
    color: var(--secondary-color);
    font-weight: bold;
}

/* CSS FOOTER CIBLE SPECIFIQUEMENT */
.site-footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #000000 100%);
    color: #ffffff;
    padding: 50px 0 25px;
    margin-top: 80px;
    border-top: 4px solid var(--secondary-color);
}

.site-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer-nav {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.site-footer-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.site-footer-nav a:hover {
    color: var(--secondary-color);
}

.site-footer-copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 82, 82, 0.2);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.site-footer-legal {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.site-footer-legal a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.site-footer-legal a:hover {
    color: var(--secondary-color);
}

.site-footer-warning {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 25px 0;
    padding: 18px;
    background: rgba(255,82,82,0.1);
    border-radius: 10px;
    line-height: 1.5;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .blog-container {
        padding: 25px 15px 15px;
    }

    .article-header {
        padding: 40px 25px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 30px 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
    }

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

    .exercise-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .exercise-number {
        margin: 0 auto 18px auto;
    }

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

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

    .nutrition-guidelines {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Tableaux responsive mobile */
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }

    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }

    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .responsive-table tr {
        border: 2px solid var(--border-color);
        margin-bottom: 15px;
        padding: 12px;
        border-radius: 10px;
    }

    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }

    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 8px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }

    /* Contact form responsive */
    .contact-form {
        padding: 25px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Footer responsive */
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .site-footer-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .site-footer-legal {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-container {
        padding: 30px 25px 20px;
    }

    .fundamentals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .progress-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .mistakes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .blog-container {
        padding: 40px 30px 25px;
    }
}