/* ========================================
   VARIABLES CSS (couleurs, espacements, etc.)
   Palette bordeaux-rose personnalisée
   ======================================== */
:root {
    /* Couleurs principales (bordeaux) */
    --color-primary: #620020;
    --color-secondary: #8B0030;
    --color-accent: #A5003A;
    --color-light-burgundy: #C8053E;
    --color-dark: #0A0A0A;
    --color-text: #FFFFFF;
    --color-text-muted: #AFAFAF;
    --color-white: #FFFFFF;
    --color-error: #FF4444;
    --color-success: #00D084;

    /* Dégradés bordeaux */
    --gradient-primary: linear-gradient(180deg, #C8053E 0%, #A5003A 50%, #8B0030 100%);
    --gradient-secondary: linear-gradient(180deg, #A5003A 0%, #8B0030 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Ombres colorées bordeaux */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-burgundy: 0 8px 32px rgba(98, 0, 32, 0.5);
    --shadow-glow: 0 0 60px rgba(98, 0, 32, 0.6);

    /* Espacements */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 96px;

    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.4s cubic-bezier(0.625, 0.02, 0, 1.05);
    --transition-medium: 0.8s cubic-bezier(0.625, 0.02, 0, 1.05);
    --transition-slow: 1.6s cubic-bezier(0.625, 0.02, 0, 1.05);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #0D0510 0%, #050208 100%);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CONTAINER (limiter la largeur du contenu)
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   NAVIGATION STICKY (style Spiice - transparente)
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: var(--spacing-md) 0;
    transition: all var(--transition-medium);
}

/* Effet au scroll : navbar avec fond subtil */
.navbar.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-logo h2 {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(98, 0, 32, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(98, 0, 32, 0.6);
}

/* ========================================
   MAIN SECTION (One Page Layout)
   ======================================== */
.main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Effet de fond animé subtil */
.main-section::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: var(--gradient-primary);
    opacity: 0.12;
    filter: blur(150px);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.12;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.18;
    }
}

/* Hero Headline (style Spiice) */
.hero-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    color: var(--color-white);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-tagline {
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-style: italic;
}

.hero-tagline-list {
    font-size: clamp(13px, 1.8vw, 15px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
}

/* Blocs info (Anonyme + Live) */
.info-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.info-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
}

.info-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.info-block p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-prize {
    margin-top: 12px;
    font-weight: 500;
    color: var(--color-white) !important;
}

.highlight-prize {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ========================================
   FORMULAIRE (Effet Glass amélioré)
   ======================================== */

.form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 48px;
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(200, 5, 62, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.form-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 12px;
    text-align: left;
    color: var(--color-white);
    font-weight: 600;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.label-optional {
    font-weight: 400;
    font-size: 13px;
    color: var(--color-text-muted);
}

.field-hint {
    font-size: 13px;
    color: var(--color-light-burgundy);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ========================================
   CHAMPS DE FORMULAIRE
   ======================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-white);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--color-white);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(150, 83, 126, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Compteur de caractères */
.char-count {
    display: block;
    text-align: right;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Message d'erreur */
.error-message {
    display: none;
    color: var(--color-error);
    font-size: 14px;
    margin-top: 4px;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--color-error);
}

/* ========================================
   BOUTONS RADIO CUSTOMISÉS
   ======================================== */
.radio-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.radio-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all var(--transition-fast);
    flex: 1;
}

.radio-label:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(98, 0, 32, 0.6);
}

.check-icon {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.radio-label input[type="radio"]:checked ~ .radio-custom .check-icon {
    opacity: 1;
    transform: scale(1);
}

.radio-text {
    font-weight: 500;
}

/* Champ "Autre" pour le genre */
.gender-other-field {
    margin-top: var(--spacing-sm);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.gender-other-field input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--color-white);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.gender-other-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(150, 83, 126, 0.2);
}

.gender-other-field input::placeholder {
    color: var(--color-text-muted);
}

/* Champ de question pour Sabrina/Marvin */
.question-field {
    margin-top: var(--spacing-sm);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.question-field textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--color-white);
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.question-field textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(150, 83, 126, 0.2);
}

.question-field textarea::placeholder {
    color: var(--color-text-muted);
}

/* ========================================
   CHECKBOXES CUSTOMISÉES
   ======================================== */
.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    cursor: pointer;
    margin-bottom: var(--spacing-sm);
    padding: 0;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(98, 0, 32, 0.6);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom .check-icon {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    color: var(--color-text);
    line-height: 1.5;
    display: inline-block;
    white-space: normal;
}

/* ========================================
   BOUTON SUBMIT
   ======================================== */
.submit-button {
    width: 100%;
    padding: 18px 32px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-top: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

/* État de chargement */
.submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.submit-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ========================================
   MESSAGES DE SUCCÈS/ERREUR
   ======================================== */
.form-message {
    display: none;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
    font-weight: 600;
    text-align: center;
}

.form-message.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

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

.form-message.success {
    background: rgba(0, 208, 132, 0.1);
    border: 2px solid var(--color-success);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid var(--color-error);
    color: var(--color-error);
}

/* ========================================
   SECTION À PROPOS
   ======================================== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: transparent;
}

.about-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

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

.about-socials {
    font-weight: 600;
    color: var(--color-white) !important;
    margin-top: var(--spacing-md);
}

.social-tag {
    color: var(--color-light-burgundy);
    text-decoration: none;
    font-weight: 700;
    transition: opacity var(--transition-fast);
}

.social-tag:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    background: transparent;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-burgundy);
}

.footer p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE (Mobile)
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .logo-img {
        height: 35px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .cta-button {
        padding: 8px 14px;
        font-size: 12px;
    }

    .about-content p {
        font-size: 14px;
        text-align: center;
    }

    .main-section {
        padding: 90px 0 60px;
    }

    .hero-headline {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .info-blocks {
        grid-template-columns: 1fr;
    }

    .form-title {
        font-size: 20px;
    }

    .form-wrapper {
        padding: var(--spacing-md);
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-label {
        width: 100%;
    }
}
