/*
Theme Name: MXTV Theme
Theme URI: https://mxtv.fr
Description: Thème WordPress personnalisé pour MXTV.FR - Le meilleur du motocross en direct live
Version: 1.0
Author: MXTV
Author URI: https://mxtv.fr
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mxtv
Tags: motocross, streaming, sport, custom-header, responsive-layout
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Teko:wght@500;600;700&display=swap');

.site-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: white;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.header-deco-left, .header-deco-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8rem;
    opacity: 0.2;
}

.header-deco-left { left: 0; }
.header-deco-right { right: 0; }

.header-deco-left .stripes, .header-deco-right .stripes {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
}

.stripe {
    height: 0.5rem;
    background: #003366;
    margin-bottom: 0.5rem;
}

.header-deco-left .stripe { transform: skewX(-12deg); }
.header-deco-right .stripe { transform: skewX(12deg); }

.stripe:nth-child(2) { height: 0.75rem; }

.accent {
    position: absolute;
    height: 0.25rem;
    background: #dc2626;
}

.header-deco-left .accent-1 {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%) skewX(-12deg);
    width: 5rem;
}

.header-deco-left .accent-2 {
    left: 2rem;
    top: 50%;
    transform: translateY(0.75rem) skewX(-12deg);
    width: 4rem;
}

.header-deco-right .accent-1 {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) skewX(12deg);
    width: 5rem;
}

.header-deco-right .accent-2 {
    right: 2rem;
    top: 50%;
    transform: translateY(0.75rem) skewX(12deg);
    width: 4rem;
}

.header-speed-lines {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.speed-line {
    position: absolute;
    height: 1px;
}

.speed-line-1 { left: 2.5rem; top: 25%; width: 6rem; background: linear-gradient(to right, #dc2626, transparent); }
.speed-line-2 { left: 4rem; top: 33%; width: 8rem; background: linear-gradient(to right, #1e3a8a, transparent); }
.speed-line-3 { left: 3rem; top: 66%; width: 7rem; background: linear-gradient(to right, #dc2626, transparent); }
.speed-line-4 { right: 2.5rem; top: 25%; width: 6rem; background: linear-gradient(to left, #dc2626, transparent); }
.speed-line-5 { right: 4rem; top: 33%; width: 8rem; background: linear-gradient(to left, #1e3a8a, transparent); }
.speed-line-6 { right: 3rem; top: 66%; width: 7rem; background: linear-gradient(to left, #dc2626, transparent); }

.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-logo {
    height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.site-tagline {
    margin-top: 0.75rem;
    color: #dc2626;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 0 1rem;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.header-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(to right, transparent, #dc2626, transparent);
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.content-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.content-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 2rem 1rem;
}

/* Platform Cards */
.platforms-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.platforms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    padding: 0 1rem;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.platform-card:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.platform-logo {
    width: 8rem;
    height: 8rem;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.platform-card:hover .platform-logo {
    transform: scale(1.1);
}

.platform-text {
    color: white;
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Teko', sans-serif;
    font-weight: 600;
}

/* Contact Button */
.contact-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.contact-button {
    padding: 1rem 2rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.contact-button:hover {
    background: #b91c1c;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Instagram Button */
.instagram-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #f97316 100%);
    padding: 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-button:hover {
    transform: scale(1.1);
}

.instagram-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
    fill: none;
}

.instagram-pulse {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #dc2626;
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    position: relative;
    margin: 2rem 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827;
}

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

.form-textarea {
    resize: none;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
}

.form-submit {
    width: 100%;
    padding: 0.75rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-submit:hover {
    background: #b91c1c;
}

.form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    color: #16a34a;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-text {
    color: #6b7280;
}

/* Responsive */
@media (min-width: 640px) {
    .site-header { padding: 1.5rem 0; }
    .site-logo { height: 5rem; }
    .site-tagline { font-size: 1.125rem; }
    .header-deco-left, .header-deco-right { width: 12rem; }
    .platforms-grid { gap: 3rem; }
    .platform-card { padding: 3rem; }
    .platform-logo { width: 10rem; height: 10rem; margin-bottom: 1.5rem; }
    .platform-text { font-size: 1.25rem; }
    .instagram-icon { width: 2rem; height: 2rem; }
    .instagram-button { padding: 1rem; }
    .content-inner { padding: 3rem 1rem; }
}

@media (min-width: 768px) {
    .site-logo { height: 6rem; }
    .site-tagline { font-size: 1.25rem; }
    .header-deco-left, .header-deco-right { width: 16rem; }
    .platforms-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; }
    .platform-logo { width: 12rem; height: 12rem; }
    .platform-text { font-size: 1.5rem; }
}
