:root {
    --primary: #0066FF;
    --primary-glow: rgba(0, 102, 255, 0.4);
    --accent: #FF6B00;
    --accent-glow: rgba(255, 107, 0, 0.4);
    --bg-dark: #0A0A0F;
    --bg-card: #12121A;
    --bg-input: #1A1A25;
    --text-primary: #FFFFFF;
    --text-secondary: #9595A8;
    --text-muted: #5C5C6F;
    --border: #2A2A3A;
    --border-hover: #3A3A4A;
    --success: #00D26A;
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B00 0%, #FFB800 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 0, 0.08) 0%, transparent 40%);
    z-index: -1;
}

.survey-container {
    width: 100%;
    max-width: 1100px;
    min-height: 85vh;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(0, 102, 255, 0.1);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border-radius: 0 4px 4px 0;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 85vh;
}

.slide.active {
    display: flex;
}

.slide-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.media-side {
    flex: 0 0 45%;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-side video,
.media-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, var(--bg-card) 100%);
    pointer-events: none;
}

.sound-btn {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.sound-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.text-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.rtl-mode {
    direction: rtl;
    text-align: right;
}

.rtl-mode .text-side {
    align-items: flex-end;
}

.rtl-mode .btn-back,
.rtl-mode .btn-choice {
    flex-direction: row-reverse;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-back:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

h1 {
    font-family: 'Space Grotesk', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

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

p.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.lang-wrapper {
    width: 100%;
    max-width: 400px;
}

.lang-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239595A8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px auto;
    transition: all 0.3s ease;
}

.lang-select:hover {
    border-color: var(--border-hover);
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.choices-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
    max-width: 450px;
}

.btn-choice {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-choice:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
    transform: translateX(5px);
}

.btn-choice.selected {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.1);
}

.btn-choice .icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.rank-badge {
    width: 28px;
    height: 28px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.btn-choice.selected .rank-badge {
    display: flex;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 450px;
    margin-top: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group button {
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px var(--primary-glow);
}

input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.privacy-note a {
    color: var(--primary);
    text-decoration: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--primary-glow);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-accent {
    background: var(--gradient-accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-validate {
    display: none;
    margin-top: 1.5rem;
    align-self: flex-start;
}

.btn-validate.show {
    display: inline-flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 210, 106, 0.1);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.queue-number {
    font-family: 'Space Grotesk', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
}

.referral-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    max-width: 450px;
    width: 100%;
}

.referral-link {
    font-family: 'Space Grotesk', monospace;
    color: var(--accent);
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--border);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary);
}

@media (max-width: 900px) {
    .survey-container {
        min-height: auto;
        flex-direction: column;
    }

    .slide-content {
        flex-direction: column;
    }

    .media-side {
        flex: 0 0 250px;
        min-height: 250px;
    }

    .media-overlay {
        background: linear-gradient(to bottom, transparent 60%, var(--bg-card) 100%);
    }

    .text-side {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .choices-grid,
    .input-group,
    .lang-wrapper,
    input[type="email"],
    .referral-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .survey-container {
        border-radius: 0;
        border: none;
    }

    .text-side {
        padding: 1.5rem 1rem;
    }

    .btn-choice {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .queue-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   FORMULAIRE COMPLET - SLIDE 7
======================================== */

.slide-content.full-form {
    display: flex;
}

.form-side {
    overflow-y: auto;
    max-height: 85vh;
    padding-right: 1rem;
}

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

.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

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

.form-group.small {
    flex: 0 0 80px;
}

.form-group.large {
    flex: 2;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239595A8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Checkbox personnalisé */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-input);
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Offre populaire */
.btn-choice.popular {
    border-color: var(--accent);
    position: relative;
}

.btn-choice.popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0.3;
}

.popular-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.pricing-info {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.75rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

/* Responsive formulaire */
@media (max-width: 768px) {
    .form-side {
        max-height: none;
        overflow-y: visible;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-group.small,
    .form-group.large {
        flex: 1;
    }
    
    .form-row:has(.form-group.small) {
        flex-direction: row;
    }
    
    .slide-content.full-form .media-side {
        display: none;
    }
    
    .slide-content.full-form .text-side {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-form {
        gap: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    .btn-submit {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* ========================================
   SIRET / PAPPERS INTEGRATION
======================================== */

.siret-section {
    width: 100%;
}

.siret-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.siret-input-group input {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 1px;
}

.siret-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-search {
    padding: 0.85rem 1.25rem;
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn-search:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Carte résultat Pappers */
.pappers-result {
    margin-top: 1.5rem;
    animation: slideIn 0.3s ease;
}

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

.pappers-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.pappers-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.pappers-info {
    margin-bottom: 1.25rem;
}

.pappers-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pappers-info p strong {
    color: var(--text-primary);
}

.pappers-info p span {
    color: var(--primary);
    font-weight: 500;
}

.pappers-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-confirm {
    flex: 1;
    min-width: 180px;
}

.btn-secondary {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Erreur Pappers */
.pappers-error {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 8px;
    text-align: center;
}

.pappers-error p {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* Skip SIRET */
.skip-siret {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.skip-siret p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* Form divider */
.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* Responsive SIRET */
@media (max-width: 480px) {
    .siret-input-group {
        flex-direction: column;
    }
    
    .siret-input-group input {
        font-size: 1rem;
    }
    
    .pappers-actions {
        flex-direction: column;
    }
    
    .btn-confirm, .btn-secondary {
        width: 100%;
    }
}

/* ========================================
   SUCCESS PAGE - EMAIL NOTICE & SPAM WARNING
======================================== */

.email-notice {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}

.email-notice p {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.email-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.email-notice li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.spam-warning {
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.spam-warning p {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.referral-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem !important;
}

.btn-secondary-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-secondary-link:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}
