/* ============================================
   BRIEF CLIENT - Sébastien Design
   Styles pour la page de formulaire client
   ============================================ */

:root {
    --orange: #f97316;
    --orange-light: #fb923c;
    --coral: #f43f5e;
    --fond: #0a0a0f;
    --fond-card: rgba(255, 255, 255, 0.03);
    --fond-input: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e5e5e5;
    --text-muted: #a3a3a3;
    --glow: rgba(249, 115, 22, 0.4);
}

/* Mode clair */
[data-theme="light"] {
    --fond: #f5f5f5;
    --fond-card: rgba(0, 0, 0, 0.03);
    --fond-input: rgba(0, 0, 0, 0.05);
    --border: rgba(0, 0, 0, 0.1);
    --text: #1a1a1a;
    --text-muted: #666666;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--fond);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-effects::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 20% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(1deg); }
}

/* Grain Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    text-align: center;
    padding: 4rem 0 3rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-toggles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle - Style capsule identique au lang-toggle */
.theme-toggle {
    background: var(--fond-input);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 70px;
    height: 32px;
}

.theme-toggle:hover {
    border-color: var(--orange);
}

.theme-toggle-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.theme-toggle-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--orange);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle-circle::before {
    transform: translateX(100%);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.theme-toggle .icon-moon {
    color: white;
}

.theme-toggle .icon-sun {
    color: var(--text-muted);
}

.theme-toggle.active .theme-toggle-circle::before {
    transform: translateX(100%);
}

.theme-toggle.active .icon-moon {
    color: var(--text-muted);
}

.theme-toggle.active .icon-sun {
    color: white;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px var(--glow);
}

/* Language Toggle - Style identique au portfolio */
.lang-toggle {
    background: var(--fond-input);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 70px;
    height: 32px;
}

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

.lang-toggle-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.lang-toggle-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--orange);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.lang-toggle.active .lang-toggle-circle::before {
    transform: translateX(100%);
}

.lang-fr,
.lang-en {
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.lang-fr {
    color: white;
}

.lang-en {
    color: var(--text-muted);
}

.lang-toggle.active .lang-fr {
    color: var(--text-muted);
}

.lang-toggle.active .lang-en {
    color: white;
}

.header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-container {
    margin: 3rem 0;
    padding: 0 1rem;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--coral));
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fond);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 0 20px var(--glow);
}

.progress-step.completed {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--fond);
}

/* ============================================
   FORM SECTIONS
   ============================================ */

.form-section {
    background: var(--fond-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 2rem;
}

.section-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    border-radius: 8px;
    text-align: center;
    line-height: 32px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--fond-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

select option {
    background: var(--fond);
    color: var(--text);
}

/* ============================================
   CHECKBOX GRID
   ============================================ */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--fond-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    border-color: var(--orange);
    background: rgba(249, 115, 22, 0.05);
}

.checkbox-item input {
    display: none;
}

.checkbox-item input:checked + .checkbox-custom {
    background: var(--orange);
    border-color: var(--orange);
}

.checkbox-item input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-item input:checked ~ .checkbox-label {
    color: var(--orange);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--fond);
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.2s ease;
}

.checkbox-label {
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

/* ============================================
   RADIO GROUP
   ============================================ */

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--fond-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-item:hover {
    border-color: var(--orange);
}

.radio-item input {
    display: none;
}

.radio-item input:checked + .radio-custom {
    border-color: var(--orange);
}

.radio-item input:checked + .radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-item input:checked ~ .radio-content .radio-label {
    color: var(--orange);
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.2s ease;
}

.radio-content {
    flex: 1;
}

.radio-label {
    font-weight: 500;
    transition: color 0.3s ease;
}

.radio-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   OTHER INPUT
   ============================================ */

.other-input {
    margin-top: 0.75rem;
    display: none;
}

.other-input.visible {
    display: block;
}

/* ============================================
   ROW LAYOUT
   ============================================ */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */

.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--coral));
    border: none;
    color: white;
    box-shadow: 0 4px 20px var(--glow);
}

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

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-message {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.success-message.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--orange), var(--coral));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-message h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-box-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.info-box-text strong {
    color: var(--orange);
}

.info-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.info-box.success strong {
    color: #22c55e;
}

/* ============================================
   INSPIRATIONS
   ============================================ */

.inspiration-item {
    margin-bottom: 1rem;
}

.inspiration-item label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--orange);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .header {
        padding: 2rem 0;
    }

    .header-top {
        margin-bottom: 1.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .header-toggles {
        gap: 0.5rem;
    }

    .theme-toggle,
    .lang-toggle {
        width: 60px;
        height: 28px;
    }

    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }

    .lang-fr,
    .lang-en {
        font-size: 0.7rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .header p {
        font-size: 1rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}
